]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7d8ec47dcd1fdc205e4ec967ab539275ccc9b00
tree4feb1a3dc7bc593a25ef02f680be924138e65762
parent58d4cdedeed68d4e8febc4c7e2b1868ede700b28
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