From: Tim Deegan Subject: Re: [PATCH 10/14] Nested Virtualization: svm specific implementation Date: Tue, 17 Aug 2010 17:57:55 +0100 Message-ID: <20100817165755.GD20252@whitby.uk.xensource.com> References: <201008051704.03074.Christoph.Egger@amd.com> <20100809125731.GB13291@whitby.uk.xensource.com> <201008171749.55377.Christoph.Egger@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Return-path: Content-Disposition: inline In-Reply-To: <201008171749.55377.Christoph.Egger@amd.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Christoph Egger Cc: "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org At 16:49 +0100 on 17 Aug (1282063795), Christoph Egger wrote: > > Can you explain why we shouldn't sync the vTPR and the vlapic state when > > the guest is in nested mode? > > When the vcpu is in guest mode then v->arch.hvm_svm.vmcb->vintr.fields.tpr > represents the tpr of the l2 guest. The l2 guest is not allowed to touch the > l1 guest's vTPR. Hmmm. I'm not sure I understand exactly what the hardware vTPR should contain when the L2 is running; I'll have to think back about exactly what the sync of vtpr <-> vlapic means and whether the L2 guest can cause surprising things to happen by setting the vTPR. Tim. -- Tim Deegan Principal Software Engineer, XenServer Engineering Citrix Systems UK Ltd. (Company #02937203, SL9 0BG)