[PATCH 06/10] qemu: Wire up MEMORY_DEVICE_SIZE_CHANGE event

2021-01-22 Thread Michal Privoznik
As advertised in previous commit, this event is delivered to us when virtio-mem module changes the allocation inside the guest. It comes with one attribute - size - which holds the new size of the virtio-mem (well, allocated size), in bytes. Mind you, this is not necessarily the same number as 'req

Re: [PATCH 06/10] qemu: Wire up MEMORY_DEVICE_SIZE_CHANGE event

2021-02-02 Thread Peter Krempa
On Fri, Jan 22, 2021 at 13:50:28 +0100, Michal Privoznik wrote: > As advertised in previous commit, this event is delivered to us > when virtio-mem module changes the allocation inside the guest. > It comes with one attribute - size - which holds the new size of > the virtio-mem (well, allocated si

Re: [PATCH 06/10] qemu: Wire up MEMORY_DEVICE_SIZE_CHANGE event

2021-02-02 Thread David Hildenbrand
[...] A side note, do we get this event e.g. on VM reset? If no we need to wire up the reset of 'actual' size in such case as it would wrongly suggest that the VM is using it and it may not even get to loading the driver. QEMU fires the event whenever the value changes - including during sy