From: "Michael S. Tsirkin" <mst@redhat.com>
To: qemu-devel@nongnu.org
Subject: [Qemu-devel] [PATCH 3/5] vhost: skip memory which needs dirty logging
Date: Thu, 7 Apr 2011 13:54:22 +0300 [thread overview]
Message-ID: <f5a4e64f8e12d088a11b9a2743875cc88671e13a.1302173640.git.mst@redhat.com> (raw)
In-Reply-To: <cover.1302173640.git.mst@redhat.com>
vhost doesn't support write logging
(except for migration), anyway.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
---
hw/vhost.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/hw/vhost.c b/hw/vhost.c
index dc3d0e2..257e3dd 100644
--- a/hw/vhost.c
+++ b/hw/vhost.c
@@ -311,6 +311,10 @@ static void vhost_client_set_memory(CPUPhysMemoryClient *client,
int r;
dev->mem = qemu_realloc(dev->mem, s);
+ if (log_dirty) {
+ flags = IO_MEM_UNASSIGNED;
+ }
+
assert(size);
vhost_dev_unassign_memory(dev, start_addr, size);
--
1.7.3.2.91.g446ac
next prev parent reply other threads:[~2011-04-07 10:54 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-07 10:54 [Qemu-devel] [PATCH 0/5] kvm/vhost: enable durty logging during memory registration Michael S. Tsirkin
2011-04-07 10:54 ` [Qemu-devel] [PATCH 1/5] cpu: add set_memory flag to request dirty logging Michael S. Tsirkin
2011-04-07 10:54 ` [Qemu-devel] [PATCH 2/5] kvm: halve number of set memory calls for vga Michael S. Tsirkin
2011-04-07 10:54 ` Michael S. Tsirkin [this message]
2011-04-07 10:54 ` [Qemu-devel] [PATCH 4/5] vhost: optimize out no-change assignment Michael S. Tsirkin
2011-04-07 10:54 ` [Qemu-devel] [PATCH 5/5] cirrus_vga: flag on-device ram for dirty logging Michael S. Tsirkin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=f5a4e64f8e12d088a11b9a2743875cc88671e13a.1302173640.git.mst@redhat.com \
--to=mst@redhat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).