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

Re: [Xen-devel] PV DRM doesn't work without auto_translated_physmap feature in Dom0


  • To: Santucco <santucco@xxxxxxx>
  • From: Oleksandr Andrushchenko <Oleksandr_Andrushchenko@xxxxxxxx>
  • Date: Thu, 9 Jan 2020 07:16:19 +0000
  • Accept-language: en-US
  • 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-SenderADCheck; bh=Y028KifaICRZx+3w8F+dKjg6x21ZKhhGegYGnKpZnSs=; b=DXREEycV780P7eZC8l9J0F938Dc2A1Wgqbhvm8Ev04JjpZ0AqwLt6rkhCRzIYlPnFVa6lQEuh4uY35NPBAuBwqICtPIL9+ch9RMkGS88fPk6vX2am+plqd6Yrb7qq086o0eVwxvctFYDScFP82ie7KijH2cPDJVIm6/wyRjnL4ODtbcp87E9Nt2xQRHJBc2s6zJlQ269mQuNVsPiHCrIjhRbXNxzH8usOcAK1ATN8Xqf/uBf/KSYkqVcmQxBmdEXQW6oFPhu011BSEoVEU/U5chT1edsyecPa46xzvRGTt+lOuvGZV0gNmG288epJ8e4DhMmFLOKuJR/CC7E56to4Q==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=Ug6e7EU+AFWnHO+TGdA0sy0ZOeX2zu8oBK4CWnj6suq5NyKwn0ZYrZ4XlLE0Gd2SzmRMMZ1MpetwN2Eycgos+kq5k6jybifByOVA2HLuujfd8m0aZvaerPBVXU2x1jnjz6Q2qMxUZs0sCNRkp1g+paUhFExgFWtdVzGRRpD96ATiIkmpxN0m0PKE/qOJlivVMXP/i8KafxPZmFkJ43i31rX7qAMYOSTzd1CgZE1CEvXHsz40EjopXGdEIue3I/uPlcbxnmWMy6LGtryWBUM4auZuqqf5LtdO/7LkH49pXVwXuEzu7J0hx1KtTBgEWE/sNCOjCIe4BZDqeYxTFmEObw==
  • Authentication-results: spf=none (sender IP is ) smtp.mailfrom=Oleksandr_Andrushchenko@xxxxxxxx;
  • Cc: Jürgen Groß <jgross@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • Delivery-date: Thu, 09 Jan 2020 07:16:33 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AQHVxrywVTrv3eK/NkOfJsS91dUjcg==
  • Thread-topic: [Xen-devel] PV DRM doesn't work without auto_translated_physmap feature in Dom0

On 1/8/20 5:38 PM, Santucco wrote:
> Thank you very much for all your answers.
>
>     Среда, 8 января 2020, 10:54 +03:00 от Oleksandr Andrushchenko
>     <oleksandr_andrushchenko@xxxxxxxx
>     </compose?To=oleksandr_andrushchenko@xxxxxxxx>>:
>     On 1/6/20 10:38 AM, Jürgen Groß wrote:
>     > On 06.01.20 08:56, Santucco wrote:
>     >> Hello,
>     >>
>     >> I’m trying to use vdispl interface from PV OS, it doesn’t work.
>     >> Configuration details:
>     >>      Xen 4.12.1
>     >>      Dom0: Linux 4.20.17-gentoo #13 SMP Sat Dec 28 11:12:24 MSK
>     2019
>     >> x86_64 Intel(R) Celeron(R) CPU N3050 @ 1.60GHz GenuineIntel
>     GNU/Linux
>     >>      DomU: x86 Plan9, PV
>     >>      displ_be as a backend for vdispl and vkb
>     >>
>     >> when VM starts, displ_be reports about an error:
>     >> gnttab: error: ioctl DMABUF_EXP_FROM_REFS failed: Invalid argument
>     >> (displ_be.log:221)
>     >>
>     >> related Dom0 output is:
>     >> [  191.579278] Cannot provide dma-buf: use_ptemode 1
>     >> (dmesg.create.log:123)
>     >
>     > This seems to be a limitation of the xen dma-buf driver. It was
>     written
>     > for being used on ARM initially where PV is not available.
>     This is true and we never tried/targeted PV domains with this
>     implementation,
>     so if there is a need for that someone has to take a look on the
>     proper
>     implementation for PV…
>
> Have I got your right and there is no the proper implementation :-)?
There is no
>
>     >
>     > CC-ing Oleksandr Andrushchenko who is the author of that driver. He
>     > should be able to tell us what would be needed to enable PV dom0.
>     >
>     > Depending on your use case it might be possible to use PVH dom0, but
>     > support for this mode is "experimental" only and some features
>     are not
>     > yet working.
>     >
>     Well, one of the workarounds possible is to drop zero-copying use-case
>     (this is why display backend tries to create dmu-bufs from grants
>     passed
>     by the guest domain and fails because of "Cannot provide dma-buf:
>     use_ptemode 1")
>     So, in this case display backend will do memory copying for the
>     incoming
>     frames
>     and won't touch DMABUF_EXP_FROM_REFS ioctl.
>     To do so just disable zero-copying while building the backend [1]
>
> Thanks, I have just tried the workaround.  The backend has failed 
> in an other place not corresponding with dma_buf.
> Anyway it is enough to continue debugging  my frontend implementation.
> Do you know how big is performance penalty in comparison with 
> the zero-copy variant?
Well, it solely depends on your setup, so I cannot tell what
would the numbers be in your case. Comparing to what I have doesn't
make any sense to me: one should compare apples to apples
> Does it make a sense if I make a dedicated HVM domain with linux only 
> for the purpose of vdispl and vkbd backends? Is there a hope this 
> approach will work?
You can try if this approach fits your design and requirements
>
>     >
>     > Juergen
>     >
>     [1]
>     https://github.com/xen-troops/displ_be/blob/master/CMakeLists.txt#L12
>     
> <https://urldefense.com/v3/__https://github.com/xen-troops/displ_be/blob/master/CMakeLists.txt*L12__;Iw!!GF_29dbcQIUBPA!mz3gn1wQMX2DXeNuAV-1_dI7nxFYYZOgdPiJNSFMesCz9lAzOKlwVPlddbxbcLmUO44NOy0TFA$>
>
> Best regards,
>   Alexander Sychev
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxxx
https://lists.xenproject.org/mailman/listinfo/xen-devel

 


Rackspace

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