block SIGCHLD in vcpu thread(s)
Otherwise a vcpu thread can run the sigchild handler causingwaitpid() from iothread to fail.
Signed-off-by: Marcelo Tosatti <mtosa...@redhat.com>Signed-off-by: Avi Kivity <avi@redhat.com>
kvm specific wait_io_event
In KVM mode the global mutex is released when vcpus are executing,which means acquiring the fairness mutex is not required.
Also for KVM there is one thread per vcpu, so tcg_has_work is meaningless.
Add a new qemu_wait_io_event_common function to hold common code...
kvm: consume internal signal with sigtimedwait
Change the way the internal qemu signal, used for communication betweeniothread and vcpus, is handled.
Block and consume it with sigtimedwait on the outer vcpu loop, whichallows more precise timing control....
kvm: remove pre-entry exit_request check with iothread enabled
With SIG_IPI blocked vcpu loop exit notification happens via -EAGAINfrom KVM_RUN.
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>Signed-off-by: Avi Kivity <avi@redhat.com>
kvm: Kill CR3_CACHE feature references
Remove all references to KVM_CR3_CACHE as it was never implemented.
Signed-off-by: Jes Sorensen <Jes.Sorensen@redhat.com>Signed-off-by: Avi Kivity <avi@redhat.com>
kvm: Fix eflags corruption in kvm mode
This should explain a lot of the weird breakages of upstream KVM we'veseen recently (actually we should have seen it much earlier):
Stop translating eflags into TCG format when in kvm mode as we nevertranslate it back and rather sync this broken state into the kernel....
use eventfd for iothread
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>Signed-off-by: Avi Kivity <avi@redhat.com>
crisv10: Prettify.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
sparc32 fix spurious dma interrupts v2
Don't raise irq when not enabled.Raise irq on enabling if DMA_INTR is setDon't clear irq unless it was raised by DMA, as there are other irq sourcesDon't set DMA_INTR bit spuriously.
v1->v2: - Don't clear irq unless it was raised by DMA...
Revert "Sparc32: improve DMA controller IRQ debugging"
This reverts commit 787cfbc432bf1d353a77cbdb613754f3963371a3.
View all revisions | View revisions
Also available in: Atom