Re: [PATCH RFC 00/15] vhost-user: isolated memory
Demi Marie Obenour <[email protected]>
| Newsgroups | gmane.comp.emulators.qemu.block,gmane.comp.emulators.qemu |
|---|---|
| Message-ID | <[email protected]> |
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: > > 1. Adding qdev and qapi properties required to enable isolation mode for > various devices. > 2. Allocating an isolation memory region in an anonymous file and mapping 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 isolation > 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. > > 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? -- Sincerely, Demi Marie Obenour (she/her/hers)
OpenPGP_signature.asc
(application/pgp-signature, 833 B)
-----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-----