Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1455020
| From | "Michael S. Tsirkin" <mst@redhat.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: Hang in 9p/virtio |
| Date | 2016-08-02 19:00 +0200 |
| Message-ID | <s1LcW-77c-3@gated-at.bofh.it> (permalink) |
| References | <s0KiR-7YU-5@gated-at.bofh.it> <s1E1I-2tq-19@gated-at.bofh.it> <s1E1I-2tq-17@gated-at.bofh.it> <s1JkL-5Nl-53@gated-at.bofh.it> <s1KTw-6WK-45@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
On Tue, Aug 02, 2016 at 06:35:02PM +0200, Cornelia Huck wrote: > On Tue, 2 Aug 2016 15:35:34 +0200 > Vegard Nossum <vegard.nossum@oracle.com> wrote: > > > On 08/02/2016 11:13 AM, Vegard Nossum wrote: > > > On 08/02/2016 11:03 AM, Cornelia Huck wrote: > > >> On Sat, 30 Jul 2016 23:42:18 +0200 > > >> Vegard Nossum <vegard.nossum@oracle.com> wrote: > > >> > > >>> Hi, > > >>> > > >>> With fault injection triggering an allocation failure for the > > >>> alloc_indirect() call in virtqueue_add() I'm seeing a hang in > > >>> p9_virtio_zc_request() -- it seems to be waiting here indefinitely > > >>> (i.e. at least 120 seconds): > > >>> > > > [...] > > > > > >> What happens is that the code falls back to direct virtio addressing > > >> (after indirect addressing failed) - and this should work. > > >> > > >> I'm more inclined to suspect a qemu instead of a kernel bug, as your > > >> qemu version is quite old and there have been fixes in the virtio > > >> buffer handling and virtio-9p in the meantime. (I'm suspecting > > >> "virtio-9p: fix any_layout".) > > >> > > >> Could you retry with a more recent qemu (at least version 2.4)? > > > > > > I think maybe the version number in the stack trace is a bit misleading, > > > this is the full/actual version: > > > > > > $ kvm --version > > > QEMU emulator version 2.5.0 (Debian 1:2.5+dfsg-5ubuntu10.1), Copyright > > > (c) 2003-2008 Fabrice Bellard > > > > > > I'll still try to get qemu from git and see if it makes a difference. > > > Thanks, > > > > I still seem to get it: > > > > $ qemu-system-x86_64 --version > > QEMU emulator version 2.6.91 (v2.7.0-rc1-2-gcc0100f-dirty), Copyright > > (c) 2003-2008 Fabrice Bellard > > :( > > Sorry, no good immediate idea. > > One thing would be to check whether you get notified by qemu after the > request was queued (i.e., whether vring_interrupt() ever gets called > with 9p's req_done() after the alloc failure was injected). This would > help to suggest whether to continue debugging here or in qemu. > > I still think the root of this error is some failure of the virtio 9p > code to deal with non-indirect buffers, either in the driver or in qemu. It might be interesting to just disable indirect buffers on qemu command line by specifying indirect_desc=off. This way you avoid using error paths. -- MST
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
Hang in 9p/virtio Vegard Nossum <vegard.nossum@oracle.com> - 2016-07-30 23:50 +0200
Re: Hang in 9p/virtio Vegard Nossum <vegard.nossum@oracle.com> - 2016-08-02 11:20 +0200
Re: Hang in 9p/virtio Vegard Nossum <vegard.nossum@oracle.com> - 2016-08-02 17:00 +0200
Re: Hang in 9p/virtio Cornelia Huck <cornelia.huck@de.ibm.com> - 2016-08-02 18:40 +0200
Re: Hang in 9p/virtio "Michael S. Tsirkin" <mst@redhat.com> - 2016-08-02 19:00 +0200
Re: Hang in 9p/virtio Cornelia Huck <cornelia.huck@de.ibm.com> - 2016-08-02 11:20 +0200
csiph-web