From c22f60e6e55f1bf300dd76d2222a93911f3b2bb2 Mon Sep 17 00:00:00 2001 From: CoprDistGit Date: Thu, 12 Oct 2023 04:00:49 +0000 Subject: automatic import of xen --- xenstore-run-in-studomain.patch | 59 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 59 insertions(+) create mode 100644 xenstore-run-in-studomain.patch (limited to 'xenstore-run-in-studomain.patch') diff --git a/xenstore-run-in-studomain.patch b/xenstore-run-in-studomain.patch new file mode 100644 index 0000000..5cdb3f2 --- /dev/null +++ b/xenstore-run-in-studomain.patch @@ -0,0 +1,59 @@ +References: fate#323663 - Run Xenstore in stubdomain + +Index: xen-4.10.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in +=================================================================== +--- xen-4.10.0-testing.orig/tools/hotplug/Linux/init.d/sysconfig.xencommons.in ++++ xen-4.10.0-testing/tools/hotplug/Linux/init.d/sysconfig.xencommons.in +@@ -16,7 +16,7 @@ + # + # Changing this requires a reboot to take effect. + # +-#XENSTORETYPE=daemon ++#XENSTORETYPE=domain + + ## Type: string + ## Default: xenstored +@@ -67,7 +67,7 @@ XENSTORED_ARGS= + # + # xenstore domain memory size in MiB. + # Only evaluated if XENSTORETYPE is "domain". +-#XENSTORE_DOMAIN_SIZE=8 ++#XENSTORE_DOMAIN_SIZE=32 + + ## Type: string + ## Default: not set, no autoballooning of xenstore domain +@@ -78,7 +78,7 @@ XENSTORED_ARGS= + # - combination of both in form of : (e.g. 8:1/100), resulting + # value will be the higher of both specifications + # Only evaluated if XENSTORETYPE is "domain". +-#XENSTORE_MAX_DOMAIN_SIZE= ++#XENSTORE_MAX_DOMAIN_SIZE=1/100 + + ## Type: string + ## Default: "" +Index: xen-4.10.0-testing/tools/hotplug/Linux/launch-xenstore.in +=================================================================== +--- xen-4.10.0-testing.orig/tools/hotplug/Linux/launch-xenstore.in ++++ xen-4.10.0-testing/tools/hotplug/Linux/launch-xenstore.in +@@ -48,7 +48,7 @@ test_xenstore && exit 0 + + test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons && . @CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons + +-[ "$XENSTORETYPE" = "" ] && XENSTORETYPE=daemon ++[ "$XENSTORETYPE" = "" ] && XENSTORETYPE=domain + + /bin/mkdir -p @XEN_RUN_DIR@ + +@@ -72,9 +72,10 @@ test -f @CONFIG_DIR@/@CONFIG_LEAF_DIR@/x + [ "$XENSTORETYPE" = "domain" ] && { + [ -z "$XENSTORE_DOMAIN_KERNEL" ] && XENSTORE_DOMAIN_KERNEL=@LIBEXEC@/boot/xenstore-stubdom.gz + XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --kernel $XENSTORE_DOMAIN_KERNEL" +- [ -z "$XENSTORE_DOMAIN_SIZE" ] && XENSTORE_DOMAIN_SIZE=8 ++ [ -z "$XENSTORE_DOMAIN_SIZE" ] && XENSTORE_DOMAIN_SIZE=32 + XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --memory $XENSTORE_DOMAIN_SIZE" +- [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] || XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE" ++ [ -z "$XENSTORE_MAX_DOMAIN_SIZE" ] && XENSTORE_MAX_DOMAIN_SIZE="1/100" ++ XENSTORE_DOMAIN_ARGS="$XENSTORE_DOMAIN_ARGS --maxmem $XENSTORE_MAX_DOMAIN_SIZE" + + echo -n Starting $XENSTORE_DOMAIN_KERNEL... + ${LIBEXEC_BIN}/init-xenstore-domain $XENSTORE_DOMAIN_ARGS || exit 1 -- cgit v1.2.3