From: "Andreas Färber" <afaerber@suse.de>
To: Avi Kivity <avi@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] Fix wrong region_offset when overlaying a page with another
Date: Mon, 02 Jan 2012 18:49:24 +0100 [thread overview]
Message-ID: <4F01EE24.3050606@suse.de> (raw)
In-Reply-To: <1325438591-7355-1-git-send-email-avi@redhat.com>
Am 01.01.2012 18:23, schrieb Avi Kivity:
> cpu_register_physical_memory_log() does not update region_offset
> if a page was previously registered for the same address. This
> could cause mmio accesses going to the wrong place, by using the
> old region_offset.
>
> Signed-off-by: Avi Kivity <avi@redhat.com>
Line numbers don't match master ;) but applies cleanly and looks good.
Acked-by: Andreas Färber <afaerber@suse.de>
Andreas
> exec.c | 1 +
> 1 files changed, 1 insertions(+), 0 deletions(-)
>
> diff --git a/exec.c b/exec.c
> index 8a3f621..c366835 100644
> --- a/exec.c
> +++ b/exec.c
> @@ -2542,6 +2542,7 @@ void cpu_register_physical_memory_log(target_phys_addr_t start_addr,
> p->region_offset = 0;
> } else {
> p->phys_offset = phys_offset;
> + p->region_offset = region_offset;
> if ((phys_offset & ~TARGET_PAGE_MASK) <= IO_MEM_ROM ||
> (phys_offset & IO_MEM_ROMD))
> phys_offset += TARGET_PAGE_SIZE;
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2012-01-02 17:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-01-01 17:23 [Qemu-devel] [PATCH] Fix wrong region_offset when overlaying a page with another Avi Kivity
2012-01-02 17:49 ` Andreas Färber [this message]
2012-01-03 10:04 ` Avi Kivity
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=4F01EE24.3050606@suse.de \
--to=afaerber@suse.de \
--cc=avi@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).