Re: [XEN PATCH v3 05/16] x86: introduce using_{svm,vmx} macros

2024-06-10 Thread Jan Beulich
On 03.06.2024 13:16, Sergiy Kibrik wrote: > --- a/xen/arch/x86/include/asm/hvm/hvm.h > +++ b/xen/arch/x86/include/asm/hvm/hvm.h > @@ -26,6 +26,9 @@ extern bool opt_hvm_fep; > #define opt_hvm_fep 0 > #endif > > +#define using_vmx ( IS_ENABLED(CONFIG_VMX) && cpu_has_vmx ) > +#define using_svm ( I

Re: [XEN PATCH v3 05/16] x86: introduce using_{svm,vmx} macros

2024-06-07 Thread Jan Beulich
On 03.06.2024 13:16, Sergiy Kibrik wrote: > As we now have SVM/VMX config options for enabling/disabling these features > completely in the build, we need some build-time checks to ensure that vmx/svm > code can be used and things compile. Macros cpu_has_{svm,vmx} used to be doing > such checks at

[XEN PATCH v3 05/16] x86: introduce using_{svm,vmx} macros

2024-06-03 Thread Sergiy Kibrik
As we now have SVM/VMX config options for enabling/disabling these features completely in the build, we need some build-time checks to ensure that vmx/svm code can be used and things compile. Macros cpu_has_{svm,vmx} used to be doing such checks at runtime, however they do not check if SVM/VMX supp