qemu-kvm/0005-Initial-redhat-build.patch

180 lines
6.3 KiB
Diff
Raw Normal View History

2020-08-12 15:53:34 +00:00
From cf7532e0c854b385ee7acdf5788bc407172f7ae9 Mon Sep 17 00:00:00 2001
2018-10-14 17:48:54 +00:00
From: Miroslav Rezanina <mrezanin@redhat.com>
2018-11-29 12:09:34 +00:00
Date: Fri, 12 Oct 2018 07:31:11 +0200
2018-10-14 17:48:54 +00:00
Subject: Initial redhat build
2018-11-08 17:02:33 +00:00
This patch introduces redhat build structure in redhat subdirectory. In addition,
several issues are fixed in QEMU tree:
2018-10-14 17:48:54 +00:00
2018-11-29 12:09:34 +00:00
- Change of app name for sasl_server_init in VNC code from qemu to qemu-kvm
- As we use qemu-kvm as name in all places, this is updated to be consistent
- Man page renamed from qemu to qemu-kvm
- man page is installed using make install so we have to fix it in qemu tree
2018-10-14 17:48:54 +00:00
2020-07-14 14:45:56 +00:00
This rebase includes changes up to qemu-kvm-4.2.0-29.el8
2018-12-13 12:54:47 +00:00
Rebase notes (3.1.0):
- added new configure options
Rebase notes (4.0.0):
- Added dependency to perl-Test-Harness (upstream)
- Added dependency to python3-sphinx (upstream)
- Change location of icons (upstream)
- Remove .desktop file (added upstream)
- Added qemu-trace-stap (added upstream)
- Removed elf2dmp (added upstream)
- Remove .buildinfo
- Added pvh.bin rom (added upstream)
- Added interop documentation files
- Use python module instead of qemu.py (upstream)
2019-11-15 14:35:04 +00:00
Rebase notes (4.1.0):
- Remove edk2 files generated by build
- Switch to rhel-8.1-candidate build target
- Remove specs documentation
- Switched from libssh2 to libssh
- Add rc0 tarball usage hacks
- Added BuildRequires for wget, rpm-build and python3-sphinx
- Removed new unpacked files
- Update configure line to use new options
2019-12-09 20:39:05 +00:00
Rebase notes (4.2.0):
2019-11-15 14:35:04 +00:00
- Disable iotest run during make check
- README renamed to README.rst (upstream)
- Removed ui-spice-app.so
- Added relevant changes from "505f7f4 redhat: Adding slirp to the exploded tree"
- Removed qemu-ga.8 install from spec file - installed by make
- Removed spapr-rtas.bin (upstream)
2019-12-09 20:39:05 +00:00
- Require newer SLOF (20191022)
2019-11-15 14:35:04 +00:00
2020-08-12 15:53:34 +00:00
Rebase notes (5.1.0):
2020-05-13 01:03:43 +00:00
- Use python3 for virtio_seg_max_adjust.py test
- Removed qemu-trace-stap shebang from spec file
- Added virtiofsd.1 (upstream)
- Use out-of-tree build
2020-08-12 15:53:34 +00:00
- New documentation structure (upstream)
2020-05-13 01:03:43 +00:00
- Update local build
- Removing installed qemu-storage-daemon (added upstream)
- Removing opensbi-riscv32-sifive_u-fw_jump.bin (added upstream)
- Disable iotests (moved from Enable make check commit)
- Added missing configure options
- Reorder configure options
- qemu-pr-helper moved to /usr/libexec/ (upstream)
2020-08-12 15:53:34 +00:00
- Added submodules for usb-redir, smartcard-reader and qxl display (upstream)
- Added setting rc version in Makefile for build
- removed --disable-vxhs configure option (removed upstream)
- bumped required libusbx-devel version to 1.0.23
- bumped libfdt version to 1.6.0
2018-12-13 12:54:47 +00:00
Merged patches (3.1.0):
- 01f0c9f RHEL8: Add disable configure options to qemu spec file
- Spec file cleanups
Merged patches (4.0.0):
- aa4297c Add edk2 Requires to qemu-kvm
- d124ff5779 Fixing brew build target
- eb204b5 Introduce the qemu-kvm-tests rpm
- 223cf0c Load kvm module during boot (partial)
2019-11-15 14:35:04 +00:00
Merged patches (4.1.0):
- ebb6e97 redhat: Fix LOCALVERSION creation
- b0ab0cc redhat: enable tpmdev passthrough (not disabling tests)
- 7cb3c4a Enable libpmem to support nvdimm
- 8943607 qemu-kvm.spec: bump libseccomp >= 2.4.0
- 27b7c44 rh: set CONFIG_BOCHS_DISPLAY=y for x86 (partial)
- e1fe9fe x86_64-rh-devices: enable TPM emulation (partial)
Merged patches (4.2.0):
2019-11-15 14:35:04 +00:00
- 69e1fb2 enable virgla
- d4f6115 enable virgl, for real this time ...
2020-08-12 15:53:34 +00:00
Merged patches (5.1.0):
2020-05-13 01:03:43 +00:00
- 5edf6bd Add support for rh-brew-module
- f77d52d redhat: ship virtiofsd vhost-user device backend
- 63f12d4 redhat: Always use module build target for rh-brew (modified)
- 9b1e140 redhat: updating the modular target
- 44b8bd0 spec: Fix python shenigans for tests
2020-07-15 20:28:51 +00:00
Signed-off-by: Danilo C. L. de Paula <ddepaula@redhat.com>
2018-10-14 17:48:54 +00:00
---
2020-05-13 01:03:43 +00:00
.gitignore | 1 +
Makefile | 3 +-
configure | 1 +
redhat/Makefile | 86 +
2020-08-12 15:53:34 +00:00
redhat/Makefile.common | 54 +
2020-05-13 01:03:43 +00:00
redhat/README.tests | 39 +
2020-08-12 15:53:34 +00:00
redhat/qemu-kvm.spec.template | 2977 +++++++++++++++++++++++++++
redhat/qemu-pr-helper.service | 2 +-
2020-05-13 01:03:43 +00:00
redhat/scripts/extract_build_cmd.py | 2 +-
2020-08-12 15:53:34 +00:00
redhat/scripts/process-patches.sh | 17 +-
2020-05-13 01:03:43 +00:00
tests/check-block.sh | 2 +
ui/vnc.c | 2 +-
2020-08-12 15:53:34 +00:00
12 files changed, 3173 insertions(+), 13 deletions(-)
2018-10-14 17:48:54 +00:00
create mode 100644 redhat/Makefile
create mode 100644 redhat/Makefile.common
create mode 100644 redhat/README.tests
2018-10-14 17:48:54 +00:00
create mode 100644 redhat/qemu-kvm.spec.template
diff --git a/Makefile b/Makefile
2020-08-12 15:53:34 +00:00
index 13dd708c4a..42e854b2b1 100644
2018-10-14 17:48:54 +00:00
--- a/Makefile
+++ b/Makefile
@@ -549,6 +549,7 @@ CAP_CFLAGS += -DCAPSTONE_HAS_ARM
2018-10-14 17:48:54 +00:00
CAP_CFLAGS += -DCAPSTONE_HAS_ARM64
CAP_CFLAGS += -DCAPSTONE_HAS_POWERPC
CAP_CFLAGS += -DCAPSTONE_HAS_X86
+CAP_CFLAGS += -Wp,-D_GLIBCXX_ASSERTIONS
.PHONY: capstone/all
capstone/all: .git-submodule-status
2020-08-12 15:53:34 +00:00
@@ -879,7 +880,7 @@ install-doc: $(DOCS) install-sphinxdocs
$(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)/interop"
2018-10-14 17:48:54 +00:00
ifdef CONFIG_POSIX
$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
2020-05-13 01:03:43 +00:00
- $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu.1 "$(DESTDIR)$(mandir)/man1"
+ $(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu.1 "$(DESTDIR)$(mandir)/man1/qemu-kvm.1"
2018-10-14 17:48:54 +00:00
$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7"
$(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7"
2020-05-13 01:03:43 +00:00
$(INSTALL_DATA) $(MANUAL_BUILDDIR)/system/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7"
2018-10-14 17:48:54 +00:00
diff --git a/configure b/configure
2020-08-12 15:53:34 +00:00
index 2acc4d1465..eb5b695dbe 100755
2018-10-14 17:48:54 +00:00
--- a/configure
+++ b/configure
2020-08-12 15:53:34 +00:00
@@ -2633,6 +2633,7 @@ if test "$seccomp" != "no" ; then
seccomp="no"
fi
2018-10-14 17:48:54 +00:00
fi
+
##########################################
# xen probe
2018-10-14 17:48:54 +00:00
2020-05-13 01:03:43 +00:00
diff --git a/tests/check-block.sh b/tests/check-block.sh
2020-07-15 20:28:51 +00:00
index 8e29c868e5..e9bcb5ac27 100755
2020-05-13 01:03:43 +00:00
--- a/tests/check-block.sh
+++ b/tests/check-block.sh
@@ -53,6 +53,8 @@ if ! (sed --version | grep 'GNU sed') > /dev/null 2>&1 ; then
2020-05-13 01:03:43 +00:00
fi
fi
+exit 0
+
cd tests/qemu-iotests
ret=0
2018-10-14 17:48:54 +00:00
diff --git a/ui/vnc.c b/ui/vnc.c
2020-08-12 15:53:34 +00:00
index f006aa1afd..992f428fec 100644
2018-10-14 17:48:54 +00:00
--- a/ui/vnc.c
+++ b/ui/vnc.c
2020-07-14 14:45:56 +00:00
@@ -3970,7 +3970,7 @@ void vnc_display_open(const char *id, Error **errp)
2018-10-14 17:48:54 +00:00
#ifdef CONFIG_VNC_SASL
2018-11-29 12:09:34 +00:00
if (sasl) {
- int saslErr = sasl_server_init(NULL, "qemu");
+ int saslErr = sasl_server_init(NULL, "qemu-kvm");
if (saslErr != SASL_OK) {
error_setg(errp, "Failed to initialize SASL auth: %s",
2018-10-14 17:48:54 +00:00
--
2020-07-15 20:28:51 +00:00
2.27.0
2018-10-14 17:48:54 +00:00