From 1bb6cf0be1517cb4c22bba3bafc8b9bc4f62b4e6c76738b49e7c3a6292a00103 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Mon, 27 Jan 2014 14:16:35 +0000 Subject: [PATCH 1/8] - Changed License to GPL v2 only (from GPL-2.0+) OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=293 --- xen.changes | 5 +++++ xen.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/xen.changes b/xen.changes index d945c5f..64ac704 100644 --- a/xen.changes +++ b/xen.changes @@ -1,6 +1,11 @@ ------------------------------------------------------------------- Thu Jan 23 16:11:39 MST 2014 - carnold@suse.com +- Changed License to GPL v2 only (from GPL-2.0+) + +------------------------------------------------------------------- +Thu Jan 23 16:11:39 MST 2014 - carnold@suse.com + - Dropped xen-changeset.patch. It is no longer needed. ------------------------------------------------------------------- diff --git a/xen.spec b/xen.spec index b92c3b9..923e1ef 100644 --- a/xen.spec +++ b/xen.spec @@ -15,6 +15,7 @@ # Please submit bugfixes or comments via http://bugs.opensuse.org/ # + Name: xen ExclusiveArch: %ix86 x86_64 %arm aarch64 %define xvers 4.4 @@ -69,10 +70,10 @@ BuildRequires: fdupes BuildRequires: glib2-devel BuildRequires: libaio-devel BuildRequires: libbz2-devel +BuildRequires: libpixman-1-0-devel BuildRequires: libuuid-devel BuildRequires: libxml2-devel BuildRequires: libyajl-devel -BuildRequires: libpixman-1-0-devel BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: python-devel @@ -81,10 +82,10 @@ BuildRequires: transfig BuildRequires: texinfo BuildRequires: texlive %if %suse_version > 1220 -BuildRequires: texlive-latex BuildRequires: texlive-courier BuildRequires: texlive-dvips BuildRequires: texlive-helvetic +BuildRequires: texlive-latex BuildRequires: texlive-psnfss BuildRequires: texlive-times BuildRequires: tex(a4.sty) @@ -137,7 +138,7 @@ Version: 4.4.0_02 Release: 0 PreReq: %insserv_prereq %fillup_prereq Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel) -License: GPL-2.0+ +License: GPL-2.0 Group: System/Kernel Source0: xen-4.4.0-testing-src.tar.bz2 Source1: stubdom.tar.bz2 From 5eed528ac8d4f6a4bbaee0e06ba64fe621c7c628fc09c0d0005e6ab8ec4c44f5 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Tue, 28 Jan 2014 15:44:51 +0000 Subject: [PATCH 2/8] - On platforms where xend is still supported don't output a deprecation warning when using xm. xend-remove-xm-deprecation-warning.patch - Changed License to GPL-2.0 (from GPL-2.0+) xen_pvonhvm.xen_emul_unplug.patch Dropped xen_pvdrivers.conf qemu-xen-upstream-blkif-discard.patch - Restore a few missing xend patches xend-config-enable-dump-comment.patch xend-tools-watchdog-support.patch xend-vif-route-ifup.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=294 --- xen.changes | 16 ++++++++++- xen.spec | 8 ++++-- xend-remove-xm-deprecation-warning.patch | 34 ++++++++++++++++++++++++ 3 files changed, 55 insertions(+), 3 deletions(-) create mode 100644 xend-remove-xm-deprecation-warning.patch diff --git a/xen.changes b/xen.changes index 64ac704..d3774a8 100644 --- a/xen.changes +++ b/xen.changes @@ -1,7 +1,14 @@ +------------------------------------------------------------------- +Thu Jan 27 19:53:39 MST 2014 - carnold@suse.com + +- On platforms where xend is still supported don't output a + deprecation warning when using xm. + xend-remove-xm-deprecation-warning.patch + ------------------------------------------------------------------- Thu Jan 23 16:11:39 MST 2014 - carnold@suse.com -- Changed License to GPL v2 only (from GPL-2.0+) +- Changed License to GPL-2.0 (from GPL-2.0+) ------------------------------------------------------------------- Thu Jan 23 16:11:39 MST 2014 - carnold@suse.com @@ -20,6 +27,8 @@ Sat Jan 18 00:35:46 CET 2014 - ohering@suse.de pv-on-hvm files. Rely on core kernel to skip initialization of emulated hardware Handle xen_emul_unplug= from xenlinux based core kernel-default + xen_pvonhvm.xen_emul_unplug.patch + Dropped xen_pvdrivers.conf ------------------------------------------------------------------- Wed Jan 16 13:11:32 MST 2014 - carnold@suse.com @@ -34,6 +43,7 @@ Wed Jan 15 19:55:32 CET 2014 - ohering@suse.de - fate#316071: add discard support for file backed storage (qdisk) to qemu-upstream, enabled unconditionally + qemu-xen-upstream-blkif-discard.patch ------------------------------------------------------------------- Tue Jan 14 12:13:45 MST 2014 - carnold@suse.com @@ -44,6 +54,10 @@ Tue Jan 14 12:13:45 MST 2014 - carnold@suse.com Tue Jan 9 11:44:11 MST 2014 - carnold@suse.com - Restore 32bit ix86 support in spec file for kmps and domU tools +- Restore a few missing xend patches + xend-config-enable-dump-comment.patch + xend-tools-watchdog-support.patch + xend-vif-route-ifup.patch ------------------------------------------------------------------- Tue Jan 2 11:52:11 MST 2014 - carnold@suse.com diff --git a/xen.spec b/xen.spec index 923e1ef..6d9ba8d 100644 --- a/xen.spec +++ b/xen.spec @@ -70,10 +70,10 @@ BuildRequires: fdupes BuildRequires: glib2-devel BuildRequires: libaio-devel BuildRequires: libbz2-devel -BuildRequires: libpixman-1-0-devel BuildRequires: libuuid-devel BuildRequires: libxml2-devel BuildRequires: libyajl-devel +BuildRequires: libpixman-1-0-devel BuildRequires: ncurses-devel BuildRequires: openssl-devel BuildRequires: python-devel @@ -82,10 +82,10 @@ BuildRequires: transfig BuildRequires: texinfo BuildRequires: texlive %if %suse_version > 1220 +BuildRequires: texlive-latex BuildRequires: texlive-courier BuildRequires: texlive-dvips BuildRequires: texlive-helvetic -BuildRequires: texlive-latex BuildRequires: texlive-psnfss BuildRequires: texlive-times BuildRequires: tex(a4.sty) @@ -293,6 +293,7 @@ Patch434: xend-domain-lock-sfex.patch Patch435: xend-32on64-extra-mem.patch Patch436: xend-hv_extid_compatibility.patch Patch437: xend-xenpaging.autostart.patch +Patch438: xend-remove-xm-deprecation-warning.patch # Other bug fixes or features Patch450: libxen_permissive.patch Patch451: xenconsole-no-multiple-connections.patch @@ -640,6 +641,9 @@ Authors: %patch435 -p1 %patch436 -p1 %patch437 -p1 +%if %suse_version <= 1230 +%patch438 -p1 +%endif %endif # Other bug fixes or features %patch450 -p1 diff --git a/xend-remove-xm-deprecation-warning.patch b/xend-remove-xm-deprecation-warning.patch new file mode 100644 index 0000000..16ae230 --- /dev/null +++ b/xend-remove-xm-deprecation-warning.patch @@ -0,0 +1,34 @@ +Index: xen-4.4.0-testing/tools/python/xen/xm/xm +=================================================================== +--- xen-4.4.0-testing.orig/tools/python/xen/xm/xm ++++ xen-4.4.0-testing/tools/python/xen/xm/xm +@@ -4,17 +4,17 @@ import sys, os.path + + from xen.xm import main + +-print >>sys.stderr, ("WARNING: xend/xm is deprecated.") +- +-if not os.path.exists("/var/run/xm-deprecation-long-warning"): +- print >>sys.stderr, (""" +-xend is deprecated and scheduled for removal. Please migrate to another +-toolstack ASAP. +- +-See http://wiki.xen.org/wiki/Choice_of_Toolstacks for information on +-other alternatives, including xl which is designed to be a drop in +-replacement for xm (http://wiki.xen.org/wiki/XL). +-""") +- open("/var/run/xm-deprecation-long-warning", "w").close() ++#print >>sys.stderr, ("WARNING: xend/xm is deprecated.") ++# ++#if not os.path.exists("/var/run/xm-deprecation-long-warning"): ++# print >>sys.stderr, (""" ++#xend is deprecated and scheduled for removal. Please migrate to another ++#toolstack ASAP. ++# ++#See http://wiki.xen.org/wiki/Choice_of_Toolstacks for information on ++#other alternatives, including xl which is designed to be a drop in ++#replacement for xm (http://wiki.xen.org/wiki/XL). ++#""") ++# open("/var/run/xm-deprecation-long-warning", "w").close() + + main.main(sys.argv) From af6dcd473d9b40f8bc4f52e944d541274684637564e4a9231aef13c17a880443 Mon Sep 17 00:00:00 2001 From: Charles Arnold Date: Mon, 3 Feb 2014 23:53:57 +0000 Subject: [PATCH 3/8] - Enable blktapctrl when qemu-traditional is required to satisfy build dependencies. Remove binaries after build if xend is disabled - update ifarch usage in xen.spec to cover also arm - blktapctrl is used only by xend - fix xend-tools-xend sub pkg handling - default to gcc47 for sles11sp3 builds - remove all latex packages from BuildRequires - aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch - add arch dependent install suffix for /boot/xen files - Set max_cpus==4 for non-x86_64 builds - Update to Xen 4.4.0 RC3 c/s 28321 - Add flex and bison to BuildRequires, needed by previous patch - fate#316071: add discard support for file backed storage (qdisk) libxl.add-option-for-discard-support-to-xl-disk-conf.patch OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=296 --- ...PSR_MODE_ELxx-to-match-linux-headers.patch | 37 +++ blktap-pv-cdrom.patch | 2 +- ...-for-discard-support-to-xl-disk-conf.patch | 129 ++++++++++ magic_ioport_compat.patch | 2 +- qemu-xen-dir-remote.tar.bz2 | 4 +- qemu-xen-traditional-dir-remote.tar.bz2 | 4 +- qemu-xen-upstream-blkif-discard.patch | 90 +++---- seabios-dir-remote.tar.bz2 | 4 +- xen-4.4.0-testing-src.tar.bz2 | 4 +- xen.changes | 43 ++++ xen.spec | 229 ++++++++---------- xend-domain-lock-sfex.patch | 4 +- xend-domain-lock.patch | 2 +- xend-tools-watchdog-support.patch | 2 +- 14 files changed, 363 insertions(+), 193 deletions(-) create mode 100644 aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch create mode 100644 libxl.add-option-for-discard-support-to-xl-disk-conf.patch diff --git a/aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch b/aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch new file mode 100644 index 0000000..59e632e --- /dev/null +++ b/aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch @@ -0,0 +1,37 @@ +From 98abe3b337e69371678859c4cfd19df61aebb0d9 Mon Sep 17 00:00:00 2001 +From: Olaf Hering +Date: Sun, 2 Feb 2014 20:42:42 +0100 +Subject: aarch64: rename PSR_MODE_ELxx to match linux headers + +https://bugs.launchpad.net/linaro-aarch64/+bug/1169164 + +Signed-off-by: Olaf Hering +--- + xen/include/public/arch-arm.h | 14 +++++++------- + 1 file changed, 7 insertions(+), 7 deletions(-) + +diff --git a/xen/include/public/arch-arm.h b/xen/include/public/arch-arm.h +index 7496556..95f2a7c 100644 +--- a/xen/include/public/arch-arm.h ++++ b/xen/include/public/arch-arm.h +@@ -342,13 +342,13 @@ typedef uint64_t xen_callback_t; + + /* 64 bit modes */ + #define PSR_MODE_BIT 0x10 /* Set iff AArch32 */ +-#define PSR_MODE_EL3h 0x0d +-#define PSR_MODE_EL3t 0x0c +-#define PSR_MODE_EL2h 0x09 +-#define PSR_MODE_EL2t 0x08 +-#define PSR_MODE_EL1h 0x05 +-#define PSR_MODE_EL1t 0x04 +-#define PSR_MODE_EL0t 0x00 ++#define PSR_MODE_EL3h 0x0000000d ++#define PSR_MODE_EL3t 0x0000000c ++#define PSR_MODE_EL2h 0x00000009 ++#define PSR_MODE_EL2t 0x00000008 ++#define PSR_MODE_EL1h 0x00000005 ++#define PSR_MODE_EL1t 0x00000004 ++#define PSR_MODE_EL0t 0x00000000 + + #define PSR_GUEST32_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK|PSR_MODE_SVC) + #define PSR_GUEST64_INIT (PSR_ABT_MASK|PSR_FIQ_MASK|PSR_IRQ_MASK|PSR_MODE_EL1h) diff --git a/blktap-pv-cdrom.patch b/blktap-pv-cdrom.patch index 853bdeb..7efe756 100644 --- a/blktap-pv-cdrom.patch +++ b/blktap-pv-cdrom.patch @@ -696,7 +696,7 @@ Index: xen-4.4.0-testing/xen/include/public/io/blkif.h =================================================================== --- xen-4.4.0-testing.orig/xen/include/public/io/blkif.h +++ xen-4.4.0-testing/xen/include/public/io/blkif.h -@@ -444,7 +444,7 @@ +@@ -453,7 +453,7 @@ * Used in SLES sources for device specific command packet * contained within the request. Reserved for that purpose. */ diff --git a/libxl.add-option-for-discard-support-to-xl-disk-conf.patch b/libxl.add-option-for-discard-support-to-xl-disk-conf.patch new file mode 100644 index 0000000..2f5e924 --- /dev/null +++ b/libxl.add-option-for-discard-support-to-xl-disk-conf.patch @@ -0,0 +1,129 @@ +References: FATE#316071 +Subject: libxl: add option for discard support to xl disk configuration + +Handle new option discard=on|off for disk configuration. It is supposed +to disable discard support if file based backing storage was +intentionally created non-sparse to avoid fragmentation of the file. + +The option is a boolean and intended for the backend driver. A new +boolean property "discard-enable" is written to the backend node. An +upcoming patch for qemu will make use of this property. The kernel +blkback driver may be updated as well to disable discard for phy based +backing storage. + +This change does not break ABI. Instead of adding a new member ->discard_enable +to struct libxl_device_disk the existing ->readwrite member is reused. + +Signed-off-by: Olaf Hering +--- + docs/misc/xl-disk-configuration.txt | 15 +++++++++++++++ + tools/libxl/libxl.c | 2 ++ + tools/libxl/libxl.h | 11 +++++++++++ + tools/libxl/libxlu_disk.c | 3 +++ + tools/libxl/libxlu_disk_i.h | 2 +- + tools/libxl/libxlu_disk_l.l | 4 ++++ + 6 files changed, 36 insertions(+), 1 deletion(-) + +Index: xen-4.4.0-testing/docs/misc/xl-disk-configuration.txt +=================================================================== +--- xen-4.4.0-testing.orig/docs/misc/xl-disk-configuration.txt ++++ xen-4.4.0-testing/docs/misc/xl-disk-configuration.txt +@@ -178,6 +178,21 @@ information to be interpreted by the exe + These scripts are normally called "block-