Compare commits

...

255 Commits

Author SHA1 Message Date
a973413f12
Allow test to fail on riscv64 for now
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-09-13 12:23:27 +03:00
300c04fb9b
Increase test timeout for riscv64
Summary of Failures:
283/782 qemu:qtest+qtest-i386 / qtest-i386/ahci-test                              TIMEOUT         60.12s   killed by signal 15 SIGTERM
315/782 qemu:qtest+qtest-i386 / qtest-i386/ide-test                               TIMEOUT         60.42s   killed by signal 15 SIGTERM
177/782 qemu:qtest+qtest-riscv32 / qtest-riscv32/qos-test                         TIMEOUT        120.26s   killed by signal 15 SIGTERM
178/782 qemu:qtest+qtest-riscv64 / qtest-riscv64/qos-test                         TIMEOUT        120.21s   killed by signal 15 SIGTERM
108/782 qemu:qtest+qtest-arm / qtest-arm/aspeed_smc-test                          TIMEOUT        360.11s   killed by signal 15 SIGTERM
124/782 qemu:qtest+qtest-sparc64 / qtest-sparc64/boot-serial-test                 TIMEOUT        360.20s   killed by signal 15 SIGTERM
102/782 qemu:qtest+qtest-i386 / qtest-i386/migration-test                         TIMEOUT        480.21s   killed by signal 15 SIGTERM
101/782 qemu:qtest+qtest-aarch64 / qtest-aarch64/migration-test                   TIMEOUT        480.28s   killed by signal 15 SIGTERM
105/782 qemu:qtest+qtest-x86_64 / qtest-x86_64/migration-test                     TIMEOUT        480.29s   killed by signal 15 SIGTERM

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-09-12 15:54:43 +03:00
00242a13a5
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-09-12 14:33:25 +03:00
Cole Robinson
2d716294f1 New release qemu 9.1.0 GA
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-09-05 13:49:58 -04:00
Cole Robinson
5fde0b1627 spec: Make virtio-vga-gl depend on have_virgl
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-29 16:19:33 -04:00
Cole Robinson
6ca1975319 New release qemu-9.1.0-rc4
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-29 10:05:12 -04:00
Cole Robinson
62fec653e4 Disable 9p local tests that fail on copr aarch64
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-29 10:05:12 -04:00
Cole Robinson
ed3c308c72 New release qemu-9.1.0-rc3
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-26 13:13:47 -04:00
Cole Robinson
19dabf8013 New release qemu-9.1.0-rc2
- Drop deprecated nios2
- Add qemu-vmsr-helper service to qemu-system-x86

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-20 11:21:14 -04:00
Cole Robinson
05f289c3f3 qemu-9.0.0-5.fc41
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-05 14:28:42 -04:00
Cole Robinson
a2578065ff Add %{_libdir}/qemu to qemu-common (bz 2283996)
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-05 14:26:22 -04:00
Cole Robinson
5206b67dbc Clean up -static BuildRequires
* Split them into individual lines
* pcre2 is a transitive dep of glib2, which pulls it in for us

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-05 13:46:36 -04:00
Cole Robinson
e46b6fe585 Require libatomic-static for new glib2-static
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-08-05 13:44:29 -04:00
Richard W.M. Jones
971e984a4c Rebuild for Xen 4.19.0 2024-08-05 11:11:44 +01:00
Richard W.M. Jones
5c2ab5c259 Add unowned directories for tracetool
Reported-by: Christoph Karl
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2302699
2024-08-04 10:03:38 +01:00
Lumir Balhar
d5321c6ac0 Add new /usr/bin/dtrace to build deps
This is a part of approved Fedora change:
https://fedoraproject.org/wiki/Changes/Separate_dtrace_package

systemtap-sdt-devel will stop requiring systemtap-sdt-dtrace
and that would break the build of this package because
systemtap-sdt-devel no longer provides /usr/bin/dtrace.
2024-07-31 11:22:02 +02:00
08e997de9a
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-07-21 11:39:27 +03:00
Fedora Release Engineering
fd6b74bccc Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild 2024-07-19 17:34:22 +00:00
Andrea Bolognani
d364afeef7 Add dependency on edk2-riscv64
It's part of Fedora, it works fine and in fact many recent
guest images expect to be booted via UEFI.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
2024-05-31 18:17:11 +02:00
Cole Robinson
bd268d19cc New release qemu 9.0.0 GA
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-04-24 12:00:42 -04:00
Cole Robinson
fa9ecd2d1f New release qemu-9.0.0-rc4
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-04-23 09:01:13 -04:00
Cole Robinson
7d58afccfc Rebuild for new libiscsi
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-04-06 15:03:05 -04:00
Cole Robinson
04c52c7c18 New release qemu 8.2.2
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-03-06 06:45:10 -05:00
Richard W.M. Jones
5dc33a7885 Add pre-req patch for RHBZ#2265982 2024-02-26 11:40:49 +00:00
Richard W.M. Jones
1bd1d083f3 Backport ppc/spapr: Initialize max_cpus limit to SPAPR_IRQ_NR_IPIS 2024-02-26 10:06:04 +00:00
Richard W.M. Jones
3ab71e3cfb Fix user-emulation of FIFREEZE and FITHAW ioctls 2024-02-21 11:27:57 +00:00
Yaakov Selkowitz
affe1791b7 Disable pmem on RHEL 10
PMDK (packaged as nvml in Fedora) is unmaintained upstream and unwanted
in RHEL 10 and ELN.

Resolves: RHEL-1738

RWMJ:
Cherry picked from commit bd6c291f06de0895db0ed3379643a3103f9fb31d
on the eln branch.
2024-02-12 16:29:44 +00:00
Cole Robinson
cf84426a04 rpminspect: Another attempt to ignore badfuncs
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-02-02 11:34:13 -05:00
Cole Robinson
6b4bb5d4e2 qemu-8.2.0-7.fc40
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-02-01 13:51:08 -05:00
Cole Robinson
2601a942ca rpminspect: another attempt to exclude unicode error
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-02-01 13:51:08 -05:00
Cole Robinson
be157516d8 Replace pvh build fix with new attempt that builds on centos too
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2024-02-01 13:51:08 -05:00
Christophe Fergeau
409fcdb379
Re-add --disable-pie on ppc64le
This fixes this build failure:

https://koji.fedoraproject.org/koji/taskinfo?taskID=112612829

ERROR: -static-pie not available due to missing toolchain support

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2024-01-31 14:15:12 +01:00
Christophe Fergeau
d67c7eef5f Always enable PIE
PIE is currently enabled for qemu-kvm builds, and disabled for
qemu-user-static builds.

--disable-pie is causing https://bugzilla.redhat.com/show_bug.cgi?id=2256916

This commit ensures --enable-pie is used for both qemu-kvm and
qemu-user-static.

