On 24.07.26 00:30, Connor Kite wrote:
Add a memory_isolation bool to the VhostUserState struct. This
bool is set within vhost_user_init(), which takes a
memory_isolation bool as an argument.
Refactor all call locations of vhost_user_init to include the new
argument.
Signed-off-by: Connor Kite <[email protected]>
---
backends/cryptodev-vhost-user.c | 2 +-
backends/vhost-user.c | 4 ++--
hw/block/vhost-user-blk.c | 3 ++-
hw/display/vhost-user-gpu.c | 3 ++-
hw/scsi/vhost-user-scsi.c | 3 ++-
hw/virtio/vhost-stub.c | 3 ++-
hw/virtio/vhost-user-base.c | 3 ++-
hw/virtio/vhost-user-fs.c | 3 ++-
hw/virtio/vhost-user-scmi.c | 3 ++-
hw/virtio/vhost-user-vsock.c | 3 ++-
hw/virtio/vhost-user.c | 5 ++++-
include/hw/virtio/vhost-user.h | 6 +++++-
include/system/vhost-user-backend.h | 3 ++-
net/passt.c | 13 ++++++++-----
net/vhost-user.c | 9 +++++----
15 files changed, 43 insertions(+), 23 deletions(-)
[...]
diff --git a/net/passt.c b/net/passt.c
index ce80186883..a3021f37ef 100644
--- a/net/passt.c
+++ b/net/passt.c
[...]
@@ -735,14 +738,14 @@ int net_init_passt(const Netdev *netdev, const char *name,
s->pidfile = pidfile;
if (netdev->u.passt.has_vhost_user && netdev->u.passt.vhost_user) {
- bool memory_isolation G_GNUC_UNUSED = false;
+ bool memory_isolation = false;
if (netdev->u.passt.has_memory_isolation &&
- netdev->u.passt.memory_isolation) {
+ netdev->u.passt.memory_isolation) {
memory_isolation = true;
}
I think this part of the hunk should be squashed into HEAD^.
Hanna
- if (net_passt_vhost_user_init(s, errp) == -1) {
+ if (net_passt_vhost_user_init(s, memory_isolation, errp) == -1) {
qemu_del_net_client(nc);
return -1;
}