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/kvm/x86.c | |
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/kvm/x86.c')
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 20f2266dfb64..0dc066f0428d 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -4323,7 +4323,7 @@ static void emulator_write_gpr(struct x86_emulate_ctxt *ctxt, unsigned reg, ulon kvm_register_write(emul_to_vcpu(ctxt), reg, val); } -static struct x86_emulate_ops emulate_ops = { +static const struct x86_emulate_ops emulate_ops = { .read_gpr = emulator_read_gpr, .write_gpr = emulator_write_gpr, .read_std = kvm_read_guest_virt_system, |