Re: [XEN PATCH v2 12/15] x86/vmx: guard access to cpu_has_vmx_* in common code

2024-05-29 Thread Jan Beulich
On 29.05.2024 12:58, Sergiy Kibrik wrote: > 16.05.24 10:32, Jan Beulich: >> On 16.05.2024 02:50, Stefano Stabellini wrote: >>> On Wed, 15 May 2024, Sergiy Kibrik wrote: There're several places in common code, outside of arch/x86/hvm/vmx, where cpu_has_vmx_* get accessed without checking i

Re: [XEN PATCH v2 12/15] x86/vmx: guard access to cpu_has_vmx_* in common code

2024-05-29 Thread Sergiy Kibrik
16.05.24 10:32, Jan Beulich: On 16.05.2024 02:50, Stefano Stabellini wrote: On Wed, 15 May 2024, Sergiy Kibrik wrote: There're several places in common code, outside of arch/x86/hvm/vmx, where cpu_has_vmx_* get accessed without checking if VMX present first. We may want to guard these macros, a

Re: [XEN PATCH v2 12/15] x86/vmx: guard access to cpu_has_vmx_* in common code

2024-05-16 Thread Jan Beulich
On 16.05.2024 02:50, Stefano Stabellini wrote: > On Wed, 15 May 2024, Sergiy Kibrik wrote: >> There're several places in common code, outside of arch/x86/hvm/vmx, >> where cpu_has_vmx_* get accessed without checking if VMX present first. >> We may want to guard these macros, as they read global var

Re: [XEN PATCH v2 12/15] x86/vmx: guard access to cpu_has_vmx_* in common code

2024-05-15 Thread Stefano Stabellini
On Wed, 15 May 2024, Sergiy Kibrik wrote: > There're several places in common code, outside of arch/x86/hvm/vmx, > where cpu_has_vmx_* get accessed without checking if VMX present first. > We may want to guard these macros, as they read global variables defined > inside vmx-specific files -- so VMX

[XEN PATCH v2 12/15] x86/vmx: guard access to cpu_has_vmx_* in common code

2024-05-15 Thread Sergiy Kibrik
There're several places in common code, outside of arch/x86/hvm/vmx, where cpu_has_vmx_* get accessed without checking if VMX present first. We may want to guard these macros, as they read global variables defined inside vmx-specific files -- so VMX can be made optional later on. Signed-off-by: Se