Re: [PATCH v7] virtio-vsock: Add support for multi devices
Jason Wang <[email protected]>
| Newsgroups | dev.linux.lists.virtio-comment |
|---|---|
| Message-ID | <CACGkMEsFYMjQgU7mrBwq3q2cFvFH_zro=5YOMfLsxDQYv5po5A@mail.gmail.com> |
On Sat, Apr 12, 2025 at 10:39 PM Xuewei Niu <[email protected]> wrote: > > This patch brings a new feature, called "multi devices", to the virtio > vsock. It introduces a "VIRTIO_VSOCK_F_MULTI_DEVICES" feature bit, and a > "device_order" field to the config for the virtio vsock. > > == Motivition == > > Vsock is a lightweight and widely used data exchange mechanism between host > and guest. Currently, the virtio-vsock only supports one device, resulting > in the inability to enable more than one backend. I wonder which part of the spec forbids more than one device. > For instance, two devices > are required: one to transfer data to the VMM via virtio-vsock, and another > to a user process via vhost-user-vsock. > > Apart from that, a side gain is that theoretically the performance might be > improved since each device has its own queue. But it varies depending on > the implementation. It could implement multiqueue anyhow. Thanks