From: Klaus Birkelund <its@irrelevant.dk>
To: "Philippe Mathieu-Daudé" <philmd@redhat.com>
Cc: QEMU Trivial <qemu-trivial@nongnu.org>,
Paolo Bonzini <pbonzini@redhat.com>,
Peter Maydell <peter.maydell@linaro.org>,
qemu-devel@nongnu.org, "Michael S. Tsirkin" <mst@redhat.com>
Subject: Re: [PATCH 1/1] pci: pass along the return value of dma_memory_rw
Date: Mon, 11 Nov 2019 10:30:07 +0100 [thread overview]
Message-ID: <20191111093007.GA109346@apples.localdomain> (raw)
In-Reply-To: <455e6dee-8dd8-fae7-5a2f-e175b9d1cb8d@redhat.com>
On Thu, Oct 24, 2019 at 01:13:36AM +0200, Philippe Mathieu-Daudé wrote:
> On 10/11/19 9:01 AM, Klaus Jensen wrote:
> > Some might actually care about the return value of dma_memory_rw. So
> > let us pass it along instead of ignoring it.
> >
> > Signed-off-by: Klaus Jensen <k.jensen@samsung.com>
> > ---
> > include/hw/pci/pci.h | 3 +--
> > 1 file changed, 1 insertion(+), 2 deletions(-)
> >
> > diff --git a/include/hw/pci/pci.h b/include/hw/pci/pci.h
> > index f3f0ffd5fb78..4e95bb847857 100644
> > --- a/include/hw/pci/pci.h
> > +++ b/include/hw/pci/pci.h
> > @@ -779,8 +779,7 @@ static inline AddressSpace *pci_get_address_space(PCIDevice *dev)
> > static inline int pci_dma_rw(PCIDevice *dev, dma_addr_t addr,
> > void *buf, dma_addr_t len, DMADirection dir)
> > {
> > - dma_memory_rw(pci_get_address_space(dev), addr, buf, len, dir);
> > - return 0;
> > + return dma_memory_rw(pci_get_address_space(dev), addr, buf, len, dir);
> > }
> > static inline int pci_dma_read(PCIDevice *dev, dma_addr_t addr,
> >
>
> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Gentle ping on this.
This fix is required for the nvme device to start passing some of the
nasty tests from blktests that flips bus mastering while doing I/O.
Cheers,
Klaus
next prev parent reply other threads:[~2019-11-11 9:31 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-10-11 7:01 [PATCH 0/1] pci: pass along the return value of dma_memory_rw Klaus Jensen
2019-10-11 7:01 ` [PATCH 1/1] " Klaus Jensen
2019-10-23 23:13 ` Philippe Mathieu-Daudé
2019-11-11 9:30 ` Klaus Birkelund [this message]
2019-11-11 10:16 ` Michael S. Tsirkin
2019-11-11 10:33 ` Klaus Birkelund
2019-11-11 11:00 ` Michael S. Tsirkin
2019-10-23 19:59 ` [PATCH 0/1] " Klaus Birkelund
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=20191111093007.GA109346@apples.localdomain \
--to=its@irrelevant.dk \
--cc=mst@redhat.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=philmd@redhat.com \
--cc=qemu-devel@nongnu.org \
--cc=qemu-trivial@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).