Re: [Qemu-devel] [PATCH] bugfix: vm halt when in reset looping

2016-12-14 Thread Hangaohuai
Thanks for the review and proposals . I will think over the suspend and resume of VM. On 14/12/2016 07:48, hangaohuai wrote: > reset mc146818rtc device when RESET event happens. > > Fix the problem: > 1. Guest boot the second cpu, set CMOS_RESET_CODE 0x0a to protect selfboot; > 2. VM being

Re: [Qemu-devel] [PATCH] bugfix: vm halt when in reset looping

2016-12-14 Thread Paolo Bonzini
On 14/12/2016 07:48, hangaohuai wrote: > reset mc146818rtc device when RESET event happens. > > Fix the problem: > 1. Guest boot the second cpu, set CMOS_RESET_CODE 0x0a to protect selfboot; > 2. VM being reset by others, hmp_system_reset; > 3. seabios resume check the CMOS_RESET_CODE, if

[Qemu-devel] [PATCH] bugfix: vm halt when in reset looping

2016-12-13 Thread hangaohuai
reset mc146818rtc device when RESET event happens. Fix the problem: 1. Guest boot the second cpu, set CMOS_RESET_CODE 0x0a to protect selfboot; 2. VM being reset by others, hmp_system_reset; 3. seabios resume check the CMOS_RESET_CODE, if 0x0a, jump to the BDA resume execution by jump v