]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: svm: Always set svm->last_cpu on VMRUN
authorJim Mattson <jmattson@google.com>
Wed, 3 Jun 2020 23:56:19 +0000 (16:56 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 8 Jul 2020 20:21:43 +0000 (16:21 -0400)
commitfdbc3ad76007d4b31df158fec806cfefda2bad52
treecbd1870692f4954fd95cafc256245f04cf7642e4
parent9af8f1656aef0144f4e3e27f2325f56bc3a35d41
kvm: svm: Always set svm->last_cpu on VMRUN

Previously, this field was only set when using SEV. Set it for all
vCPU configurations, so that it can be communicated to userspace for
diagnosing 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-3-jmattson@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/sev.c
arch/x86/kvm/svm/svm.c