KVM: x86 emulator: drop x86_emulate_ctxt::vcpu
authorAvi Kivity <avi@redhat.com>
Wed, 20 Apr 2011 12:56:20 +0000 (15:56 +0300)
committerAvi Kivity <avi@redhat.com>
Sun, 22 May 2011 12:39:24 +0000 (08:39 -0400)
No longer used.

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

index 51341d6b2f3123ea77a6b9d00a93af9af918e30f..127ea3e1717147f430830eab4e7f429c33884585 100644 (file)
@@ -269,8 +269,6 @@ struct x86_emulate_ctxt {
        struct x86_emulate_ops *ops;
 
        /* Register state before/after emulation. */
-       struct kvm_vcpu *vcpu;
-
        unsigned long eflags;
        unsigned long eip; /* eip before instruction emulation */
        /* Emulated execution mode, represented by an X86EMUL_MODE value. */
index 65a5b0c545aaae9aac6f6488beddd994d99e8ad0..a831d5d8ca14ec3c1f443fab3df22b5c684dd135 100644 (file)
@@ -4463,7 +4463,6 @@ static void init_emulate_ctxt(struct kvm_vcpu *vcpu)
 
        kvm_x86_ops->get_cs_db_l_bits(vcpu, &cs_db, &cs_l);
 
-       vcpu->arch.emulate_ctxt.vcpu = vcpu;
        vcpu->arch.emulate_ctxt.eflags = kvm_get_rflags(vcpu);
        vcpu->arch.emulate_ctxt.eip = kvm_rip_read(vcpu);
        vcpu->arch.emulate_ctxt.mode =