2007-01-16 00:42:10 +01:00
|
|
|
#
|
2011-05-12 11:17:07 +02:00
|
|
|
# spec file for package xen
|
2007-01-16 00:42:10 +01:00
|
|
|
#
|
2016-04-27 20:28:08 +02:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2007-01-16 00:42:10 +01:00
|
|
|
#
|
2008-08-18 00:24:29 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2016-03-29 00:57:09 +02:00
|
|
|
|
2014-05-01 05:35:21 +02:00
|
|
|
# needssslcertforbuild
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
Name: xen
|
2014-01-09 22:49:46 +01:00
|
|
|
ExclusiveArch: %ix86 x86_64 %arm aarch64
|
2015-11-11 18:04:52 +01:00
|
|
|
%define changeset 31594
|
2016-03-25 23:10:02 +01:00
|
|
|
%define xen_build_dir xen-4.7.0-testing
|
2014-02-04 00:53:57 +01:00
|
|
|
#
|
2013-07-06 03:06:10 +02:00
|
|
|
%define with_kmp 0
|
2014-01-02 20:09:07 +01:00
|
|
|
%define with_debug 0
|
2013-07-06 03:06:10 +02:00
|
|
|
%define with_stubdom 0
|
2014-02-04 00:53:57 +01:00
|
|
|
%define with_gdbsx 0
|
|
|
|
%define with_dom0_support 0
|
|
|
|
%define with_qemu_traditional 0
|
2015-01-14 21:58:52 +01:00
|
|
|
%define with_oxenstored 0
|
2014-02-04 00:53:57 +01:00
|
|
|
#
|
2014-01-15 17:11:09 +01:00
|
|
|
%ifarch x86_64
|
2015-11-24 16:48:21 +01:00
|
|
|
%define with_kmp 0
|
2014-01-02 20:09:07 +01:00
|
|
|
%define with_debug 1
|
2011-08-05 22:04:48 +02:00
|
|
|
%define with_stubdom 1
|
2014-02-04 00:53:57 +01:00
|
|
|
%define with_gdbsx 1
|
2014-01-09 22:49:46 +01:00
|
|
|
%define with_dom0_support 1
|
2014-01-15 17:11:09 +01:00
|
|
|
%define with_qemu_traditional 1
|
2014-01-09 22:49:46 +01:00
|
|
|
%endif
|
2014-02-04 00:53:57 +01:00
|
|
|
#
|
|
|
|
%ifarch %arm aarch64
|
|
|
|
%define with_dom0_support 1
|
|
|
|
%endif
|
|
|
|
#
|
|
|
|
%define max_cpus 4
|
|
|
|
%ifarch x86_64
|
2015-10-06 17:11:48 +02:00
|
|
|
%if %suse_version >= 1315
|
2014-03-28 18:53:30 +01:00
|
|
|
%define max_cpus 1024
|
|
|
|
%else
|
2014-02-04 00:53:57 +01:00
|
|
|
%define max_cpus 512
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-03-28 18:53:30 +01:00
|
|
|
%endif
|
2014-02-04 00:53:57 +01:00
|
|
|
#
|
|
|
|
%define xen_install_suffix %{nil}
|
|
|
|
%ifarch x86_64
|
|
|
|
%define xen_install_suffix .gz
|
|
|
|
%endif
|
|
|
|
# EFI requires gcc 4.6 or newer
|
|
|
|
# gcc46 is available in 12.1 or sles11sp2
|
|
|
|
# gcc47 is available in sles11sp3
|
2015-11-24 16:48:21 +01:00
|
|
|
# gcc48 is available in sles11sp4
|
2014-02-04 00:53:57 +01:00
|
|
|
# 12.2+ have gcc 4.7 as default compiler
|
|
|
|
%define with_gcc47 0
|
2015-11-24 16:48:21 +01:00
|
|
|
%define with_gcc48 0
|
|
|
|
%if %suse_version == 1110
|
|
|
|
%define with_gcc48 1
|
2011-08-15 15:32:00 +02:00
|
|
|
%endif
|
2011-06-14 21:01:54 +02:00
|
|
|
%define _fwdefdir /etc/sysconfig/SuSEfirewall2.d/services
|
2015-01-14 21:58:52 +01:00
|
|
|
%define with_systemd 0
|
|
|
|
%if %suse_version > 1220
|
2013-07-30 23:20:13 +02:00
|
|
|
%define with_systemd 1
|
2015-01-14 21:58:52 +01:00
|
|
|
%define include_systemd_preset 0
|
|
|
|
%if %suse_version <= 1320
|
|
|
|
%define include_systemd_preset 1
|
|
|
|
%endif
|
|
|
|
%systemd_requires
|
|
|
|
BuildRequires: systemd-devel
|
|
|
|
%define with_systemd_modules_load %{_prefix}/lib/modules-load.d
|
2011-04-12 00:31:41 +02:00
|
|
|
%else
|
2015-01-14 21:58:52 +01:00
|
|
|
PreReq: %insserv_prereq
|
2011-04-12 00:31:41 +02:00
|
|
|
%endif
|
2015-01-14 21:58:52 +01:00
|
|
|
PreReq: %fillup_prereq
|
2014-01-23 19:54:00 +01:00
|
|
|
%ifarch %arm aarch64
|
|
|
|
BuildRequires: libfdt1-devel
|
|
|
|
%endif
|
|
|
|
%ifarch %ix86 x86_64
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: dev86
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2015-03-03 16:10:48 +01:00
|
|
|
#!BuildIgnore: gcc-PIE
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
# JWF: Until Anthony's series to load BIOS via toolstack is merged,
|
|
|
|
# autoconf is needed by autogen.sh.
|
|
|
|
# http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
|
2016-05-03 10:51:29 +02:00
|
|
|
BuildRequires: autoconf >= 2.67
|
2014-02-04 00:53:57 +01:00
|
|
|
BuildRequires: bison
|
2012-10-03 00:08:01 +02:00
|
|
|
BuildRequires: fdupes
|
2015-07-10 17:21:29 +02:00
|
|
|
BuildRequires: figlet
|
2014-04-03 18:28:32 +02:00
|
|
|
BuildRequires: flex
|
2012-09-17 17:49:23 +02:00
|
|
|
BuildRequires: glib2-devel
|
2013-07-06 03:06:10 +02:00
|
|
|
BuildRequires: libaio-devel
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: libbz2-devel
|
2014-04-03 18:28:32 +02:00
|
|
|
BuildRequires: libpixman-1-0-devel
|
2012-02-25 21:58:13 +01:00
|
|
|
BuildRequires: libuuid-devel
|
2011-05-12 11:17:07 +02:00
|
|
|
BuildRequires: libxml2-devel
|
2012-09-17 17:49:23 +02:00
|
|
|
BuildRequires: libyajl-devel
|
2014-02-04 00:53:57 +01:00
|
|
|
%if %{?with_qemu_traditional}0
|
2014-03-28 18:53:30 +01:00
|
|
|
BuildRequires: SDL-devel
|
2014-04-03 18:28:32 +02:00
|
|
|
BuildRequires: pciutils-devel
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
2014-02-04 00:53:57 +01:00
|
|
|
%if %{?with_stubdom}0
|
|
|
|
%if 0%{?suse_version} < 1230
|
|
|
|
BuildRequires: texinfo
|
2014-01-16 21:18:13 +01:00
|
|
|
%else
|
2014-02-04 00:53:57 +01:00
|
|
|
BuildRequires: makeinfo
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
2014-02-04 00:53:57 +01:00
|
|
|
%endif
|
|
|
|
BuildRequires: ncurses-devel
|
2015-01-14 21:58:52 +01:00
|
|
|
%if %{?with_oxenstored}0
|
|
|
|
BuildRequires: ocaml
|
|
|
|
BuildRequires: ocaml-compiler-libs
|
|
|
|
BuildRequires: ocaml-findlib
|
|
|
|
BuildRequires: ocaml-ocamldoc
|
|
|
|
BuildRequires: ocaml-runtime
|
|
|
|
%endif
|
2014-02-04 00:53:57 +01:00
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: python-devel
|
|
|
|
%if %{?with_systemd}0
|
2014-01-02 20:09:07 +01:00
|
|
|
BuildRequires: systemd
|
|
|
|
%endif
|
|
|
|
%if %suse_version >= 1120
|
|
|
|
BuildRequires: xz-devel
|
2012-07-10 15:51:42 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %suse_version <= 1110
|
|
|
|
BuildRequires: pmtools
|
2010-10-20 23:00:35 +02:00
|
|
|
%else
|
2014-01-23 19:54:00 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2014-01-02 20:09:07 +01:00
|
|
|
BuildRequires: acpica
|
|
|
|
%endif
|
2010-10-20 23:00:35 +02:00
|
|
|
%endif
|
2007-02-11 11:48:10 +01:00
|
|
|
%ifarch x86_64
|
2014-02-04 00:53:57 +01:00
|
|
|
%if %{?with_gcc47}0
|
|
|
|
BuildRequires: gcc47
|
2011-08-15 15:32:00 +02:00
|
|
|
%endif
|
2015-11-24 16:48:21 +01:00
|
|
|
%if %{?with_gcc48}0
|
|
|
|
BuildRequires: gcc48
|
|
|
|
%endif
|
2012-10-05 23:55:57 +02:00
|
|
|
BuildRequires: glibc-32bit
|
|
|
|
BuildRequires: glibc-devel-32bit
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
|
|
|
%if %{?with_kmp}0
|
2012-01-05 20:41:54 +01:00
|
|
|
BuildRequires: kernel-source
|
|
|
|
BuildRequires: kernel-syms
|
2014-01-02 20:09:07 +01:00
|
|
|
BuildRequires: module-init-tools
|
2014-01-16 21:18:13 +01:00
|
|
|
%if %suse_version >= 1230
|
2014-01-15 17:11:09 +01:00
|
|
|
BuildRequires: lndir
|
2014-04-10 08:14:02 +02:00
|
|
|
BuildRequires: pesign-obs-integration
|
2014-01-16 21:18:13 +01:00
|
|
|
%else
|
|
|
|
BuildRequires: xorg-x11-util-devel
|
|
|
|
%endif
|
2013-05-09 10:15:21 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
|
2016-05-06 13:49:59 +02:00
|
|
|
Version: 4.7.0_03
|
2012-01-05 20:41:54 +01:00
|
|
|
Release: 0
|
2007-01-16 00:42:10 +01:00
|
|
|
Summary: Xen Virtualization: Hypervisor (aka VMM aka Microkernel)
|
2014-01-27 15:16:35 +01:00
|
|
|
License: GPL-2.0
|
2012-01-05 20:41:54 +01:00
|
|
|
Group: System/Kernel
|
2016-03-25 23:10:02 +01:00
|
|
|
Source0: xen-4.7.0-testing-src.tar.bz2
|
2010-11-12 18:55:23 +01:00
|
|
|
Source1: stubdom.tar.bz2
|
2012-09-17 17:49:23 +02:00
|
|
|
Source2: qemu-xen-traditional-dir-remote.tar.bz2
|
|
|
|
Source5: ipxe.tar.bz2
|
2015-11-11 18:04:52 +01:00
|
|
|
Source6: mini-os.tar.bz2
|
2015-02-17 18:52:51 +01:00
|
|
|
Source9: xen.changes
|
2014-08-15 16:33:16 +02:00
|
|
|
Source10: README.SUSE
|
2012-09-17 17:49:23 +02:00
|
|
|
Source11: boot.xen
|
|
|
|
Source12: boot.local.xenU
|
|
|
|
Source15: logrotate.conf
|
|
|
|
Source21: block-npiv-common.sh
|
|
|
|
Source22: block-npiv
|
|
|
|
Source23: block-npiv-vport
|
|
|
|
Source26: init.xen_loop
|
2009-03-03 00:46:51 +01:00
|
|
|
%if %{?with_kmp}0
|
2012-09-17 17:49:23 +02:00
|
|
|
Source28: kmp_filelist
|
2009-03-03 00:46:51 +01:00
|
|
|
%endif
|
2012-09-17 17:49:23 +02:00
|
|
|
Source29: block-dmmd
|
2013-06-12 23:52:27 +02:00
|
|
|
# Xen API remote authentication sources
|
2012-09-17 17:49:23 +02:00
|
|
|
Source30: etc_pam.d_xen-api
|
|
|
|
Source31: xenapiusers
|
2013-07-31 22:29:13 +02:00
|
|
|
# Init script and sysconf file for pciback
|
2012-09-17 17:49:23 +02:00
|
|
|
Source34: init.pciback
|
|
|
|
Source35: sysconfig.pciback
|
2013-01-22 16:44:50 +01:00
|
|
|
Source36: xnloader.py
|
2014-03-14 00:46:35 +01:00
|
|
|
Source37: xen2libvirt.py
|
2013-07-31 22:29:13 +02:00
|
|
|
# Systemd service files
|
2013-08-16 23:22:11 +02:00
|
|
|
Source41: xencommons.service
|
2015-04-21 14:25:48 +02:00
|
|
|
Source42: xen-dom0-modules.service
|
2014-01-02 20:09:07 +01:00
|
|
|
Source57: xen-utils-0.1.tar.bz2
|
|
|
|
# For xen-libs
|
2011-03-31 18:16:25 +02:00
|
|
|
Source99: baselibs.conf
|
2007-05-21 22:28:46 +02:00
|
|
|
# Upstream patches
|
2016-05-06 13:49:59 +02:00
|
|
|
Patch47: xen.pkgconfig-4.7.patch
|
2016-01-04 23:25:00 +01:00
|
|
|
Patch164: xsa164.patch
|
2016-03-03 23:36:20 +01:00
|
|
|
# Upstream qemu-traditional patches
|
2014-01-02 20:09:07 +01:00
|
|
|
Patch250: VNC-Support-for-ExtendedKeyEvent-client-message.patch
|
|
|
|
Patch251: 0001-net-move-the-tap-buffer-into-TAPState.patch
|
|
|
|
Patch252: 0002-net-increase-tap-buffer-size.patch
|
|
|
|
Patch253: 0003-e1000-fix-access-4-bytes-beyond-buffer-end.patch
|
|
|
|
Patch254: 0004-e1000-secrc-support.patch
|
|
|
|
Patch255: 0005-e1000-multi-buffer-packet-support.patch
|
|
|
|
Patch256: 0006-e1000-clear-EOP-for-multi-buffer-descriptors.patch
|
|
|
|
Patch257: 0007-e1000-verify-we-have-buffers-upfront.patch
|
|
|
|
Patch258: 0008-e1000-check-buffer-availability.patch
|
2016-03-03 23:36:20 +01:00
|
|
|
Patch259: CVE-2013-4533-qemut-pxa2xx-buffer-overrun-on-incoming-migration.patch
|
|
|
|
Patch260: CVE-2013-4534-qemut-openpic-buffer-overrun-on-incoming-migration.patch
|
|
|
|
Patch261: CVE-2013-4537-qemut-ssi-sd-fix-buffer-overrun-on-invalid-state-load.patch
|
|
|
|
Patch262: CVE-2013-4538-qemut-ssd0323-fix-buffer-overun-on-invalid-state.patch
|
|
|
|
Patch263: CVE-2013-4539-qemut-tsc210x-fix-buffer-overrun-on-invalid-state-load.patch
|
|
|
|
Patch264: CVE-2014-0222-qemut-qcow1-validate-l2-table-size.patch
|
|
|
|
Patch265: CVE-2014-3640-qemut-slirp-NULL-pointer-deref-in-sosendto.patch
|
|
|
|
Patch266: CVE-2015-4037-qemut-smb-config-dir-name.patch
|
|
|
|
Patch267: CVE-2015-5154-qemut-fix-START-STOP-UNIT-command-completion.patch
|
|
|
|
Patch268: CVE-2015-5278-qemut-Infinite-loop-in-ne2000_receive-function.patch
|
|
|
|
Patch269: CVE-2015-6815-qemut-e1000-fix-infinite-loop.patch
|
|
|
|
Patch270: CVE-2015-7512-qemut-net-pcnet-buffer-overflow-in-non-loopback-mode.patch
|
|
|
|
Patch271: CVE-2015-8345-qemut-eepro100-infinite-loop-fix.patch
|
|
|
|
Patch272: CVE-2015-8504-qemut-vnc-avoid-floating-point-exception.patch
|
|
|
|
Patch273: CVE-2016-1714-qemut-fw_cfg-add-check-to-validate-current-entry-value.patch
|
|
|
|
Patch274: CVE-2016-1981-qemut-e1000-eliminate-infinite-loops-on-out-of-bounds-transfer.patch
|
|
|
|
Patch275: CVE-2016-2391-qemut-usb-null-pointer-dereference-in-ohci-module.patch
|
|
|
|
Patch276: CVE-2016-2841-qemut-ne2000-infinite-loop-in-ne2000_receive.patch
|
2016-05-23 22:09:30 +02:00
|
|
|
Patch277: CVE-2016-4439-qemut-scsi-esp-OOB-write-while-writing-to-cmdbuf-in-esp_reg_write.patch
|
|
|
|
Patch278: CVE-2016-4441-qemut-scsi-esp-OOB-write-while-writing-to-cmdbuf-in-get_cmd.patch
|
2016-03-03 23:36:20 +01:00
|
|
|
# qemu-traditional patches that are not upstream
|
2014-01-02 20:09:07 +01:00
|
|
|
Patch350: blktap.patch
|
|
|
|
Patch351: cdrom-removable.patch
|
|
|
|
Patch353: xen-qemu-iscsi-fix.patch
|
|
|
|
Patch354: qemu-security-etch1.patch
|
|
|
|
Patch355: xen-disable-qemu-monitor.patch
|
|
|
|
Patch356: xen-hvm-default-bridge.patch
|
|
|
|
Patch357: qemu-ifup-set-mtu.patch
|
|
|
|
Patch358: ioemu-vnc-resize.patch
|
|
|
|
Patch359: capslock_enable.patch
|
|
|
|
Patch360: altgr_2.patch
|
|
|
|
Patch361: log-guest-console.patch
|
2015-11-11 18:04:52 +01:00
|
|
|
Patch370: bdrv_open2_fix_flags.patch
|
|
|
|
Patch371: bdrv_open2_flags_2.patch
|
2014-01-02 20:09:07 +01:00
|
|
|
Patch372: ioemu-7615-qcow2-fix-alloc_cluster_link_l2.patch
|
|
|
|
Patch373: qemu-dm-segfault.patch
|
|
|
|
Patch374: bdrv_default_rwflag.patch
|
|
|
|
Patch375: kernel-boot-hvm.patch
|
|
|
|
Patch376: ioemu-watchdog-support.patch
|
|
|
|
Patch377: ioemu-watchdog-linkage.patch
|
|
|
|
Patch378: ioemu-watchdog-ib700-timer.patch
|
|
|
|
Patch379: ioemu-hvm-pv-support.patch
|
|
|
|
Patch380: pvdrv_emulation_control.patch
|
|
|
|
Patch381: ioemu-disable-scsi.patch
|
|
|
|
Patch382: ioemu-disable-emulated-ide-if-pv.patch
|
|
|
|
Patch383: xenpaging.qemu.flush-cache.patch
|
2016-03-03 23:36:20 +01:00
|
|
|
# Our platform specific patches
|
|
|
|
Patch400: xen-destdir.patch
|
|
|
|
Patch401: vif-bridge-no-iptables.patch
|
|
|
|
Patch402: vif-bridge-tap-fix.patch
|
|
|
|
Patch403: xl-conf-default-bridge.patch
|
|
|
|
# Needs to go upstream
|
|
|
|
Patch420: suspend_evtchn_lock.patch
|
|
|
|
Patch421: xenpaging.doc.patch
|
2016-03-23 21:51:29 +01:00
|
|
|
Patch422: stubdom-have-iovec.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
# Other bug fixes or features
|
2014-01-02 20:09:07 +01:00
|
|
|
Patch451: xenconsole-no-multiple-connections.patch
|
|
|
|
Patch452: hibernate.patch
|
|
|
|
Patch453: stdvga-cache.patch
|
|
|
|
Patch454: ipxe-enable-nics.patch
|
|
|
|
Patch455: pygrub-netware-xnloader.patch
|
|
|
|
Patch456: pygrub-boot-legacy-sles.patch
|
2016-03-25 23:10:02 +01:00
|
|
|
Patch457: aarch64-rename-PSR_MODE_ELxx-to-match-linux-headers.patch
|
|
|
|
Patch458: CVE-2014-0222-blktap-qcow1-validate-l2-table-size.patch
|
|
|
|
Patch459: libxl.pvscsi.patch
|
|
|
|
Patch460: xen.libxl.dmmd.patch
|
|
|
|
Patch461: libxl.add-option-to-disable-disk-cache-flushes-in-qdisk.patch
|
|
|
|
Patch462: blktap2-no-uninit.patch
|
2016-05-03 15:58:22 +02:00
|
|
|
Patch463: libxl.set-migration-constraints-from-cmdline.patch
|
2010-01-16 01:12:54 +01:00
|
|
|
# Hypervisor and PV driver Patches
|
2011-01-14 19:24:51 +01:00
|
|
|
Patch501: x86-ioapic-ack-default.patch
|
|
|
|
Patch502: x86-cpufreq-report.patch
|
2016-03-03 23:36:20 +01:00
|
|
|
Patch520: xen_pvonhvm.xen_emul_unplug.patch
|
|
|
|
Patch521: supported_module.patch
|
2015-11-11 18:04:52 +01:00
|
|
|
Patch601: xen.build-compare.doc_html.patch
|
2016-03-23 21:51:29 +01:00
|
|
|
Patch602: xen.build-compare.man.patch
|
|
|
|
Patch603: ipxe-no-error-logical-not-parentheses.patch
|
|
|
|
Patch604: ipxe-use-rpm-opt-flags.patch
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
# Anthony's "load BIOS via toolstack" patches
|
|
|
|
# http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
|
|
|
|
Patch700: 0001-libxc-Rework-extra-module-initialisation.patch
|
|
|
|
Patch701: 0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch
|
|
|
|
Patch702: 0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch
|
|
|
|
Patch703: 0004-firmware-makefile-install-BIOS-blob.patch
|
|
|
|
Patch704: 0005-libxl-Load-guest-BIOS-from-file.patch
|
|
|
|
Patch705: 0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch
|
|
|
|
Patch706: 0007-hvmloader-Grab-the-hvm_start_info-pointer.patch
|
|
|
|
Patch707: 0008-hvmloader-Locate-the-BIOS-blob.patch
|
|
|
|
Patch708: 0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch
|
|
|
|
Patch709: 0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch
|
|
|
|
Patch710: 0011-hvmloader-Load-OVMF-from-modules.patch
|
|
|
|
Patch711: 0012-hvmloader-Specific-bios_load-function-required.patch
|
|
|
|
Patch712: 0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch
|
|
|
|
Patch713: 0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
|
2013-06-01 23:11:56 +02:00
|
|
|
# Build patches
|
2015-01-14 21:58:52 +01:00
|
|
|
Patch99996: xen.stubdom.newlib.patch
|
|
|
|
Patch99998: tmp_build.patch
|
2007-09-14 00:50:00 +02:00
|
|
|
Url: http://www.cl.cam.ac.uk/Research/SRG/netos/xen/
|
2007-01-16 00:42:10 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2009-08-21 17:26:06 +02:00
|
|
|
%define pyver %(python -c "import sys; print sys.version[:3]")
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2015-02-17 20:02:27 +01:00
|
|
|
%suse_kernel_module_package -n xen um pv xen -f kmp_filelist
|
2007-02-11 11:48:10 +01:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%description
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the Xen Hypervisor. (tm)
|
|
|
|
|
|
|
|
Modern computers are sufficiently powerful to use virtualization to
|
|
|
|
present the illusion of many smaller virtual machines (VMs), each
|
|
|
|
running a separate operating system instance. Successful partitioning
|
|
|
|
of a machine to support the concurrent execution of multiple operating
|
|
|
|
systems poses several challenges. Firstly, virtual machines must be
|
|
|
|
isolated from one another: It is not acceptable for the execution of
|
|
|
|
one to adversely affect the performance of another. This is
|
|
|
|
particularly true when virtual machines are owned by mutually
|
|
|
|
untrusting users. Secondly, it is necessary to support a variety of
|
|
|
|
different operating systems to accommodate the heterogeneity of popular
|
|
|
|
applications. Thirdly, the performance overhead introduced by
|
|
|
|
virtualization should be small.
|
|
|
|
|
|
|
|
Xen uses a technique called paravirtualization: The guest OS is
|
|
|
|
modified, mainly to enhance performance.
|
|
|
|
|
|
|
|
The Xen hypervisor (microkernel) does not provide device drivers for
|
|
|
|
your hardware (except for CPU and memory). This job is left to the
|
|
|
|
kernel that's running in domain 0. Thus the domain 0 kernel is
|
|
|
|
privileged; it has full hardware access. It's started immediately after
|
|
|
|
Xen starts up. Other domains have no access to the hardware; instead
|
|
|
|
they use virtual interfaces that are provided by Xen (with the help of
|
|
|
|
the domain 0 kernel).
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
In addition to this package you need to install the kernel-xen, xen-libs
|
|
|
|
and xen-tools packages to use Xen. Xen version 3 and newer also supports
|
|
|
|
running unmodified guests using full virtualization, if appropriate hardware
|
|
|
|
is present.
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
[Hypervisor is a trademark of IBM]
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
|
|
|
|
Christian Limpach <Christian.Limpach@cl.cam.ac.uk>
|
|
|
|
Mark Williamson <mark.williamson@cl.cam.ac.uk>
|
|
|
|
Ewan Mellor <ewan@xensource.com>
|
|
|
|
...
|
|
|
|
|
|
|
|
%package libs
|
|
|
|
Summary: Xen Virtualization: Libraries
|
|
|
|
Group: System/Kernel
|
2011-12-02 21:25:29 +01:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%description libs
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the libraries used to interact with the Xen
|
|
|
|
virtual machine monitor.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
In addition to this package you need to install kernel-xen, xen and
|
|
|
|
xen-tools to use Xen.
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2014-02-04 19:31:26 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%package tools
|
|
|
|
Summary: Xen Virtualization: Control tools for domain 0
|
|
|
|
Group: System/Kernel
|
2012-03-28 11:13:58 +02:00
|
|
|
Requires: bridge-utils
|
2014-10-11 10:39:04 +02:00
|
|
|
%ifarch x86_64
|
2016-03-03 23:36:20 +01:00
|
|
|
%if %suse_version >= 1315
|
2014-04-03 18:28:32 +02:00
|
|
|
Requires: grub2-x86_64-xen
|
2014-09-23 19:00:56 +02:00
|
|
|
%endif
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
Requires: qemu-ovmf-x86_64
|
2016-03-03 23:36:20 +01:00
|
|
|
Requires: qemu-x86
|
|
|
|
%endif
|
|
|
|
%ifarch %arm aarch64
|
|
|
|
Requires: qemu-arm
|
2014-10-11 10:39:04 +02:00
|
|
|
%endif
|
2012-03-28 11:13:58 +02:00
|
|
|
Requires: multipath-tools
|
|
|
|
Requires: python
|
|
|
|
Requires: python-curses
|
|
|
|
Requires: python-lxml
|
|
|
|
Requires: python-openssl
|
|
|
|
Requires: python-pam
|
|
|
|
Requires: python-xml
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
Requires: qemu-seabios
|
2008-02-02 01:58:27 +01:00
|
|
|
Requires: xen-libs = %{version}
|
2008-03-14 18:02:08 +01:00
|
|
|
# subpackage existed in 10.3
|
2012-11-19 14:58:33 +01:00
|
|
|
Provides: xen-tools-ioemu = %{version}
|
|
|
|
Obsoletes: xen-tools-ioemu < %{version}
|
2013-06-01 23:11:56 +02:00
|
|
|
Conflicts: libvirt < 1.0.5
|
2011-12-02 21:25:29 +01:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%description tools
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the control tools that allow you to start, stop,
|
|
|
|
migrate, and manage virtual machines.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
In addition to this package you need to install kernel-xen, xen and
|
|
|
|
xen-libs to use Xen.
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
|
2013-06-01 23:11:56 +02:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
|
|
|
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
2007-04-26 01:53:07 +02:00
|
|
|
|
|
|
|
%package tools-domU
|
|
|
|
Summary: Xen Virtualization: Control tools for domain U
|
|
|
|
Group: System/Kernel
|
|
|
|
Conflicts: xen-tools
|
2011-12-02 21:25:29 +01:00
|
|
|
|
2007-04-26 01:53:07 +02:00
|
|
|
%description tools-domU
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains tools that allow unprivileged domains to query
|
|
|
|
the virtualized environment.
|
|
|
|
|
|
|
|
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Xen Virtualization: Headers and libraries for development
|
|
|
|
Group: System/Kernel
|
2013-11-19 19:39:48 +01:00
|
|
|
Requires: libuuid-devel
|
2007-01-16 00:42:10 +01:00
|
|
|
Requires: xen-libs = %{version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
This package contains the libraries and header files needed to create
|
|
|
|
tools to control virtual machines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2007-02-11 11:48:10 +01:00
|
|
|
%package KMP
|
|
|
|
Summary: Xen para-virtual device drivers for fully virtualized guests
|
2012-01-05 20:41:54 +01:00
|
|
|
Group: System/Kernel
|
2008-09-01 02:39:12 +02:00
|
|
|
Conflicts: xen
|
2014-04-10 08:14:02 +02:00
|
|
|
%if %suse_version >= 1230
|
2014-04-10 08:04:31 +02:00
|
|
|
Requires: pesign-obs-integration
|
2014-04-10 08:14:02 +02:00
|
|
|
%endif
|
2007-02-11 11:48:10 +01:00
|
|
|
|
|
|
|
%description KMP
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
2013-07-31 22:29:13 +02:00
|
|
|
This package contains the Xen para-virtual device drivers for fully
|
|
|
|
virtualized guests.
|
2007-02-11 11:48:10 +01:00
|
|
|
|
|
|
|
%endif
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%package doc-html
|
|
|
|
Summary: Xen Virtualization: HTML documentation
|
|
|
|
Group: Documentation/HTML
|
|
|
|
|
|
|
|
%description doc-html
|
|
|
|
Xen is a virtual machine monitor for x86 that supports execution of
|
|
|
|
multiple guest operating systems with unprecedented levels of
|
|
|
|
performance and resource isolation.
|
|
|
|
|
|
|
|
xen-doc-html contains the online documentation in HTML format. Point
|
|
|
|
your browser at file:/usr/share/doc/packages/xen/html/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Authors:
|
|
|
|
--------
|
|
|
|
Ian Pratt <ian.pratt@cl.cam.ac.uk>
|
2014-01-09 22:49:46 +01:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%prep
|
2016-03-23 21:51:29 +01:00
|
|
|
%setup -q -n %xen_build_dir -a 1 -a 2 -a 5 -a 6 -a 57
|
2011-10-20 21:52:33 +02:00
|
|
|
# Upstream patches
|
2016-05-06 13:49:59 +02:00
|
|
|
%patch47 -p1
|
2016-01-04 23:25:00 +01:00
|
|
|
%patch164 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Upstream qemu patches
|
|
|
|
%patch250 -p1
|
|
|
|
%patch251 -p1
|
|
|
|
%patch252 -p1
|
|
|
|
%patch253 -p1
|
|
|
|
%patch254 -p1
|
|
|
|
%patch255 -p1
|
|
|
|
%patch256 -p1
|
|
|
|
%patch257 -p1
|
|
|
|
%patch258 -p1
|
2015-08-12 00:49:00 +02:00
|
|
|
%patch259 -p1
|
|
|
|
%patch260 -p1
|
2016-03-01 22:45:58 +01:00
|
|
|
%patch261 -p1
|
2015-08-12 00:49:00 +02:00
|
|
|
%patch262 -p1
|
2016-01-04 23:25:00 +01:00
|
|
|
%patch263 -p1
|
|
|
|
%patch264 -p1
|
|
|
|
%patch265 -p1
|
|
|
|
%patch266 -p1
|
|
|
|
%patch267 -p1
|
|
|
|
%patch268 -p1
|
|
|
|
%patch269 -p1
|
2016-01-20 17:26:32 +01:00
|
|
|
%patch270 -p1
|
|
|
|
%patch271 -p1
|
|
|
|
%patch272 -p1
|
|
|
|
%patch273 -p1
|
|
|
|
%patch274 -p1
|
|
|
|
%patch275 -p1
|
|
|
|
%patch276 -p1
|
2016-05-23 22:09:30 +02:00
|
|
|
%patch277 -p1
|
|
|
|
%patch278 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Qemu traditional
|
2010-01-16 01:12:54 +01:00
|
|
|
%patch350 -p1
|
|
|
|
%patch351 -p1
|
|
|
|
%patch353 -p1
|
2013-10-24 23:00:35 +02:00
|
|
|
%patch354 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
%patch355 -p1
|
|
|
|
%patch356 -p1
|
|
|
|
%patch357 -p1
|
|
|
|
%patch358 -p1
|
|
|
|
%patch359 -p1
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch360 -p1
|
|
|
|
%patch361 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
%patch370 -p1
|
|
|
|
%patch371 -p1
|
|
|
|
%patch372 -p1
|
|
|
|
%patch373 -p1
|
|
|
|
%patch374 -p1
|
|
|
|
%patch375 -p1
|
|
|
|
%patch376 -p1
|
|
|
|
%patch377 -p1
|
|
|
|
%patch378 -p1
|
|
|
|
%patch379 -p1
|
|
|
|
%patch380 -p1
|
|
|
|
%patch381 -p1
|
|
|
|
%patch382 -p1
|
|
|
|
%patch383 -p1
|
2016-03-03 23:36:20 +01:00
|
|
|
# Our platform specific patches
|
|
|
|
%patch400 -p1
|
|
|
|
%patch401 -p1
|
|
|
|
%patch402 -p1
|
|
|
|
%patch403 -p1
|
|
|
|
# Needs to go upstream
|
|
|
|
%patch420 -p1
|
|
|
|
%patch421 -p1
|
|
|
|
%patch422 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Other bug fixes or features
|
|
|
|
%patch451 -p1
|
|
|
|
%patch452 -p1
|
|
|
|
%patch453 -p1
|
|
|
|
%patch454 -p1
|
|
|
|
%patch455 -p1
|
|
|
|
%patch456 -p1
|
2016-03-03 23:36:20 +01:00
|
|
|
%patch457 -p1
|
|
|
|
%patch458 -p1
|
|
|
|
%patch459 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
%patch460 -p1
|
2016-03-03 23:36:20 +01:00
|
|
|
%patch461 -p1
|
|
|
|
%patch462 -p1
|
2016-05-03 15:58:22 +02:00
|
|
|
%patch463 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Hypervisor and PV driver Patches
|
2009-05-04 18:38:09 +02:00
|
|
|
%patch501 -p1
|
|
|
|
%patch502 -p1
|
2013-06-01 23:11:56 +02:00
|
|
|
%patch520 -p1
|
|
|
|
%patch521 -p1
|
2015-01-14 21:58:52 +01:00
|
|
|
%patch601 -p1
|
|
|
|
%patch602 -p1
|
|
|
|
%patch603 -p1
|
|
|
|
%patch604 -p1
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
# Anthony's "load BIOS via toolstack" patches
|
|
|
|
# http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
|
|
|
|
%patch700 -p1
|
|
|
|
%patch701 -p1
|
|
|
|
%patch702 -p1
|
|
|
|
%patch703 -p1
|
|
|
|
%patch704 -p1
|
|
|
|
%patch705 -p1
|
|
|
|
%patch706 -p1
|
|
|
|
%patch707 -p1
|
|
|
|
%patch708 -p1
|
|
|
|
%patch709 -p1
|
|
|
|
%patch710 -p1
|
|
|
|
%patch711 -p1
|
|
|
|
%patch712 -p1
|
|
|
|
%patch713 -p1
|
2014-01-02 20:09:07 +01:00
|
|
|
# Build patches
|
2015-01-14 21:58:52 +01:00
|
|
|
%patch99996 -p1
|
2011-05-10 18:44:09 +02:00
|
|
|
%patch99998 -p1
|
2011-03-30 16:56:23 +02:00
|
|
|
|
2007-08-07 09:32:10 +02:00
|
|
|
%build
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
# JWF: Anthony's series to load BIOS from toolstack requires autogen.sh.
|
|
|
|
# http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
|
|
|
|
./autogen.sh
|
|
|
|
|
2015-01-14 21:58:52 +01:00
|
|
|
# we control the version info of this package
|
|
|
|
# to gain control of filename of xen.gz
|
|
|
|
XEN_VERSION=%{version}
|
|
|
|
XEN_VERSION=${XEN_VERSION%%%%.*}
|
|
|
|
XEN_SUBVERSION=%{version}
|
|
|
|
XEN_SUBVERSION=${XEN_SUBVERSION#*.}
|
|
|
|
XEN_SUBVERSION=${XEN_SUBVERSION%%%%.*}
|
|
|
|
XEN_EXTRAVERSION="%version-%release"
|
|
|
|
XEN_EXTRAVERSION="${XEN_EXTRAVERSION#*.}"
|
|
|
|
XEN_EXTRAVERSION="${XEN_EXTRAVERSION#*.}"
|
|
|
|
# remove trailing B_CNT to reduce build-compare noise
|
|
|
|
XEN_EXTRAVERSION="${XEN_EXTRAVERSION%%.*}"
|
|
|
|
XEN_FULLVERSION="$XEN_VERSION.$XEN_SUBVERSION.$XEN_EXTRAVERSION"
|
|
|
|
XEN_BUILD_DATE="`date -u -d '1970-01-01'`"
|
|
|
|
XEN_BUILD_TIME="`date -u -d '1970-01-01' +%%T`"
|
|
|
|
SMBIOS_DATE="`date -u -d '1970-01-01' +%%m/%%d/%%Y`"
|
|
|
|
RELDATE="`date -u -d '1970-01-01' '+%%d %%b %%Y'`"
|
2015-02-17 18:52:51 +01:00
|
|
|
if test -r %{S:9}
|
2015-01-14 21:58:52 +01:00
|
|
|
then
|
2015-02-17 18:52:51 +01:00
|
|
|
XEN_BUILD_DATE="` date -u -d \"$(sed -n '/@/{s/ - .*$//p;q}' %{S:9})\" `"
|
|
|
|
XEN_BUILD_TIME="` date -u -d \"$(sed -n '/@/{s/ - .*$//p;q}' %{S:9})\" +%%T`"
|
|
|
|
SMBIOS_DATE="` date -u -d \"$(sed -n '/@/{s/ - .*$//p;q}' %{S:9})\" +%%m/%%d/%%Y`"
|
|
|
|
RELDATE="` date -u -d \"$(sed -n '/@/{s/ - .*$//p;q}' %{S:9})\" '+%%d %%b %%Y'`"
|
2015-01-14 21:58:52 +01:00
|
|
|
fi
|
|
|
|
cat > .our_xenversion <<_EOV_
|
|
|
|
export WGET=$(type -P false)
|
|
|
|
export FTP=$(type -P false)
|
|
|
|
export GIT=$(type -P false)
|
2012-10-05 23:55:57 +02:00
|
|
|
export EXTRA_CFLAGS_XEN_TOOLS="$RPM_OPT_FLAGS"
|
2015-01-14 21:58:52 +01:00
|
|
|
export EXTRA_CFLAGS_QEMU_TRADITIONAL="$RPM_OPT_FLAGS"
|
|
|
|
export SMBIOS_DATE="$SMBIOS_DATE"
|
|
|
|
export RELDATE="$RELDATE"
|
|
|
|
XEN_VERSION=$XEN_VERSION
|
|
|
|
XEN_SUBVERSION=$XEN_SUBVERSION
|
|
|
|
XEN_EXTRAVERSION=$XEN_EXTRAVERSION
|
|
|
|
XEN_FULLVERSION=$XEN_FULLVERSION
|
|
|
|
_EOV_
|
|
|
|
source ./.our_xenversion
|
|
|
|
echo "%{changeset}" > xen/.scmversion
|
|
|
|
sed -i~ "
|
|
|
|
s/XEN_VERSION[[:blank:]]*=.*/XEN_VERSION = $XEN_VERSION/
|
|
|
|
s/XEN_SUBVERSION[[:blank:]]*=.*/XEN_SUBVERSION = $XEN_SUBVERSION/
|
|
|
|
s/XEN_EXTRAVERSION[[:blank:]]*?=.*/XEN_EXTRAVERSION = .$XEN_EXTRAVERSION/
|
|
|
|
s/XEN_FULLVERSION[[:blank:]]*=.*/XEN_FULLVERSION = $XEN_FULLVERSION/
|
|
|
|
s/XEN_BUILD_DATE[[:blank:]]*?=.*/XEN_BUILD_DATE = $XEN_BUILD_DATE/
|
|
|
|
s/XEN_BUILD_TIME[[:blank:]]*?=.*/XEN_BUILD_TIME = $XEN_BUILD_TIME/
|
|
|
|
s/XEN_BUILD_HOST[[:blank:]]*?=.*/XEN_BUILD_HOST = buildhost/
|
|
|
|
s/XEN_DOMAIN[[:blank:]]*?=.*/XEN_DOMAIN = suse.de/
|
|
|
|
" xen/Makefile
|
|
|
|
if diff -u xen/Makefile~ xen/Makefile
|
|
|
|
then
|
|
|
|
: no changes?
|
|
|
|
fi
|
2014-01-02 20:09:07 +01:00
|
|
|
configure_flags=
|
|
|
|
%if %{?with_stubdom}0
|
|
|
|
configure_flags=--enable-stubdom
|
|
|
|
%else
|
|
|
|
configure_flags=--disable-stubdom
|
|
|
|
%endif
|
|
|
|
%if %{?with_qemu_traditional}0
|
|
|
|
configure_flags="${configure_flags} --enable-qemu-traditional"
|
|
|
|
%else
|
|
|
|
configure_flags="${configure_flags} --disable-qemu-traditional"
|
|
|
|
%endif
|
2012-09-17 17:49:23 +02:00
|
|
|
./configure \
|
2015-01-14 21:58:52 +01:00
|
|
|
--disable-xen \
|
|
|
|
--enable-tools \
|
|
|
|
--enable-docs \
|
2012-09-17 17:49:23 +02:00
|
|
|
--prefix=/usr \
|
|
|
|
--exec_prefix=/usr \
|
|
|
|
--bindir=%{_bindir} \
|
|
|
|
--sbindir=%{_sbindir} \
|
|
|
|
--libdir=%{_libdir} \
|
2015-01-14 21:58:52 +01:00
|
|
|
--libexecdir=%{_libexecdir} \
|
2014-01-02 20:09:07 +01:00
|
|
|
--datadir=%{_datadir} \
|
2015-11-11 18:04:52 +01:00
|
|
|
--with-xen-dumpdir=%{_sharedstatedir}/xen/dump \
|
2015-01-14 21:58:52 +01:00
|
|
|
--mandir=%{_mandir} \
|
|
|
|
--includedir=%{_includedir} \
|
|
|
|
--docdir=%{_defaultdocdir}/xen \
|
|
|
|
--with-initddir=%{_initddir} \
|
|
|
|
%if %{?with_oxenstored}0
|
|
|
|
--with-xenstored=oxenstored \
|
|
|
|
%endif
|
|
|
|
%if %{?with_systemd}0
|
|
|
|
--enable-systemd \
|
|
|
|
--with-systemd=%{_unitdir} \
|
|
|
|
--with-systemd-modules-load=%{with_systemd_modules_load} \
|
|
|
|
%else
|
|
|
|
--disable-systemd \
|
|
|
|
%endif
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
--with-system-ovmf=%{_datadir}/qemu/ovmf-x86_64-ms.bin \
|
2016-03-23 21:51:29 +01:00
|
|
|
--with-system-seabios=%{_datadir}/qemu/bios-256k.bin \
|
2016-03-03 23:36:20 +01:00
|
|
|
--with-system-qemu=%{_bindir}/qemu-system-%{_arch} \
|
2014-02-04 00:53:57 +01:00
|
|
|
${configure_flags}
|
2015-01-14 21:58:52 +01:00
|
|
|
make -C tools/include/xen-foreign %{?_smp_mflags}
|
|
|
|
make %{?_smp_mflags}
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
2012-09-17 17:49:23 +02:00
|
|
|
make -C tools/xen-utils-0.1 XEN_INTREE_BUILD=yes XEN_ROOT=$PWD
|
2014-01-09 22:49:46 +01:00
|
|
|
%endif
|
2015-01-14 21:58:52 +01:00
|
|
|
#
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
2013-07-31 22:29:13 +02:00
|
|
|
# PV driver modules
|
2008-09-01 02:39:12 +02:00
|
|
|
export XL=/usr/src/linux
|
|
|
|
export XEN=/usr/src/linux/include/xen
|
2007-02-11 11:48:10 +01:00
|
|
|
mkdir -p obj
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
rm -rf obj/$flavor
|
|
|
|
cp -r unmodified_drivers/linux-2.6 obj/$flavor
|
2008-09-01 02:39:12 +02:00
|
|
|
cd obj/$flavor
|
|
|
|
./mkbuildtree
|
2007-02-11 11:48:10 +01:00
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules \
|
2011-03-22 22:15:11 +01:00
|
|
|
%{?_smp_mflags} \
|
2008-09-01 02:39:12 +02:00
|
|
|
M=$PWD
|
|
|
|
cd ../..
|
2007-02-11 11:48:10 +01:00
|
|
|
done
|
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%install
|
2015-01-14 21:58:52 +01:00
|
|
|
source ./.our_xenversion
|
|
|
|
# tools
|
|
|
|
make \
|
|
|
|
DESTDIR=$RPM_BUILD_ROOT \
|
|
|
|
SYSCONFIG_DIR=/var/adm/fillup-templates \
|
|
|
|
%{?_smp_mflags} \
|
|
|
|
install
|
|
|
|
find $RPM_BUILD_ROOT -ls
|
|
|
|
for i in $RPM_BUILD_ROOT/var/adm/fillup-templates/*
|
|
|
|
do
|
|
|
|
mv -v $i ${i%/*}/sysconfig.${i##*/}
|
|
|
|
done
|
2011-07-01 21:31:25 +02:00
|
|
|
# EFI
|
2014-02-04 00:53:57 +01:00
|
|
|
%if %{?with_dom0_support}0
|
2014-04-10 08:04:31 +02:00
|
|
|
export BRP_PESIGN_FILES="*.ko *.efi /lib/firmware"
|
2011-08-15 16:46:23 +02:00
|
|
|
make -C xen install \
|
2014-02-04 00:53:57 +01:00
|
|
|
%if %{?with_gcc47}0
|
|
|
|
CC=gcc-4.7 \
|
2011-08-15 16:46:23 +02:00
|
|
|
%endif
|
2015-11-24 16:48:21 +01:00
|
|
|
%if %{?with_gcc48}0
|
|
|
|
CC=gcc-4.8 \
|
|
|
|
%endif
|
|
|
|
max_phys_cpus=%{max_cpus} debug=n crash_debug=n DEBUG_DIR=/boot DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
|
2011-07-07 18:20:18 +02:00
|
|
|
make -C xen clean
|
2007-01-16 00:42:10 +01:00
|
|
|
install_xen()
|
|
|
|
{
|
|
|
|
local ext=""
|
2015-01-14 21:58:52 +01:00
|
|
|
find $RPM_BUILD_ROOT/boot -ls
|
2007-01-16 00:42:10 +01:00
|
|
|
if [ -n "$1" ]; then
|
|
|
|
ext="-$1"
|
2015-01-14 21:58:52 +01:00
|
|
|
mv $RPM_BUILD_ROOT/boot/xen-${XEN_FULLVERSION}%{xen_install_suffix} \
|
|
|
|
$RPM_BUILD_ROOT/boot/xen${ext}-${XEN_FULLVERSION}%{xen_install_suffix}
|
2007-01-16 00:42:10 +01:00
|
|
|
fi
|
2015-01-14 21:58:52 +01:00
|
|
|
rm $RPM_BUILD_ROOT/boot/xen-$XEN_VERSION.$XEN_SUBVERSION%{xen_install_suffix}
|
|
|
|
rm $RPM_BUILD_ROOT/boot/xen-$XEN_VERSION%{xen_install_suffix}
|
2014-02-04 00:53:57 +01:00
|
|
|
rm $RPM_BUILD_ROOT/boot/xen%{xen_install_suffix}
|
2007-01-16 00:42:10 +01:00
|
|
|
# Do not link to links; grub cannot follow.
|
2015-01-14 21:58:52 +01:00
|
|
|
ln -s xen${ext}-${XEN_FULLVERSION}%{xen_install_suffix} $RPM_BUILD_ROOT/boot/xen${ext}-$XEN_VERSION.$XEN_SUBVERSION%{xen_install_suffix}
|
|
|
|
ln -s xen${ext}-${XEN_FULLVERSION}%{xen_install_suffix} $RPM_BUILD_ROOT/boot/xen${ext}-$XEN_VERSION%{xen_install_suffix}
|
|
|
|
ln -s xen${ext}-${XEN_FULLVERSION}%{xen_install_suffix} $RPM_BUILD_ROOT/boot/xen${ext}%{xen_install_suffix}
|
|
|
|
ln -sf xen-syms${ext}-${XEN_FULLVERSION} $RPM_BUILD_ROOT/boot/xen-syms${ext}
|
|
|
|
find $RPM_BUILD_ROOT/boot -ls
|
2007-01-16 00:42:10 +01:00
|
|
|
}
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_debug}0
|
2015-11-24 16:48:21 +01:00
|
|
|
make -C xen install max_phys_cpus=%{max_cpus} debug=y crash_debug=y DEBUG_DIR=/boot DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
|
2008-03-27 23:24:06 +01:00
|
|
|
install_xen dbg
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C xen clean
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2015-11-24 16:48:21 +01:00
|
|
|
make -C xen install max_phys_cpus=%{max_cpus} debug=n crash_debug=n DEBUG_DIR=/boot DESTDIR=$RPM_BUILD_ROOT %{?_smp_mflags}
|
2008-03-27 23:24:06 +01:00
|
|
|
install_xen
|
2007-01-16 00:42:10 +01:00
|
|
|
make -C xen clean
|
2013-07-06 03:06:10 +02:00
|
|
|
echo > xen.files.txt
|
2014-02-04 00:53:57 +01:00
|
|
|
# EFI depends on gcc47
|
2011-08-15 15:32:00 +02:00
|
|
|
if test -d $RPM_BUILD_ROOT%{_libdir}/efi
|
|
|
|
then
|
|
|
|
echo %{_libdir}/efi >> xen.files.txt
|
|
|
|
fi
|
2011-07-01 21:31:25 +02:00
|
|
|
%endif
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
# PV driver modules
|
2007-02-11 11:48:10 +01:00
|
|
|
%if %{?with_kmp}0
|
|
|
|
export INSTALL_MOD_PATH=$RPM_BUILD_ROOT
|
|
|
|
export INSTALL_MOD_DIR=updates
|
|
|
|
for flavor in %flavors_to_build; do
|
|
|
|
make -C /usr/src/linux-obj/%_target_cpu/$flavor modules_install \
|
|
|
|
M=$PWD/obj/$flavor
|
|
|
|
done
|
2007-01-16 00:42:10 +01:00
|
|
|
%endif
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2016-03-03 23:36:20 +01:00
|
|
|
# On x86_64, qemu-xen was installed as /usr/lib/xen/bin/qemu-system-i386
|
|
|
|
# and advertised as the <emulator> in libvirt capabilities. Tool such as
|
|
|
|
# virt-install include <emulator> in domXML they produce, so we need to
|
|
|
|
# preserve the path. For x86_64, create a simple wrapper that invokes
|
|
|
|
# /usr/bin/qemu-system-x86_64
|
|
|
|
%ifarch x86_64
|
|
|
|
cat > $RPM_BUILD_ROOT/usr/lib/xen/bin/qemu-system-i386 << 'EOF'
|
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
exec %{_bindir}/qemu-system-x86_64 "$@"
|
|
|
|
EOF
|
|
|
|
chmod 0755 $RPM_BUILD_ROOT/usr/lib/xen/bin/qemu-system-i386
|
|
|
|
%endif
|
|
|
|
|
2011-07-01 21:31:25 +02:00
|
|
|
# Stubdom
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
2011-07-01 21:31:25 +02:00
|
|
|
# Docs
|
2015-01-14 21:58:52 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc
|
2012-09-17 17:49:23 +02:00
|
|
|
for name in COPYING %SOURCE10 %SOURCE11 %SOURCE12; do
|
2007-02-11 11:48:10 +01:00
|
|
|
install -m 644 $name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/
|
2007-01-16 00:42:10 +01:00
|
|
|
done
|
2015-11-11 18:04:52 +01:00
|
|
|
for name in vtpm.txt crashdb.txt \
|
2016-01-20 17:26:32 +01:00
|
|
|
xenpaging.txt xl-disk-configuration.txt pci-device-reservations.txt \
|
|
|
|
xl-network-configuration.markdown xl-numa-placement.markdown \
|
|
|
|
xen-command-line.markdown xenstore-paths.markdown; do
|
2007-02-11 11:48:10 +01:00
|
|
|
install -m 644 docs/misc/$name $RPM_BUILD_ROOT/%{_defaultdocdir}/xen/misc/
|
2007-01-16 00:42:10 +01:00
|
|
|
done
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2008-04-12 21:41:18 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/modprobe.d
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 %SOURCE26 $RPM_BUILD_ROOT/etc/modprobe.d/xen_loop.conf
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2015-01-14 21:58:52 +01:00
|
|
|
# xen-utils
|
2014-07-24 21:43:18 +02:00
|
|
|
make -C tools/xen-utils-0.1 install DESTDIR=$RPM_BUILD_ROOT XEN_INTREE_BUILD=yes XEN_ROOT=$PWD
|
2014-03-14 00:46:35 +01:00
|
|
|
install -m755 %SOURCE37 $RPM_BUILD_ROOT/usr/sbin/xen2libvirt
|
2014-01-02 20:09:07 +01:00
|
|
|
|
|
|
|
# Example config
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/etc/xen/{vm,examples,scripts}
|
2012-09-17 17:49:23 +02:00
|
|
|
mv $RPM_BUILD_ROOT/etc/xen/xlexample* $RPM_BUILD_ROOT/etc/xen/examples
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/examples/*nbd
|
2010-10-20 23:00:35 +02:00
|
|
|
install -m644 tools/xentrace/formats $RPM_BUILD_ROOT/etc/xen/examples/xentrace_formats.txt
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Scripts
|
2008-08-18 00:24:29 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/etc/xen/scripts/block-*nbd
|
2015-11-24 16:48:21 +01:00
|
|
|
install -m755 %SOURCE21 %SOURCE22 %SOURCE23 %SOURCE29 $RPM_BUILD_ROOT/etc/xen/scripts/
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2008-03-06 02:36:51 +01:00
|
|
|
# Xen API remote authentication files
|
|
|
|
install -d $RPM_BUILD_ROOT/etc/pam.d
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 %SOURCE30 $RPM_BUILD_ROOT/etc/pam.d/xen-api
|
|
|
|
install -m644 %SOURCE31 $RPM_BUILD_ROOT/etc/xen/
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Logrotate
|
2012-09-17 17:49:23 +02:00
|
|
|
install -m644 -D %SOURCE15 $RPM_BUILD_ROOT/etc/logrotate.d/xen
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Directories
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xenstored
|
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/images
|
2007-02-11 11:48:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/jobs
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/save
|
2008-06-06 17:48:40 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/lib/xen/dump
|
2007-01-16 00:42:10 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/log/xen
|
2011-07-01 21:31:25 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT/var/log/xen/console
|
2007-01-16 00:42:10 +01:00
|
|
|
ln -s /var/lib/xen/images $RPM_BUILD_ROOT/etc/xen/images
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
# Bootloader
|
2013-01-22 16:51:51 +01:00
|
|
|
install -m755 %SOURCE36 $RPM_BUILD_ROOT/%{_libdir}/python%{pyver}/site-packages
|
2013-07-31 22:29:13 +02:00
|
|
|
|
|
|
|
# Systemd
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2015-01-14 21:58:52 +01:00
|
|
|
%if %{?include_systemd_preset}0
|
|
|
|
mkdir -vp $RPM_BUILD_ROOT%_presetdir
|
|
|
|
cat > $RPM_BUILD_ROOT%_presetdir/00-%{name}.preset <<EOF
|
|
|
|
enable xencommons.service
|
|
|
|
EOF
|
|
|
|
%endif
|
2015-01-20 15:00:18 +01:00
|
|
|
cp -bavL %{S:41} $RPM_BUILD_ROOT%{_unitdir}
|
2015-04-21 14:25:48 +02:00
|
|
|
bn=`basename %{S:42}`
|
|
|
|
cp -bavL %{S:42} $RPM_BUILD_ROOT%{_unitdir}/${bn}
|
|
|
|
mods="`
|
|
|
|
for conf in $(ls $RPM_BUILD_ROOT%{with_systemd_modules_load}/*.conf)
|
|
|
|
do
|
|
|
|
grep -v ^# $conf
|
|
|
|
echo -n > $conf
|
|
|
|
done
|
|
|
|
`"
|
|
|
|
for mod in $mods
|
|
|
|
do
|
|
|
|
echo "ExecStart=-/usr/bin/env modprobe $mod" >> $RPM_BUILD_ROOT%{_unitdir}/${bn}
|
|
|
|
done
|
2015-01-14 21:58:52 +01:00
|
|
|
rm -rfv $RPM_BUILD_ROOT%{_initddir}
|
|
|
|
%else
|
|
|
|
# Init scripts
|
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_initddir}
|
|
|
|
install %SOURCE34 $RPM_BUILD_ROOT%{_initddir}/pciback
|
|
|
|
ln -s %{_initddir}/pciback $RPM_BUILD_ROOT/usr/sbin/rcpciback
|
|
|
|
ln -s %{_initddir}/xendomains $RPM_BUILD_ROOT/usr/sbin/rcxendomains
|
2013-07-30 23:20:13 +02:00
|
|
|
%endif
|
2015-01-14 21:58:52 +01:00
|
|
|
install %SOURCE35 $RPM_BUILD_ROOT/var/adm/fillup-templates/sysconfig.pciback
|
2013-07-31 22:29:13 +02:00
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
# Clean up unpackaged files
|
2015-01-14 21:58:52 +01:00
|
|
|
find $RPM_BUILD_ROOT \( \
|
|
|
|
-name .deps -o \
|
|
|
|
-name README.blktap -o \
|
|
|
|
-name README.xenmon -o \
|
|
|
|
-name target-x86_64.conf -o \
|
|
|
|
-name xen-mfndump -o \
|
|
|
|
-name qcow-create -o \
|
|
|
|
-name img2qcow -o \
|
|
|
|
-name qcow2raw -o \
|
|
|
|
-name qemu-bridge-helper -o \
|
|
|
|
-name qemu-img-xen -o \
|
|
|
|
-name qemu-nbd-xen -o \
|
|
|
|
-name palcode-clipper -o \
|
|
|
|
-name "*.dtb" -o \
|
|
|
|
-name "openbios-*" -o \
|
|
|
|
-name "petalogix*" -o \
|
|
|
|
-name "ppc*" -o \
|
|
|
|
-name "s390*" -o \
|
|
|
|
-name "slof*" -o \
|
|
|
|
-name "spapr*" -o \
|
|
|
|
-name "*.egg-info" \) \
|
|
|
|
-print -delete
|
|
|
|
# Wipe empty directories
|
|
|
|
if find $RPM_BUILD_ROOT/usr -type d -print0 | xargs -0n1 rmdir -p 2>/dev/null
|
|
|
|
then
|
|
|
|
:
|
|
|
|
fi
|
2014-01-02 20:09:07 +01:00
|
|
|
|
|
|
|
# Create symlinks for keymaps
|
|
|
|
%fdupes -s $RPM_BUILD_ROOT/%{_datadir}
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%else
|
|
|
|
# !with_dom0_support
|
|
|
|
|
|
|
|
# 32 bit hypervisor no longer supported. Remove dom0 tools.
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/doc
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_datadir}/man
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/xen
|
|
|
|
rm -rf $RPM_BUILD_ROOT/%{_libdir}/python*
|
2015-01-14 21:58:52 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT%{_unitdir}
|
|
|
|
rm -rf $RPM_BUILD_ROOT%{with_systemd_modules_load}
|
2014-01-09 22:49:46 +01:00
|
|
|
rm -rf $RPM_BUILD_ROOT/usr/sbin
|
|
|
|
rm -rf $RPM_BUILD_ROOT/etc/xen
|
|
|
|
rm -rf $RPM_BUILD_ROOT/var
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/bash_completion.d/xl.sh
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_sysconfdir}/init.d/xen*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*store*
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/*trace*
|
2015-11-11 21:28:12 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/xenalyze*
|
2014-01-09 22:49:46 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/xenco*
|
2016-04-14 14:34:00 +02:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/xen-cpuid
|
2014-01-09 22:49:46 +01:00
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/pygrub
|
|
|
|
rm -f $RPM_BUILD_ROOT/%{_bindir}/remus
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/etc/qemu/target-x86_64.conf
|
|
|
|
rm -f $RPM_BUILD_ROOT/usr/libexec/qemu-bridge-helper
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2011-08-15 15:32:00 +02:00
|
|
|
%files -f xen.files.txt
|
2007-01-16 00:42:10 +01:00
|
|
|
%defattr(-,root,root)
|
2015-01-14 21:58:52 +01:00
|
|
|
/boot/*
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2014-02-04 19:31:26 +01:00
|
|
|
%endif
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%files libs
|
|
|
|
%defattr(-,root,root)
|
2007-02-11 11:48:10 +01:00
|
|
|
%{_libdir}/fs/
|
2011-04-12 00:31:41 +02:00
|
|
|
%{_libdir}/*.so.*
|
2007-02-19 23:34:05 +01:00
|
|
|
|
2014-02-04 19:31:26 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-06-23 00:22:21 +02:00
|
|
|
%files tools
|
2007-01-16 00:42:10 +01:00
|
|
|
%defattr(-,root,root)
|
2014-02-04 00:53:57 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2010-12-11 00:38:27 +01:00
|
|
|
/usr/bin/xenalyze
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
/usr/bin/xencons
|
|
|
|
/usr/bin/xenstore*
|
2008-07-19 01:04:37 +02:00
|
|
|
/usr/bin/pygrub
|
2015-11-11 18:04:52 +01:00
|
|
|
#%if %{?with_qemu_traditional}0
|
|
|
|
#/usr/bin/tapdisk-ioemu
|
|
|
|
#%endif
|
2013-06-20 19:01:24 +02:00
|
|
|
/usr/bin/xencov_split
|
2015-11-11 18:04:52 +01:00
|
|
|
/usr/bin/xentrace_format
|
2016-04-14 14:34:00 +02:00
|
|
|
%ifarch x86_64
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
/usr/bin/xen-cpuid
|
2016-04-14 12:41:52 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/tap*
|
|
|
|
/usr/sbin/xenbaked
|
|
|
|
/usr/sbin/xenconsoled
|
|
|
|
/usr/sbin/xencov
|
|
|
|
/usr/sbin/xenlockprof
|
|
|
|
/usr/sbin/xenmon.py
|
|
|
|
/usr/sbin/xenperf
|
|
|
|
/usr/sbin/xenpm
|
|
|
|
/usr/sbin/xenpmd
|
|
|
|
/usr/sbin/xen-ringwatch
|
|
|
|
/usr/sbin/xenstored
|
|
|
|
/usr/sbin/xen-tmem-list-parse
|
|
|
|
/usr/sbin/xentop
|
2015-11-11 18:04:52 +01:00
|
|
|
/usr/sbin/xentrace
|
|
|
|
/usr/sbin/xentrace_setsize
|
2013-06-12 23:52:27 +02:00
|
|
|
/usr/sbin/xentrace_setmask
|
|
|
|
/usr/sbin/xenwatchdogd
|
2010-01-16 01:12:54 +01:00
|
|
|
/usr/sbin/gtracestat
|
|
|
|
/usr/sbin/gtraceview
|
|
|
|
/usr/sbin/lock-util
|
|
|
|
/usr/sbin/td-util
|
|
|
|
/usr/sbin/vhd-update
|
|
|
|
/usr/sbin/vhd-util
|
2016-03-25 23:10:02 +01:00
|
|
|
/usr/sbin/flask-get-bool
|
|
|
|
/usr/sbin/flask-getenforce
|
|
|
|
/usr/sbin/flask-label-pci
|
|
|
|
/usr/sbin/flask-loadpolicy
|
|
|
|
/usr/sbin/flask-set-bool
|
|
|
|
/usr/sbin/flask-setenforce
|
2014-02-04 00:53:57 +01:00
|
|
|
%if %{?with_gdbsx}0
|
2010-09-28 00:07:21 +02:00
|
|
|
/usr/sbin/gdbsx
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2010-10-20 23:00:35 +02:00
|
|
|
/usr/sbin/xl
|
2014-03-14 00:46:35 +01:00
|
|
|
/usr/sbin/xen2libvirt
|
2014-02-04 00:53:57 +01:00
|
|
|
%ifarch %ix86 x86_64
|
|
|
|
/usr/sbin/xen-hptool
|
|
|
|
/usr/sbin/xen-hvmcrash
|
|
|
|
/usr/sbin/xen-hvmctx
|
|
|
|
/usr/sbin/xen-lowmemd
|
2011-11-28 20:34:40 +01:00
|
|
|
/usr/sbin/kdd
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2014-07-24 21:43:18 +02:00
|
|
|
/usr/sbin/xen-list
|
|
|
|
/usr/sbin/xen-destroy
|
2015-01-14 21:58:52 +01:00
|
|
|
/usr/sbin/xen-bugtool
|
2016-04-30 00:59:30 +02:00
|
|
|
/usr/sbin/xen-xsplice
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %attr(700,root,root) /etc/xen
|
|
|
|
%dir /etc/xen/scripts
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_qemu_traditional}0
|
2015-11-11 18:04:52 +01:00
|
|
|
#/usr/sbin/blktapctrl
|
|
|
|
#/etc/xen/scripts/blktap
|
2014-01-02 20:09:07 +01:00
|
|
|
/etc/xen/scripts/qemu-ifup
|
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
/etc/xen/scripts/block*
|
|
|
|
/etc/xen/scripts/external-device-migrate
|
|
|
|
/etc/xen/scripts/hotplugpath.sh
|
|
|
|
/etc/xen/scripts/locking.sh
|
|
|
|
/etc/xen/scripts/logging.sh
|
|
|
|
/etc/xen/scripts/vif2
|
|
|
|
/etc/xen/scripts/vif-*
|
|
|
|
/etc/xen/scripts/vscsi
|
|
|
|
/etc/xen/scripts/xen-hotplug-*
|
|
|
|
/etc/xen/scripts/xen-network-common.sh
|
|
|
|
/etc/xen/scripts/xen-script-common.sh
|
- Add patches from proposed upstream series to load BIOS's from
the toolstack instead of embedding in hvmloader
http://lists.xenproject.org/archives/html/xen-devel/2016-03/msg01626.html
0001-libxc-Rework-extra-module-initialisation.patch,
0002-libxc-Prepare-a-start-info-structure-for-hvmloader.patch,
0003-configure-define-SEABIOS_PATH-and-OVMF_PATH.patch,
0004-firmware-makefile-install-BIOS-blob.patch,
0005-libxl-Load-guest-BIOS-from-file.patch,
0006-xen-Move-the-hvm_start_info-C-representation-from-li.patch,
0007-hvmloader-Grab-the-hvm_start_info-pointer.patch,
0008-hvmloader-Locate-the-BIOS-blob.patch,
0009-hvmloader-Check-modules-whereabouts-in-perform_tests.patch,
0010-hvmloader-Load-SeaBIOS-from-hvm_start_info-modules.patch,
0011-hvmloader-Load-OVMF-from-modules.patch,
0012-hvmloader-Specific-bios_load-function-required.patch,
0013-hvmloader-Always-build-in-SeaBIOS-and-OVMF-loader.patch,
0014-configure-do-not-depend-on-SEABIOS_PATH-or-OVMF_PATH.patch
- Enable support for UEFI on x86_64 using the ovmf-x86_64-ms.bin
firmware from qemu-ovmf-x86_64. The firmware is preloaded with
Microsoft keys to more closely resemble firmware on real hardware
FATE#320490
OBS-URL: https://build.opensuse.org/package/show/Virtualization/xen?expand=0&rev=416
2016-04-13 21:43:10 +02:00
|
|
|
/etc/xen/scripts/colo-proxy-setup
|
2015-01-14 21:58:52 +01:00
|
|
|
%{_libexecdir}/xen
|
2013-06-12 23:52:27 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.pciback
|
|
|
|
/var/adm/fillup-templates/sysconfig.xencommons
|
2013-07-09 23:37:32 +02:00
|
|
|
/var/adm/fillup-templates/sysconfig.xendomains
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir /var/lib/xen
|
|
|
|
%dir %attr(700,root,root) /var/lib/xen/images
|
|
|
|
%dir %attr(700,root,root) /var/lib/xen/save
|
2008-06-06 17:48:40 +02:00
|
|
|
%dir %attr(700,root,root) /var/lib/xen/dump
|
2014-02-04 00:53:57 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2010-10-29 18:37:40 +02:00
|
|
|
%dir %attr(700,root,root) /var/lib/xen/xenpaging
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2007-05-23 01:45:46 +02:00
|
|
|
%dir /var/lib/xenstored
|
2007-01-16 00:42:10 +01:00
|
|
|
%dir /var/log/xen
|
2011-07-01 21:31:25 +02:00
|
|
|
%dir /var/log/xen/console
|
2007-07-25 02:03:48 +02:00
|
|
|
%config /etc/logrotate.d/xen
|
2007-05-23 01:45:46 +02:00
|
|
|
/etc/xen/auto
|
|
|
|
%config /etc/xen/examples
|
|
|
|
/etc/xen/images
|
2011-04-12 00:31:41 +02:00
|
|
|
%config /etc/xen/cpupool
|
2008-08-18 00:24:29 +02:00
|
|
|
/etc/xen/README*
|
2007-05-23 01:45:46 +02:00
|
|
|
%config /etc/xen/vm
|
2008-03-06 02:36:51 +01:00
|
|
|
%config(noreplace) /etc/xen/xenapiusers
|
2011-03-21 17:47:37 +01:00
|
|
|
%config(noreplace) /etc/xen/xl.conf
|
2008-03-06 02:36:51 +01:00
|
|
|
%config /etc/pam.d/xen-api
|
2009-08-17 14:57:35 +02:00
|
|
|
%config /etc/modprobe.d/xen_loop.conf
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2015-01-14 21:58:52 +01:00
|
|
|
%config %{_unitdir}
|
|
|
|
%config %{with_systemd_modules_load}
|
|
|
|
%if %{?include_systemd_preset}0
|
|
|
|
%config %_presetdir
|
|
|
|
%endif
|
|
|
|
%else
|
|
|
|
/usr/sbin/rcpciback
|
|
|
|
/usr/sbin/rcxendomains
|
|
|
|
%config %{_initddir}/*
|
2013-07-30 23:20:13 +02:00
|
|
|
%endif
|
2008-04-12 21:41:18 +02:00
|
|
|
%dir /etc/modprobe.d
|
2010-10-20 23:00:35 +02:00
|
|
|
/etc/bash_completion.d/xl.sh
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_qemu_traditional}0
|
|
|
|
%dir %{_datadir}/xen
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %{_datadir}/xen/qemu
|
2008-08-18 00:24:29 +02:00
|
|
|
%{_datadir}/xen/qemu/*
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/grub
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen
|
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/lowlevel
|
2015-11-11 18:04:52 +01:00
|
|
|
%dir %{_libdir}/python%{pyver}/site-packages/xen/migration
|
2009-08-21 17:26:06 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/grub/*
|
2013-06-01 23:11:56 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/__init__*
|
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/lowlevel/*
|
2015-11-11 18:04:52 +01:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xen/migration/*
|
2009-08-21 17:26:06 +02:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/fsimage.so
|
2013-01-22 16:44:50 +01:00
|
|
|
%{_libdir}/python%{pyver}/site-packages/xnloader.py
|
2013-06-12 23:52:27 +02:00
|
|
|
%dir %{_defaultdocdir}/xen
|
|
|
|
%{_defaultdocdir}/xen/COPYING
|
2014-08-15 16:33:16 +02:00
|
|
|
%{_defaultdocdir}/xen/README.SUSE
|
2013-06-12 23:52:27 +02:00
|
|
|
%{_defaultdocdir}/xen/boot.local.xenU
|
|
|
|
%{_defaultdocdir}/xen/boot.xen
|
|
|
|
%{_defaultdocdir}/xen/misc
|
|
|
|
%{_mandir}/man1/xentop.1.gz
|
|
|
|
%{_mandir}/man1/xentrace_format.1.gz
|
|
|
|
%{_mandir}/man1/xl.1.gz
|
2014-01-02 20:09:07 +01:00
|
|
|
%{_mandir}/man1/xenstore-chmod.1.gz
|
|
|
|
%{_mandir}/man1/xenstore-ls.1.gz
|
|
|
|
%{_mandir}/man1/xenstore.1.gz
|
2013-06-12 23:52:27 +02:00
|
|
|
%{_mandir}/man5/xl.cfg.5.gz
|
|
|
|
%{_mandir}/man5/xl.conf.5.gz
|
|
|
|
%{_mandir}/man5/xlcpupool.cfg.5.gz
|
|
|
|
%{_mandir}/man8/*.8.gz
|
2014-07-24 21:43:18 +02:00
|
|
|
%{_mandir}/man1/xen-list.1.gz
|
2008-02-02 01:58:27 +01:00
|
|
|
|
2016-04-27 20:28:08 +02:00
|
|
|
%if %{?with_oxenstored}0
|
|
|
|
/usr/sbin/oxenstored
|
|
|
|
/etc/xen/oxenstored.conf
|
|
|
|
%dir %{_libdir}/ocaml
|
|
|
|
%dir %{_libdir}/ocaml/xenbus
|
|
|
|
%dir %{_libdir}/ocaml/xenctrl
|
|
|
|
%dir %{_libdir}/ocaml/xeneventchn
|
|
|
|
%dir %{_libdir}/ocaml/xenlight
|
|
|
|
%dir %{_libdir}/ocaml/xenmmap
|
|
|
|
%dir %{_libdir}/ocaml/xenstore
|
|
|
|
%dir %{_libdir}/ocaml/xentoollog
|
|
|
|
%{_libdir}/ocaml/xenbus/META
|
|
|
|
%{_libdir}/ocaml/xenbus/*.so
|
|
|
|
%{_libdir}/ocaml/xenbus/*.cma
|
|
|
|
%{_libdir}/ocaml/xenbus/*.cmi
|
|
|
|
%{_libdir}/ocaml/xenbus/*.cmo
|
|
|
|
%{_libdir}/ocaml/xenctrl/META
|
|
|
|
%{_libdir}/ocaml/xenctrl/*.so
|
|
|
|
%{_libdir}/ocaml/xenctrl/*.cma
|
|
|
|
%{_libdir}/ocaml/xenctrl/*.cmi
|
|
|
|
%{_libdir}/ocaml/xeneventchn/META
|
|
|
|
%{_libdir}/ocaml/xeneventchn/*.so
|
|
|
|
%{_libdir}/ocaml/xeneventchn/*.cma
|
|
|
|
%{_libdir}/ocaml/xeneventchn/*.cmi
|
|
|
|
%{_libdir}/ocaml/xenlight/META
|
|
|
|
%{_libdir}/ocaml/xenlight/*.so
|
|
|
|
%{_libdir}/ocaml/xenlight/*.cma
|
|
|
|
%{_libdir}/ocaml/xenlight/*.cmi
|
|
|
|
%{_libdir}/ocaml/xenmmap/META
|
|
|
|
%{_libdir}/ocaml/xenmmap/*.so
|
|
|
|
%{_libdir}/ocaml/xenmmap/*.cma
|
|
|
|
%{_libdir}/ocaml/xenmmap/*.cmi
|
|
|
|
%{_libdir}/ocaml/xenstore/META
|
|
|
|
%{_libdir}/ocaml/xenstore/*.cma
|
|
|
|
%{_libdir}/ocaml/xenstore/*.cmi
|
|
|
|
%{_libdir}/ocaml/xenstore/*.cmo
|
|
|
|
%{_libdir}/ocaml/xentoollog/META
|
|
|
|
%{_libdir}/ocaml/xentoollog/*.so
|
|
|
|
%{_libdir}/ocaml/xentoollog/*.cma
|
|
|
|
%{_libdir}/ocaml/xentoollog/*.cmi
|
|
|
|
%endif
|
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
# with_dom0_support
|
|
|
|
%endif
|
2013-06-01 23:11:56 +02:00
|
|
|
|
2008-02-02 01:58:27 +01:00
|
|
|
%files tools-domU
|
|
|
|
%defattr(-,root,root)
|
2014-02-04 00:53:57 +01:00
|
|
|
%ifarch %ix86 x86_64
|
2008-02-02 01:58:27 +01:00
|
|
|
/usr/bin/xen-detect
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2008-11-25 15:57:48 +01:00
|
|
|
/bin/domu-xenstore
|
2008-02-02 01:58:27 +01:00
|
|
|
/bin/xenstore-*
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
2011-04-12 00:31:41 +02:00
|
|
|
%{_libdir}/*.a
|
|
|
|
%{_libdir}/*.so
|
2016-04-27 20:28:08 +02:00
|
|
|
%if %{?with_oxenstored}0
|
|
|
|
%{_libdir}/ocaml/xenbus/*.a
|
|
|
|
%{_libdir}/ocaml/xenbus/*.cmx*
|
|
|
|
%{_libdir}/ocaml/xenctrl/*.a
|
|
|
|
%{_libdir}/ocaml/xenctrl/*.cmx*
|
|
|
|
%{_libdir}/ocaml/xeneventchn/*.a
|
|
|
|
%{_libdir}/ocaml/xeneventchn/*.cmx*
|
|
|
|
%{_libdir}/ocaml/xenlight/*.a
|
|
|
|
%{_libdir}/ocaml/xenlight/*.cmx*
|
|
|
|
%{_libdir}/ocaml/xenmmap/*.a
|
|
|
|
%{_libdir}/ocaml/xenmmap/*.cmx*
|
|
|
|
%{_libdir}/ocaml/xenstore/*.a
|
|
|
|
%{_libdir}/ocaml/xenstore/*.cmx*
|
|
|
|
%{_libdir}/ocaml/xentoollog/*.a
|
|
|
|
%{_libdir}/ocaml/xentoollog/*.cmx*
|
|
|
|
%endif
|
2011-04-12 00:31:41 +02:00
|
|
|
/usr/include/*
|
2015-11-11 18:04:52 +01:00
|
|
|
%{_datadir}/pkgconfig/xenlight.pc
|
|
|
|
%{_datadir}/pkgconfig/xlutil.pc
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2014-01-09 22:49:46 +01:00
|
|
|
%if %{?with_dom0_support}0
|
|
|
|
|
2007-01-16 00:42:10 +01:00
|
|
|
%files doc-html
|
|
|
|
%defattr(-,root,root)
|
2015-01-14 21:58:52 +01:00
|
|
|
%dir %{_defaultdocdir}/xen
|
2007-01-16 00:42:10 +01:00
|
|
|
%{_defaultdocdir}/xen/html
|
2011-08-07 18:42:22 +02:00
|
|
|
|
2013-08-29 20:19:23 +02:00
|
|
|
%post
|
2013-09-04 23:57:48 +02:00
|
|
|
if [ -x /sbin/update-bootloader ]; then
|
|
|
|
/sbin/update-bootloader --refresh; exit 0
|
|
|
|
fi
|
|
|
|
|
2015-01-14 21:58:52 +01:00
|
|
|
%pre tools
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2015-01-14 21:58:52 +01:00
|
|
|
%service_add_pre xencommons.service
|
|
|
|
%service_add_pre xendomains.service
|
2014-01-16 21:18:13 +01:00
|
|
|
%endif
|
|
|
|
|
2015-01-14 21:58:52 +01:00
|
|
|
%post tools
|
|
|
|
xen_tools_first_arg=$1
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2015-01-14 21:58:52 +01:00
|
|
|
%{fillup_only -n xencommons xencommons}
|
|
|
|
%{fillup_only -n xendomains xendomains}
|
|
|
|
%service_add_post xencommons.service
|
|
|
|
%service_add_post xendomains.service
|
2013-07-30 23:20:13 +02:00
|
|
|
%else
|
2011-10-18 16:16:28 +02:00
|
|
|
%{fillup_only -n pciback}
|
2015-01-14 21:58:52 +01:00
|
|
|
%{fillup_and_insserv -y -n xencommons xencommons}
|
|
|
|
%{fillup_and_insserv -i -y -n xendomains xendomains}
|
2014-01-02 20:09:07 +01:00
|
|
|
%endif
|
2015-01-14 21:58:52 +01:00
|
|
|
|
2010-03-02 01:46:56 +01:00
|
|
|
if [ -f /usr/bin/qemu-img ]; then
|
|
|
|
if [ -f /usr/bin/qemu-img-xen ]; then
|
|
|
|
rm /usr/bin/qemu-img-xen
|
|
|
|
fi
|
2015-01-14 21:58:52 +01:00
|
|
|
rm -f %{_libexecdir}/xen/bin/qemu-img-xen
|
|
|
|
ln -s /usr/bin/qemu-img %{_libexecdir}/xen/bin/qemu-img-xen
|
2010-03-02 01:46:56 +01:00
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-nbd ]; then
|
|
|
|
if [ -f /usr/bin/qemu-nbd-xen ]; then
|
|
|
|
rm /usr/bin/qemu-nbd-xen
|
|
|
|
fi
|
2015-01-14 21:58:52 +01:00
|
|
|
rm -f %{_libexecdir}/xen/bin/qemu-nbd-xen
|
|
|
|
ln -s /usr/bin/qemu-nbd %{_libexecdir}/xen/bin/qemu-nbd-xen
|
2014-01-02 20:09:07 +01:00
|
|
|
fi
|
|
|
|
if [ -f /usr/bin/qemu-io ]; then
|
2015-01-14 21:58:52 +01:00
|
|
|
rm -f %{_libexecdir}/xen/bin/qemu-io-xen
|
|
|
|
ln -s /usr/bin/qemu-io %{_libexecdir}/xen/bin/qemu-io-xen
|
2010-03-02 01:46:56 +01:00
|
|
|
fi
|
2014-08-15 16:33:16 +02:00
|
|
|
if [ -f /etc/default/grub ] && ! (/usr/bin/grep GRUB_CMDLINE_XEN /etc/default/grub >/dev/null); then
|
|
|
|
echo '# Xen boot parameters for all Xen boots' >> /etc/default/grub
|
|
|
|
echo 'GRUB_CMDLINE_XEN=""' >> /etc/default/grub
|
|
|
|
echo '# Xen boot parameters for non-recovery Xen boots (in addition to GRUB_CMDLINE_XEN)' >> /etc/default/grub
|
|
|
|
echo 'GRUB_CMDLINE_XEN_DEFAULT=""' >> /etc/default/grub
|
|
|
|
fi
|
2007-01-16 00:42:10 +01:00
|
|
|
|
|
|
|
%preun tools
|
2013-07-31 22:58:24 +02:00
|
|
|
%if %{?with_systemd}0
|
2015-01-14 21:58:52 +01:00
|
|
|
%service_del_preun xencommons.service
|
|
|
|
%service_del_preun xendomains.service
|
2013-07-30 23:20:13 +02:00
|
|
|
%else
|
2014-01-02 20:09:07 +01:00
|
|
|
%{stop_on_removal xendomains xencommons}
|
2011-04-12 00:31:41 +02:00
|
|
|
%endif
|
2014-01-02 20:09:07 +01:00
|
|
|
|
2015-01-14 21:58:52 +01:00
|
|
|
%postun tools
|
|
|
|
export DISABLE_RESTART_ON_UPDATE=yes
|
2014-01-02 20:09:07 +01:00
|
|
|
%if %{?with_systemd}0
|
2015-01-14 21:58:52 +01:00
|
|
|
%service_del_postun xencommons.service
|
|
|
|
%service_del_postun xendomains.service
|
2014-01-02 20:09:07 +01:00
|
|
|
%else
|
2014-01-16 21:18:13 +01:00
|
|
|
%{insserv_cleanup}
|
2013-07-06 03:06:10 +02:00
|
|
|
%endif
|
2007-01-16 00:42:10 +01:00
|
|
|
|
2014-02-04 19:31:26 +01:00
|
|
|
%endif
|
|
|
|
|
2011-04-12 00:31:41 +02:00
|
|
|
%post libs -p /sbin/ldconfig
|
2007-05-23 01:45:46 +02:00
|
|
|
|
2011-04-12 00:31:41 +02:00
|
|
|
%postun libs -p /sbin/ldconfig
|
2007-11-29 22:05:25 +01:00
|
|
|
|
2007-02-19 23:34:05 +01:00
|
|
|
%changelog
|