]> www.infradead.org Git - users/jedix/linux-maple.git/commit
KVM: arm64: Allow kvm_has_feat() to take variable arguments
authorMarc Zyngier <maz@kernel.org>
Sun, 9 Feb 2025 13:38:35 +0000 (13:38 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 19 May 2025 10:35:30 +0000 (11:35 +0100)
commita764b56bf90b6d758ff21408c13cd686c2519ef9
treeaecb2848a1b8a44b4565809fbed6c05dbec1d704
parentc6cbe6a4c1bdce88bb0384df0e3679e4ef81dcd6
KVM: arm64: Allow kvm_has_feat() to take variable arguments

In order to be able to write more compact (and easier to read) code,
let kvm_has_feat() and co take variable arguments. This enables
constructs such as:

#define FEAT_SME ID_AA64PFR1_EL1, SME, IMP

if (kvm_has_feat(kvm, FEAT_SME))
[...]

which is admitedly more readable.

Signed-off-by: Marc Zyngier <maz@kernel.org>
arch/arm64/include/asm/kvm_host.h