[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [vhost-user BUG ?] QEMU process segfault when shutdown
From: |
Marc-André Lureau |
Subject: |
Re: [Qemu-devel] [vhost-user BUG ?] QEMU process segfault when shutdown or reboot with vhost-user |
Date: |
Tue, 3 Nov 2015 15:54:03 +0100 |
Hi
On Tue, Nov 3, 2015 at 2:01 PM, zhanghailiang
<address@hidden> wrote:
> The corresponding codes where gdb reports error are: (We have added some
> codes in net.c)
Can you reproduce with unmodified qemu? Could you give instructions to do so?
> ssize_t qemu_deliver_packet(NetClientState *sender,
> unsigned flags,
> const uint8_t *data,
> size_t size,
> void *opaque)
> {
> NetClientState *nc = opaque;
> ssize_t ret;
>
> if (nc->link_down) {
> return size;
> }
>
> if (nc->receive_disabled) {
> return 0;
> }
>
> if (flags & QEMU_NET_PACKET_FLAG_RAW && nc->info->receive_raw) {
> ret = nc->info->receive_raw(nc, data, size);
> } else {
> ret = nc->info->receive(nc, data, size); ----> Here is 510 line
> }
>
> I'm not quite familiar with vhost-user, but for vhost-user, these two
> callback functions seem to be always NULL,
> Why we can come here ?
You should not come here, vhost-user has nc->receive_disabled (it
changes in 2.5)
--
Marc-André Lureau