diff options
author | Mathias Krause <minipli@googlemail.com> | 2012-08-30 01:30:16 +0200 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2012-09-05 12:41:48 +0300 |
commit | 0225fb509d51fcf777eb0aa31c304c582e3248fd (patch) | |
tree | 3b6bb0ab01d673efcdd0121c15ced21171a562f1 /arch/x86/include | |
parent | fd0a0d82083747301f6c8084b4141bb490625016 (diff) | |
download | op-kernel-dev-0225fb509d51fcf777eb0aa31c304c582e3248fd.zip op-kernel-dev-0225fb509d51fcf777eb0aa31c304c582e3248fd.tar.gz |
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')
-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 282aee5..b5bb73a 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; |