qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Song Gao <gaosong@loongson.cn>
To: qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Bibo Mao <maobibo@loongson.cn>
Subject: [PULL 4/6] linux-headers: loongarch: Add kvm_para.h and unistd_64.h
Date: Thu, 24 Oct 2024 17:26:23 +0800	[thread overview]
Message-ID: <20241024092626.1328049-5-gaosong@loongson.cn> (raw)
In-Reply-To: <20241024092626.1328049-1-gaosong@loongson.cn>

From: Bibo Mao <maobibo@loongson.cn>

KVM LBT supports on LoongArch depends on the linux-header file
kvm_para.h, also unistd_64.h is required by unistd.h on LoongArch
since 6.11, otherwise there will be compiling error such as:

linux-headers/asm/unistd.h:3:10: fatal error: asm/unistd_64.h: No such file or directory
 #include <asm/unistd_64.h>

Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Acked-by: Song Gao <gaosong@loongson.cn>
Message-Id: <20241017020708.1728620-2-maobibo@loongson.cn>
Signed-off-by: Song Gao <gaosong@loongson.cn>
---
 scripts/update-linux-headers.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/scripts/update-linux-headers.sh b/scripts/update-linux-headers.sh
index c34ac6454e..3c411f0318 100755
--- a/scripts/update-linux-headers.sh
+++ b/scripts/update-linux-headers.sh
@@ -186,6 +186,10 @@ EOF
     if [ $arch = riscv ]; then
         cp "$hdrdir/include/asm/ptrace.h" "$output/linux-headers/asm-riscv/"
     fi
+    if [ $arch = loongarch ]; then
+        cp "$hdrdir/include/asm/kvm_para.h" "$output/linux-headers/asm-loongarch/"
+        cp "$hdrdir/include/asm/unistd_64.h" "$output/linux-headers/asm-loongarch/"
+    fi
 done
 arch=
 
-- 
2.34.1



  parent reply	other threads:[~2024-10-24  9:45 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2024-10-24  9:26 [PULL 0/6] loongarch-to-apply queue Song Gao
2024-10-24  9:26 ` [PULL 1/6] target/loongarch: Add loongson binary translation feature Song Gao
2024-10-24  9:26 ` [PULL 2/6] target/loongarch: Implement lbt registers save/restore function Song Gao
2024-10-24  9:26 ` [PULL 3/6] target/loongarch/kvm: Implement LoongArch PMU extension Song Gao
2024-10-24  9:26 ` Song Gao [this message]
2024-10-24  9:26 ` [PULL 5/6] linux-headers: Update to Linux v6.12-rc3 Song Gao
2024-10-24  9:26 ` [PULL 6/6] target/loongarch: Add steal time support on migration Song Gao
2024-10-25 18:11 ` [PULL 0/6] loongarch-to-apply queue Peter Maydell
2024-10-26  7:23   ` bibo mao

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20241024092626.1328049-5-gaosong@loongson.cn \
    --to=gaosong@loongson.cn \
    --cc=maobibo@loongson.cn \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).