From: Olaf Hering Subject: Re: [PATCH] vmx, apicv: fix save/restore issue with apicv Date: Tue, 14 Oct 2014 16:19:27 +0200 Message-ID: <20141014141927.GB17988@aepfle.de> References: <1413014093-23050-1-git-send-email-yang.z.zhang@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1413014093-23050-1-git-send-email-yang.z.zhang@intel.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Yang Zhang Cc: Andrew.Cooper3@citrix.com, kevin.tian@intel.com, malcolm.crossley@citrix.com, JBeulich@suse.com, xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org On Sat, Oct 11, Yang Zhang wrote: > From: Yang Zhang > > This patch fix two issues: > > 1. Interrupts on PIR are lost during save/restore. Syncing the PIR > into IRR during save will fix it. > > 2. EOI exit bitmap doesn't setup correctly after restore. Here we > will construct the eoi exit bimap via (IRR | ISR). Though it may cause > unnecessary eoi exit of the interrupts that pending in IRR or ISR during > save/resotre, each pending interrupt only causes one vmexit. The > subsequent interrupts will adjust the eoi exit bitmap correctly. So > the performace hurt can be ignored. > > Signed-off-by: Yang Zhang > --- > Hi Olaf and Malcolm, Can you help to retest it? Because the key part > is changed in this patch, so i'm not sure whether it still works in > your side. > > Also, Olaf, is it ok to add your SOB in this patch? If yes, I can resend > it to do it. Yes, thats fine. I have tested this version and save/restore still works with current staging. Olaf