diff options
author | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2021-05-16 19:01:46 +0200 |
---|---|---|
committer | Philippe Mathieu-Daudé <f4bug@amsat.org> | 2022-03-06 13:15:42 +0100 |
commit | 82bd4ca37cb0dfa65e00dc54ca103940279d98b5 (patch) | |
tree | a13608750dd0d008a4dacc32fed7ce446dc57227 /include/sysemu | |
parent | 4e27e765419818f3f20d3a86dc1baa6e419ace96 (diff) | |
download | qemu-82bd4ca37cb0dfa65e00dc54ca103940279d98b5.zip qemu-82bd4ca37cb0dfa65e00dc54ca103940279d98b5.tar.gz qemu-82bd4ca37cb0dfa65e00dc54ca103940279d98b5.tar.bz2 |
sysemu/kvm: Make kvm_on_sigbus() / kvm_on_sigbus_vcpu() target agnostic
kvm_on_sigbus() and kvm_on_sigbus_vcpu() prototypes don't have
to be target specific. Remove this limitation to be able to build
softmmu/cpus.c once for all targets.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org>
Message-Id: <20220207075426.81934-7-f4bug@amsat.org>
Diffstat (limited to 'include/sysemu')
-rw-r--r-- | include/sysemu/kvm.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/sysemu/kvm.h b/include/sysemu/kvm.h index 6eb39a0..a5bec96 100644 --- a/include/sysemu/kvm.h +++ b/include/sysemu/kvm.h @@ -249,6 +249,9 @@ int kvm_has_intx_set_mask(void); bool kvm_arm_supports_user_irq(void); +int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr); +int kvm_on_sigbus(int code, void *addr); + #ifdef NEED_CPU_H #include "cpu.h" @@ -261,9 +264,6 @@ int kvm_remove_breakpoint(CPUState *cpu, target_ulong addr, void kvm_remove_all_breakpoints(CPUState *cpu); int kvm_update_guest_debug(CPUState *cpu, unsigned long reinject_trap); -int kvm_on_sigbus_vcpu(CPUState *cpu, int code, void *addr); -int kvm_on_sigbus(int code, void *addr); - /* internal API */ int kvm_ioctl(KVMState *s, int type, ...); |