From: Avi Kivity <avi@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [PATCH] memory: synchronize dirty bitmap before unmapping a range
Date: Mon, 01 Aug 2011 13:27:41 +0300 [thread overview]
Message-ID: <4E367F9D.1080304@redhat.com> (raw)
In-Reply-To: <4E367E2B.6060107@siemens.com>
On 08/01/2011 01:21 PM, Jan Kiszka wrote:
> >
> > Note that drop/add is always paired (i.e. the guest never sees an
> > unmapped area), and we always map the full 64k even though cirrus code
> > manages each 32k bank individually. It looks optimal... we're probably
> > not testing the same thing (either qemu or guest code).
>
> This is what my instrumentation revealed:
>
> map_linear_vram_bank 0
> map 0 (actually perform the mapping)
> map_linear_vram_bank 1
> map 1
> 4 a0000 0 7fe863a62000 1 (KVM_SET_USER_MEMORY_REGION)
> 4 a0000 10000 7fe863a72000 1
> run (enter guest)
> map_linear_vram_bank 0
> map 0
> map_linear_vram_bank 1
> map 1
> 4 a0000 0 7fe863a72000 1
> 4 a0000 10000 7fe863a62000 1
> run
> map_linear_vram_bank 0
> map 0
> map_linear_vram_bank 1
> map 1
> 4 a0000 0 7fe863a62000 1
> run
> map_linear_vram_bank 0
> map 0
> map_linear_vram_bank 1
> map 1
> run
>
> So we suddenly get out of sync and enter the guest with an unmapped vram
> segment. I takes a long time (in number of map changes) until the region
> becomes mapped again.
I'll try to reproduce. Yes, it looks like a bug in the core, perhaps in
the symmetric-difference code.
--
error compiling committee.c: too many arguments to function
WARNING: multiple messages have this Message-ID (diff)
From: Avi Kivity <avi@redhat.com>
To: Jan Kiszka <jan.kiszka@siemens.com>
Cc: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>
Subject: Re: [Qemu-devel] [PATCH] memory: synchronize dirty bitmap before unmapping a range
Date: Mon, 01 Aug 2011 13:27:41 +0300 [thread overview]
Message-ID: <4E367F9D.1080304@redhat.com> (raw)
In-Reply-To: <4E367E2B.6060107@siemens.com>
On 08/01/2011 01:21 PM, Jan Kiszka wrote:
> >
> > Note that drop/add is always paired (i.e. the guest never sees an
> > unmapped area), and we always map the full 64k even though cirrus code
> > manages each 32k bank individually. It looks optimal... we're probably
> > not testing the same thing (either qemu or guest code).
>
> This is what my instrumentation revealed:
>
> map_linear_vram_bank 0
> map 0 (actually perform the mapping)
> map_linear_vram_bank 1
> map 1
> 4 a0000 0 7fe863a62000 1 (KVM_SET_USER_MEMORY_REGION)
> 4 a0000 10000 7fe863a72000 1
> run (enter guest)
> map_linear_vram_bank 0
> map 0
> map_linear_vram_bank 1
> map 1
> 4 a0000 0 7fe863a72000 1
> 4 a0000 10000 7fe863a62000 1
> run
> map_linear_vram_bank 0
> map 0
> map_linear_vram_bank 1
> map 1
> 4 a0000 0 7fe863a62000 1
> run
> map_linear_vram_bank 0
> map 0
> map_linear_vram_bank 1
> map 1
> run
>
> So we suddenly get out of sync and enter the guest with an unmapped vram
> segment. I takes a long time (in number of map changes) until the region
> becomes mapped again.
I'll try to reproduce. Yes, it looks like a bug in the core, perhaps in
the symmetric-difference code.
--
error compiling committee.c: too many arguments to function
next prev parent reply other threads:[~2011-08-01 10:27 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 [this message]
2011-08-01 10:27 ` Avi Kivity
2011-08-05 16:47 ` Anthony Liguori
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=4E367F9D.1080304@redhat.com \
--to=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.