summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/kvm_emulate.h
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2012-08-30 01:30:16 +0200
committerAvi Kivity <avi@redhat.com>2012-09-05 12:41:48 +0300
commit0225fb509d51fcf777eb0aa31c304c582e3248fd (patch)
tree3b6bb0ab01d673efcdd0121c15ced21171a562f1 /arch/x86/include/asm/kvm_emulate.h
parentfd0a0d82083747301f6c8084b4141bb490625016 (diff)
KVM: x86 emulator: constify emulate_ops
We never change emulate_ops[] at runtime so it should be r/o. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/include/asm/kvm_emulate.h')
-rw-r--r--arch/x86/include/asm/kvm_emulate.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/include/asm/kvm_emulate.h b/arch/x86/include/asm/kvm_emulate.h
index 282aee5d6ac1..b5bb73aecc06 100644
--- a/arch/x86/include/asm/kvm_emulate.h
+++ b/arch/x86/include/asm/kvm_emulate.h
@@ -250,7 +250,7 @@ struct read_cache {
};
struct x86_emulate_ctxt {
- struct x86_emulate_ops *ops;
+ const struct x86_emulate_ops *ops;
/* Register state before/after emulation. */
unsigned long eflags;