2013-03-20 05:27:32 +00:00
|
|
|
ifeq ($(shell uname -m),x86_64)
|
2015-07-08 09:08:47 +00:00
|
|
|
LIBDIR ?= /usr/lib64
|
2013-03-20 05:27:32 +00:00
|
|
|
else
|
2015-07-08 09:08:47 +00:00
|
|
|
LIBDIR ?= /usr/lib
|
2013-03-20 05:27:32 +00:00
|
|
|
endif
|
2016-01-06 03:21:19 +00:00
|
|
|
SCRIPTSDIR ?= /usr/lib/qubes
|
2015-12-15 14:19:21 +00:00
|
|
|
SYSLIBDIR ?= /lib
|
2015-07-08 09:08:47 +00:00
|
|
|
INCLUDEDIR ?= /usr/include
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2016-01-06 03:21:19 +00:00
|
|
|
export LIBDIR SCRIPTSDIR SYSLIBDIR INCLUDEDIR
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
help:
|
|
|
|
echo "Use rpmbuild to compile this pacakge"
|
|
|
|
exit 0
|
|
|
|
|
|
|
|
|
|
|
|
rpms:
|
|
|
|
rpmbuild --define "_rpmdir rpm/" --define "_builddir ." -bb rpm_spec/qubes-utils.spec
|
2014-07-17 00:27:33 +00:00
|
|
|
all:
|
2013-03-20 05:27:32 +00:00
|
|
|
$(MAKE) -C qrexec-lib all
|
2014-01-05 04:32:57 +00:00
|
|
|
$(MAKE) -C qmemman all
|
2015-09-21 14:00:35 +00:00
|
|
|
$(MAKE) -C imgconverter all
|
2013-03-20 05:27:32 +00:00
|
|
|
|
|
|
|
install:
|
|
|
|
$(MAKE) -C udev install
|
|
|
|
$(MAKE) -C qrexec-lib install
|
2014-01-05 04:32:57 +00:00
|
|
|
$(MAKE) -C qmemman install
|
2015-09-21 14:00:35 +00:00
|
|
|
$(MAKE) -C imgconverter install
|
2013-03-20 05:27:32 +00:00
|
|
|
|
2015-11-09 21:28:15 +00:00
|
|
|
install-fedora-kernel-support:
|
2014-07-17 00:27:33 +00:00
|
|
|
$(MAKE) -C dracut install
|
|
|
|
$(MAKE) -C kernel-modules install
|
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-01-18 22:53:20 +00:00
|
|
|
$(MAKE) -C grub install-fedora
|
2014-07-17 00:27:33 +00:00
|
|
|
|
2015-11-09 21:28:15 +00:00
|
|
|
install-debian-kernel-support:
|
|
|
|
$(MAKE) -C initramfs-tools install
|
2017-11-30 23:11:28 +00:00
|
|
|
$(MAKE) -C dracut install
|
2015-11-09 21:28:15 +00:00
|
|
|
$(MAKE) -C kernel-modules install
|
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-01-18 22:53:20 +00:00
|
|
|
$(MAKE) -C grub install-debian
|
2015-11-09 21:28:15 +00:00
|
|
|
|
2013-03-20 14:31:30 +00:00
|
|
|
clean:
|
|
|
|
$(MAKE) -C qrexec-lib clean
|
2014-04-21 01:10:26 +00:00
|
|
|
$(MAKE) -C qmemman clean
|
2015-09-21 14:00:35 +00:00
|
|
|
$(MAKE) -C imgconverter clean
|