aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/kvm/svm/svm.c
diff options
context:
space:
mode:
authorSean Christopherson <[email protected]>2023-10-18 19:36:17 +0000
committerSean Christopherson <[email protected]>2023-11-30 20:51:14 +0000
commit770d6aa2e416fd26f0356e258c77a37574ad9b8c (patch)
tree157c1317e0d9bca133d64f8003c39115d0c426f2 /arch/x86/kvm/svm/svm.c
parentKVM: nSVM: Advertise support for flush-by-ASID (diff)
downloadkernel-770d6aa2e416fd26f0356e258c77a37574ad9b8c.tar.gz
kernel-770d6aa2e416fd26f0356e258c77a37574ad9b8c.zip
KVM: SVM: Explicitly require FLUSHBYASID to enable SEV support
Add a sanity check that FLUSHBYASID is available if SEV is supported in hardware, as SEV (and beyond) guests are bound to a single ASID, i.e. KVM can't "flush" by assigning a new, fresh ASID to the guest. If FLUSHBYASID isn't supported for some bizarre reason, KVM would completely fail to do TLB flushes for SEV+ guests (see pre_svm_run() and pre_sev_run()). Cc: Tom Lendacky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Sean Christopherson <[email protected]>
Diffstat (limited to 'arch/x86/kvm/svm/svm.c')
0 files changed, 0 insertions, 0 deletions