On Sun, Jul 30, 2017 at 07:18:33PM +0300, Michael S. Tsirkin wrote:
On Sun, Jul 30, 2017 at 05:59:17AM +0000, Wang, Wei W wrote:Besides, ignoring the free page tricks, consider regular ballooning.
That's a hypervisor implementation detail. From guest point of view,
discarding contents can not be distinguished from writing old contents.
We map page with DONTNEED then back with WILLNEED. Result is
getting a zero page. So at least one of deflate/inflate should be input.
I'd say both for symmetry.