qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@redhat.com>
To: "Andreas Färber" <afaerber@suse.de>
Cc: kwolf@redhat.com, gson@gson.org, 1089996@bugs.launchpad.net,
	Stefan Hajnoczi <stefanha@gmail.com>,
	mtosatti@redhat.com, qemu-devel@nongnu.org, armbru@redhat.com,
	Julien Grall <julien.grall@citrix.com>,
	hpoussin@reactos.org
Subject: Re: [Qemu-devel] [Bug 108996 V2] hw/dma.c: Fix converting of ioport_register* to MemoryRegion
Date: Fri, 11 Jan 2013 08:38:47 +0100	[thread overview]
Message-ID: <20130111073847.GA21982@stefanha-thinkpad> (raw)
In-Reply-To: <50EEF3A9.4050909@suse.de>

On Thu, Jan 10, 2013 at 06:00:25PM +0100, Andreas Färber wrote:
> Am 10.01.2013 17:02, schrieb Stefan Hajnoczi:
> > On Wed, Dec 19, 2012 at 12:09:21PM +0000, Julien Grall wrote:
> >> The commit 582299336879504353e60c7937fbc70fea93f3da introduced a 1-shift for
> >> some offset in dma emulation.
> >>
> >> Before the previous commit, which converted ioport_register_* to MemoryRegion,
> >> the DMA controller registered 8 ioports with the following formula:
> >> base + ((8 + i) << d->shift) where 0 <= i < 8
> >> When an IO occured within a Memory Region, DMA callback receives an offset
> >> relative to the started address. Here the started address is:
> >> base + (8 << d->shift).
> >> The offset should be: (i << d->shift). After the shift is reverted, the offset
> >> are 0..7 not 1..8.
> >>
> >> Cc: 1089996@bugs.launchpad.net
> >> Reviewed-by: Andreas Färber <afaerber@suse.de>
> >> Reported-by: Andreas Gustafsson <gson@gson.org>
> >> Signed-off-by: Julien Grall <julien.grall@citrix.com>
> >> ---
> >>
> >>  Modification between V1 and V2:
> >>    * Modify the commit message to explain the problem.
> >>
> >>  hw/dma.c |   22 +++++++++++-----------
> >>  1 file changed, 11 insertions(+), 11 deletions(-)
> > 
> > This patch resolves "dma: unknown iport 0" warnings for my Windows 8 guest.
> > 
> > Tested-by: Stefan Hajnoczi <stefanha@redhat.com>
> 
> If you don't want to queue it for the trivial tree, I'll queue it
> together with Hervé's conversions.

Thanks, please queue it in your tree.

Stefan

  reply	other threads:[~2013-01-11  8:31 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-19 12:09 [Qemu-devel] [Bug 108996 V2] hw/dma.c: Fix converting of ioport_register* to MemoryRegion Julien Grall
2013-01-09 23:59 ` Julien Grall
2013-01-10 16:02 ` Stefan Hajnoczi
2013-01-10 17:00   ` Andreas Färber
2013-01-11  7:38     ` Stefan Hajnoczi [this message]
2013-01-11  8:32     ` Stefan Hajnoczi

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=20130111073847.GA21982@stefanha-thinkpad \
    --to=stefanha@redhat.com \
    --cc=1089996@bugs.launchpad.net \
    --cc=afaerber@suse.de \
    --cc=armbru@redhat.com \
    --cc=gson@gson.org \
    --cc=hpoussin@reactos.org \
    --cc=julien.grall@citrix.com \
    --cc=kwolf@redhat.com \
    --cc=mtosatti@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.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).