From: "Jan Beulich" Subject: Re: [PATCH RFC] xen/pvh: use a custom IO bitmap for PVH hardware domains Date: Tue, 14 Apr 2015 08:57:09 +0100 Message-ID: <552CE4750200007800071B97@mail.emea.novell.com> References: <1428497829-21845-1-git-send-email-roger.pau@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta5.messagelabs.com ([195.245.231.135]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1Yhvic-0004gc-7w for xen-devel@lists.xenproject.org; Tue, 14 Apr 2015 07:57:14 +0000 In-Reply-To: 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: Kevin Tian Cc: Suravee Suthikulpanit , Andrew Cooper , Eddie Dong , Aravind Gopalakrishnan , Jun Nakajima , "xen-devel@lists.xenproject.org" , Boris Ostrovsky , Roger Pau Monne List-Id: xen-devel@lists.xenproject.org >>> On 10.04.15 at 03:43, wrote: >> From: Roger Pau Monne [mailto:roger.pau@citrix.com] >> Sent: Wednesday, April 08, 2015 8:57 PM >> @@ -1484,6 +1489,12 @@ int hvm_domain_initialise(struct domain *d) >> goto fail1; >> d->arch.hvm_domain.io_handler->num_slot = 0; >> >> + /* Set the default IO Bitmap */ >> + if ( is_hardware_domain(d) ) >> + d->arch.hvm_domain.io_bitmap = hvm_hw_io_bitmap; >> + else >> + d->arch.hvm_domain.io_bitmap = hvm_io_bitmap; >> + > > if we want to support multiple PVH hardware domains w/ different > permissions, using global array is not correct here. There's no such thing like multiple hardware domains. There can only ever (theoretically that is) be multiple control domains. Jan