qubes-linux-utils/debian
Marek Marczykowski-Górecki 456fe99fa6
Disable scrubbing memory pages during initial balloon down
Balloon driver scrub memory page before giving it back to the
hypervisor. Normally this is a good thing, to avoid leaking VM's memory
data into Xen and other domains. But during initial startup when maxmem
is bigger than initial memory, on HVM and PVH, Populate-on-Demand (PoD) is in use.
This means every page on initial balloon down needs to be first mapped
by Xen into VM's memory (as it wasn't populated before - and in fact
didn't have any data), scrubbed by the kernel and then given back to
Xen. This is great waste of time. Such operation with default settings
(initial memory 400M, maxmem 4000M) can take few seconds, delaying every
VM startup (including DispVM). In extreme situation, when running inside
nested virtualization, the effect is much worse.

Avoid this problem by disabling memory scrubbing during initial boot,
and re-enable it as soon as user space kicks in - in initramfs, before
mounting root filesystem, to be sure it's enabled before memory contains
any kind of secrets.

This commit handle only one case - when kernel in managed by the VM
itself. It is critical to enable initramfs module whenever
xen_scrub_pages=0 kernel option is given, so make them depend on the
same condition and ship them in the same package.

Fixes QubesOS/qubes-issues#1963
2019-02-06 20:20:08 +01:00
..
source Initial native debian packaging 2014-07-23 04:32:46 +02:00
changelog version 4.0.22 2018-10-29 01:04:00 +01:00
compat Initial native debian packaging 2014-07-23 04:32:46 +02:00
control qubes-kernel-vm-support compatibility with dracut 2017-12-01 00:00:28 +01:00
copyright Initial native debian packaging 2014-07-23 04:32:46 +02:00
docs Initial native debian packaging 2014-07-23 04:32:46 +02:00
libqrexec-utils2.install debian: split libraries out of qubes-utils package 2015-11-26 22:24:39 +01:00
libqrexec-utils2.shlibs debian: adjust required version after adding new function 2018-02-20 00:01:46 +01:00
libqrexec-utils-dev.install debian: split libraries out of qubes-utils package 2015-11-26 22:24:39 +01:00
libqubes-rpc-filecopy2.install debian: split libraries out of qubes-utils package 2015-11-26 22:24:39 +01:00
libqubes-rpc-filecopy2.shlibs debian: split libraries out of qubes-utils package 2015-11-26 22:24:39 +01:00
libqubes-rpc-filecopy-dev.install debian: split libraries out of qubes-utils package 2015-11-26 22:24:39 +01:00
qubes-kernel-vm-support.dkms debian: introduce qubes-kernel-vm-support package 2015-11-11 05:10:59 +01:00
qubes-kernel-vm-support.install Disable scrubbing memory pages during initial balloon down 2019-02-06 20:20:08 +01:00
qubes-kernel-vm-support.postinst Disable scrubbing memory pages during initial balloon down 2019-02-06 20:20:08 +01:00
qubes-utils.install debian: adjust file list 2017-04-08 13:58:33 +02:00
qubes-utils.maintscript debian: remove obsolete conffiles in /etc/udev/rules.d 2015-12-10 04:47:39 +01:00
rules debian: include drauct module in qubes-kernel-vm-support 2017-12-01 00:11:28 +01:00