From: Tim Deegan Subject: Re: [PATCH v14 06/17] pvh: Disable unneeded features of HVM containers Date: Thu, 7 Nov 2013 00:54:15 +0100 Message-ID: <20131106235415.GC32964@deinos.phlegethon.org> References: <1383567306-6636-1-git-send-email-george.dunlap@eu.citrix.com> <1383567306-6636-7-git-send-email-george.dunlap@eu.citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <1383567306-6636-7-git-send-email-george.dunlap@eu.citrix.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: George Dunlap Cc: Keir Fraser , Jan Beulich , xen-devel@lists.xen.org List-Id: xen-devel@lists.xenproject.org At 12:14 +0000 on 04 Nov (1383563695), George Dunlap wrote: > Things kept: > * cacheattr_region lists > * irq-related structures > * paging > * tm_list > * hvm params > > Things disabled for now: > * compat xlation > > Things disabled: > * Emulated timers and clock sources > * IO/MMIO io requests > * msix tables > * hvm_funcs > * nested HVM > * Fast-path for emulated lapic accesses > > Getting rid of the hvm_params struct required a couple other places to > check for its existence before attempting to read the params. > > Signed-off-by: George Dunlap > Signed-off-by: Mukesh Rathor > @@ -528,10 +536,16 @@ int hvm_domain_initialise(struct domain *d) > if ( rc != 0 ) > goto fail0; > > + rc = -ENOMEM; > d->arch.hvm_domain.params = xzalloc_array(uint64_t, HVM_NR_PARAMS); > + if ( !d->arch.hvm_domain.params ) > + goto fail1; > + > + if ( is_pvh_domain(d) ) > + return 0; Doesn't this skip hvm_init_cacheattr_region_list() and paging_enable(), which are on your list of things to keep for PVH guests? Tim.