Commit 8d7d8102 authored by Gleb Natapov's avatar Gleb Natapov Committed by Avi Kivity

KVM: mmio_fault_cr2 is not used

Remove unused variable mmio_fault_cr2.
Signed-off-by: default avatarGleb Natapov <gleb@redhat.com>
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
parent 46561646
...@@ -358,7 +358,6 @@ struct kvm_vcpu_arch { ...@@ -358,7 +358,6 @@ struct kvm_vcpu_arch {
struct fpu guest_fpu; struct fpu guest_fpu;
u64 xcr0; u64 xcr0;
gva_t mmio_fault_cr2;
struct kvm_pio_request pio; struct kvm_pio_request pio;
void *pio_data; void *pio_data;
......
...@@ -4561,7 +4561,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu, ...@@ -4561,7 +4561,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu,
bool writeback = true; bool writeback = true;
kvm_clear_exception_queue(vcpu); kvm_clear_exception_queue(vcpu);
vcpu->arch.mmio_fault_cr2 = cr2;
/* /*
* TODO: fix emulate.c to use guest_read/write_register * TODO: fix emulate.c to use guest_read/write_register
* instead of direct ->regs accesses, can save hundred cycles * instead of direct ->regs accesses, can save hundred cycles
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment