Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vm startup

2017-07-25 Thread Paolo Bonzini
On 25/07/2017 06:14, peng.h...@zte.com.cn wrote: >> On 24/07/2017 20:35, Peng Hao wrote: > > > > > >>> When a windows vm starts, periodic timer of rtc will stop several times. >>> windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt >>> flags will not be cleared when

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread peng.hao2
>On 24/07/2017 20:35, Peng Hao wrote: >> When a windows vm starts, periodic timer of rtc will stop several times. >> windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt >> flags will not be cleared when periodic timer stops and the update timer >> will switch to alarm

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread Eric Blake
On 07/24/2017 01:35 PM, Peng Hao wrote: > When a windows vm starts, periodic timer of rtc will stop several times. > windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt > flags will not be cleared when periodic timer stops and the update timer > will switch to alarm timer. So

Re: [Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread Paolo Bonzini
On 24/07/2017 20:35, Peng Hao wrote: > When a windows vm starts, periodic timer of rtc will stop several times. > windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt > flags will not be cleared when periodic timer stops and the update timer > will switch to alarm timer. So

[Qemu-devel] [PATCH V3] rtc: fix a infinite loop in windows vm startup

2017-07-24 Thread Peng Hao
When a windows vm starts, periodic timer of rtc will stop several times. windows kernel will check whether REG_A_UIP is changed. REG_C's interrupt flags will not be cleared when periodic timer stops and the update timer will switch to alarm timer. So the expiration time of alarm timer is very long