From: Anthony PERARD <anthony.perard@citrix.com>
To: Stefano Stabellini <stefano.stabellini@eu.citrix.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>,
qemu-devel@nongnu.org,
Stefano Stabellini <stefano.stabellini@citrix.com>,
qemu-stable@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2] memory: fix limiting of translation at a page boundary
Date: Mon, 17 Feb 2014 16:44:11 +0000 [thread overview]
Message-ID: <20140217164410.GB1698@perard.uk.xensource.com> (raw)
In-Reply-To: <alpine.DEB.2.02.1402071451150.4373@kaball.uk.xensource.com>
On Fri, Feb 07, 2014 at 02:56:48PM +0000, Stefano Stabellini wrote:
> On Fri, 7 Feb 2014, Paolo Bonzini wrote:
> > Commit 360e607 (address_space_translate: do not cross page boundaries,
> > 2014-01-30) broke MMIO accesses in cases where the section is shorter
> > than the full register width. This can happen for example with the
> > Bochs DISPI registers, which are 16 bits wide but have only a 1-byte
> > long MemoryRegion (if you write to the "second byte" of the register
> > your access is discarded; it doesn't write only to half of the register).
> >
> > Restrict the action of commit 360e607 to direct RAM accesses. This
> > is enough for Xen, since MMIO will not go through the mapcache.
> >
> > Reported-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
> > Cc: qemu-stable@nongnu.org
> > Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
>
> The patch looks OK to me.
> Anthony has just left for a week of vacation and he is the only one able
> to reproduce the bug.
> Given that we might want to unbreak qemu ppc as soon as possible, you
> can go ahead with the patch anyway. In the worst case, if it turns out
> that it breaks Xen again, we can fix it with an incremental change later.
>
>
> > v1->v2: also revert the change in the call to
> > address_space_translate_internal. Removed Anthony's
> > Tested-by to be safe.
After a quick test, this patch works fine with Xen.
--
Anthony PERARD
next prev parent reply other threads:[~2014-02-17 16:44 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-07 14:47 [Qemu-devel] [PATCH v2] memory: fix limiting of translation at a page boundary Paolo Bonzini
2014-02-07 14:56 ` Stefano Stabellini
2014-02-17 16:44 ` Anthony PERARD [this message]
2014-02-07 16:26 ` Mark Cave-Ayland
2014-02-10 18:24 ` Peter Maydell
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=20140217164410.GB1698@perard.uk.xensource.com \
--to=anthony.perard@citrix.com \
--cc=mark.cave-ayland@ilande.co.uk \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-stable@nongnu.org \
--cc=stefano.stabellini@citrix.com \
--cc=stefano.stabellini@eu.citrix.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).