mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-06 01:03:55 -06:00
KVM: do not use sigtimedwait to catch SIGBUS
Call kvm_on_sigbus_vcpu asynchronously from the VCPU thread. Information for the SIGBUS can be stored in thread-local variables and processed later in kvm_cpu_exec. Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
4d39892cca
commit
2ae41db262
8 changed files with 53 additions and 44 deletions
|
@ -357,7 +357,10 @@ bool kvm_vcpu_id_is_valid(int vcpu_id);
|
|||
/* Returns VCPU ID to be used on KVM_CREATE_VCPU ioctl() */
|
||||
unsigned long kvm_arch_vcpu_id(CPUState *cpu);
|
||||
|
||||
int kvm_arch_on_sigbus_vcpu(CPUState *cpu, int code, void *addr);
|
||||
#ifdef TARGET_I386
|
||||
#define KVM_HAVE_MCE_INJECTION 1
|
||||
void kvm_arch_on_sigbus_vcpu(CPUState *cpu, int code, void *addr);
|
||||
#endif
|
||||
|
||||
void kvm_arch_init_irq_routing(KVMState *s);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue