kvm: vmx: Add last_cpu to struct vcpu_vmx
authorJim Mattson <jmattson@google.com>
Wed, 3 Jun 2020 23:56:20 +0000 (16:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:43 +0000 (16:21 -0400)
commit80a1684c0161088710398d84a7cdd683c5d88228
tree4feb1a3dc7bc593a25ef02f680be924138e65762
parent242636343c246e338b8ea317e32dbf4ed47edc65
kvm: vmx: Add last_cpu to struct vcpu_vmx

As we already do in svm, record the last logical processor on which a
vCPU has run, so that it can be communicated to userspace for
potential hardware errors.

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-4-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/vmx/vmx.h