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

2017-01-09 Thread Paolo Bonzini
On 09/01/2017 10:08, Gonglei (Arei) wrote: >> >> From: Hangaohuai >> Sent: Monday, December 19, 2016 2:04 PM >> To: qemu-devel@nongnu.org >> Cc: m...@redhat.com; pbonz...@redhat.com; Gonglei (Arei); Hangaohuai >> Subject: [PATCH v4] bugfix: vm halt when in reset looping >> >> reset mc146818rtc de

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

2017-01-09 Thread Gonglei (Arei)
> > From: Hangaohuai > Sent: Monday, December 19, 2016 2:04 PM > To: qemu-devel@nongnu.org > Cc: m...@redhat.com; pbonz...@redhat.com; Gonglei (Arei); Hangaohuai > Subject: [PATCH v4] bugfix: vm halt when in reset looping > > reset mc146818rtc device when RESET event happens. > > Fix the problem:

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

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