qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] net: Fix qemu crash when hot-pluging a vhost-net failed.


From: Philippe Mathieu-Daudé
Subject: Re: [PATCH] net: Fix qemu crash when hot-pluging a vhost-net failed.
Date: Mon, 5 Dec 2022 08:20:55 +0100
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.5.1

On 5/12/22 07:37, Jason Wang wrote:
On Mon, Dec 5, 2022 at 2:23 PM Yangming <yangming73@huawei.com> wrote:

Dear all:



I found a bug of qemu: hot-pluging a vhost-net may cause virtual machine crash 
in following steps:
1. Starting a vm without any net device.
2. Hot-pluging 70 memory devices.
3. Hot-pluging a vhost-net device.



After the 3rd step, the qemu crashed with following messages:



vhost backend memory slots limit is less than current number of present memory 
slots

warning: vhost-net requested but could not be initialized

qemu-system-x86_64: ../net/net.c:1106: net_client_init1: Assertion `nc' failed.

2022-12-05 03:14:08.794+0000: shutting down, reason=crashed



This commit is used to fix the mentioned problem. It is based on commit 
a33c25399f9bc3dcf83064adeba2a82e61bf4608 of master branch.

Thanks for the patch, would you please send a formal patch (not as an
attachment), you can do it via git-send-email.

You can find some help on how to proceed here:
https://www.qemu.org/docs/master/devel/submitting-a-patch.html




reply via email to

[Prev in Thread] Current Thread [Next in Thread]