]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: arm64: Shuffle KVM_HOST_DATA_FLAG_* indices
authorMark Rutland <mark.rutland@arm.com>
Tue, 6 Jan 2026 17:37:06 +0000 (17:37 +0000)
committerMarc Zyngier <maz@kernel.org>
Wed, 7 Jan 2026 11:56:30 +0000 (11:56 +0000)
commitacd8bfaa9384300a509c8aff5ee4a59a06eb2b2b
tree6ca4a44305c50103f08fad1d65ac1c6ccc83505b
parent334a1a1e1a5f8b4b172683e7507cfec566313a7c
KVM: arm64: Shuffle KVM_HOST_DATA_FLAG_* indices

There's a gap in the KVM_HOST_DATA_FLAG_* indices since the removal of
KVM_HOST_DATA_FLAG_HOST_SVE_ENABLED and
KVM_HOST_DATA_FLAG_HOST_SME_ENABLED in commits:

459f059be702 ("KVM: arm64: Remove VHE host restore of CPACR_EL1.ZEN")
407a99c4654e ("KVM: arm64: Remove VHE host restore of CPACR_EL1.SMEN")

Shuffle the indices to remove the gap, as Oliver requested at the time of
the removals:

  https://lore.kernel.org/linux-arm-kernel/Z6qC4qn47ONfDCSH@linux.dev/

There should be no functional change as a result of this patch.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Fuad Tabba <tabba@google.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Mark Brown <broonie@kernel.org>
Cc: Oliver Upton <oliver.upton@linux.dev>
Cc: Will Deacon <will@kernel.org>
Tested-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Reviewed-by: Mark Brown <broonie@kernel.org>
Link: https://patch.msgid.link/20260106173707.3292074-3-mark.rutland@arm.com
Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h