summary refs log tree commit diff stats
path: root/include/sysemu/kvm_int.h
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 /include/sysemu/kvm_int.h
parentf89761d349999a3d898b35fd85737cf25114d44a (diff)
downloadfocaccia-qemu-1e1e48792a92652af05f59b4df2f643542c71d90.tar.gz
focaccia-qemu-1e1e48792a92652af05f59b4df2f643542c71d90.zip
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 'include/sysemu/kvm_int.h')
-rw-r--r--include/sysemu/kvm_int.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/sysemu/kvm_int.h b/include/sysemu/kvm_int.h
index 882e37e12c..94488d2c1a 100644
--- a/include/sysemu/kvm_int.h
+++ b/include/sysemu/kvm_int.h
@@ -78,7 +78,7 @@ struct KVMState
     struct kvm_coalesced_mmio_ring *coalesced_mmio_ring;
     bool coalesced_flush_in_progress;
     int vcpu_events;
-#ifdef KVM_CAP_SET_GUEST_DEBUG
+#ifdef TARGET_KVM_HAVE_GUEST_DEBUG
     QTAILQ_HEAD(, kvm_sw_breakpoint) kvm_sw_breakpoints;
 #endif
     int max_nested_state_len;