This fixes https://bugzilla.redhat.com/show_bug.cgi?id=2256916

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
2024-01-30 16:01:24 +01:00
Richard W.M. Jones
94ac31f9f7 Increase release number for rebuild 2024-01-30 12:25:41 +00:00
Richard W.M. Jones
c8c91351c0 Fix builds on i686 (v2 of the patch)
https://lists.nongnu.org/archive/html/qemu-block/2024-01/msg00430.html
2024-01-30 12:23:07 +00:00
Richard W.M. Jones
93330a974c Fix builds on i686. 2024-01-29 18:55:34 +00:00
Fedora Release Engineering
865331f395 Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-26 13:48:58 +00:00
kkocdko ⠀
9344a1bc56 Fix qemu-device-display-virtio-gpu-xxx dependencies 2024-01-22 15:50:04 +00:00
Fedora Release Engineering
60857dcd6f Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild 2024-01-22 09:29:39 +00:00
Daan De Meyer
b7ea007094 Backport TCG fix for OVMF boot with 4M variables 2024-01-12 13:01:12 +01:00
1d003b9d3d
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2024-01-11 12:32:37 +02:00
Daniel P. Berrangé
22512f545b Fix source URL mistake
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-01-09 17:52:35 +00:00
Daniel P. Berrangé
cb4378cf14 Add gpg verification of sources
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-01-09 17:49:01 +00:00
Daniel P. Berrangé
e1b58db1d6 Fix glitches in SPICE + virtio-vga updates
Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=2256884
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-01-09 17:48:51 +00:00
Daniel P. Berrangé
1c471d38bc Update to 8.2.0 release
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-01-09 17:48:49 +00:00
Daniel P. Berrangé
da8e31c4fc Trim changelogs older than 2 years
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2024-01-09 17:27:59 +00:00
Richard W.M. Jones
c29054addb Further fix for Xen 4.18 2023-12-09 14:46:47 +00:00
Richard W.M. Jones
d047f99265 Add patch to fix Xen build
See: https://lists.gnu.org/archive/html/qemu-devel/2023-12/msg01035.html
2023-12-08 09:09:11 +00:00
Richard W.M. Jones
a93659c041 Bump and rebuild for xen 4.18.0 2023-12-05 12:26:13 +00:00
Cole Robinson
deeb9357cb Rebase to qemu-8.2.0-rc2
+ Add device-display-virtio-gpu-pci-rutabaga subpackage
+ Add BuildRequires: libxdp-devel
+ Add BuildRequires: keytuils-libs-devel

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-12-04 12:09:35 -05:00
Richard W.M. Jones
2818b991c3 Bump and rebuild for xen 4.18.0 2023-11-29 20:10:47 +00:00
Adam Williamson
e5cb9532c0 Backport patch from crobinso to fix build on Rawhide 2023-11-28 17:29:24 -08:00
Richard W.M. Jones
9e1191cbbc Bump and rebuild for capstone 5.0.1 2023-11-28 13:55:19 +00:00
Cole Robinson
63c8857a93 spec: Fix *.stp %files in -user and -user-static
-static packages were missing some .stp files, and qemu-user
wildcards were catching too much.

Drop wildcards and explicitly specify all .stp files for all
subpackages

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-11-21 10:43:54 -05:00
Cole Robinson
595e23bfb7 qemu-8.1.2-1
Update to version 8.1.2
2023-10-17 12:45:25 -04:00
Cole Robinson
547a9bc5ba spec: Point Source to modern qemu.org site
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-10-17 12:43:20 -04:00
Cole Robinson
db8d68a5f9 spec: Update comment that ppc64 qtests are still flakey
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-10-17 12:40:40 -04:00
Cole Robinson
2f2f662015 spec: Use MTESTARGS to disable iotests, not a patch
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-10-17 11:31:50 -04:00
Cole Robinson
5c6b4486a8 Add rpminspect.yaml to exclude some CI false positives
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-09-28 12:39:29 -04:00
Daniel P. Berrangé
9a96ecbb25 Fix syntax for GCC exception reference
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-09-26 17:47:41 +01:00
Daniel P. Berrangé
43be60cdc4 Use correct syntax for public domain license reference
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-09-26 17:47:41 +01:00
Cole Robinson
7be0fd4310 Rebase to qemu 8.1.1
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-09-26 08:53:07 -04:00
71f792f01c
Fix files for riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-09-07 08:39:31 +03:00
05c11e868d
Merge remote-tracking branch 'up/main' into main-riscv64
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2023-09-07 08:37:45 +03:00
Daniel P. Berrangé
e4bc25c09b SPDX license operands must be uppercase
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-08-25 14:27:36 +01:00
Cole Robinson
f51053d48a spec: Make qemu-docs noarch
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-08-24 14:20:59 -04:00
Cole Robinson
98762f53f6 spec: texinfo is no longer a build dependency
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-08-24 10:03:16 -04:00
Cole Robinson
1ece14f33e Rebase to qemu 8.1.0 GA
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-08-23 10:22:56 -04:00
Davide Cavalca
28fd87d26a Adjust virtiofsd requires for el9 and older 2023-08-21 07:47:15 -07:00
Cole Robinson
f36b5bbd6f Rebase to qemu-8.1.0-rc4
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-08-20 15:09:03 -04:00
Camilla Conte
9d0cc42919 New upstream release 8.0.3 2023-07-20 10:46:25 +01:00
Daniel P. Berrangé
66ae407ce2 Fix arabic keyboard layout name
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-07-06 14:40:01 +01:00
Camilla Conte
9ce3d1e3ca New upstream release 8.0.2 2023-07-06 13:37:41 +00:00
Cole Robinson
9bdf4d356a spec: Drop gvnc-devel dep on rhel
It's not available in centos stream 9 repos.

Fixes virt-preview builds for centos stream 9 chroots

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-07-05 14:11:41 -04:00
Sandro Bonazzola
fe9446c8aa fix typo in pulseaudio subpkg description
Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2023-06-09 08:05:54 +00:00
Sandro Bonazzola
44034e55c1 avoid double setup in %prep
in %prep both %setup and %autosetup were called resulting in doubling
the %prep execution time.

Signed-off-by: Sandro Bonazzola <sbonazzo@redhat.com>
2023-06-09 09:57:20 +02:00
Richard W.M. Jones
bc72c799c7 Rebuild for libnfs soname bump 2023-06-01 08:30:49 +01:00
Dmitry V. Levin
2ce5ca73a8 99-qemu-guest-agent.rules: fix warning reported by udevadm verify
Fix the following warning reported by udevadm verify:

99-qemu-guest-agent.rules:2 A comma between tokens is expected.
99-qemu-guest-agent.rules: udev rules check failed
2023-05-19 08:00:00 +00:00
Daniel P. Berrangé
f53d48ae75 Convert license to SPDX format
This new expression is a result of

 * Running 'licensecheck -r .' across the QEMU code base
 * Ignoring results not applicable to Fedora platform
 * Ignoring stuff only used in test cases
 * Adding missing logo license
 * Considering upstream default license for non-annotated files

Note license expression simplication is no longer to be performed in
Fedora, so the new expression is unavoidably much larger than before.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-27 12:09:17 +01:00
Daniel P. Berrangé
ef665a7199 Bump release for new build to remove sgabios-bin requirement
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-27 08:56:20 +01:00
Daniel P. Berrangé
9061c9345e Fix sgabios binary RPM name & clean up related cruft
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-27 08:54:32 +01:00
Daniel P. Berrangé
589d3530fb Obsolete sgabios from qemu-common
QEMU deleted the sga device several releases ago, but sgabios has only
just been retired in F39. An obsoletes from qemu-common will ensure
that it gets erased when someone tries to upgrade from < F39.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-27 08:10:33 +01:00
Yaakov Selkowitz
cef9ee51c5 Fix virgl conditionals
These changes are needed to fix the build when built without virgl
(as in RHEL/ELN).
2023-04-26 10:14:02 -04:00
Daniel P. Berrangé
f2cb56a43c Obsolete qemu-virtiofsd on x86 arch
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=2189368
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-25 12:16:41 +01:00
Daniel P. Berrangé
2b6515981a Remove duplicated obsoletes for RBD package
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-25 09:28:10 +01:00
Daniel P. Berrangé
f3752caa84 Remove repeated configure options
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-04-25 09:23:09 +01:00
Eduardo Lima (Etrunko)
493beb6043 qemu-8.0.0-1
Update to latest QEMU upstream release, 8.0.0
2023-04-24 09:21:30 -03:00
Eduardo Lima (Etrunko)
27bca4038c qemu-7.2.1-1
- Update to QEMU upstream release 7.2.1
2023-04-19 12:42:15 -03:00
Eduardo Lima (Etrunko)
d58272f92e Revert "Enable libvfio-user"
Build is still broken with 7.2.0.

