Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: selftests: Use MPIDR_HWID_BITMASK from cputype.h

No need for a home-rolled definition, just rely on the common header.

Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Link: https://lore.kernel.org/r/20240422200158.2606761-19-oliver.upton@linux.dev
Signed-off-by: Marc Zyngier <maz@kernel.org>

authored by

Oliver Upton and committed by
Marc Zyngier
c3c369b5 03e560ab

+2 -2
+2
tools/testing/selftests/kvm/aarch64/psci_test.c
··· 13 13 14 14 #define _GNU_SOURCE 15 15 16 + #include <linux/kernel.h> 16 17 #include <linux/psci.h> 18 + #include <asm/cputype.h> 17 19 18 20 #include "kvm_util.h" 19 21 #include "processor.h"
-2
tools/testing/selftests/kvm/include/aarch64/processor.h
··· 58 58 MAIR_ATTRIDX(MAIR_ATTR_NORMAL, MT_NORMAL) | \ 59 59 MAIR_ATTRIDX(MAIR_ATTR_NORMAL_WT, MT_NORMAL_WT)) 60 60 61 - #define MPIDR_HWID_BITMASK (0xff00fffffful) 62 - 63 61 void aarch64_vcpu_setup(struct kvm_vcpu *vcpu, struct kvm_vcpu_init *init); 64 62 struct kvm_vcpu *aarch64_vcpu_add(struct kvm_vm *vm, uint32_t vcpu_id, 65 63 struct kvm_vcpu_init *init, void *guest_code);