[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH v3 15/17] xen/arm: Transitional change to build HAS_VPCI on ARM.


  • To: Rahul Singh <Rahul.Singh@xxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Wed, 29 Sep 2021 13:39:44 +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; bh=v4jf3x5fJ5th9pQGNKA3lrxyQ8fD6O68usEJPC0wdXM=; b=nL4joMVbZgW6MhHvq5BNHUnMdendvqWY/UX/tgrMqp4VyGZIVdYFTNWzcqkxfHpHNr/6iMTCm3tSFs8WHE4jLAANkZB5DBIE4Ju6wMenHpW4TUnCZxZrX3uqiv1dZ9WXavoXWge+DG8Qr03WPJ/q/vhBjhUlmNqWV7UDUQsnGWW+sqYRwqiWjA7Na7aK4XXepxBBwq0WtcXIDz1fXmbB340PYxsmO2WsGQ/bzixwy+Cc+C4/uctqcxUe8iXB8To3cr/XrpwtzJvWXQ4gevDshpqY2SqEZgNR2Ts/avp1HLwnCC5L0VOh+zMRN8vYFxU6eVIufjG3SjgErW1pIagZPw==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=GFRiBg1MlsMkcGi+1kET5EvXoRmuYdwL+wUIRfWdt9+umzHS6n9P+PWuiPs2qoaILvXw3wdZXpfYE9UBJFBb63h1JNbW+ZS8UiqfgeTo/h/1/cGTE4Anae+XFrjPy2sBcCaGpu1tIb9bYL36Ku12CGbp9uIJorEMwMcFeh/ir8YzhISWU9XfPBvzvCEJqg3B1dD3mrm8VfynDpWTxtdfNJUdAudEizLwItV0uqOk0kd36A2HdfZEY3mTAtrIBW+0iO1SXFAFO0XA2x9zX9EG/QjUGyJtwtJTEUIJphz8j35D9ZWkpsYi/ke/81EoqRuCm6WifclziGmC3uT1c1tQdA==
  • Authentication-results-original: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Cc: Xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Andre Przywara <Andre.Przywara@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>
  • Delivery-date: Wed, 29 Sep 2021 13:40:10 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: arm.com; dkim=none (message not signed) header.d=none;arm.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHXtJYGCkZuB1/ry0i7sxShepvGpqu7BcAA
  • Thread-topic: [PATCH v3 15/17] xen/arm: Transitional change to build HAS_VPCI on ARM.

Hi Rahul,

> On 28 Sep 2021, at 19:18, Rahul Singh <rahul.singh@xxxxxxx> wrote:
> 
> This patch will be reverted once we add support for VPCI MSI/MSIX
> support on ARM.
> 
> Signed-off-by: Rahul Singh <rahul.singh@xxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

Cheers
Bertrand

> ---
> Change in v3: none
> Change in v2: Patch introduced in v2
> ---
> xen/drivers/vpci/Makefile | 3 ++-
> xen/drivers/vpci/header.c | 2 ++
> xen/include/asm-arm/pci.h | 8 ++++++++
> 3 files changed, 12 insertions(+), 1 deletion(-)
> 
> diff --git a/xen/drivers/vpci/Makefile b/xen/drivers/vpci/Makefile
> index 55d1bdfda0..1a1413b93e 100644
> --- a/xen/drivers/vpci/Makefile
> +++ b/xen/drivers/vpci/Makefile
> @@ -1 +1,2 @@
> -obj-y += vpci.o header.o msi.o msix.o
> +obj-y += vpci.o header.o
> +obj-$(CONFIG_HAS_PCI_MSI) += msi.o msix.o
> diff --git a/xen/drivers/vpci/header.c b/xen/drivers/vpci/header.c
> index ba9a036202..f8cd55e7c0 100644
> --- a/xen/drivers/vpci/header.c
> +++ b/xen/drivers/vpci/header.c
> @@ -96,8 +96,10 @@ static void modify_decoding(const struct pci_dev *pdev, 
> uint16_t cmd,
>      * FIXME: punching holes after the p2m has been set up might be racy for
>      * DomU usage, needs to be revisited.
>      */
> +#ifdef CONFIG_HAS_PCI_MSI
>     if ( map && !rom_only && vpci_make_msix_hole(pdev) )
>         return;
> +#endif
> 
>     for ( i = 0; i < ARRAY_SIZE(header->bars); i++ )
>     {
> diff --git a/xen/include/asm-arm/pci.h b/xen/include/asm-arm/pci.h
> index 49c9622902..5532ce3977 100644
> --- a/xen/include/asm-arm/pci.h
> +++ b/xen/include/asm-arm/pci.h
> @@ -26,6 +26,14 @@ struct arch_pci_dev {
>     struct device dev;
> };
> 
> +/* Arch-specific MSI data for vPCI. */
> +struct vpci_arch_msi {
> +};
> +
> +/* Arch-specific MSI-X entry data for vPCI. */
> +struct vpci_arch_msix_entry {
> +};
> +
> /*
>  * struct to hold the mappings of a config space window. This
>  * is expected to be used as sysdata for PCI controllers that
> -- 
> 2.17.1
> 




 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.