From: "Philippe Mathieu-Daudé" <philmd@linaro.org>
To: qemu-devel@nongnu.org
Cc: kvm@vger.kernel.org, qemu-arm@nongnu.org,
"Anton Johansson" <anjo@rev.ng>,
qemu-s390x@nongnu.org,
"Pierrick Bouvier" <pierrick.bouvier@linaro.org>,
qemu-riscv@nongnu.org, "Peter Maydell" <peter.maydell@linaro.org>,
"Paolo Bonzini" <pbonzini@redhat.com>,
"Philippe Mathieu-Daudé" <philmd@linaro.org>
Subject: [PATCH-for-11.1 v2 1/9] accel/kvm: Include missing 'exec/cpu-common.h' header
Date: Thu, 2 Apr 2026 19:04:26 +0200 [thread overview]
Message-ID: <20260402170434.94783-2-philmd@linaro.org> (raw)
In-Reply-To: <20260402170434.94783-1-philmd@linaro.org>
kvm-all.c uses EXCP_INTERRUPT and EXCP_HLT, defined in the
"exec/cpu-common.h" header:
17 #define EXCP_INTERRUPT 0x10000 /* async interruption */
18 #define EXCP_HLT 0x10001 /* hlt instruction reached */
This header is indirectly included via "system/kvm.h" -> "cpu.h".
Since we want to remove the latter inclusion, include it here in
order to avoid otherwise:
accel/kvm/kvm-all.c: In function 'kvm_handle_internal_error':
accel/kvm/kvm-all.c:3147:20: error: 'EXCP_INTERRUPT' undeclared (first use in this function); did you mean 'SA_INTERRUPT'?
3147 | return EXCP_INTERRUPT;
| ^~~~~~~~~~~~~~
accel/kvm/kvm-all.c: In function 'kvm_cpu_exec':
accel/kvm/kvm-all.c:3436:16: error: 'EXCP_HLT' undeclared (first use in this function)
3436 | return EXCP_HLT;
| ^~~~~~~~
accel/kvm/kvm-all.c:3490:23: error: 'EXCP_INTERRUPT' undeclared (first use in this function); did you mean 'SA_INTERRUPT'?
3490 | ret = EXCP_INTERRUPT;
| ^~~~~~~~~~~~~~
Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
---
accel/kvm/kvm-all.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/accel/kvm/kvm-all.c b/accel/kvm/kvm-all.c
index 774499d34f8..5df3fb90d88 100644
--- a/accel/kvm/kvm-all.c
+++ b/accel/kvm/kvm-all.c
@@ -36,6 +36,7 @@
#include "system/ramblock.h"
#include "accel/accel-ops.h"
#include "qemu/bswap.h"
+#include "exec/cpu-common.h"
#include "exec/tswap.h"
#include "exec/target_page.h"
#include "system/memory.h"
--
2.53.0
next prev parent reply other threads:[~2026-04-02 17:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-04-02 17:04 [PATCH-for-11.1 v2 0/9] target/arm: Compile accelerator-related objects as common code Philippe Mathieu-Daudé
2026-04-02 17:04 ` Philippe Mathieu-Daudé [this message]
2026-04-02 17:04 ` [PATCH-for-11.1 v2 2/9] accel/kvm: Include missing 'exec/vaddr.h' and 'qemu/queue.h' headers Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 3/9] accel/kvm: Remove TARGET_KVM_HAVE_GUEST_DEBUG Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 4/9] accel/kvm: Expose all non-target specific declarations Philippe Mathieu-Daudé
2026-04-02 18:02 ` Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 5/9] target/arm: Compile WHPX as common object Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 6/9] target/arm: Remove target_ulong use in hvf_handle_psci_call() Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 7/9] target/arm: Compile HVF as common object Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 8/9] target/arm: Remove target_ulong cast in kvm_arm_handle_dabt_nisv() Philippe Mathieu-Daudé
2026-04-02 17:04 ` [PATCH-for-11.1 v2 9/9] target/arm: Compile KVM as common object Philippe Mathieu-Daudé
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=20260402170434.94783-2-philmd@linaro.org \
--to=philmd@linaro.org \
--cc=anjo@rev.ng \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pierrick.bouvier@linaro.org \
--cc=qemu-arm@nongnu.org \
--cc=qemu-devel@nongnu.org \
--cc=qemu-riscv@nongnu.org \
--cc=qemu-s390x@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