aboutsummaryrefslogtreecommitdiff
path: root/configs/targets/x86_64-softmmu.mak
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2024-03-22 19:29:07 +0100
committerPaolo Bonzini <pbonzini@redhat.com>2024-04-18 11:17:27 +0200
commit1e1e48792a92652af05f59b4df2f643542c71d90 (patch)
tree55646fa90b796fca6195ac1d35b9467d31f1f42d /configs/targets/x86_64-softmmu.mak
parentf89761d349999a3d898b35fd85737cf25114d44a (diff)
kvm: use configs/ definition to conditionalize debug support
If an architecture adds support for KVM_CAP_SET_GUEST_DEBUG but QEMU does not have the necessary code, QEMU will fail to build after updating kernel headers. Avoid this by using a #define in config-target.h instead of KVM_CAP_SET_GUEST_DEBUG. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'configs/targets/x86_64-softmmu.mak')
-rw-r--r--configs/targets/x86_64-softmmu.mak1
1 files changed, 1 insertions, 0 deletions
diff --git a/configs/targets/x86_64-softmmu.mak b/configs/targets/x86_64-softmmu.mak
index 197817c943..c5f882e5ba 100644
--- a/configs/targets/x86_64-softmmu.mak
+++ b/configs/targets/x86_64-softmmu.mak
@@ -2,4 +2,5 @@ TARGET_ARCH=x86_64
TARGET_BASE_ARCH=i386
TARGET_SUPPORTS_MTTCG=y
TARGET_NEED_FDT=y
+TARGET_KVM_HAVE_GUEST_DEBUG=y
TARGET_XML_FILES= gdb-xml/i386-64bit.xml