diff options
author | Alex Bennée | 2022-09-29 13:42:24 +0200 |
---|---|---|
committer | Alex Bennée | 2022-10-06 12:53:41 +0200 |
commit | ae7467b1ac49e10c548099e9f9c59af895af2d3f (patch) | |
tree | a414196a412f105a8787c88230bc6b5f749eb2a3 /accel/kvm/kvm-cpus.h | |
parent | gdbstub: move sstep flags probing into AccelClass (diff) | |
download | qemu-ae7467b1ac49e10c548099e9f9c59af895af2d3f.tar.gz qemu-ae7467b1ac49e10c548099e9f9c59af895af2d3f.tar.xz qemu-ae7467b1ac49e10c548099e9f9c59af895af2d3f.zip |
gdbstub: move breakpoint logic to accel ops
As HW virtualization requires specific support to handle breakpoints
lets push out special casing out of the core gdbstub code and into
AccelOpsClass. This will make it easier to add other accelerator
support and reduces some of the stub shenanigans.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Mads Ynddal <mads@ynddal.dk>
Message-Id: <20220929114231.583801-45-alex.bennee@linaro.org>
Diffstat (limited to 'accel/kvm/kvm-cpus.h')
-rw-r--r-- | accel/kvm/kvm-cpus.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/accel/kvm/kvm-cpus.h b/accel/kvm/kvm-cpus.h index bf0bd1bee4..33e435d62b 100644 --- a/accel/kvm/kvm-cpus.h +++ b/accel/kvm/kvm-cpus.h @@ -18,5 +18,8 @@ void kvm_destroy_vcpu(CPUState *cpu); void kvm_cpu_synchronize_post_reset(CPUState *cpu); void kvm_cpu_synchronize_post_init(CPUState *cpu); void kvm_cpu_synchronize_pre_loadvm(CPUState *cpu); +int kvm_insert_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len); +int kvm_remove_breakpoint(CPUState *cpu, int type, hwaddr addr, hwaddr len); +void kvm_remove_all_breakpoints(CPUState *cpu); #endif /* KVM_CPUS_H */ |