Re: [PATCH RFC 00/15] vhost-user: isolated memory

Demi Marie Obenour <[email protected]> Tue, 28 Jul 2026 03:07:56 -0400
Newsgroups dev.linux.lists.virtio-fs,org.nongnu.qemu-devel
Message-ID <[email protected]>
This is an OpenPGP/MIME signed message (RFC 4880 and 3156)
--------------z1QoZtmmUiN0nXnpYxrJ6rw6
Content-Type: multipart/mixed; boundary="------------tZUx02BZi9nhN0MRPAe7eeRE";
 protected-headers="v1"; hp="clear"
Message-ID: <[email protected]>
Date: Tue, 28 Jul 2026 03:07:56 -0400
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: [PATCH RFC 00/15] vhost-user: isolated memory
To: ConKite <[email protected]>, [email protected]
Cc: "Michael S. Tsirkin" <[email protected]>,
 Stefano Garzarella <[email protected]>,
 =?UTF-8?Q?Alex_Benn=C3=A9e?= <[email protected]>,
 Viresh Kumar <[email protected]>, Gerd Hoffmann <[email protected]>,
 Mathieu Poirier <[email protected]>,
 Manos Pitsidianakis <[email protected]>,
 Haixu Cui <[email protected]>, Raphael Norwitz <[email protected]>,
 Kevin Wolf <[email protected]>, Hanna Reitz <[email protected]>,
 =?UTF-8?Q?Marc-Andr=C3=A9_Lureau?= <[email protected]>,
 Paolo Bonzini <[email protected]>, Fam Zheng <[email protected]>,
 Stefan Hajnoczi <[email protected]>, Milan Zamazal <[email protected]>,
 Akihiko Odaki <[email protected]>,
 Dmitry Osipenko <[email protected]>, [email protected],
 [email protected], "Gonglei (Arei)" <[email protected]>,
 zhenwei pi <[email protected]>, =?UTF-8?Q?Daniel_P=2E_Berrang=C3=A9?=
 <[email protected]>, Eric Blake <[email protected]>,
 Markus Armbruster <[email protected]>, Jason Wang <[email protected]>,
 Peter Xu <[email protected]>, =?UTF-8?Q?Eugenio_P=C3=A9rez?=
 <[email protected]>, Alyssa Ross <[email protected]>
References: <[email protected]>
Content-Language: en-US
From: Demi Marie Obenour <[email protected]>
Autocrypt: [email protected]; keydata=
 xsFNBFp+A0oBEADffj6an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cYtd+xy3Li/8oeYDAqrsnrOjb+WvGhCykJk4urBog2LNtcyCj
 kTs7F+WeXGUo0NDhbd3Z6AyFfqeF7uJ3D5hlpX2nI9no/ugPrrTVoVZAgrrnNz0iZG2DVx46
 x913pVKHl5mlYQARAQABwsFfBBgBAgAJBQJafgNKAhsMAAoJELKItV//nCLBwNIP/AiIHE8b
 oIqReFQyaMzxq6lE4YZCZNj65B/nkDOvodSiwfwjjVVE2V3iEzxMHbgyTCGA67+Bo/d5aQGj
 gn0TPtsGzelyQHipaUzEyrsceUGWYoKXYyVWKEfyh0cDfnd9diAm3VeNqchtcMpoehETH8fr
 RHnJdBcjf112PzQSdKC6kqU0Q196c4Vp5HDOQfNiDnTf7gZSj0BraHOByy9LEDCLhQiCmr+2
 E0rW4tBtDAn2HkT9uf32ZGqJCn1O+2uVfFhGu6vPE5qkqrbSE8TG+03H8ecU2q50zgHWPdHM
 OBvy3EhzfAh2VmOSTcRK+tSUe/u3wdLRDPwv/DTzGI36Kgky9MsDC5gpIwNbOJP2G/q1wT1o
 Gkw4IXfWv2ufWiXqJ+k7HEi2N1sree7Dy9KBCqb+ca1vFhYPDJfhP75I/VnzHVssZ/rYZ9+5
 1yDoUABoNdJNSGUYl+Yh9Pw9pE3Kt4EFzUlFZWbE4xKL/NPno+z4J9aWemLLszcYz/u3XnbO
 vUSQHSrmfOzX3cV4yfmjM5lewgSstoxGyTx2M8enslgdXhPthZlDnTnOT+C+OTsh8+m5tos8
 HQjaPM01MKBiAqdPgksm1wu2DrrwUi6ChRVTUBcj6+/9IJ81H2P2gJk3Ls3AVIxIffLoY34E
 +MYSfkEjBz0E8CLOcAw7JIwAaeBT
