mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 14:53:54 -06:00
kvm: consume internal signal with sigtimedwait
Change the way the internal qemu signal, used for communication between iothread and vcpus, is handled. Block and consume it with sigtimedwait on the outer vcpu loop, which allows more precise timing control. Change from standard signal (SIGUSR1) to real-time one, so multiple signals are not collapsed. Set the signal number on KVM's in-kernel allowed sigmask. Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com> Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
parent
fed6c3444c
commit
cc84de9570
3 changed files with 97 additions and 12 deletions
1
kvm.h
1
kvm.h
|
@ -53,6 +53,7 @@ int kvm_remove_breakpoint(CPUState *current_env, target_ulong addr,
|
|||
target_ulong len, int type);
|
||||
void kvm_remove_all_breakpoints(CPUState *current_env);
|
||||
int kvm_update_guest_debug(CPUState *env, unsigned long reinject_trap);
|
||||
int kvm_set_signal_mask(CPUState *env, const sigset_t *sigset);
|
||||
|
||||
int kvm_pit_in_kernel(void);
|
||||
int kvm_irqchip_in_kernel(void);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue