Re: [Qemu-devel] [PATCH] hax: Honor CPUState::halted

2019-06-11 Thread Paolo Bonzini
On 11/06/19 10:38, Philippe Mathieu-Daudé wrote: > Cc'ing Paolo & Richard. > > On 6/10/19 4:27 AM, Colin Xu wrote: >> cc more. >> >> On 2019-06-10 10:19, Colin Xu wrote: >>> QEMU tracks whether a vcpu is halted using CPUState::halted. E.g., >>> after initialization or reset, halted is 0 for the BS

Re: [Qemu-devel] [PATCH] hax: Honor CPUState::halted

2019-06-11 Thread Philippe Mathieu-Daudé
Cc'ing Paolo & Richard. On 6/10/19 4:27 AM, Colin Xu wrote: > cc more. > > On 2019-06-10 10:19, Colin Xu wrote: >> QEMU tracks whether a vcpu is halted using CPUState::halted. E.g., >> after initialization or reset, halted is 0 for the BSP (vcpu 0) >> and 1 for the APs (vcpu 1, 2, ...). A halted

[Qemu-devel] [PATCH] hax: Honor CPUState::halted

2019-06-09 Thread Colin Xu
QEMU tracks whether a vcpu is halted using CPUState::halted. E.g., after initialization or reset, halted is 0 for the BSP (vcpu 0) and 1 for the APs (vcpu 1, 2, ...). A halted vcpu should not be handed to the hypervisor to run (e.g. hax_vcpu_run()). Under HAXM, Android Emulator sometimes boots int

Re: [Qemu-devel] [PATCH] hax: Honor CPUState::halted

2019-06-09 Thread Colin Xu
cc more. On 2019-06-10 10:19, Colin Xu wrote: QEMU tracks whether a vcpu is halted using CPUState::halted. E.g., after initialization or reset, halted is 0 for the BSP (vcpu 0) and 1 for the APs (vcpu 1, 2, ...). A halted vcpu should not be handed to the hypervisor to run (e.g. hax_vcpu_run()).