kvm: x86: Move last_cpu into kvm_vcpu_arch as last_vmentry_cpu
Both the vcpu_vmx structure and the vcpu_svm structure have a 'last_cpu' field. Move the common field into the kvm_vcpu_arch structure. For clarity, rename it to 'last_vmentry_cpu.' Suggested-by:Sean Christopherson <sean.j.christopherson@intel.com> Signed-off-by:
Jim Mattson <jmattson@google.com> Reviewed-by:
Oliver Upton <oupton@google.com> Reviewed-by:
Peter Shier <pshier@google.com> Message-Id: <20200603235623.245638-6-jmattson@google.com> Signed-off-by:
Paolo Bonzini <pbonzini@redhat.com>
Showing
- arch/x86/include/asm/kvm_host.h 3 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/svm/sev.c 1 addition, 1 deletionarch/x86/kvm/svm/sev.c
- arch/x86/kvm/svm/svm.c 3 additions, 3 deletionsarch/x86/kvm/svm/svm.c
- arch/x86/kvm/svm/svm.h 0 additions, 3 deletionsarch/x86/kvm/svm/svm.h
- arch/x86/kvm/vmx/vmx.c 6 additions, 6 deletionsarch/x86/kvm/vmx/vmx.c
- arch/x86/kvm/vmx/vmx.h 0 additions, 3 deletionsarch/x86/kvm/vmx/vmx.h
Loading
Please register or sign in to comment