In-Reply-To: <[email protected]>

--------------tZUx02BZi9nhN0MRPAe7eeRE
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

On 7/23/26 18:29, ConKite wrote:
> This patch series implements a memory isolation mode in vhost-user. The=

> purpose of this mode is to provide the option of additional security by=

> eliminating direct access of guest memory by vhost-user devices.
> At a high level this works by:
>=20
> 1. Adding qdev and qapi properties required to enable isolation mode fo=
r
>    various devices.
> 2. Allocating an isolation memory region in an anonymous file and mappi=
ng it
>    to host memory.  This isolation region will hold the bounce buffers =
and
>    vrings necessary to move data.
> 3. Using a vhost-iova-tree to allocate and track the mapping between
>    guest regions and their corresponding bounce buffers in the isolatio=
n
>    memory.
> 4. Creating shadow virtqueues to intercept request notifications.  As
>    kick and call events are received by an svq, it copies buffer
>    contents and descriptors between isolation and guest memory before
>    notifying the backend or guest.  =20
>=20
> Note: This project is currently in a partially functional state. For
> example, in testing vhost-user-input and a keyboard, keystrokes may
> register correctly or be double counted depending on the combination
> of backend daemon and guest OS used. However, the desire is to make
> this work public at this stage for comment on the overall

Nice!

Does this approach work for a generic vhost-user device, as opposed to
one that knows it is a block/network/etc device?  Also, how much overhead=

is there compared to the normal case?
--=20
Sincerely,
Demi Marie Obenour (she/her/hers)

--------------tZUx02BZi9nhN0MRPAe7eeRE--

--------------z1QoZtmmUiN0nXnpYxrJ6rw6
Content-Type: application/pgp-signature; name="OpenPGP_signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="OpenPGP_signature.asc"

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCgAdFiEEopQtqVJW1aeuo9/sszaHOrMp8lMFAmpoVU0ACgkQszaHOrMp
8lOTaw//bKyO53hRA28cbCYNpkaKASV/sVh2ZHS8G4L0KhBsiwR+zBjpX7Tdf/OY
a7YYY5JUbIH79vJsraWY8YKEnPQX0wY/heyM4VUIvBvxxvfhT0mS85y2DN4yANdb
oux6dauJZZe4u79LMsIIspP2WzvHTaqMzNSGSssWtXrcq+Zb2F2y+K4NGWP+3lZC
xMTXqD/SKIW1BJJVOsS7DEzGxNG/sNucS25wPhUoLONwcfZhW+GdIIjagGL+Co9d
leONHtSrAueyBMv1El1gX7JGV4Z11JbQH9+jMvWEEw9TnxnDTSQ5cb/ooWlh2P5Z
2Xad6VYgqdW/RxirfE4izEhS+cjLXKYsNisSwDec3kgUegIZ+thXSplUFUSosTfz
YGiwvDcRkU2uE2OzJ52+MgK6Owpub9AO1zYDWn+2VxRoAiYMAo9V7xft2MrlGTC4
frODL/8WWJMjmbX52WLgY4WOjB0vL7Fg3DNmmGVNtdaqonPo1PUfly2tSOW0QDzW
HaiBhVWcU6AfuWSeQDpVAb10Lqf09fmCTGSYKrHqz7BlAYm1fQ/2h63onWp1RabS
elmV/bs706MnXo869DbgdGQ9BkIZL7qHm/dGsnULjcmRBBFhgLK7mooRd0HNLa+8
NuZCkeTDFwWbkCoFIMWzlQStoSCIj2lnvlUawFauP/iUXqrRIJ8=
=kRiQ
-----END PGP SIGNATURE-----

--------------z1QoZtmmUiN0nXnpYxrJ6rw6--