From mboxrd@z Thu Jan 1 00:00:00 1970 From: Wei Huang Subject: Re: [PATCH] Fix save/restore of guest PAT table in HAP paging mode. Date: Thu, 12 Apr 2012 01:14:59 -0500 Message-ID: <4F8672E3.80302@amd.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; Format="flowed" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Gianluca Guida Cc: xen-devel@lists.xensource.com, Gianluca Guida List-Id: xen-devel@lists.xenproject.org On 04/11/2012 06:04 PM, Gianluca Guida wrote: > Hello, > > HAP paging mode guests use direct MSR read/write into the VMCS/VMCB > for the guest PAT table, while the current save/restore code was > accessing only the pat_cr field in hvm_vcpu, used when intercepting > the MSR mostly in shadow mode (the Intel scenario is a bit more > complicated). > This patch fixes this issue creating a new couple of hvm_funcs, > get/set_guest_pat, that access the right PAT table based on the paging > mode and guest configuration. > > As a major caveat, I haven't tested this patch on AMD, for lack of hardware. I can test it on my AMD box tomorrow. BTW from my understanding, this patch doesn't have performance implication for nested paging mode, does it? -Wei > > Signed-off-by: Gianluca Guida