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

2022-12-05 Thread Yangming via
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

Reply: [PATCH v2] virtio-balloon: optimize the virtio-balloon on the ARM platform

2023-03-28 Thread Yangming via
> On 09.03.23 07:14, Yangming wrote: > >> On 08.03.23 01:42, Michael S. Tsirkin wrote: > >>> On Wed, Mar 01, 2023 at 06:38:13AM +, Yangming wrote: > Optimize the virtio-balloon feature on the ARM platform by adding a > variable to keep track of the current hot-plugged pc-dimm size, >

Reply: [PATCH v2] virtio-balloon: optimize the virtio-balloon on the ARM platform

2023-03-08 Thread Yangming via
> On 08.03.23 01:42, Michael S. Tsirkin wrote: > > On Wed, Mar 01, 2023 at 06:38:13AM +, Yangming wrote: > >> Optimize the virtio-balloon feature on the ARM platform by adding a > >> variable to keep track of the current hot-plugged pc-dimm size, > >> instead of traversing the virtual machine's

[PATCH v3] virtio-balloon: optimize the virtio-balloon on the ARM platform

2023-03-08 Thread Yangming via
Optimize the virtio-balloon feature on the ARM platform by adding a variable to keep track of the current hot-plugged pc-dimm size, instead of traversing the virtual machine's memory modules to count the current RAM size during the balloon inflation or deflation process. This variable can be update

Optimization for the virtio-balloon feature on the ARM platform

2023-02-19 Thread Yangming via
Dear QEMU maintainers, I am writing to discuss a possible optimization for the virtio-balloon feature on the ARM platform. The 'virtio_balloon_set_config' function is called frequently during the balloon inflation process, and its subfunction 'get_current_ram_size' needs to traverse the virtual

VM crashed while hot-plugging memory

2023-02-10 Thread Yangming via
Hello all: I found VM crashed while hot-plugging memory. Base infomation: qemu version: qemu-master requirements: hugepages, virtio-gpu It happens by the following steps: 1. Booting a VM with hugepages and a virtio-gpu device. 2. Connecting VNC of the VM. 3. After the VM booted, hot-plugging 512

[PATCH] virtio-balloon: optimize the virtio-balloon on the ARM platform.

2023-02-24 Thread Yangming via
Optimize the virtio-balloon feature on the ARM platform by adding a variable to keep track of the current hot-plugged pc-dimm size, instead of traversing the virtual machine's memory modules to count the current RAM size during the balloon inflation or deflation process. This variable can be u

Reply: [PATCH] virtio-balloon: optimize the virtio-balloon on the ARM platform.

2023-02-26 Thread Yangming via
> On Fri, Feb 24, 2023 at 08:23:40AM +, Yangming wrote: > > > > Optimize the virtio-balloon feature on the ARM platform by adding a > variable to keep track of the current hot-plugged pc-dimm size, instead of > traversing the virtual machine's memory modules to count the current RAM > size d

[PATCH] virtio-balloon: optimize the virtio-balloon on the ARM platform.

2023-02-27 Thread Yangming via
> > Optimize the virtio-balloon feature on the ARM platform by adding a > > variable to keep track of the current hot-plugged pc-dimm size, > > instead of traversing the virtual machine's memory modules to count > > the current RAM size during the balloon inflation or deflation > > process. This va

[PATCH v2] virtio-balloon: optimize the virtio-balloon on the ARM platform

2023-02-28 Thread Yangming via
Optimize the virtio-balloon feature on the ARM platform by adding a variable to keep track of the current hot-plugged pc-dimm size, instead of traversing the virtual machine's memory modules to count the current RAM size during the balloon inflation or deflation process. This variable can be update