From: "Jan Beulich" Subject: Re: [PATCH] x86/hvm: implement save/restore for posted interrupts Date: Fri, 25 Jul 2014 14:59:39 +0100 Message-ID: <53D27EEB02000078000260B6@mail.emea.novell.com> References: <1404400159-27346-1-git-send-email-olaf@aepfle.de> <53D242490200007800025EF6@mail.emea.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: Content-Disposition: inline List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Kevin Tian Cc: Olaf Hering , Keir Fraser , Eddie Dong , Donald D Dugger , "xen-devel@lists.xen.org" , Dongxiao Xu , Jun Nakajima , Yang Z Zhang List-Id: xen-devel@lists.xenproject.org >>> On 25.07.14 at 14:49, wrote: >> From: Jan Beulich [mailto:JBeulich@suse.com] >> Sent: Friday, July 25, 2014 2:41 AM >> >> >>> On 03.07.14 at 17:09, wrote: >> > Saving and restoring a PVonHVM guest on a host which has the VMX >> > "Posted Interrupt Processing" feature enabled will fail because the >> > xen-platform-pci device does not receive interrupts anymore after >> > restore. The reason is that the IRQs are not maintained in APIC_IRR, >> > but in a separate PIR array. This info is lost during the save >> > operation. >> > >> > Syncing the PIR state into IRR during save, and restoring the state >> > later will fix 'xm save/restore' of a PVonHVM guest. >> > >> > Signed-off-by: Olaf Hering >> >> Guys, where are we with this? Afaict all simplification suggestions >> you provided so far yielded a non-working patch. Are you actively >> working on getting a working alternative, or can we get an ack on >> what Olaf submitted? >> > > I hope Olaf can figure out why sync_irr_to_pir is actually required before > I can ack. I was thinking it would be the other way around: You suggesting it's not needed (which is wrong according to observations) would offer an explanation and/or a working alternative fix. I don't think you can expect Olaf to explain why what you suggest doesn't work, even more so with _you_ being the VMX maintainer. Jan