aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--arch/x86/kvm/x86.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index 0dc066f0428d..317241619e2d 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3773,14 +3773,14 @@ static int write_exit_mmio(struct kvm_vcpu *vcpu, gpa_t gpa,
3773 return X86EMUL_CONTINUE; 3773 return X86EMUL_CONTINUE;
3774} 3774}
3775 3775
3776static struct read_write_emulator_ops read_emultor = { 3776static const struct read_write_emulator_ops read_emultor = {
3777 .read_write_prepare = read_prepare, 3777 .read_write_prepare = read_prepare,
3778 .read_write_emulate = read_emulate, 3778 .read_write_emulate = read_emulate,
3779 .read_write_mmio = vcpu_mmio_read, 3779 .read_write_mmio = vcpu_mmio_read,
3780 .read_write_exit_mmio = read_exit_mmio, 3780 .read_write_exit_mmio = read_exit_mmio,
3781}; 3781};
3782 3782
3783static struct read_write_emulator_ops write_emultor = { 3783static const struct read_write_emulator_ops write_emultor = {
3784 .read_write_emulate = write_emulate, 3784 .read_write_emulate = write_emulate,
3785 .read_write_mmio = write_mmio, 3785 .read_write_mmio = write_mmio,
3786 .read_write_exit_mmio = write_exit_mmio, 3786 .read_write_exit_mmio = write_exit_mmio,
@@ -3791,7 +3791,7 @@ static int emulator_read_write_onepage(unsigned long addr, void *val,
3791 unsigned int bytes, 3791 unsigned int bytes,
3792 struct x86_exception *exception, 3792 struct x86_exception *exception,
3793 struct kvm_vcpu *vcpu, 3793 struct kvm_vcpu *vcpu,
3794 struct read_write_emulator_ops *ops) 3794 const struct read_write_emulator_ops *ops)
3795{ 3795{
3796 gpa_t gpa; 3796 gpa_t gpa;
3797 int handled, ret; 3797 int handled, ret;
@@ -3840,7 +3840,7 @@ mmio:
3840int emulator_read_write(struct x86_emulate_ctxt *ctxt, unsigned long addr, 3840int emulator_read_write(struct x86_emulate_ctxt *ctxt, unsigned long addr,
3841 void *val, unsigned int bytes, 3841 void *val, unsigned int bytes,
3842 struct x86_exception *exception, 3842 struct x86_exception *exception,
3843 struct read_write_emulator_ops *ops) 3843 const struct read_write_emulator_ops *ops)
3844{ 3844{
3845 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt); 3845 struct kvm_vcpu *vcpu = emul_to_vcpu(ctxt);
3846 gpa_t gpa; 3846 gpa_t gpa;