]> git.baikalelectronics.ru Git - kernel.git/commitdiff
KVM: Drop unused kvm_vcpu.pre_pcpu field
authorSean Christopherson <seanjc@google.com>
Wed, 8 Dec 2021 01:52:15 +0000 (01:52 +0000)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 19 Jan 2022 17:14:37 +0000 (12:14 -0500)
Remove kvm_vcpu.pre_pcpu as it no longer has any users.  No functional
change intended.

Signed-off-by: Sean Christopherson <seanjc@google.com>
Reviewed-by: Maxim Levitsky <mlevitsk@redhat.com>
Message-Id: <20211208015236.1616697-6-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c

index 3c47b146851aa074679b48bd74880565952a8036..5c3c67b6318fa18f16b07ecd2555fdc717d1e370 100644 (file)
@@ -309,7 +309,6 @@ struct kvm_vcpu {
        u64 requests;
        unsigned long guest_debug;
 
-       int pre_pcpu;
        struct list_head blocked_vcpu_list;
 
        struct mutex mutex;
index dc6d1823a9d9f5f35687af5039ed6058abf09d49..c301cd8d583e9c1d777b17ea56b9c6cf667fafad 100644 (file)
@@ -427,7 +427,6 @@ static void kvm_vcpu_init(struct kvm_vcpu *vcpu, struct kvm *kvm, unsigned id)
 #endif
        kvm_async_pf_vcpu_init(vcpu);
 
-       vcpu->pre_pcpu = -1;
        INIT_LIST_HEAD(&vcpu->blocked_vcpu_list);
 
        kvm_vcpu_set_in_spin_loop(vcpu, false);