https://gitlab.com/qemu-project/qemu/-/issues/1384

This reverts commit b5541eb631.
2023-04-19 12:41:51 -03:00
Eduardo Lima (Etrunko)
b5541eb631 Enable libvfio-user 2023-04-19 11:13:44 -03:00
Daniel P. Berrangé
bd635cd85e Re-enable tests on i686.
The broken GNUTLS ABI has been fixed

https://bugzilla.redhat.com/show_bug.cgi?id=2174758
https://src.fedoraproject.org/rpms/gnutls/pull-request/78
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-03-02 17:50:22 +00:00
Richard W.M. Jones
0ef68abd71 Disable the tests on i686 2023-02-27 19:55:35 +00:00
Richard W.M. Jones
f48e9e218c Fix rtl8139-test
Patch sent upstream 2023-02-27.
2023-02-27 17:43:05 +00:00
Richard W.M. Jones
d8ea841ee8 Fix build with glib2 2.75.3 (RHBZ#2173639) 2023-02-27 16:09:52 +00:00
Richard W.M. Jones
fb1517ca3f Fix virtio-blk-pci detect-zeroes=unmap (RHBZ#2173357) 2023-02-27 11:47:44 +00:00
Cole Robinson
650c8272f6 Handle missing libblkio on fedora < 37
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2023-02-14 10:25:42 -05:00
Eduardo Lima (Etrunko)
8d94f851ec qemu-7.2.0-6 2023-02-01 08:54:00 -03:00
Stefan Hajnoczi
4eb8ef11c1 Enable libblkio
The libblkio package was added to Fedora. It is now possible to enable
the blkio block driver in QEMU.

Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
2023-01-31 11:02:52 -05:00
Fedora Release Engineering
8f629c7e0f Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2023-01-20 18:52:09 +00:00
Richard W.M. Jones
3f79a68361 Rebuild for xen-4.17.0, second attempt 2023-01-11 22:16:19 +00:00
Daniel P. Berrangé
fcf47181da Re-enable running of iotests
6 months and 2 QEMU release later, we want to test if they
are more reliable now. At least we'll get better diagnostic
of which test is hanging since the patch in

  https://www.mail-archive.com/qemu-devel@nongnu.org/msg887683.html

is included in this QEMU

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-01-10 13:05:30 -05:00
Daniel P. Berrangé
c59732e734 Fix compat with linux > 6.1 headers
In file included from /usr/include/linux/btrfs.h:29,
                 from ../linux-user/syscall.c:163:
/usr/include/linux/fs.h:50:8: error: redefinition of 'struct file_clone_range'
   50 | struct file_clone_range {
      |        ^~~~~~~~~~~~~~~~
../linux-user/syscall.c:129:8: note: originally defined here
  129 | struct file_clone_range {
      |        ^~~~~~~~~~~~~~~~

was caused by btrfs.h gaining an include of linux/fs.h,
which clashed with QEMU's workaround for glibc compat
with linux/mount.h.  GLibc huas fixed their sys/mount.h
so we can drop the QEMU workaround, thus fixing the
btrfs.h problem.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-01-10 13:03:55 -05:00
Daniel P. Berrangé
b47d99db35 Trim changelogs older than 2 years
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2023-01-09 10:43:01 +00:00
Richard W.M. Jones
6a1d35e912 Rebuild for xen-4.17.0 2023-01-03 08:24:36 +00:00
Eduardo Lima (Etrunko)
3ce4eaa6a2 qemu-7.2.0-1 2022-12-20 15:09:58 -03:00
Eduardo Lima (Etrunko)
d09d3961a3 Rebuild for libbpf 1.0.0 2022-11-11 15:02:07 -03:00
Eduardo Lima (Etrunko)
7539983f1e Fix changelog entries 2022-09-27 11:49:10 -03:00
Davide Cavalca
92a87311fd Unconditionally enable capstone-devel 2022-09-08 17:00:39 +01:00
Davide Cavalca
795912844a Bump required meson version 2022-09-08 14:12:47 +01:00
Cole Robinson
bd46f9571e Add .rpmlintrc to exclude some .spec lint
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-09-07 12:12:58 -04:00
Eduardo Lima (Etrunko)
64fe772650 Disable vfio-user for the moment
https://github.com/nutanix/libvfio-user/issues/707

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2022-09-02 11:58:00 -03:00
Eduardo Lima (Etrunko)
055837f300 qemu-7.1.0-1
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2022-09-02 11:07:59 -03:00
Cole Robinson
2874d70b6b Fix pcre-static dep on fedora < 37, for virt-preview
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-08-15 16:49:40 -04:00
Daniel P. Berrangé
34254733fe Fix compat with glibc 2.36
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-02 18:37:18 +01:00
Daniel P. Berrangé
0eeaeaae15 Get rid of patch numbering
RPM no longer requires use of numbered patches, a simple 'Patch' is
sufficient.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-02 17:43:44 +01:00
Daniel P. Berrangé
2abd5d20f1 Show config.log contents when configure fails
This will make it easier to debug future koji build failures

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-08-02 15:58:41 +01:00
Paolo Bonzini
98276b3e5f Replace pcre-static dependency with pcre2-static, to adjust for glib switching
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2022-07-26 07:48:27 +02:00
Fedora Release Engineering
22305b524e Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-07-22 23:54:02 +00:00
57a0fd859a
Disable tests on riscv64 in the %check section
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-07-19 17:34:51 +02:00
a72423248e
Do not package qemu-riscv32-static.conf on riscv64
This files does not exist on riscv64 architecture:

[..]
Processing files: qemu-user-static-riscv-7.0.0-6.1.riscv64.fc33.riscv64
error: File not found: /builddir/build/BUILDROOT/qemu-7.0.0-6.1.riscv64.fc33.riscv64/usr/lib/binfmt.d/qemu-riscv32-static.conf
RPM build errors:
    File not found: /builddir/build/BUILDROOT/qemu-7.0.0-6.1.riscv64.fc33.riscv64/usr/lib/binfmt.d/qemu-riscv32-static.conf
Child return code was: 1
EXCEPTION: [Error()]

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-07-19 07:44:54 +02:00
fd87d7e805
Disable tests on riscv64
This was tested on multiple boards with the latest stable kernel v5.18.8
and with two glibc version (incl. not yet released 2.36) with the same
result.

qtests hang on a couple exotic arches (e.g. hppa).

Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-07-18 22:39:51 +02:00
122e9d3bd7
Disable capstone for riscv64; add BR libatomic
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
2022-07-13 14:02:26 +03:00
Cole Robinson
9fda121878 Adjust for Xen dropping 32bit arches
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-11 16:28:18 -04:00
Eduardo Lima (Etrunko)
72c46205a7 Use git-am for patch handling 2022-06-07 09:37:12 -03:00
Cole Robinson
18240b2c2d user-static binfmt files aren't packaged on native archs
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 19:23:11 -04:00
Cole Robinson
c6215ce146 BuildRequires: (pipewire-jack-XXX or jack-XXX)
pipewire-jack-audio-connection-kit is a drop in replacement
for jack-audio-connection-kit, but they have package conflicts.

The former is pulled in by default for Fedora Workstation, so prefer
its matching -devel variant, so `dnf builddep` has a chance to work
and not error due to the conflict.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 13:39:42 -04:00
Daniel J Walsh
0d9e001957 Split qemu-user-static into per-arch subpackages (bz 2061584) 2022-06-06 13:20:24 -04:00
Cole Robinson
e84a043f40 spec: Stop unsetting smp_mflags for s390x
This was added over 12 years ago, in my testing it seem to be
required. Seems s390x builders only advertise -j2 anyways

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 08:56:35 -04:00
Cole Robinson
cb880e77f3 spec: ppc64le tests are still busted, but s390x are working now
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-06 08:55:24 -04:00
Cole Robinson
8d6927e8da Skip iotests entirely
Getting sporadic failures like described here:
https://www.mail-archive.com/qemu-devel@nongnu.org/msg887683.html

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-05 12:50:08 -04:00
Cole Robinson
467b991168 Add some test fixes
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-05 11:00:55 -04:00
Cole Robinson
a3d41732e4 spec: Add explicit alsa and dbus-display ./configure options
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-04 20:31:31 -04:00
Cole Robinson
9439665b5a Disable dbus UI + audio on centos stream 8
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-04 20:31:06 -04:00
Cole Robinson
870630749a spec: Fix building without jack on centos stream
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-03 04:50:21 -04:00
Cole Robinson
a575c5e346 qemu-7.0.0-4
Fix virtio-scsi hang (bz #2079347)
Add dep on virtio-gpu-ccw (bz #2091964)
2022-06-02 10:45:19 -04:00
Cole Robinson
01af37d608 spec: Add dep on virtio-gpu-ccw (bz 2091964)
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-06-02 09:29:25 -04:00
Cole Robinson
230e4a2b0a qemu-7.0.0-3
Make qemu-common own /usr/share/qemu/vhost-user (bz 2086836)
Add virtiofsd to qemu-system-* deps (bz 2083155)
Add qemu-pr-helper to qemu-system-* deps

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 15:31:05 -04:00
Cole Robinson
ef9df8de89 spec: Move qemu-pr-helper dep from qemu to qemu-system-XXX
Similar to what was done for virtiofsd in the previous commit

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 14:25:45 -04:00
Cole Robinson
a686537d26 spec: Move virtiofsd dep from qemu to qemu-system-XXX
When we split virtiofsd out from qemu-common, the intention was it
would be installed with `qemu-system-XXX` but not
`qemu-system-XXX-core`, similar to how device modules are treated.

It was accidentally added to the `qemu` metapackage, which is rarely
used.

This fixes that mistake.

https://bugzilla.redhat.com/show_bug.cgi?id=2083155

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 14:24:36 -04:00
Cole Robinson
4e789f984b spec: Make qemu-common own /usr/share/qemu/vhost-user
https://bugzilla.redhat.com/show_bug.cgi?id=2086836

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-05-17 14:19:36 -04:00
Daniel P. Berrangé
8825298cc2 Remove qemu-common as a dep from qemu-user-static
qemu-common has a dep on python, and has nothing that is critical for
the operation of the userspace emulators. At most the qemu-trace-stap
tool is useful, but we shouldn't force install of qemu-common just for
that. qemu-user-static needs to be lightweight as its used to support
cross-arch execution in scenarios where container/image size matters.

In dropping qemu-common as a dep, we just need to ensure we still have
the license files present.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-05-04 11:57:10 +01:00
Daniel P. Berrangé
d8c4df3d29 Drop redundant qemu-trace-stap copy from qemu-user-static (rhbz#2061584)
The static build of QEMU installs a copy of 'qemu-trace-stap' python
script, which gets renamed to 'qemu-trace-stap-static' by an overly
enthusiastic wildcard. This ends up adding a python dependency to
the qemu-user-static RPM, which is unhelpful.

Anyone who wants to trace QEMU user binaries with the stap helper
can easily install qemu-common as desired.

Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2022-05-03 19:00:07 +01:00
Eduardo Lima (Etrunko)
0007b37337 qemu-7.0.0-1 2022-04-21 23:43:10 -03:00
Richard W.M. Jones
af7430aef5 acpi: fix QEMU crash when started with SLIC table (RHBZ#2072303) 2022-04-06 09:52:10 +01:00
Neal Gompa
fdc9ebb862 Backport virtiofsd changes to fix crashes on F36+
Resolves: rhbz#2070066
2022-04-01 18:22:21 -04:00
Richard W.M. Jones
148536a5a4 Bump and rebuild for SONAME change in libmpathpersist (RHBZ#2069778) 2022-04-01 17:00:38 +01:00
Cole Robinson
3f428d8457 Add edk-arm dep for system-arm
It's expected nowdays for -M virt

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-24 14:49:11 -05:00
Cole Robinson
82e1f8635e spec: Some fixes for centos9 stream virt-preview builds
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-24 14:48:16 -05:00
Cole Robinson
41fa2b0e3c Bump release to not conflict with f36
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-10 15:35:21 -05:00
Eduardo Lima (Etrunko)
c8164e8043 virtiofsd: Drop membership of all supplementary groups (CVE-2022-0358)
Resolves: rhbz#2044863
2022-02-10 15:27:55 -05:00
Cole Robinson
5b1d8f6b37 spec: break out qemu-virtiofsd subpackage
Pulled in by qemu-* but not qemu-*-core, like we do for device modules.

There's a virtual Provides: vhostuser-backend(fs) indicating this
packages is a vhost-user.json fs provider.

Use that for the qemu dep, as in the future there will be alternate
virtiofsd impl packages in Fedora

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-02-10 14:38:51 -05:00
Paolo Bonzini
06a96ef6dd Fix non-SGX builds 2022-02-02 10:47:02 +01:00
Fedora Release Engineering
f38131b637 - Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2022-01-21 16:56:00 +00:00
Cole Robinson
ffa629f31c spec: Fix build on centos 8 stream
* Drop use of %dnl which centos 8 RPM doesn't support
* Use internal capstone copy on centos8
* Don't try to use jack driver on centos

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2022-01-11 17:45:13 -05:00
Richard W.M. Jones
6dc1a3e091 Bump release and rebuild for new xen 2022-01-11 09:49:20 +00:00
Eduardo Lima (Etrunko)
a640e151b2 qemu-6.2.0 2021-12-15 12:22:07 -03:00
Eduardo Lima (Etrunko)
2d6f694dd7 qemu-6.2.0-rc4
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-12-09 13:21:24 -03:00
Eduardo Lima (Etrunko)
842e805475 qemu-6.2.0-rc3
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-12-04 13:36:50 -03:00
Daniel P. Berrangé
f54452a157 Fix iovec limits with scsi-generic 2021-11-25 21:29:35 +00:00
Richard W.M. Jones
f9f5de9994 Define STAP_SDT_ARG_CONSTRAINT=g on %%{arm}, workaround for:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=103395

See also /usr/include/sys/sdt.h
2021-11-24 17:42:43 +00:00
Richard W.M. Jones
69b8f67c7d Revert "ExcludeArch armv7 temporarily"
This reverts commit eedf91107a.
2021-11-23 17:58:27 +00:00
Richard W.M. Jones
eedf91107a ExcludeArch armv7 temporarily 2021-11-22 16:56:46 +00:00
Richard W.M. Jones
1609e9b0cd Add support for qemu-nbd --selinux-relabel option (RHBZ#1984938) 2021-11-22 15:07:08 +00:00
Adam Williamson
b34716a4e7 Fix snapshot creation with qxl graphics 2021-11-08 10:18:35 -08:00
Cole Robinson
59b417a5f3 spec: Add --without check for skipping tests
Makes it easier to skip tests for copr builds

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-08 16:17:17 -04:00
Cole Robinson
9182556bd5 spec: Update test skip comment
s390x and ppc64le tests are still busted. I think s390x is koji
build OS related, so maybe a rebase to new fedora will fix it.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-08 16:17:17 -04:00
Cole Robinson
7be05bc02d Fix tcg PVH test with binutils 2.36+
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-08 16:17:17 -04:00
Cole Robinson
1d93f5191e Fix qemu crash with vnc + libvirt virDomainOpenConsole
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-10-06 12:16:27 -04:00
Richard W.M. Jones
65ccb9e09a Alternate fix for assertion on armv7hl (RHBZ#1999878) 2021-09-12 20:45:17 +01:00
Richard W.M. Jones
c5273992ba Fix assertion on armv7hl
https://bugzilla.redhat.com/show_bug.cgi?id=1999878
2021-09-01 17:48:27 +01:00
Richard W.M. Jones
c1a37784f9 Fix -cpu max (RHBZ#1999700) 2021-08-31 18:59:35 +01:00
Richard W.M. Jones
9eb1916f15 Disable gcrypt (for real this time).
This will use gnutls's internal implementation as the
default crypto engine:

  Crypto
    TLS priority                 : "@QEMU,SYSTEM"
    GNUTLS support               : YES
    GNUTLS crypto                : YES
    libgcrypt                    : NO
    nettle                       : NO
    crypto afalg                 : NO
    rng-none                     : NO
    Linux keyring                : YES

Fixes: https://bugzilla.redhat.com/show_bug.cgi?id=1998452
2021-08-27 13:19:13 +01:00
Richard W.M. Jones
1ba242c778 Revert "Disable gcrypt" which seems to disable gnutls (RHBZ#1998452)
This reverts commit a06059bd4d.
2021-08-27 10:23:34 +01:00
Richard W.M. Jones
96944e0b05 Fix dependency pci_gl -> pci-gl and vga_gl -> vga-gl (RHBZ#1997855) 2021-08-26 08:10:11 +01:00
Eduardo Lima (Etrunko)
050829c2b7 qemu-6.1.0 2021-08-24 21:21:19 -03:00
Eduardo Lima (Etrunko)
79f4b0ef32 qemu-6.1.0-rc4
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-18 15:15:26 -03:00
Eduardo Lima (Etrunko)
a06059bd4d Disable gcrypt
Use gnutls as the default crypto backend to match latest upstream defaults

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-12 13:53:38 -03:00
Eduardo Lima (Etrunko)
7403595754 Update sources with latest tarball
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-12 12:43:32 -03:00
Eduardo Lima (Etrunko)
bf8d867e21 qemu-6.1.0-rc3
- Static build works again.
- Remove --enable-block-drv-whitelist-in-tools option causing iotests
  049 134 158 to fail.

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-12 12:32:20 -03:00
Eduardo Lima (Etrunko)
51980a6acd Some workarounds for build failures on rc2
- Temporarily disable static build

FAILED: qemu-aarch64
gcc  -o qemu-aarch64 ... -Wl,--start-group libqemuutil.a libhwcore.fa libqom.fa /usr/lib64/libz.a -lrt -lutil -pthread -lgnutls -ltspi -lgmp -lunistring -lnettle -lhogweed -ltasn1 -lidn2 -lp11-kit -lm -lgthread-2.0 -lglib-2.0 -lpcre -Wl,--end-group
/usr/bin/ld: cannot find -lgnutls
/usr/bin/ld: cannot find -ltspi
/usr/bin/ld: cannot find -lgmp
/usr/bin/ld: cannot find -lunistring
/usr/bin/ld: cannot find -lnettle
/usr/bin/ld: cannot find -lhogweed
/usr/bin/ld: cannot find -ltasn1
/usr/bin/ld: cannot find -lidn2
/usr/bin/ld: cannot find -lp11-kit
collect2: error: ld returned 1 exit status

- Temporarily disable make check, qemu-iotests failing

Failures: 049 134 158
Failed 3 of 119 iotests
2021-08-10 03:47:37 -03:00
Eduardo Lima (Etrunko)
b048de05e7 qemu-6.1.0-rc2
Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
2021-08-10 03:30:06 -03:00
Cole Robinson
6bb4bb52c7 qemu-6.0.0-12.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-29 07:34:46 -04:00
Cole Robinson
f744b8b952 spec: quote %{firmwaredirs} for consistency
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-28 20:07:57 -04:00
Cole Robinson
f806e664d9 spec: Use --enable-lto if _lto_cflags is not empty
Not sure if this is strictly required, but it seems like
the right thing to do

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-28 19:23:02 -04:00
Cole Robinson
38b1a6c732 spec: Update LTO comment
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-28 19:10:59 -04:00
Cole Robinson
b7cbd7e5e1 spec: Open code %set_build_flags
There should be no functional difference here, but it's not
obvious at a glance how qemu handles globally defined CFLAGS + LDFLAGS
with --extra-cflags and --extra-ldflags.

Reproduce the desired behavior with explicit configure options and
RPM variables

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 16:22:33 -04:00
Cole Robinson
e3c05f4d3e spec: Use %make_build for 'check' too
So we get smp_flags

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 12:05:06 -04:00
Cole Robinson
1ac11e4877 spec: Explicitly don't build with c++
This is the historical intended behavior in the buildroot, but for
local builds, or with clang, qemu would detect a c++ compiler on the
host. So explicitly make the check fail by passing /bin/false

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 09:38:55 -04:00
Cole Robinson
2dc6f7395e spec: Drop explicit --build-id
clang + gcc have done this for us for years

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 09:38:55 -04:00
Cole Robinson
0edf0fe9c8 spec: Drop python3 shebang fixup for tests rpm
* python -> python3 isn't required anymore for qemu.git
* env -> /usr/bin is handled by rpm brp-mangle-shebangs

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-25 09:38:55 -04:00
Richard W.M. Jones
e5d06dbc16 Actually fix previous commit
See discussion in:
https://bugzilla.redhat.com/show_bug.cgi?id=1985369
2021-07-23 15:27:16 +01:00
Richard W.M. Jones
2825584364 Fix dependencies of qemu metapackage
Commit 7a925b3802 ("spec: More RHEL merging") placed the %description
section right up against the list of Requires.  This resulted in RPM
silently ignoring the Requires and adding them to the description
instead.  As a result the qemu metapackage was totally broken.

Fixes: commit 7a925b3802
2021-07-23 15:03:34 +01:00
Fedora Release Engineering
6af1856936 - Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-07-23 10:38:07 +00:00
Cole Robinson
d6b4a46932 qemu-6.0.0-10.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-18 17:44:08 -04:00
Cole Robinson
ba7d6c0e41 spec: Split out qemu-tools subpackage
Main reason is to reduce the library dependency footprint of
-core packages

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-15 11:37:32 -04:00
Cole Robinson
7ae7935089 spec: Split out qemu-pr-helper subpackage
Main reason is to reduce the library dependency footprint of
-core package

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-15 11:37:24 -04:00
Cole Robinson
e1bf97d468 Rename gating.yml -> gating.yaml
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-15 11:22:56 -04:00
Cole Robinson
51821d35c5 spec: s/datarootdir/datadir/
The latter is the more common one

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-07 19:07:37 -04:00
Cole Robinson
180e0d8daf qemu-6.0.0-9.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-07 16:37:33 -04:00
Cole Robinson
e0cb84627a spec: Use --firmwarepath to drop rom symlinking
Access ipxe, seabios, seavgabios, and sgabios roms directly
in their /usr/share directories.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-07 16:35:01 -04:00
Cole Robinson
f1ea3b69f7 gating: copy verbatim from cockpit where gating is working
Not sure why rawhide gating is not triggering in bodhi...

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-06 15:35:37 -04:00
Cole Robinson
d13afbee6a spec: BuildRequires: clang if toolchain == clang
Let's us experiment easier with clang usage in koji

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 19:05:54 -04:00
Cole Robinson
b013f94648 spec: Drop use of %dnl macro
It's not available on centos8

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 18:08:34 -04:00
Cole Robinson
d5c2bbe293 spec: use %set_build_flags
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 16:03:07 -04:00
Cole Robinson
05fedb21f6 spec: use make_install macro
make_install is: /usr/bin/make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:32:53 -04:00
Cole Robinson
0ae9d20128 spec: Drop make install sharedir and datadir usage
qemu doesn't use sharedir. datadir is set at configure time

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:32:09 -04:00
Cole Robinson
183fcd911e spec: Use %make_build macro
make_build is: make -O -jXX V=1 VERBOSE=1

So it covers all our make option usage

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:20:16 -04:00
Cole Robinson
e6c8eaee02 spec: Remove buildldflags
VL_LDFLAGS has not been present in qemu.git since 2008!

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:16:41 -04:00
Cole Robinson
d4c8ff71ce spec: SDL2_image isn't available on epel/rhel
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-07-02 15:07:14 -04:00
Cole Robinson
f4c1719ae1 spec: Re-disable tests for power64, still intermittently hanging
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 18:53:18 -04:00
Cole Robinson
73149263f3 spec: Use --enable-capstone even if capstone-devel not available
In that case (like building on EPEL), use the internal qemu copy,
like RHEL qemu-kvm does.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 16:19:08 -04:00
Cole Robinson
b2595a5449 qemu-6.0.0-8.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 10:49:14 -04:00
Cole Robinson
d636452cba spec: Drop test skippage on power64, it's working again
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 10:49:14 -04:00
Cole Robinson
4a2d9a4c52 spec: Temporarily disable conflict between binfmt subpackages
Fedora CI can't handle subpackages with Conflicts. There's ongoing
work to make it happen:

https://pagure.io/fedora-ci/general/issue/184

Once that lands we can re-enable these conflicts.

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 10:49:14 -04:00
Cole Robinson
f54ac0f7d7 spec: Drop some outdates obsoletes
This are from 2017 and earlier, I don't think we need them anymore

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 10:37:15 -04:00
Cole Robinson
833342c627 gating: Attempt to fix rawhide gating
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-30 10:35:57 -04:00
Cole Robinson
ad860648fa Tweak minimum meson_version to match fedora versioning
This was copied from RHEL, but it's too restrictive

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-23 12:05:37 -04:00
Cole Robinson
91b70a682d qemu-6.0.0-7.fc35
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-23 11:53:52 -04:00
Cole Robinson
4abd8de197 spec: Merge arch specific kvm.conf files from RHEL
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-23 11:50:58 -04:00
Cole Robinson
566be371a3 spec: Drop pathfix.py usage
There's only one remaining ambiguous python shebang in qemu.git, and
it's not for anything we care about.

Also redhat-rpm-config brp-mangle-shebangs added in 2018 will do
/usr/bin/env python3 -> /usr/bin/python3 automatically for us

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-23 11:50:58 -04:00
Cole Robinson
7a925b3802 spec: More RHEL merging
* Add tools_only path to only build qemu-img and qemu-guest-agent
* Add a -tests subpackage
* Install tracetool, simpletrace, dump-guest-memory
* Add vhost modprobe file
* Sync qemu-guest-agent file lists
* Use udevrulesdir from systemd
* Add more seabios and seavgabios roms
* More use of %{name} to make paths more generic
* Group all fedora specific %install content at the end
* Drop the rpath stripping, in my testing it's not needed anymore
* Drop the s390x iotests skippage from last year

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-23 11:50:54 -04:00
Cole Robinson
443b083edd spec: Remove qemu-sanity-check and -help smoke test
These have been moved to fedora CI jobs

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-22 14:55:56 -04:00
Cole Robinson
ec76e0bb54 tests: Add qemu-sanity-check fedora CI job
We use `fmf` and `tmt` test config to run qemu-sanity-check,
similar to how its done in the spec file at the moment.

Add gating.yml that requires these tests to pass before updates
can be pushed

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-22 11:46:52 -04:00
Cole Robinson
ec4dab0a93 spec: Add --enable-fuse and --enable-sdl-image
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-16 19:30:28 -04:00
Cole Robinson
7e8e4ff4c0 spec: Manually specify every --enable-XXX flag we use
This moves the %build section to be closer to RHEL qemu-kvm content.
It's a bit tedious but it ensures we enable every feature we actually
think we are enabling :)

Add some macros to facilitate sharing this layout with the RHEL spec

The only functional change is now we use gcrypt instead of nettle.
I'm not sure if that was intentional before, but gcrypt is requested
on RHEL so I'm guessing that's what we want for Fedora too

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-16 19:30:28 -04:00
Cole Robinson
6c55704061 spec: Move BuildRequires closer to RHEL formatting
This should not be any functional change, just some BuildRequires
movement and macro tweaking with the goal of sharing the first block
of deps with the RHEL/centos qemu-kvm spec

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-16 19:30:28 -04:00
Cole Robinson
09badc27ce Move qemu-storage-daemon to qemu-img subpackage
This matches what RHEL is doing

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-16 19:30:28 -04:00
Richard W.M. Jones
1081205b84 Fix mismatched pushd/popd on ppc64le and s390x
Executing(%check): /bin/sh -e /var/tmp/rpm-tmp.HyvLyX
+ umask 022
+ cd /builddir/build/BUILD
+ cd qemu-6.0.0
+ b=./x86_64-softmmu/qemu-system-x86_64
+ '[' -x ./x86_64-softmmu/qemu-system-x86_64 ']'
+ popd
/var/tmp/rpm-tmp.HyvLyX: line 46: popd: directory stack empty
error: Bad exit status from /var/tmp/rpm-tmp.HyvLyX (%check)
2021-06-09 13:54:38 +01:00
Cole Robinson
658feedf3f Temporarily disable test suite on s390x and ppc64le
These seem like host related errors, let's wait a bit and see if
they are fixed for us

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-08 08:28:40 -04:00
Cole Robinson
5c8060d1bd qemu-6.0.0-5
Rebuild for xen 4.15
2021-06-07 20:13:48 -04:00
Cole Robinson
9348aa0ea4 Split out qemu-docs subpackage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-01 10:05:00 -04:00
Cole Robinson
1ba19df591 Split out qemu-device-display-vhost-user-gpu
This drops virglrenderer as a dep of qemu-common, which reduces
dep footprint of -core packages

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-06-01 10:05:00 -04:00
Paolo Bonzini
d9c8b54b44 add missing patches 2021-06-01 09:35:27 +02:00
Paolo Bonzini
169bee2e2a add another patch to fix configuration files 2021-05-19 19:00:09 +02:00
Paolo Bonzini
610d93e5b9 Bugfixes for command line and configuration file
fix spice option from configuration file
fix object option from configuration file
allow not specifying size in -m when using -M memory-backend
2021-05-19 12:10:25 +02:00
Cole Robinson
66fde773e9 Rebase to qemu-6.0.0 GA
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-05-12 11:58:56 -04:00
serge-sans-paille
7e7be1c025 Make configure step compatible with other toolchain 2021-04-29 16:15:33 +02:00
Cole Robinson
47a69fd3ce Rebase to qemu 6.0.0-rc4
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-04-21 18:46:24 -04:00
Richard W.M. Jones
c0b65475ef Add upstream patch to make iotests/qsd-jobs test stable on slow machines 2021-04-15 08:13:04 +01:00
Richard W.M. Jones
ac27562f19 Rebuild for updated liburing. 2021-04-14 10:22:39 +01:00
Cole Robinson
dcfe42be8d Fix build on el8, exclude jack subpackage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-04-07 20:19:43 -04:00
Cole Robinson
ba23d039c8 Remove commented out build options
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-04-06 19:29:19 -04:00
Cole Robinson
c7533d29df Rebase to 6.0.0-rc2
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-04-06 17:22:25 -04:00
Zbigniew Jędrzejewski-Szmek
0ff75312ab Rebuilt for updated systemd-rpm-macros
See https://pagure.io/fesco/issue/2583.
2021-03-02 16:12:55 +01:00
Cole Robinson
8b5ba7c256 Fix building on centos stream in copr
Signed-off-by: Cole Robinson <crobinso@redhat.com>
2021-03-01 10:05:25 -05:00
Fedora Release Engineering
c996909a49 - Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng@fedoraproject.org>
2021-01-27 14:33:50 +00:00
Paolo Bonzini
d1c4548bc8 fix make check on bash 5.1 2021-01-11 12:14:16 +01:00
Paolo Bonzini
74370c64ef remove qemu-kvm script in favor of symlink
Since QEMU 4.0 upstream supported automatically favoring KVM if the
executable ends with "kvm".  Unlike the script that is currently in
use, this allows the user to specify an alternative accelerator with
"-accel".

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
2021-01-11 10:56:01 +01:00
Tom Stellard
130b985a3c Add BuildRequires: make
https://fedoraproject.org/wiki/Changes/Remove_make_from_BuildRoot
2021-01-08 20:08:09 +00:00
Daniel P. Berrangé
fac3f007a0 Cull 2019 vintage changelogs
Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
2021-01-05 18:13:16 +00:00
Richard W.M. Jones
1abc8e9bf0 Bump the release because Koji had a senior moment while the package
was being signed.
2020-12-11 14:00:57 +00:00
Richard W.M. Jones
a3063707fe qemu-char-spice not qemu-chardev-spice. 2020-12-11 08:12:02 +00:00
Mohan Boddu
18c8d565ff Fixing the ISA Dependencies
Signed-off-by: Mohan Boddu <mboddu@bhujji.com>
2020-12-10 09:52:15 -05:00
Cole Robinson
5a84bef82e Rebase to qemu-5.2.0 GA
Fix spice and GL UI module deps (bz 1904603)

Signed-off-by: Cole Robinson <crobinso@redhat.com>
2020-12-09 15:22:32 -05:00
Richard W.M. Jones
d283ab8f84 Enable qemu-kvm-core package on riscv64. 2020-12-04 14:50:13 +00:00
20 changed files with 2395 additions and 970 deletions

1
.fmf/version Normal file
View File

@ -0,0 +1 @@
1

1
.gitignore vendored
View File

@ -2,3 +2,4 @@
/x86_64/ /x86_64/
/*.src.rpm /*.src.rpm
/qemu-*.tar.xz /qemu-*.tar.xz
/qemu-*.tar.xz.sig

6
.rpmlintrc Normal file
View File

@ -0,0 +1,6 @@
# Using _sourcedir makes the spec much more readable IMO.
# The Fedora wiki complaint is pretty obscure too.
addFilter(r'use-of-RPM_SOURCE_DIR')
# This is a virtual Provides: that should not contain any version info
addFilter(r'unversioned-explicit-provides vhostuser-backend\(fs\)')

View File

@ -0,0 +1,49 @@
From 34acc8e0028bf059c9c4e725c653df56eac7c296 Mon Sep 17 00:00:00 2001
Message-ID: <34acc8e0028bf059c9c4e725c653df56eac7c296.1724767601.git.crobinso@redhat.com>
From: Cole Robinson <crobinso@redhat.com>
Date: Mon, 26 Aug 2024 14:06:14 -0400
Subject: [PATCH] Disable 9p `local` tests that fail on copr aarch64
Content-type: text/plain
Upstream issue:
https://gitlab.com/qemu-project/qemu/-/issues/2541
Signed-off-by: Cole Robinson <crobinso@redhat.com>
---
tests/qtest/virtio-9p-test.c | 20 ++++++++++----------
1 file changed, 10 insertions(+), 10 deletions(-)
diff --git a/tests/qtest/virtio-9p-test.c b/tests/qtest/virtio-9p-test.c
index 3c8cd235cf..1d550eafb1 100644
--- a/tests/qtest/virtio-9p-test.c
+++ b/tests/qtest/virtio-9p-test.c
@@ -748,16 +748,16 @@ static void register_virtio_9p_test(void)
/* 9pfs test cases using the 'local' filesystem driver */
opts.before = assign_9p_local_driver;
qos_add_test("local/config", "virtio-9p", pci_config, &opts);
- qos_add_test("local/create_dir", "virtio-9p", fs_create_dir, &opts);
- qos_add_test("local/unlinkat_dir", "virtio-9p", fs_unlinkat_dir, &opts);
- qos_add_test("local/create_file", "virtio-9p", fs_create_file, &opts);
- qos_add_test("local/unlinkat_file", "virtio-9p", fs_unlinkat_file, &opts);
- qos_add_test("local/symlink_file", "virtio-9p", fs_symlink_file, &opts);
- qos_add_test("local/unlinkat_symlink", "virtio-9p", fs_unlinkat_symlink,
- &opts);
- qos_add_test("local/hardlink_file", "virtio-9p", fs_hardlink_file, &opts);
- qos_add_test("local/unlinkat_hardlink", "virtio-9p", fs_unlinkat_hardlink,
- &opts);
+ /* qos_add_test("local/create_dir", "virtio-9p", fs_create_dir, &opts); */
+ /* qos_add_test("local/unlinkat_dir", "virtio-9p", fs_unlinkat_dir, &opts); */
+ /* qos_add_test("local/create_file", "virtio-9p", fs_create_file, &opts); */
+ /* qos_add_test("local/unlinkat_file", "virtio-9p", fs_unlinkat_file, &opts); */
+ /* qos_add_test("local/symlink_file", "virtio-9p", fs_symlink_file, &opts); */
+ /* qos_add_test("local/unlinkat_symlink", "virtio-9p", fs_unlinkat_symlink, */
+ /* &opts); */
+ /* qos_add_test("local/hardlink_file", "virtio-9p", fs_hardlink_file, &opts); */
+ /* qos_add_test("local/unlinkat_hardlink", "virtio-9p", fs_unlinkat_hardlink, */
+ /* &opts); */
}
libqos_init(register_virtio_9p_test);
--
2.46.0

View File

@ -1,2 +1,2 @@
SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", \ SUBSYSTEM=="virtio-ports", ATTR{name}=="org.qemu.guest_agent.0", \
TAG+="systemd" ENV{SYSTEMD_WANTS}="qemu-guest-agent.service" TAG+="systemd", ENV{SYSTEMD_WANTS}="qemu-guest-agent.service"

39
README.tests Normal file
View File

@ -0,0 +1,39 @@
qemu-kvm-tests README
=====================
The qemu-kvm-tests rpm contains tests that can be used to verify the
functionality of the installed qemu-kvm package
When installed, the files from this rpm will be arranged in the following
directory structure
tests-src/
├── README
├── scripts
│   ├── qemu.py
│   └── qmp
└── tests
├── acceptance
├── Makefile.include
└── qemu-iotests
The tests/ directory within the tests-src/ directory is setup to remain a copy
of a subset of the tests/ directory from the QEMU source tree
The avocado_qemu tests and qemu-iotests, along with files required for the
execution of the avocado_qemu tests (scripts/qemu.py and scripts/qmp/) will be
installed in a new location - /usr/lib64/qemu-kvm/tests-src/
avocado_qemu tests:
The avocado_qemu tests can be executed by running the following avocado command:
avocado run -p qemu_bin=/usr/libexec/qemu-kvm /usr/lib64/qemu-kvm/tests/acceptance/
Avocado needs to be installed separately using either pip or from source as
Avocado is not being packaged for RHEL-8.
qemu-iotests:
symlinks to corresponding binaries need to be created for QEMU_PROG,
QEMU_IO_PROG, QEMU_IMG_PROG, and QEMU_NBD_PROG before the iotests can be
executed.
The primary purpose of this package is to make these tests available to be
executed as gating tests for the virt module in the RHEL-8 OSCI environment.

6
gating.yaml Normal file
View File

@ -0,0 +1,6 @@
--- !Policy
product_versions:
- fedora-*
decision_context: bodhi_update_push_stable
rules:
- !PassingTestCaseRule {test_case_name: fedora-ci.koji-build.tier0.functional}

Binary file not shown.

19
kvm-s390x.conf Normal file
View File

@ -0,0 +1,19 @@
# User changes in this file are preserved across upgrades.
#
# Setting "modprobe kvm nested=1" only enables Nested Virtualization until
# the next reboot or module reload. Uncomment the option below to enable
# the feature permanently.
#
#options kvm nested=1
#
#
# Setting "modprobe kvm hpage=1" only enables Huge Page Backing (1MB)
# support until the next reboot or module reload. Uncomment the option
# below to enable the feature permanently.
#
# Note: - Incompatible with "nested=1". Loading the module will fail.
# - Dirty page logging will be performed on a 1MB (not 4KB) basis,
# which can result in a lot of data having to be transferred during
# migration, and therefore taking very long to converge.
#
#options kvm hpage=1

12
kvm-x86.conf Normal file
View File

@ -0,0 +1,12 @@
# Setting modprobe kvm_intel/kvm_amd nested = 1
# only enables Nested Virtualization until the next reboot or
# module reload. Uncomment the option applicable
# to your system below to enable the feature permanently.
#
# User changes in this file are preserved across upgrades.
#
# For Intel
#options kvm_intel nested=1
#
# For AMD
#options kvm_amd nested=1

View File

@ -1,11 +0,0 @@
###
### This configuration file was provided by the qemu package.
### Feel free to update as needed.
###
###
### Set these options to enable nested virtualization
###
#options kvm_intel nested=1
#options kvm_amd nested=1

3
kvm.conf Normal file
View File

@ -0,0 +1,3 @@
#
# User changes in this file are preserved across upgrades.
#

8
plans/main.fmf Normal file
View File

@ -0,0 +1,8 @@
# toplevel plan boilerplate
summary: qemu tests
description:
Test qemu
discover:
how: fmf
execute:
how: tmt

View File

@ -1,10 +0,0 @@
#!/bin/sh
# Libvirt introspects the binary using -M none. In that case, don't try
# to init KVM, which will fail and be noisy if the host has kvm disabled
opts="-machine accel=kvm"
if echo "$@" | grep -q " -M none "; then
opts=
fi
exec /usr/bin/qemu-system-x86_64 $opts "$@"

3137
qemu.spec

File diff suppressed because it is too large Load Diff

27
rpminspect.yaml Normal file
View File

@ -0,0 +1,27 @@
# These pre-compiled files have `.symtab`
debuginfo:
ignore:
- /usr/share/qemu/palcode-clipper
- /usr/share/qemu/hppa-firmware.img
# More pre-compiled rom warnings:
# - Program built without GNU_STACK: /usr/share/qemu/u-boot.e500
# - Stack is still executable: /usr/share/qemu/hppa-firmware.img
elf:
exclude_path: ^/usr/share/qemu/(u-boot.e500|hppa-firmware.img)$
inspections:
# complains about qemu use of: gethostbyname, inet_aton, inet_ntoa
# Warning here isn't really accomplishing anything
badfuncs: off
# bundled edk2 source CryptoPkg fuzz tests have invalid unicode,
# but I assume that's intentional
#
# We would exclude that path using `unicode:` section, but fedora CI
# doesn't allow it:
# rpminspect: *** ignoring 'unicode' section in ...rpminspect.yaml; only allowed in system-wide configuration
#
# So instead we fully disable the unicode check
unicode: off

View File

@ -1 +1,2 @@
SHA512 (qemu-5.2.0-rc4.tar.xz) = 47e918392609c34f904962e5759125485407ae52c273053729054300e10fc67fc7ed443c9af25d1d852a5f5c70eee125c703ce15d0e571068848f405de33db3b SHA512 (qemu-9.1.0.tar.xz) = bf61d65e37945fa8ee8640712c719ace05164d86e6df700b98bdc5f79e0a8d5e8f85bd48e726edb62b2419db20673f63ec8b63a60393a914b09cb365621b35e2
SHA512 (qemu-9.1.0.tar.xz.sig) = d63144ef6d666f9e107cefadebcf89ede67027303d8cc43217e8454133adb6e9740fcc5f8a29cc7e24f052d9e685c7fe361b6e094dd0d607a1ce9161f6ed3b59

20
tests/main.fmf Normal file
View File

@ -0,0 +1,20 @@
# This is 'tmt' config format
# https://tmt.readthedocs.io/en/stable/spec.html
summary: Runtime test qemu
require:
- qemu
- qemu-sanity-check
/smoke:
# Make sure -help doesn't fail
test: |
set -eux
qemu-system-x86_64 -help
qemu-img -help
/qemu-sanity-check:
test: |
set -eux
qemu-sanity-check -v

3
vhost.conf Normal file
View File

@ -0,0 +1,3 @@
# Increase default vhost memory map limit to match
# KVM's memory slot limit
options vhost max_mem_regions=509