qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: Jason Wang <jasowang@redhat.com>
Cc: "Kevin Wolf" <kwolf@redhat.com>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"Fam Zheng" <famz@redhat.com>,
	"Michael S. Tsirkin" <mst@redhat.com>,
	qemu-devel <qemu-devel@nongnu.org>,
	"Marc Marí" <marc.mari.barcelo@gmail.com>,
	"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 11:43:59 +0000	[thread overview]
Message-ID: <CAJSP0QXHnGE7xccsAAPnzNroYkELHr-ppC1UP3OoFtwEj8gf7Q@mail.gmail.com> (raw)
In-Reply-To: <1417158306.3268.3@smtp.corp.redhat.com>

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

  reply	other threads:[~2014-11-28 11:44 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 [this message]
2014-11-28 14:05           ` Marc Marí
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=CAJSP0QXHnGE7xccsAAPnzNroYkELHr-ppC1UP3OoFtwEj8gf7Q@mail.gmail.com \
    --to=stefanha@gmail.com \
    --cc=famz@redhat.com \
    --cc=jasowang@redhat.com \
    --cc=kwolf@redhat.com \
    --cc=marc.mari.barcelo@gmail.com \
    --cc=mst@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --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).