Re: [PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-22 Thread Jan Beulich
On 22.11.2023 09:22, Roger Pau Monné wrote: > On Tue, Nov 21, 2023 at 06:27:02PM +0100, Jan Beulich wrote: >> On 21.11.2023 17:24, Roger Pau Monné wrote: >>> On Thu, Nov 16, 2023 at 02:31:05PM +0100, Jan Beulich wrote: ... or we fail to enable the functionality on the BSP for other reasons. >>

Re: [PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-22 Thread Roger Pau Monné
On Tue, Nov 21, 2023 at 06:27:02PM +0100, Jan Beulich wrote: > On 21.11.2023 17:24, Roger Pau Monné wrote: > > On Thu, Nov 16, 2023 at 02:31:05PM +0100, Jan Beulich wrote: > >> ... or we fail to enable the functionality on the BSP for other reasons. > >> The only place where hardware announcing the

Re: [PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-21 Thread Jan Beulich
On 21.11.2023 18:31, Andrew Cooper wrote: > On 21/11/2023 5:27 pm, Jan Beulich wrote: >> On 21.11.2023 17:24, Roger Pau Monné wrote: >>> On Thu, Nov 16, 2023 at 02:31:05PM +0100, Jan Beulich wrote: --- a/xen/arch/x86/hvm/vmx/vmcs.c +++ b/xen/arch/x86/hvm/vmx/vmcs.c @@ -2163,6 +2163,2

Re: [PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-21 Thread Andrew Cooper
On 21/11/2023 5:27 pm, Jan Beulich wrote: > On 21.11.2023 17:24, Roger Pau Monné wrote: >> On Thu, Nov 16, 2023 at 02:31:05PM +0100, Jan Beulich wrote: >>> --- a/xen/arch/x86/hvm/vmx/vmcs.c >>> +++ b/xen/arch/x86/hvm/vmx/vmcs.c >>> @@ -2163,6 +2163,23 @@ int __init vmx_vmcs_init(void) >>> >>>

Re: [PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-21 Thread Jan Beulich
On 21.11.2023 17:24, Roger Pau Monné wrote: > On Thu, Nov 16, 2023 at 02:31:05PM +0100, Jan Beulich wrote: >> ... 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. >> >> Inspi

Re: [PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-21 Thread Roger Pau Monné
On Thu, Nov 16, 2023 at 02:31:05PM +0100, Jan Beulich wrote: > ... 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/202309211149

[PATCH 2/5] x86/HVM: hide SVM/VMX when their enabling is prohibited by firmware

2023-11-16 Thread Jan Beulich
... 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-pbonz...@redhat.com/. Signed-off-by: Jan Beulich --- a/xen