From: Wei Liu Subject: Re: [PATCH v6 11/29] xen/x86: add bitmap of enabled emulated devices Date: Fri, 4 Sep 2015 14:56:41 +0100 Message-ID: <20150904135641.GG27133@zion.uk.xensource.com> References: <1441368548-43465-1-git-send-email-roger.pau@citrix.com> <1441368548-43465-12-git-send-email-roger.pau@citrix.com> <20150904122537.GC27133@zion.uk.xensource.com> <55E9A1D5.7080302@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZXrU0-00070U-Th for xen-devel@lists.xenproject.org; Fri, 04 Sep 2015 13:56:49 +0000 Content-Disposition: inline In-Reply-To: <55E9A1D5.7080302@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: Roger Pau =?iso-8859-1?Q?Monn=E9?= Cc: Wei Liu , Ian Campbell , Stefano Stabellini , Andrew Cooper , Ian Jackson , Jan Beulich , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org On Fri, Sep 04, 2015 at 03:51:17PM +0200, Roger Pau Monn=E9 wrote: > El 04/09/15 a les 14.25, Wei Liu ha escrit: > > On Fri, Sep 04, 2015 at 02:08:50PM +0200, Roger Pau Monne wrote: > >> diff --git a/xen/arch/x86/domain.c b/xen/arch/x86/domain.c > >> index 045f6ff..fe9504f 100644 > >> --- a/xen/arch/x86/domain.c > >> +++ b/xen/arch/x86/domain.c > >> @@ -555,6 +555,29 @@ int arch_domain_create(struct domain *d, unsigned= int domcr_flags, > >> d->domain_id); > >> } > >> = > >> + if ( is_hvm_domain(d) ) > >> + { > >> + uint32_t emulation_mask =3D (XEN_X86_EMU_LAPIC | XEN_X86_EMU_= HPET | > >> + XEN_X86_EMU_PMTIMER | XEN_X86_EMU_= RTC | > >> + XEN_X86_EMU_IOAPIC | XEN_X86_EMU_P= IC | > >> + XEN_X86_EMU_PMU | XEN_X86_EMU_VGA | > >> + XEN_X86_EMU_IOMMU); > > = > > This is repetitive. Could you consolidate all these to > > = > > #define XEN_X86_EMU_ALL ... > > = > > ? > = > That sounds fine, I would place it in the public header where all the > XEN_X86_EMU_* are defined. I will wait for Andrew's opinion, since he > already acked this patch. Of course he has the final authority here. I don't want block this patch just for such cosmetic comment. :-) Wei. > = > Roger.