qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2] configure: Add linux header compile support for LoongArch
@ 2024-01-16  1:39 Bibo Mao
  2024-01-16  9:49 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 2+ messages in thread
From: Bibo Mao @ 2024-01-16  1:39 UTC (permalink / raw)
  To: Paolo Bonzini
  Cc: Alex Bennée, Thomas Huth, Philippe Mathieu-Daudé,
	qemu-devel

When compiling qemu with system KVM mode for LoongArch, header files
in directory linux-headers/asm-loongarch should be used firstly.
Otherwise it fails to find kvm.h on system with old glibc, since
latest kernel header files are not installed.

This patch adds linux_arch definition for LoongArch system so that
header files in directory linux-headers/asm-loongarch can be included.

Fixes: 714b03c125 ("target/loongarch: Add loongarch kvm into meson build")
Signed-off-by: Bibo Mao <maobibo@loongson.cn>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
Changes in v2:
 1. Add Fixes label for commit 714b03c125

---
 configure | 1 +
 1 file changed, 1 insertion(+)

diff --git a/configure b/configure
index 21ab9a64e9..3d8e24ae01 100755
--- a/configure
+++ b/configure
@@ -445,6 +445,7 @@ case "$cpu" in
   loongarch*)
     cpu=loongarch64
     host_arch=loongarch64
+    linux_arch=loongarch
     ;;
 
   mips64*)

base-commit: 977542ded7e6b28d2bc077bcda24568c716e393c
-- 
2.39.3



^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH v2] configure: Add linux header compile support for LoongArch
  2024-01-16  1:39 [PATCH v2] configure: Add linux header compile support for LoongArch Bibo Mao
@ 2024-01-16  9:49 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-01-16  9:49 UTC (permalink / raw)
  To: Bibo Mao, Paolo Bonzini; +Cc: Alex Bennée, Thomas Huth, qemu-devel

On 16/1/24 02:39, Bibo Mao wrote:
> When compiling qemu with system KVM mode for LoongArch, header files
> in directory linux-headers/asm-loongarch should be used firstly.
> Otherwise it fails to find kvm.h on system with old glibc, since
> latest kernel header files are not installed.
> 
> This patch adds linux_arch definition for LoongArch system so that
> header files in directory linux-headers/asm-loongarch can be included.
> 
> Fixes: 714b03c125 ("target/loongarch: Add loongarch kvm into meson build")
> Signed-off-by: Bibo Mao <maobibo@loongson.cn>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
> ---
> Changes in v2:
>   1. Add Fixes label for commit 714b03c125

Thanks Bibo, no need to respin for tags such 'Fixes' or 'Reviewed-by',
git tools include them directly when applying patches.

Since you haven't Cc'ed Song Gao, I'm queuing this via my tree.

Regards,

Phil.

> ---
>   configure | 1 +
>   1 file changed, 1 insertion(+)



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-01-16  9:50 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-01-16  1:39 [PATCH v2] configure: Add linux header compile support for LoongArch Bibo Mao
2024-01-16  9:49 ` Philippe Mathieu-Daudé

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).