KVM: mmio_fault_cr2 is not used
authorGleb Natapov <gleb@redhat.com>
Tue, 12 Apr 2011 09:36:21 +0000 (12:36 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:49 +0000 (08:39 -0400)
Remove unused variable mmio_fault_cr2.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/x86.c

index 6cfc1ab2cdd63910955ef8caaa6d9a35ebd6ce27..afb0e69bd160da693e202f268299a1b0f135b298 100644 (file)
@@ -358,7 +358,6 @@ struct kvm_vcpu_arch {
        struct fpu guest_fpu;
        u64 xcr0;
 
-       gva_t mmio_fault_cr2;
        struct kvm_pio_request pio;
        void *pio_data;
 
index a831d5d8ca14ec3c1f443fab3df22b5c684dd135..e3ac212f7c8738bd0c00a7e49504276449983c54 100644 (file)
@@ -4561,7 +4561,7 @@ int x86_emulate_instruction(struct kvm_vcpu *vcpu,
        bool writeback = true;
 
        kvm_clear_exception_queue(vcpu);
-       vcpu->arch.mmio_fault_cr2 = cr2;
+
        /*
         * TODO: fix emulate.c to use guest_read/write_register
         * instead of direct ->regs accesses, can save hundred cycles