From: "Jan Beulich" Subject: Re: [PATCH] x86: fix nested HVM initialization Date: Thu, 24 May 2012 14:09:38 +0100 Message-ID: <4FBE4F320200007800085E84@nat28.tlf.novell.com> References: <4FBE424A0200007800085DDE@nat28.tlf.novell.com> <4FBE2D2C.7060704@amd.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4FBE2D2C.7060704@amd.com> 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: Christoph Egger Cc: xen-devel List-Id: xen-devel@lists.xenproject.org >>> On 24.05.12 at 14:44, Christoph Egger wrote: > On 05/24/12 14:14, Jan Beulich wrote: > >> - no need for calling nestedhvm_setup() explicitly (can be a normal >> init-call, and can be __init) >> - calling _xmalloc() for multi-page, page-aligned memory regions is >> inefficient - use alloc_xenheap_pages() instead >> - albeit an allocation error is unlikely here, add error handling >> nevertheless (and have nestedhvm_vcpu_initialise() bail if an error >> occurred during setup) >> - nestedhvm_enabled() must no access d->arch.hvm_domain without first >> checking that 'd' actually represents a HVM domain >> >> Signed-off-by: Jan Beulich > > > Looks ok to me. How did you test it? Sorry, no, I did not test it at all. Should probably have said so... I just noticed the brokenness while putting together the VIA enabling patch sent soon afterwards. Jan