From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org, Jan Kiszka <jan.kiszka@siemens.com>,
kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] memory: synchronize dirty bitmap before unmapping a range
Date: Fri, 05 Aug 2011 11:47:30 -0500 [thread overview]
Message-ID: <4E3C1EA2.5000709@codemonkey.ws> (raw)
In-Reply-To: <1312141678-5141-1-git-send-email-avi@redhat.com>
On 07/31/2011 02:47 PM, Avi Kivity wrote:
> When a range is being unmapped, ask accelerators (e.g. kvm) to synchronize the
> dirty bitmap to avoid losing information forever.
>
> Fixes grub2 screen update.
>
> Signed-off-by: Avi Kivity<avi@redhat.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
>
> Please apply before the PCI batch to avoid bisectability issues (and don't
> pull, since that removes ordering).
>
> memory.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/memory.c b/memory.c
> index 5c6e63d..5f20320 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -245,6 +245,10 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr)
>
> static void as_memory_range_del(AddressSpace *as, FlatRange *fr)
> {
> + if (fr->dirty_log_mask) {
> + cpu_physical_sync_dirty_bitmap(fr->addr.start,
> + fr->addr.start + fr->addr.size);
> + }
> cpu_register_physical_memory(fr->addr.start, fr->addr.size,
> IO_MEM_UNASSIGNED);
> }
WARNING: multiple messages have this Message-ID (diff)
From: Anthony Liguori <anthony@codemonkey.ws>
To: Avi Kivity <avi@redhat.com>
Cc: Jan Kiszka <jan.kiszka@siemens.com>,
qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: Re: [Qemu-devel] [PATCH] memory: synchronize dirty bitmap before unmapping a range
Date: Fri, 05 Aug 2011 11:47:30 -0500 [thread overview]
Message-ID: <4E3C1EA2.5000709@codemonkey.ws> (raw)
In-Reply-To: <1312141678-5141-1-git-send-email-avi@redhat.com>
On 07/31/2011 02:47 PM, Avi Kivity wrote:
> When a range is being unmapped, ask accelerators (e.g. kvm) to synchronize the
> dirty bitmap to avoid losing information forever.
>
> Fixes grub2 screen update.
>
> Signed-off-by: Avi Kivity<avi@redhat.com>
Applied. Thanks.
Regards,
Anthony Liguori
> ---
>
> Please apply before the PCI batch to avoid bisectability issues (and don't
> pull, since that removes ordering).
>
> memory.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/memory.c b/memory.c
> index 5c6e63d..5f20320 100644
> --- a/memory.c
> +++ b/memory.c
> @@ -245,6 +245,10 @@ static void as_memory_range_add(AddressSpace *as, FlatRange *fr)
>
> static void as_memory_range_del(AddressSpace *as, FlatRange *fr)
> {
> + if (fr->dirty_log_mask) {
> + cpu_physical_sync_dirty_bitmap(fr->addr.start,
> + fr->addr.start + fr->addr.size);
> + }
> cpu_register_physical_memory(fr->addr.start, fr->addr.size,
> IO_MEM_UNASSIGNED);
> }
next prev parent reply other threads:[~2011-08-05 16:47 UTC|newest]
Thread overview: 22+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-07-31 19:47 [PATCH] memory: synchronize dirty bitmap before unmapping a range Avi Kivity
2011-07-31 19:47 ` [Qemu-devel] " Avi Kivity
2011-08-01 7:34 ` Jan Kiszka
2011-08-01 7:34 ` [Qemu-devel] " Jan Kiszka
2011-08-01 7:52 ` Jan Kiszka
2011-08-01 7:52 ` [Qemu-devel] " Jan Kiszka
2011-08-01 8:16 ` Avi Kivity
2011-08-01 8:16 ` [Qemu-devel] " Avi Kivity
2011-08-01 9:05 ` Jan Kiszka
2011-08-01 9:05 ` [Qemu-devel] " Jan Kiszka
2011-08-01 9:30 ` Avi Kivity
2011-08-01 9:30 ` [Qemu-devel] " Avi Kivity
2011-08-01 9:32 ` Avi Kivity
2011-08-01 9:32 ` [Qemu-devel] " Avi Kivity
2011-08-01 9:45 ` Avi Kivity
2011-08-01 9:45 ` [Qemu-devel] " Avi Kivity
2011-08-01 10:21 ` Jan Kiszka
2011-08-01 10:21 ` [Qemu-devel] " Jan Kiszka
2011-08-01 10:27 ` Avi Kivity
2011-08-01 10:27 ` [Qemu-devel] " Avi Kivity
2011-08-05 16:47 ` Anthony Liguori [this message]
2011-08-05 16:47 ` Anthony Liguori
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=4E3C1EA2.5000709@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=avi@redhat.com \
--cc=jan.kiszka@siemens.com \
--cc=kvm@vger.kernel.org \
--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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.