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

2016-12-16 Thread Paolo Bonzini
On 16/12/2016 09:23, 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 v3] bugfix: vm halt when in reset looping

2016-12-16 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