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

RE: question about virtio-vsock on xen


  • To: Oleksandr Tyshchenko <Oleksandr_Tyshchenko@xxxxxxxx>
  • From: Peng Fan <peng.fan@xxxxxxx>
  • Date: Tue, 27 Feb 2024 00:40:20 +0000
  • Accept-language: en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=nxp.com; dmarc=pass action=none header.from=nxp.com; dkim=pass header.d=nxp.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=pd5dneSFqnwjQ7kRPh0WYjn0rt78AoXtKsG++ZtjS8k=; b=SaTLsxLvfCPzFKpUZH1qGZDEl76ADsYq5RMXjPG15kAR5H/5jTqIYlDVJwFZAhO5679SjuVlyM2uXSMPMIT6/JR3z64G0DsZIASScbGAjNIOs7xU6KTSIxQFz71EGViYEfWNgYKaCEStZcpP1qPHbafsGJ9Obbr4ouQHmW/28WEyTk6SY8x/JCRclbGgFhqaKjdmFeSiOuX0Ems+kLXnRDqwV8oz5SQ9fdVO8pllqNHJmMwBN4R/OUnwF/tpchhtueiGJwZNE8zprQ5tFD4JxbxzzLsEPwaZ6obQ00SFyWkSOCko2lNX5CvGI5RAOgj/8oDLZ0LSSXEGPMOQ8uDvbA==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k3L2n/B8cLHJ0tKhxHg2UXa912ftH/ZnXQN6WES+P6zqrzDdT8PSXoDFMKjDoPPExxxmDnpblVp6dH45z938NmBbM81bc1Dgi+f4pJuxon0yRj2oWZLY5FrVeY28/ML7eHfKra/2MKP04cFtjsBV86PFZHuYaZN5QYhJWnsU2I4T265JTylHdv7CBv+ehcedvTV3e5yuomAFf6nWhEbzHiQQNA7AjrQpYK8AGZpOLTkcXUJkljOZEJ4xGVaoJ+rmZmZn8gYWUASt2++y886eMj9G/iLQPVVY3oRJAiXQX2iplGna8KQ2nGV8hJrUPwp4lflOZswtsoXmtqJ8FzvpkQ==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=nxp.com;
  • Cc: Julien Grall <julien@xxxxxxx>, "vikram.garhwal@xxxxxxx" <vikram.garhwal@xxxxxxx>, Leo Yan <leo.yan@xxxxxxxxxx>, Viresh Kumar <viresh.kumar@xxxxxxxxxx>, Stewart Hildebrand <stewart.hildebrand@xxxxxxx>, "sgarzare@xxxxxxxxxx" <sgarzare@xxxxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>, Stefano Stabellini <stefano.stabellini@xxxxxxx>
  • Delivery-date: Tue, 27 Feb 2024 00:40:26 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Thread-index: AdpmUSXKZvg8Aft6RRu9smUwoggtbwAUAHAAACuPlYAARFRfYAAj+0EAAAkpkYA=
  • Thread-topic: question about virtio-vsock on xen

> Subject: Re: question about virtio-vsock on xen
> 
> 
> 
> On 26.02.24 05:09, Peng Fan wrote:
> > Hi Oleksandr,
> 
> Hello Peng
> 
> 
> [snip]
> 
> >>
> >>     ... Peng, we have vhost-vsock (and vhost-net) Xen PoC. Although
> >> it is non- upstreamable in its current shape (based on old Linux
> >> version, requires some rework and proper integration, most likely
> >> requires involving Qemu and protocol changes to pass an additional
> >> info to vhost), it works with Linux
> >> v5.10 + patched Qemu v7.0, so you can refer to the Yocto meta layer
> >> which contains kernel patches for the details [1].
> >
> > Thanks for the pointer, I am reading the code.
> >
> >>
> >> In a nutshell, before accessing the guest data the host module needs
> >> to map descriptors in virtio rings which contain either guest grant
> >> based DMA addresses (by using Xen grant mappings) or guest
> >> pseudo-physical addresses (by using Xen foreign mappings). After
> >> accessing the guest data the host module needs to unmap them.
> >
> > Ok, I thought  the current xen virtio code already map every ready.
> >
> 
> It does, as you said the virtio-blk-pci worked in your environment. But
> vhost(-vsock) is a special case, unlike for virtio-blk-pci where the whole
> backend resides in Qemu, here we have a split model. As I understand the
> Qemu performs only initial setup/configuration then offloads the I/O
> processing to a separate entity which is the Linux module in that particular
> case.

Thanks for sharing me the information. I need to learn more stuff:)

Thanks,
Peng.

 


Rackspace

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