• J
    Stop current VCPU on synchronous reset requests · b4a3d965
    Jan Kiszka 提交于
    If some I/O operation ends up calling qemu_system_reset_request in VCPU
    context, we record this and inform the io-thread, but we do not
    terminate the VCPU loop. This can lead to fairly unexpected behavior if
    the triggering reset operation is supposed to work synchronously.
    
    Fix this for TCG (when run in deterministic I/O mode) by setting the
    VCPU on stop and issuing a cpu_exit. KVM requires some more work on its
    VCPU loop.
    
    [ ported from qemu-kvm ]
    Signed-off-by: NJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: NMarcelo Tosatti <mtosatti@redhat.com>
    b4a3d965
vl.c 87.6 KB