]> xenbits.xensource.com Git - xen.git/commit
x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware
authorJan Beulich <jbeulich@suse.com>
Tue, 9 Jan 2024 13:06:34 +0000 (14:06 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 9 Jan 2024 13:06:34 +0000 (14:06 +0100)
commit0b5f149338e35a795bf609ce584640b0977f9e6c
tree03ea13bb58666d04aaedebd12ddfdfc62c634b5c
parentf628fc8d18d3f5ab7ce93b6a08a3327f49444a73
x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

... or we fail to enable the functionality on the BSP for other reasons.
The only place where hardware announcing the feature is recorded is the
raw CPU policy/featureset.

Inspired by https://lore.kernel.org/all/20230921114940.957141-1-pbonzini@redhat.com/.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/hvm/svm/svm.c
xen/arch/x86/hvm/vmx/vmcs.c