Re: [kvmtool PATCH v5 02/15] update_headers: arm64: Track psci.h for PSCI definitions
From: Suzuki K Poulose
Date: Fri Feb 27 2026 - 05:25:58 EST
On 09/02/2026 15:51, Will Deacon wrote:
On Thu, Jan 08, 2026 at 05:57:40PM +0000, Suzuki K Poulose wrote:
Track UAPI psci.h for PSCI definitions
Reviewed-by: Marc Zyngier <maz@xxxxxxxxxx>
Signed-off-by: Suzuki K Poulose <suzuki.poulose@xxxxxxx>
---
util/update_headers.sh | 17 ++++++++++-------
1 file changed, 10 insertions(+), 7 deletions(-)
diff --git a/util/update_headers.sh b/util/update_headers.sh
index af75ca36..9fe782a2 100755
--- a/util/update_headers.sh
+++ b/util/update_headers.sh
@@ -37,13 +37,16 @@ done
unset KVMTOOL_PATH
-copy_optional_arch () {
- local src="$LINUX_ROOT/arch/$arch/include/uapi/$1"
+copy_arm64_headers () {
+ local uapi_asm_hdr="$LINUX_ROOT/arch/$arch/include/uapi/asm"
- if [ -r "$src" ]
- then
- cp -- "$src" "$KVMTOOL_PATH/include/asm/"
- fi
+ for f in sve_context.h psci.h
+ do
+ if [ -r "$uapi_asm_hdr/$f" ]
+ then
+ cp -- "$uapi_asm_hdr/$f" "$KVMTOOL_PATH/include/asm/"
+ fi
+ done
This doesn't make sense to me as I don't think we've ever had an
arm64 uapi/asm/psci.h. You presumably want linux/psci.h (which is what
the next patch pulls in), but then I don't understand how that worked
with the change you've got here :/
Yikes, it is in the generic uapi. I will fix this in the next iteration.
May be we could add a Warning message in the util script for missing
header files to catch such errors.
For now, I'll apply the first patch and then update the headers to 6.19
myself using the current script (as other folks need them updating too).
Thanks
Suzuki
Will