From: "Jan Beulich" Subject: Re: [PATCH RFC v12 07/21] pvh: Disable unneeded features of HVM containers Date: Wed, 18 Sep 2013 15:18:09 +0100 Message-ID: <5239D24102000078000F4688@nat28.tlf.novell.com> References: <1379089521-25720-1-git-send-email-george.dunlap@eu.citrix.com> <1379089521-25720-8-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: Received: from mail6.bemta4.messagelabs.com ([85.158.143.247]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1VMIa6-0000gW-Lp for xen-devel@lists.xenproject.org; Wed, 18 Sep 2013 14:18:14 +0000 In-Reply-To: <1379089521-25720-8-git-send-email-george.dunlap@eu.citrix.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: George Dunlap Cc: xen-devel , Keir Fraser , Tim Deegan List-Id: xen-devel@lists.xenproject.org >>> On 13.09.13 at 18:25, George Dunlap wrote: > @@ -368,6 +375,7 @@ void hvm_do_resume(struct vcpu *v) > } > } > > + check_inject_trap: Labels are commonly indented by just one space. > @@ -521,6 +529,7 @@ int hvm_domain_initialise(struct domain *d) > return -EINVAL; > } > > + /* PVH: pbut_lock and uc_lock unused, but won't hurt */ > spin_lock_init(&d->arch.hvm_domain.pbuf_lock); > spin_lock_init(&d->arch.hvm_domain.irq_lock); > spin_lock_init(&d->arch.hvm_domain.uc_lock); Typo (pbuf_lock). But the comment is pretty pointless anyway. And if any future patch starts using either of the mentioned locks, it'll likely forget to update the comment (and hence it get stale). > --- a/xen/arch/x86/hvm/io.c > +++ b/xen/arch/x86/hvm/io.c > @@ -175,6 +175,10 @@ int handle_mmio(void) > struct hvm_vcpu_io *vio = &curr->arch.hvm_vcpu.hvm_io; > int rc; > > + /* No MMIO for PVH vcpus */ > + if ( is_pvh_vcpu(curr) ) > + return 0; > + So why does hvm_pio() not get adjusted similarly? Jan