Skip to content
  • Jan Kiszka's avatar
    Replace qemu_system_cond with VCPU stop mechanism · fa7d1867
    Jan Kiszka authored
    
    
    We can express the VCPU thread wakeup with the stop mechanism, saving
    both qemu_system_ready and the qemu_system_cond. For KVM threads, we can
    just enter the main loop as long as the thread is stopped. The central
    TCG thread is better held back before the loop as there can be side
    effects of the services called even when all CPUs are stopped.
    
    Creating VCPUs in stopped state will also be required for proper CPU
    hotplugging support.
    
    Signed-off-by: default avatarJan Kiszka <jan.kiszka@siemens.com>
    Signed-off-by: default avatarAnthony Liguori <aliguori@us.ibm.com>
    fa7d1867