aboutsummaryrefslogtreecommitdiff
path: root/accel/kvm/kvm-accel-ops.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2022-09-29 12:42:25 +0100
committerAlex Bennée <alex.bennee@linaro.org>2022-10-06 11:53:41 +0100
commita48e7d9e52f8fe8b47f4c74f3e99d9d677b87fe5 (patch)
tree0cd888467fa5a777b02d75ee831895d2473b5e31 /accel/kvm/kvm-accel-ops.c
parentae7467b1ac49e10c548099e9f9c59af895af2d3f (diff)
downloadqemu-a48e7d9e52f8fe8b47f4c74f3e99d9d677b87fe5.zip
qemu-a48e7d9e52f8fe8b47f4c74f3e99d9d677b87fe5.tar.gz
qemu-a48e7d9e52f8fe8b47f4c74f3e99d9d677b87fe5.tar.bz2
gdbstub: move guest debug support check to ops
This removes the final hard coding of kvm_enabled() in gdbstub and moves the check to an AccelOps. Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Mads Ynddal <mads@ynddal.dk> Message-Id: <20220929114231.583801-46-alex.bennee@linaro.org>
Diffstat (limited to 'accel/kvm/kvm-accel-ops.c')
-rw-r--r--accel/kvm/kvm-accel-ops.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/accel/kvm/kvm-accel-ops.c b/accel/kvm/kvm-accel-ops.c
index 5c0e375..fbf4fe3 100644
--- a/accel/kvm/kvm-accel-ops.c
+++ b/accel/kvm/kvm-accel-ops.c
@@ -99,6 +99,7 @@ static void kvm_accel_ops_class_init(ObjectClass *oc, void *data)
ops->synchronize_pre_loadvm = kvm_cpu_synchronize_pre_loadvm;
#ifdef KVM_CAP_SET_GUEST_DEBUG
+ ops->supports_guest_debug = kvm_supports_guest_debug;
ops->insert_breakpoint = kvm_insert_breakpoint;
ops->remove_breakpoint = kvm_remove_breakpoint;
ops->remove_all_breakpoints = kvm_remove_all_breakpoints;