Re: [PATCH] virtio_balloon: Add option mprotect to handle guest kernel cheat issue

2020-03-12 Thread David Hildenbrand
On 12.03.20 13:40, Igor Mammedov wrote: > On Thu, 12 Mar 2020 18:56:12 +0800 > Hui Zhu wrote: > >> QEMU virtio_balloon decreases the memory usage of VM depends on the >> cooperation of the guest kernel. If the guest kernel cheats with >> the virtio_balloon, it can break the limit. > > I think D

Re: [PATCH] virtio_balloon: Add option mprotect to handle guest kernel cheat issue

2020-03-12 Thread Igor Mammedov
On Thu, 12 Mar 2020 18:56:12 +0800 Hui Zhu wrote: > QEMU virtio_balloon decreases the memory usage of VM depends on the > cooperation of the guest kernel. If the guest kernel cheats with > the virtio_balloon, it can break the limit. I think David (CCed) works on better approach called virtio-me

Re: [PATCH] virtio_balloon: Add option mprotect to handle guest kernel cheat issue

2020-03-12 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1584010572-10308-1-git-send-email-teawa...@gmail.com/ Hi, This series seems to have some coding style problems. See output below for more information: Subject: [PATCH] virtio_balloon: Add option mprotect to handle guest kernel cheat issue Message-id

Re: [PATCH] virtio_balloon: Add option mprotect to handle guest kernel cheat issue

2020-03-12 Thread no-reply
Patchew URL: https://patchew.org/QEMU/1584010572-10308-1-git-send-email-teawa...@gmail.com/ Hi, This series failed the asan build test. Please find the testing commands and their output below. If you have Docker installed, you can probably reproduce it locally. === TEST SCRIPT BEGIN === #!/bi

[PATCH] virtio_balloon: Add option mprotect to handle guest kernel cheat issue

2020-03-12 Thread Hui Zhu
QEMU virtio_balloon decreases the memory usage of VM depends on the cooperation of the guest kernel. If the guest kernel cheats with the virtio_balloon, it can break the limit. [1] is a Linux kernel with a cheat code. This is an example in a VM with 1G memory 1CPU that use this kernel: // Start V