summaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/vmx/vmx.h
diff options
context:
space:
mode:
authorJim Mattson <jmattson@google.com>2020-06-03 16:56:20 -0700
committerPaolo Bonzini <pbonzini@redhat.com>2020-07-08 16:21:43 -0400
commit80a1684c0161088710398d84a7cdd683c5d88228 (patch)
tree4feb1a3dc7bc593a25ef02f680be924138e65762 /arch/x86/kvm/vmx/vmx.h
parent242636343c246e338b8ea317e32dbf4ed47edc65 (diff)
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>
Diffstat (limited to 'arch/x86/kvm/vmx/vmx.h')
-rw-r--r--arch/x86/kvm/vmx/vmx.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/x86/kvm/vmx/vmx.h b/arch/x86/kvm/vmx/vmx.h
index 639798e4a6ca..f8f9e214d285 100644
--- a/arch/x86/kvm/vmx/vmx.h
+++ b/arch/x86/kvm/vmx/vmx.h
@@ -300,6 +300,9 @@ struct vcpu_vmx {
u64 ept_pointer;
struct pt_desc pt_desc;
+
+ /* which host CPU was used for running this vcpu */
+ unsigned int last_cpu;
};
enum ept_pointers_status {