On Mon 31-07-17 15:41:49, Wei Wang wrote:
On 07/31/2017 02:55 PM, Michal Hocko wrote:Thanks. Are all hypervisors which are using this API doing this?
On Mon 31-07-17 12:13:33, Wei Wang wrote:Sure. It's done in the hypervisor when the balloon pages are received.
Ballooned pages will be marked as MADV_DONTNEED by the hypervisor andCould you point me where this MADV_DONTNEED is done, please?
shouldn't be given to the host ksmd to scan.
Please see line 40 at
https://github.com/qemu/qemu/blob/master/hw/virtio/virtio-balloon.c