[PATCH v3 15/15] KVM: arm64: Renumber remaining vcpu guest configuration flags

Marc Zyngier maz at kernel.org
Sun Dec 1 04:59:57 PST 2024


On Thu, 28 Nov 2024 12:35:15 +0000,
Fuad Tabba <tabba at google.com> wrote:
> 
> With the vcpu's SVE and PtrAuth configuration flags removed,
> there are gaps in the numbering of the cflag bits. Renumber
> VCPU_INITIALIZED to bit 0 to remove the gaps.
> 
> No functional change intended.
> 
> Signed-off-by: Fuad Tabba <tabba at google.com>
> ---
>  arch/arm64/include/asm/kvm_host.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/arch/arm64/include/asm/kvm_host.h b/arch/arm64/include/asm/kvm_host.h
> index c5c80c789ad0..2e4afec09728 100644
> --- a/arch/arm64/include/asm/kvm_host.h
> +++ b/arch/arm64/include/asm/kvm_host.h
> @@ -864,10 +864,10 @@ struct kvm_vcpu_arch {
>  #define vcpu_set_flag(v, ...)	__vcpu_set_flag((v), __VA_ARGS__)
>  #define vcpu_clear_flag(v, ...)	__vcpu_clear_flag((v), __VA_ARGS__)
>  
> +/* KVM_ARM_VCPU_INIT completed */
> +#define VCPU_INITIALIZED	__vcpu_single_flag(cflags, BIT(0))
>  /* SVE config completed */
>  #define VCPU_SVE_FINALIZED	__vcpu_single_flag(cflags, BIT(1))
> -/* KVM_ARM_VCPU_INIT completed */
> -#define VCPU_INITIALIZED	__vcpu_single_flag(cflags, BIT(3))
>  
>  /* Exception pending */
>  #define PENDING_EXCEPTION	__vcpu_single_flag(iflags, BIT(0))

Please fold this with the relevant patches, even if that makes two
consecutive renumbering patches.

Thanks,

	M.

-- 
Without deviation from the norm, progress is not possible.



More information about the linux-arm-kernel mailing list