From: "Jan Beulich" Subject: Re: [PATCH v7 10/10] xen/common: do not implicitly permit access to mapped I/O memory Date: Mon, 12 May 2014 09:35:17 +0100 Message-ID: <5370A3E50200007800011474@mail.emea.novell.com> References: <1399305254-3695-1-git-send-email-avanzini.arianna@gmail.com> <1399305254-3695-11-git-send-email-avanzini.arianna@gmail.com> <5368C22B020000780000F3C9@mail.emea.novell.com> <536D7C80.6020504@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <536D7C80.6020504@gmail.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: Arianna Avanzini Cc: Ian.Campbell@eu.citrix.com, paolo.valente@unimore.it, keir@xen.org, stefano.stabellini@eu.citrix.com, andrew.cooper3@citrix.com, dario.faggioli@citrix.com, Ian.Jackson@eu.citrix.com, xen-devel@lists.xen.org, julien.grall@citrix.com, etrudeau@broadcom.com, tim@xen.org, viktor.kleinik@globallogic.com List-Id: xen-devel@lists.xenproject.org >>> On 10.05.14 at 03:10, wrote: > On 05/06/2014 11:06 AM, Jan Beulich wrote: >> And now that I reached the end of the patch I'm still missing the >> similar adjustments for I/O port handling, while I think I saw you >> claim somewhere that in this version you did deal with that. >> > > The previous version of the patch gave access permission to I/O ports (in > do_pci_add()) only to paravirtualized domains. This version of the patch > executes also for HVM domains all the code that was previously executed only > for > PV domains, including the invocation of ioport_permission. As Ian Campbell > suggested (and hoping I understood his suggestion correctly), it does: > if (hvm) > device_model_related_code(); > previously_pv_specific_code(); Now, I was talking about the hypervisor code only, whereas your reply seems to refer to tools side code. I.e. I was expecting the MMIO related changes to the domctl handling to get suitably mirrored to the similar but not identical I/O port handling. Jan