Re: [PATCH RFC 12/15] hw/virtio/vhost-user: send isolation regions to device
Connor Kite <[email protected]>
| Newsgroups | dev.linux.lists.virtio-fs,org.nongnu.qemu-devel |
|---|---|
| Message-ID | <CA+spn3q8uPsn901CoKrhq3xO1X5DVc_KCBYpjz5vRTry=W2-Bw@mail.gmail.com> |
On Mon, Aug 10, 2026 at 10:40 AM Connor Kite <[email protected]> wrote: > > > > int fds[VHOST_MEMORY_BASELINE_NREGIONS]; > > > > This needs one more element for vring. > > > > Good catch. Fixed! > Actually, I'm not sure I can add an element here since the size of VhostUserPayload.memory.regions is defined as fixed to VHOST_MEMORY_BASELINE_NREGIONS, which is 8. It seems plausible that if this is a standard expected size, that adding another region could violate some assumption in the back-end implementation. However, I should be able to avoid the issue by combining the vring region with one adjacent in the IOVA space when sending to the back-end.