On 26.06.2025 16:01, Teddy Astie wrote:
> Rewrite this function such as it doesn't rely on goto, also change the
> type of "type" to match the __invvpid function call.

While this type change is probably okay (and benign to code generation), ...

> --- a/xen/arch/x86/include/asm/hvm/vmx/vmx.h
> +++ b/xen/arch/x86/include/asm/hvm/vmx/vmx.h
> @@ -287,10 +287,10 @@ extern uint8_t posted_intr_vector;
>  #define cpu_has_vmx_vpid_invvpid_single_context_retaining_global    \
>      (vmx_caps.vpid & VMX_VPID_INVVPID_SINGLE_CONTEXT_RETAINING_GLOBAL)
>  
> -#define INVVPID_INDIVIDUAL_ADDR                 0
> -#define INVVPID_SINGLE_CONTEXT                  1
> -#define INVVPID_ALL_CONTEXT                     2
> -#define INVVPID_SINGLE_CONTEXT_RETAINING_GLOBAL 3
> +#define INVVPID_INDIVIDUAL_ADDR                 0UL
> +#define INVVPID_SINGLE_CONTEXT                  1UL
> +#define INVVPID_ALL_CONTEXT                     2UL
> +#define INVVPID_SINGLE_CONTEXT_RETAINING_GLOBAL 3UL

... I don't follow the need for these extra adjustments. Preferably with
them dropped
Reviewed-by: Jan Beulich <jbeul...@suse.com>

Jan

Reply via email to