[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v5 01/11] xen/arm: xc_domain_ioport_permission(..) not supported on ARM.
- To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
- From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
- Date: Mon, 11 Oct 2021 12:11:04 +0000
- Accept-language: en-GB, en-US
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
- Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=os/eX9L6AOkcfX4liSeRkJtaGkcuWy6sOz4F7zelP78=; b=UIwvXH+R/rwS+nC7/yhdpbxiLfOG0Mg6IREXfFXawUSAIRDC9mVzOCNQJj08eQjb90NeMGju8b0RdXj8C9a3jeXLTlbu415g+/QICQuZjNNSYWxJt8Uzeo5nDEU6p4EdaJsACaV9zseZhhUaGMA7q3fP1oZjFWq59TgIenVcManf11hauCieD1tklC5zmU1nRL8i3xemiqta0WakWLL6NGeeHSyuLddOLACaXY7N1vOprSPcHtCwkcFStsTl7j1f1EdzduDNcZiy01a0NQZz+h74cm6OJzEUxdMrvmz5V02+qvgF1NJ7qcsacGRdaQdUDfGTyn0OXRJ6T8NEPPIioQ==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=btuzEr6nwtMC780Yk2UXT728YYdPSdiPN1Y1ESRqamDU9ptier4dO86y1hGQJ8Cc1fgWnvG6i2DN2LkM1gjtgN4eEFwZPimpU6l7VLNw01Oal3LXKdy017HbhfnZV1duy01aV5OI0vUy1uq0FcT8J1rK2ys1mv6BSZ7rUiMyUDrmAlcn3/Pi8sEAIZYVgcoV+9tJGs+JLZErPTnxQGnszwgek8hsn8rdbPYKbgi+OCS5EQswx7QFmoMw30sdt95d70b6bDhf0TICWOlcJxYlnYJHTR0WXFtujIRkAAXuSDrnneAaXdIGb6vqmaGZxpfu2NDIe3eYMvo/Ff8ELALYCg==
- Authentication-results-original: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=arm.com;
- Cc: Rahul Singh <Rahul.Singh@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andre Przywara <Andre.Przywara@xxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Juergen Gross <jgross@xxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>
- Delivery-date: Mon, 11 Oct 2021 12:11:32 +0000
- List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
- Nodisclaimer: true
- Original-authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=arm.com;
- Thread-index: AQHXutl5d8zkP9bsD0GXT4+5QPGclKvNtfkAgAAGc4A=
- Thread-topic: [PATCH v5 01/11] xen/arm: xc_domain_ioport_permission(..) not supported on ARM.
Hi Roger,
> On 11 Oct 2021, at 12:47, Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
>
> On Wed, Oct 06, 2021 at 06:40:27PM +0100, Rahul Singh wrote:
>> ARM architecture does not implement I/O ports. Ignore this call on ARM
>> to avoid the overhead of making a hypercall just for Xen to return
>> -ENOSYS.
>
> What is the cal trace of this function actually on Arm?
>
> AFAICT libxl will only call xc_domain_ioport_permission if there are
> IO ports explicitly defined in the guest configuration, or if any of
> the BARs of the PCI device is in the IO space, which is not possible
> on Arm.
PCI devices BARs can be in the IO space as the PCI devices are not
Arm specific. There is not ioports on arm so to be used those can be
in some cases remapped and accessed as MMIOs or are not possible
to use at all.
But the IO space does appear when BARs are listed even on Arm.
Regards
Bertrand
>
> Thanks, Roger.
|