qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: "Marc Marí" <marc.mari.barcelo@gmail.com>
To: Stefan Hajnoczi <stefanha@gmail.com>
Cc: Kevin Wolf <kwolf@redhat.com>,
	Peter Maydell <peter.maydell@linaro.org>,
	Fam Zheng <famz@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	Jason Wang <jasowang@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	Stefan Hajnoczi <stefanha@redhat.com>
Subject: Re: [Qemu-devel] [PATCH RFC for-2.2] virtio-blk: force 1st s/g to match header
Date: Fri, 28 Nov 2014 15:05:42 +0100	[thread overview]
Message-ID: <20141128150542.2441a092@crunchbang> (raw)
In-Reply-To: <CAJSP0QXHnGE7xccsAAPnzNroYkELHr-ppC1UP3OoFtwEj8gf7Q@mail.gmail.com>

El Fri, 28 Nov 2014 11:43:59 +0000
Stefan Hajnoczi <stefanha@gmail.com> escribió:
> On Fri, Nov 28, 2014 at 7:05 AM, Jason Wang <jasowang@redhat.com>
> wrote:
> >
> >
> > On Fri, Nov 28, 2014 at 9:16 AM, Fam Zheng <famz@redhat.com> wrote:
> >>
> >> On Thu, 11/27 23:13, Michael S. Tsirkin wrote:
> >>>
> >>>  On Thu, Nov 27, 2014 at 07:21:35PM +0000, Stefan Hajnoczi wrote:
> >>>  > On Thu, Nov 27, 2014 at 4:33 PM, Michael S. Tsirkin
> >>>  > <mst@redhat.com>
> >>> wrote:
> >>>  > > We leak cpu mappings when 1st s/g is not exactly the
> >>>  > > header. As we don't set ANY_LAYOUT, we can at this point
> >>>  > > simply assert the correct length.
> >>>  > >
> >>>  > > This will have to be fixed once ANY_LAYOUT is set.
> >>>  > >
> >>>  > > Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
> >>>  > > ---
> >>>  > >
> >>>  > > Untested: posting for early feedback.
> >>>  >  > Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
> >>>   Stefan, you are going to merge this for 2.2?
> >>>  Peter, if Stefan is merging this one, we can
> >>>  take Jason's patch for -net and that should be
> >>>  enough for 2.2.
> >>
> >>
> >> My test bot saw a failure of "make check":
> >>
> >> qemu-system-x86_64: virtio-blk request outhdr too long
> >> Broken pipe
> >> GTester: last random seed: R02S44c5a09d74c0603f0091ed20d1395121
> >> qemu-system-x86_64: virtio-blk request outhdr too long
> >> Broken pipe
> >> GTester: last random seed: R02Sfdf270c8e1ed75c1f2047e3f0fb89b88
> >> qemu-system-x86_64: virtio-blk request outhdr too long
> >> Broken pipe
> >> GTester: last random seed: R02Sd292c540929b963ed9d7d155f3db5452
> >> qemu-system-x86_64: virtio-blk request outhdr too long
> >> Broken pipe
> >> GTester: last random seed: R02Sfc775a34a844c39f376aa478eda7573f
> >> [vmxnet3][WR][vmxnet3_peer_has_vnet_hdr]: Peer has no virtio
> >> extension. Task offloads will be emulated.
> >> make: *** [check-qtest-x86_64] Error 1
> >>
> >> Fam
> >
> >
> > This probably because of the test itself.
> >
> > But anyway all kinds of guests (especially Windows drivers) need to
> > be tested.
> 
> Right, the test case explicitly tests different descriptor layouts,
> even though virtio-blk-pci does not set the ANY_LAYOUT feature bit.
> 
> Either the test case needs to check ANY_LAYOUT before using the
> 2-descriptor layout or it needs to expect QEMU to refuse (in this case
> exit(1), which is not very graceful).
> 
> The quick fix is to skip the 2-descriptor layout tests and re-enable
> them once virtio-blk actually supports ANY_LAYOUT.  Any objections?
> 
> Stefan

To be compliant with the specs, the test should check for ANY_LAYOUT
feature before testing with 2 descriptor layout. I'll add it with the
other changes pending for the test.

Marc

  reply	other threads:[~2014-11-28 14:06 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-11-27 16:33 [Qemu-devel] [PATCH RFC for-2.2] virtio-blk: force 1st s/g to match header Michael S. Tsirkin
2014-11-27 19:21 ` Stefan Hajnoczi
2014-11-27 21:13   ` Michael S. Tsirkin
2014-11-28  1:16     ` Fam Zheng
2014-11-28  7:05       ` Jason Wang
2014-11-28 11:43         ` Stefan Hajnoczi
2014-11-28 14:05           ` Marc Marí [this message]
2014-11-28 16:14           ` Peter Maydell
2014-11-30 16:43             ` Michael S. Tsirkin
2014-12-01 12:07               ` Peter Maydell
2014-12-01 12:18                 ` Michael S. Tsirkin

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=20141128150542.2441a092@crunchbang \
    --to=marc.mari.barcelo@gmail.com \
    --cc=famz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=stefanha@gmail.com \
    --cc=stefanha@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).