diff options
-rw-r--r-- | arch/x86/include/asm/kvm_host.h | 1 | ||||
-rw-r--r-- | arch/x86/kvm/x86.c | 2 |
2 files changed, 1 insertions, 2 deletions
diff --git a/arch/x86/include/asm/kvm_host.h b/arch/x86/include/asm/kvm_host.h index 6cfc1ab2cdd6..afb0e69bd160 100644 --- a/arch/x86/include/asm/kvm_host.h +++ b/arch/x86/include/asm/kvm_host.h | |||
@@ -358,7 +358,6 @@ struct kvm_vcpu_arch { | |||
358 | struct fpu guest_fpu; | 358 | struct fpu guest_fpu; |
359 | u64 xcr0; | 359 | u64 xcr0; |
360 | 360 | ||
361 | gva_t mmio_fault_cr2; | ||
362 | struct kvm_pio_request pio; | 361 | struct kvm_pio_request pio; |
363 | void *pio_data; | 362 | void *pio_data; |
364 | 363 | ||
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index a831d5d8ca14..e3ac212f7c87 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -4561,7 +4561,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, | |||
4561 | bool writeback = true; | 4561 | bool writeback = true; |
4562 | 4562 | ||
4563 | kvm_clear_exception_queue(vcpu); | 4563 | kvm_clear_exception_queue(vcpu); |
4564 | vcpu->arch.mmio_fault_cr2 = cr2; | 4564 | |
4565 | /* | 4565 | /* |
4566 | * TODO: fix emulate.c to use guest_read/write_register | 4566 | * TODO: fix emulate.c to use guest_read/write_register |
4567 | * instead of direct ->regs accesses, can save hundred cycles | 4567 | * instead of direct ->regs accesses, can save hundred cycles |