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

Re: [PATCH 2/3] xen/virtio: use dom0 as default backend for CONFIG_XEN_VIRTIO_FORCE_GRANT


  • To: Juergen Gross <jgross@xxxxxxxx>, "linux-kernel@xxxxxxxxxxxxxxx" <linux-kernel@xxxxxxxxxxxxxxx>
  • From: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • Date: Thu, 6 Oct 2022 17:23:44 +0000
  • Accept-language: en-US, ru-RU
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=epam.com; dmarc=pass action=none header.from=epam.com; dkim=pass header.d=epam.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=W8m1sKTh6VL5hm0H1sMOzX6k5cFfjhU+L4lTgUPJKlU=; b=EyYjQjKx/lNiJ9+9OgzT9gRXehKp/QTHQqeG3aMSFWJq8onNK3+5ee24eMJf1QC9zOlmnxocBrm0OMrgIxVEZ3NR2IqjRDcpGBuav/aIOvoaAeiidQZNcTn71FgL2Di2oJ5TO/uj9sEs4erT7X2Ph/Logj9cX/5TlDKwc8ODFnuJBXxuS6nLuANpNJtMGPphpWlIZo3nhPixl53WAf0DZhToKpkUzC2a8owMMs5owP4Ut3Giv2LgPWDBcYsy64vqU9i0QSSROsrbltBwPsWEaB6rQS+e80fYIYs7U9baJOYD5xOxfpHxTqUztvsyeK9f8qCnCFIwShSaBxaJTcQSQA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=LK2VwOCh0z6iOu7rRZ7wpTM8Y1AiAf7kgeyr7FjkDYJHkFCESyD62I09Fxu2eg4plzB/YnG9epyhQNMYzpzOe9TE2FDtY1J3DlnCjWYx+h0DOJvvcYX18+ImZPk3NYldhS1Zj/2Fd6fdlcUm1jCNP+KwsrEs8GVQmugy6wRu//1ztkpPKGyFcf0jLNRC59Pt0zDUWpIbjVpE/1Y245AddAX4gkrl7fqpIJyCAKtxpf/+HadSvXtsHmeo85gD+zIBC1oDxi/abmPTYCSQ4Z4kLVoYWHfiL2hP4aGfUo/MxobryW9I/1Eai1FWhRZcrtAi4X7Yyq3WXrMt9foeuX4vbQ==
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 06 Oct 2022 17:24:02 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHY2VNlob0BWl5FK0K3rZia87E8oK4Bnh4A
  • Thread-topic: [PATCH 2/3] xen/virtio: use dom0 as default backend for CONFIG_XEN_VIRTIO_FORCE_GRANT

On 06.10.22 10:14, Juergen Gross wrote:

Hello Juergen

> With CONFIG_XEN_VIRTIO_FORCE_GRANT set the default backend domid to 0,
> enabling to use xen_grant_dma_ops for those devices.
>
> Signed-off-by: Juergen Gross <jgross@xxxxxxxx>
> ---
>   drivers/xen/grant-dma-ops.c | 3 +++
>   1 file changed, 3 insertions(+)


Reviewed-by: Oleksandr Tyshchenko <oleksandr_tyshchenko@xxxxxxxx>

>
> diff --git a/drivers/xen/grant-dma-ops.c b/drivers/xen/grant-dma-ops.c
> index f29759d5301f..a00112235877 100644
> --- a/drivers/xen/grant-dma-ops.c
> +++ b/drivers/xen/grant-dma-ops.c
> @@ -349,6 +349,9 @@ void xen_grant_setup_dma_ops(struct device *dev)
>       if (dev->of_node) {
>               if (xen_dt_grant_setup_dma_ops(dev, data))
>                       goto err;
> +     } else if (IS_ENABLED(CONFIG_XEN_VIRTIO_FORCE_GRANT)) {
> +             dev_info(dev, "Using dom0 as backend\n");
> +             data->backend_domid = 0;
>       } else {
>               /* XXX ACPI device unsupported for now */
>               goto err;

-- 
Regards,

Oleksandr Tyshchenko

 


Rackspace

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