On Thu, Sep 9, 2021 at 10:18 AM Mark Brown [off-list ref] wrote:
On Thu, Sep 09, 2021 at 01:38:02AM +0000, Raghavendra Rao Ananta wrote:
quoted
Bring-in the kernel's arch/arm64/include/asm/sysreg.h
into selftests to make use of all the standard
register definitions in consistence with the kernel.
quoted
Signed-off-by: Raghavendra Rao Ananta <redacted>
---
.../selftests/kvm/include/aarch64/sysreg.h | 1278 +++++++++++++++++
1 file changed, 1278 insertions(+)
create mode 100644 tools/testing/selftests/kvm/include/aarch64/sysreg.h
Can we arrange to copy this at build time rather than having a duplicate
copy we need to keep in sync? We have some stuff to do this for uapi
headers already.
That's a great idea actually (I wasn't aware of it). But, probably
should've mentioned it earlier, I had a hard time compiling the header
as is so I modified it a little bit and made the definitions of
[write|read]_sysreg_s() similar to the ones in kvm-unit-tests.
I'll try my best to get the original format working and try to
implement your idea if it works.
Regards,
Raghavendra
_______________________________________________
linux-arm-kernel mailing list
linux-arm-kernel@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/linux-arm-kernel