From 85eb08d31c8399445470bfd645d00a42223ab2eb Mon Sep 17 00:00:00 2001 From: Marcin Krol Date: Mon, 6 May 2019 22:49:01 +0200 Subject: [PATCH] - merged 4.0.0 from PLD --- qemu.spec | 14 +++++++++----- x32.patch | 22 ++++++---------------- 2 files changed, 15 insertions(+), 21 deletions(-) diff --git a/qemu.spec b/qemu.spec index 96ce968..a9f8849 100644 --- a/qemu.spec +++ b/qemu.spec @@ -34,12 +34,12 @@ Summary: QEMU CPU Emulator Summary(pl.UTF-8): QEMU - emulator procesora Name: qemu -Version: 3.1.0 +Version: 4.0.0 Release: 1 License: GPL v2 Group: Applications/Emulators Source0: http://wiki.qemu-project.org/download/%{name}-%{version}.tar.xz -# Source0-md5: fb687ce0b02d3bf4327e36d3b99427a8 +# Source0-md5: 0afeca336fd57ae3d3086ec07f59d708 # Loads kvm kernel modules at boot Source3: kvm-modules-load.conf # Creates /dev/kvm @@ -878,7 +878,6 @@ build dynamic \ %{__enable_disable ceph rbd} \ %{__enable_disable rdma} \ %{__enable_disable sdl} \ - --with-sdlabi=2.0 \ %{__enable_disable seccomp} \ %{__enable_disable spice} \ %{__enable_disable smartcard smartcard} \ @@ -993,6 +992,8 @@ done : > qemu.lang %endif +%{__rm} -r $RPM_BUILD_ROOT%{_docdir}/qemu + %clean rm -rf $RPM_BUILD_ROOT @@ -1021,7 +1022,9 @@ fi %config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/ksm %dir /etc/qemu %attr(640,root,qemu) %config(noreplace) %verify(not md5 mtime size) /etc/qemu/bridge.conf +%attr(755,root,root) %{_bindir}/elf2dmp %attr(755,root,root) %{_bindir}/virtfs-proxy-helper +%attr(755,root,root) %{_bindir}/qemu-edid %{?with_xkbcommon:%attr(755,root,root) %{_bindir}/qemu-keymap} %attr(755,root,root) %{_bindir}/qemu-nbd %attr(755,root,root) %{_bindir}/qemu-pr-helper @@ -1031,12 +1034,12 @@ fi %attr(755,root,root) %{_sbindir}/ksmtuned %{_mandir}/man1/qemu.1* %{_mandir}/man1/virtfs-proxy-helper.1* +%{_mandir}/man7/qemu-cpu-models.7* %{_mandir}/man7/qemu-block-drivers.7* %{_mandir}/man8/qemu-nbd.8* %dir %{_datadir}/qemu %{_datadir}/%{name}/keymaps -%{_datadir}/%{name}/qemu-icon.bmp %{_datadir}/%{name}/trace-events-all # various bios images @@ -1060,6 +1063,7 @@ fi %{_datadir}/%{name}/petalogix-ml605.dtb %{_datadir}/%{name}/petalogix-s3adsp1800.dtb %{_datadir}/%{name}/ppc_rom.bin +%{_datadir}/%{name}/pvh.bin %{_datadir}/%{name}/pxe-e1000.rom %{_datadir}/%{name}/pxe-eepro100.rom %{_datadir}/%{name}/pxe-ne2k_pci.rom @@ -1067,7 +1071,6 @@ fi %{_datadir}/%{name}/pxe-rtl8139.rom %{_datadir}/%{name}/pxe-virtio.rom %{_datadir}/%{name}/QEMU,cgthree.bin -%{_datadir}/%{name}/qemu_logo_no_text.svg %{_datadir}/%{name}/QEMU,tcx.bin %{_datadir}/%{name}/s390-ccw.img %{_datadir}/%{name}/sgabios.bin @@ -1298,6 +1301,7 @@ fi %files guest-agent %defattr(644,root,root,755) %attr(755,root,root) %{_bindir}/qemu-ga +%{_mandir}/man7/qemu-ga-ref.7* %{_mandir}/man8/qemu-ga.8* %files module-block-curl diff --git a/x32.patch b/x32.patch index 250576c..e135219 100644 --- a/x32.patch +++ b/x32.patch @@ -9,25 +9,15 @@ ;; arm|aarch64) libseccomp_minver="2.2.3" -@@ -2932,7 +2932,7 @@ - ########################################## - # TPM passthrough is only on x86 Linux - --if test "$targetos" = Linux && test "$cpu" = i386 -o "$cpu" = x86_64; then -+if test "$targetos" = Linux && test "$cpu" = i386 -o "$cpu" = x86_64 -o "$cpu" = x32; then - tpm_passthrough=$tpm - else - tpm_passthrough=no -@@ -4161,7 +4161,7 @@ +@@ -6148,7 +6148,7 @@ # Mac OS X ships with a broken assembler roms= --if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" \) -a \ -+if test \( "$cpu" = "i386" -o "$cpu" = "x86_64" -o "$cpu" = "x32" \) -a \ - "$targetos" != "Darwin" -a "$targetos" != "SunOS" -a \ - "$softmmu" = yes ; then - roms="optionrom" - +-if { test "$cpu" = "i386" || test "$cpu" = "x86_64"; } && \ ++if { test "$cpu" = "i386" || test "$cpu" = "x86_64" || test "$cpu" = "x32"; } && \ + test "$targetos" != "Darwin" && test "$targetos" != "SunOS" && \ + test "$softmmu" = yes ; then + # Different host OS linkers have different ideas about the name of the ELF --- qemu-2.6.0/include/qemu/atomic.h~ 2016-07-17 18:37:57.000000000 +0200 +++ qemu-2.6.0/include/qemu/atomic.h 2016-07-17 18:38:33.485893530 +0200 @@ -20,7 +20,7 @@ -- 2.44.0