[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] [PATCH v6 07/24] vhost: document log resizing
From: |
marcandre . lureau |
Subject: |
[Qemu-devel] [PATCH v6 07/24] vhost: document log resizing |
Date: |
Tue, 29 Sep 2015 18:34:37 +0200 |
From: Marc-André Lureau <address@hidden>
Signed-off-by: Marc-André Lureau <address@hidden>
---
hw/virtio/vhost.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/hw/virtio/vhost.c b/hw/virtio/vhost.c
index c0ed5b2..67e09fe 100644
--- a/hw/virtio/vhost.c
+++ b/hw/virtio/vhost.c
@@ -334,6 +334,8 @@ static inline void vhost_dev_log_resize(struct vhost_dev*
dev, uint64_t size)
uint64_t log_base = (uintptr_t)log->log;
int r;
+ /* inform backend of log switching, this must be done before
+ releasing the current log, to ensure no logging is lost */
r = dev->vhost_ops->vhost_call(dev, VHOST_SET_LOG_BASE, &log_base);
assert(r >= 0);
vhost_log_put(dev, true);
--
2.4.3
- Re: [Qemu-devel] [PATCH v6 06/24] memfd: add fallback for memfd, (continued)
[Qemu-devel] [PATCH v6 16/24] vhost user: add support of live migration, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 23/24] vhost-user-test: check ownership during migration, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 22/24] vhost-user-test: add live-migration test, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 24/24] vhost-user: use an enum helper for features mask, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 01/24] vhost-user: unit test for new messages, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 04/24] util: add linux-only memfd fallback, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 07/24] vhost: document log resizing,
marcandre . lureau <=
[Qemu-devel] [PATCH v6 12/24] vhost-user: add a migration blocker, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 03/24] linux-headers: add unistd.h, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 17/24] vhost user: add rarp sending after live migration for legacy guest, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 20/24] vhost-user-test: wrap server in TestServer struct, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 02/24] configure: probe for memfd, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 05/24] util: add memfd helpers, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 10/24] vhost: alloc shareable log, marcandre . lureau, 2015/10/08
[Qemu-devel] [PATCH v6 18/24] vhost-user-test: move wait_for_fds() out, marcandre . lureau, 2015/10/08