diff options
author | Mathias Krause <minipli@googlemail.com> | 2012-08-29 19:30:16 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-09-05 05:41:48 -0400 |
commit | 0225fb509d51fcf777eb0aa31c304c582e3248fd (patch) | |
tree | 3b6bb0ab01d673efcdd0121c15ced21171a562f1 /arch/x86/include/asm/kvm_emulate.h | |
parent | fd0a0d82083747301f6c8084b4141bb490625016 (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.h | 2 |
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 { | |||
250 | }; | 250 | }; |
251 | 251 | ||
252 | struct x86_emulate_ctxt { | 252 | struct x86_emulate_ctxt { |
253 | struct x86_emulate_ops *ops; | 253 | const struct x86_emulate_ops *ops; |
254 | 254 | ||
255 | /* Register state before/after emulation. */ | 255 | /* Register state before/after emulation. */ |
256 | unsigned long eflags; | 256 | unsigned long eflags; |