> -----Original Message----- > From: Paolo Bonzini [mailto:paolo.bonzini@xxxxxxxxx] On Behalf Of Paolo > Bonzini > Sent: Monday, February 20, 2012 3:38 PM > To: Zhang, Yang Z > Cc: qemu-devel@xxxxxxxxxx; Jan Kiszka; kvm@xxxxxxxxxxxxxxx; > aliguori@xxxxxxxxxx; Marcelo Tosatti > Subject: Re: [PATCH v2 2/4] RTC:Add RTC update-ended interrupt logic > > On 02/20/2012 01:25 AM, Zhang, Yang Z wrote: > > Use timer to emulate RTC update-ended interrupt. The timer is enabled > > only when UIE is setting. > > The timer needs to be enabled when UF is clear, not when UIE is set. If UIE is > set but the update interrupt is masked you do not need to do anything; on the > other hand you need to update UF in case the guest is observing interrupts with > polling. Good point. best regards yang -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html