From: Gerd Hoffmann <kraxel@redhat.com>
To: Alon Levy <alevy@redhat.com>
Cc: yhalperi@redhat.com, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 1/2] qxl: create slots on post_load in any state
Date: Wed, 19 Oct 2011 10:28:57 +0200 [thread overview]
Message-ID: <4E9E8A49.9010508@redhat.com> (raw)
In-Reply-To: <1318951567-12418-1-git-send-email-alevy@redhat.com>
On 10/18/11 17:26, Alon Levy wrote:
> If we migrate when the device is not in a native state the guest
> still believes the slots are created, and will cause operations
> that reference the slots, causing a "panic: virtual address out of range"
> on the first of them. Easy to see by migrating in vga mode (with
> a driver loaded, for instance windows cmd window in full screen mode)
> and then exiting vga mode back to native mode will cause said panic.
>
> Fixed by doing the slot recreation unconditionally at post_load, and
> using the delta value. Next patch makes sure we actually migrate that
> delta.
I don't think we have to save the delta value. The delta is used only
in compat mode. In compat mode the guest doesn't create memory slots,
instead qxl does that (in qxl_set_mode).
I think you can just skip the slot re-creation in compat mode and let
qxl_set_mode (which is called later in post_load) handle it.
cheers,
Gerd
next prev parent reply other threads:[~2011-10-19 8:44 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-10-18 15:26 [Qemu-devel] [PATCH 1/2] qxl: create slots on post_load in any state Alon Levy
2011-10-18 15:26 ` [Qemu-devel] [PATCH 2/2] qxl: migrate delta in memslot Alon Levy
2011-10-19 8:28 ` Gerd Hoffmann [this message]
2011-10-19 9:55 ` [Qemu-devel] [PATCH 1/2] qxl: create slots on post_load in any state Alon Levy
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=4E9E8A49.9010508@redhat.com \
--to=kraxel@redhat.com \
--cc=alevy@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=yhalperi@redhat.com \
/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).