yeahuh / rpms / qemu-kvm

Forked from rpms/qemu-kvm 2 years ago
Clone
26ba25
From 7000ac85100400a686b48562d830c7b14a439a94 Mon Sep 17 00:00:00 2001
26ba25
From: Miroslav Rezanina <mrezanin@redhat.com>
26ba25
Date: Mon, 11 Sep 2017 07:11:00 +0200
26ba25
Subject: Initial redhat build
26ba25
26ba25
This patch introduces redhat build structure in redhat subdirectory. In addition,
26ba25
several issues are fixed in QEMU tree:
26ba25
26ba25
- Change of app name for sasl_server_init in VNC code from qemu to qemu-kvm
26ba25
 - As we use qemu-kvm as name in all places, this is updated to be consistent
26ba25
- Man page renamed from qemu to qemu-kvm
26ba25
 - man page is installed using make install so we have to fix it in qemu tree
26ba25
- Use "/share/qemu-kvm" as SHARE_SUFFIX
26ba25
 - We reconfigured our share to qemu-kvm to be consistent with used name
26ba25
- Added .gitpublish configuration file
26ba25
 - Support for git publish has to be stored in repository root
26ba25
26ba25
--
26ba25
Rebase notes for RHEL-8 (2.12.0):
26ba25
- Conflict fix in .gitpublish
26ba25
- Not packaging hppa-firmware.img
26ba25
- Disable vxhs.o in block/Makefile.obj
26ba25
- Disable ppc64 builds
26ba25
- Removed acpi-dsdt.aml (upstream)
26ba25
- dropped libjpeg build requirement
26ba25
- Replaced buildrequirement librados2 and librbd1 by librados and librbd.
26ba25
- dropping "-pie -fPIE -DPIE" as we're using --enable-pie
26ba25
- Do not use tcmmaloc
26ba25
- Dropping gperftools-devel dependency
26ba25
26ba25
Rebase notes for RHEL-8.0 (2.11.0):
26ba25
- Removed references to rhel6 rom files (virtio.rom, pcnet, rtl8139,
26ba25
                                         net2k_pci e1000, bios-256k,
26ba25
                                         pxe-e1000e.rom)
26ba25
- Removed 80-kvm.rules file
26ba25
- Changing ipxe linking to match upstream
26ba25
- Updating kvm.modules and ksmtuned files
26ba25
- cleaning %kvm_files section
26ba25
- Remove CONFIG_RHV
26ba25
- Remove CONFIG_LIVE_BLOCK_OPS
26ba25
- Removing CONFIG_VTD
26ba25
- Moving vxhs related changes to another commit
26ba25
- removed live-block-migration option
26ba25
26ba25
Rebase notes (2.11.0):
26ba25
- Removed --with-pixman configure option (upstream)
26ba25
- Enabling multipath for qemu-pr-helper
26ba25
- Removed qemu-kvm-tools
26ba25
- Removed references to "-rhev" and "-ma"
26ba25
- Removing kvm-unit-tests
26ba25
- Enabling qemu-geust-agent
26ba25
26ba25
Rebase notes (2.10.0):
26ba25
- live_block_migration option added upstream
26ba25
- moved qmp-spec.txt file (upstream)
26ba25
- added s390-netboot.img (added upstream)
26ba25
- removed qemu_vga.ndrv (added upstream)
26ba25
- switch to (rhevh-)rhel-7.5-candidate
26ba25
- switched differentiation defaults
26ba25
- moved binary files to separate commit
26ba25
26ba25
Rebase notes (2.9.0):
26ba25
- documentation files handling changes (upstrem)
26ba25
- removed --enable-colo option and --disable-archipelago (upstream)
26ba25
- bump BuildRequires versions
26ba25
- new mandatory argument for tracetool.py (upstream)
26ba25
- updated RHEL 6 roms
26ba25
- switch from sha1sum to sha256sum
26ba25
- Moved adding rhel6-e1000.rom from machine types commit
26ba25
- Moved adding pxe-e1000e.rom from device disable commit
26ba25
- Use rdma-core instead of librdmacm
26ba25
- Add upstream tarballs tar.xz to .gitignore
26ba25
- Updated git-backport-diff script
26ba25
26ba25
Rebase notes (2.8.0):
26ba25
- removed vhdx option (upstream)
26ba25
- qemu-tech.html merged to qemu-doc.html (upstream)
26ba25
- removed skiboot.lid firmware
26ba25
- Changed tracetool.py parameters
26ba25
- Added support for easy z-stream switch
26ba25
26ba25
Rebase notes (2.7.0):
26ba25
- removed kvm_stat
26ba25
- added efi-e1000e.rom
26ba25
- added efi-vmxnet.rom
26ba25
- added linuxboot_dma.bin
26ba25
- trace-events renamed to trace-events-all
26ba25
- reverted dependency to seccomp on aarch64
26ba25
- Add ipxe-qemu-roms ad build dependency to pass tests
26ba25
26ba25
Rebase notes (2.6.0):
26ba25
- removed q35-acpi-dsdt.aml
26ba25
- add enable-gcrypt option
26ba25
26ba25
Rebase notes (2.5.0):
26ba25
- New seccomp hadling in configure
26ba25
- New condition format  in migration/migration.c
26ba25
- libcacard extracted
26ba25
- vnc fixes
26ba25
- libsecomp for aarch64 requirements changed downstream
26ba25
26ba25
Rebase notes (2.4.0):
26ba25
- remove --enable-ws-vnc
26ba25
- use error_setg instead of error_set in migration/migration.c
26ba25
- remove target-x86_64.conf
26ba25
- create /etc/qemu-kvm on copying of bridge.conf
26ba25
- disabled opengl
26ba25
- rebased to version 2.3.0-30.el7
26ba25
26ba25
- Merged patches (Rebase 2.12.0)
26ba25
- spec: Change License line
26ba25
- spec: Do not depend on ipxe for Power architectures
26ba25
- configuration: Use gcrypt instead of nettle
26ba25
- spec: Use hardening flags for ksmctl build
26ba25
26ba25
Merged patches (rebase 2.11.0)
26ba25
- ce6e8e5b8a redhat/qemu-kvm.spec.template: Enable seccomp on s390x, too
26ba25
- 8629f208c6 redhat: Remove qemu.binfmt from the downstream repository
26ba25
- b889ce1c40 Disable build of qemu-kvm-ma for x86_64
26ba25
- 4506913c42 redhat: add CONFIG_RHV flag
26ba25
- 21ecaec46f s390x: vm.allocate_pgste sysctl is no longer needed
26ba25
- 78a1864d99 Update build_configure for 2.10.0 options
26ba25
- decf881320 redhat: Provide s390x specific /etc/modprobe.d/kvm.conf
26ba25
- e0cd3138cc redhat/qemu-kvm.spec: Use the freshly built s390-ccw.img firmware image
26ba25
- 7af6b9a4fa redhat: install generic kvm.conf except for s390 and x86 architectures
26ba25
- c4290f50bb redhat: fix rh-srpm target
26ba25
- 8943f52e8b Package qemu-block-drivers manpage
26ba25
- 88b41044d6 update spec to build and install qemu-pr-helper
26ba25
26ba25
Merged patches (rebase 2.10.0)
26ba25
- feefd46 qemu-kvm.spec: Enable s390x build
26ba25
- 985051e Removing texi2html from build requirements
26ba25
- 7c64a2a Update ignore files for redhat usage
26ba25
- 8f9a95a Disable replication feature
26ba25
- 1b7bbc5 block/vxhs: modularize VXHS via g_module
26ba25
- 7511527 Remove the dependencies to seavgabios-bin and ipxe-roms-qemu on s390x
26ba25
- aa0891c Downstream: Don't disable SMT on POWER9 hosts
26ba25
- a13a0e9 Update configuration for qemu 2.9
26ba25
- bbf46dd disable pulseaudio and alsa
26ba25
- 9124839 redhat/Makefile: honor BREW_FLAGS like the kernel
26ba25
- 53c03bd copy SLIT test reference blobs into tests directory
26ba25
- c4c77e6 Differentiation support
26ba25
- f1ec0e8 configure: allow to disable VT-d emulation
26ba25
- b972023 Disable VT-d for rhel builds
26ba25
- 29a0414 RHEL Diff.: Add option in configure to disable live block ops
26ba25
- 1f33b29 RHEL Diff.: Unregister live block operations
26ba25
- c590551 RHEL Diff.: Disable live block operations in HMP monitor
26ba25
- c7e208f RHEL Diff.: Add rpm spec options for live block ops
26ba25
- 733af5c pegas: add rpm spec options for vhost-user
26ba25
- ff16138 Add support for local build
26ba25
- fb426d4 qemu-kvm.spec: Configure vm.allocate_pgste for s390x
26ba25
26ba25
Merged patches (rebase 2.9.0)
26ba25
- 9c7ab94 Enable seccomp for ppc64/ppc64le architecture
26ba25
- f6d7e9d Update qemu-kvm package Summary and Description
26ba25
- a9e55b6 Disable usbredir and libcacard for unsupported architectures
26ba25
- 0218220 Update configuration for 2.8.0 release
26ba25
26ba25
Merged patches (rebase 2.7.0)
26ba25
- 2be6077 Fix SLOF dependency
26ba25
- dc58590 spec: Remove dependency to ipxe-roms-qemu for aarch64
26ba25
- 357ef43 spec: link sgabios.bin only for x86_64
26ba25
- 08d82cc spec: Update rules before triggering for kvm device
26ba25
- 8980a76 spec: Do not package ivshmem-server and ivshmem-client
26ba25
- 027067c spec: add a sample kvm.conf to enable Nested Virtualization
26ba25
- ba2ba30 Adjust locked memory limits to allow unprivileged VMs on Power
26ba25
- e9740b0 Increase locked memory limit for all users, not just kvm group
26ba25
- 8c301be add vgabios-virtio.bin symlink
26ba25
- 4d03723 usb: enable streams support
26ba25
- 2a9363e Add install dependency required for usb streams
26ba25
- 9a54442 Add dump-guest-memory.py to all archs
26ba25
- 73fffc9 add e1000e ipxe rom symlink
26ba25
- aaaa2a9 Add 'luks' to block driver whitelist
26ba25
- c78c3a8 redhat: switch from gcrypt to nettle for crypto
26ba25
- bb51a69 redhat: include username and date in RPM N-E-V-R for scratch builds
26ba25
26ba25
Merged patches (rebase 2.4.0)
26ba25
- 9201274 spec: Remove obsolete differentiation code
26ba25
- a938a8c spec: Use external configuration script
26ba25
- 5ca8d0e spec: Use configure options to prevent default resolution
26ba25
- 5dca391 spec: Ship complete QMP documentation files
26ba25
- 7899edd aarch64: allow --enable-seccomp
26ba25
- a56fb9c aarch64: redhat spec: enable seccomp
26ba25
- a9571e6 rhel: Update package version for SLOF dependency
26ba25
- 25c70c4 configure: Add support for tcmalloc
26ba25
- db72485 Change fsreeze-hook default location
26ba25
- 14b8a9e redhat: add kvm-unit-tests tarball to environment
26ba25
- 5ee4238 spec: Build tscdeadline_latency.flat from kvm-unit-tests
26ba25
- 6ba800b Downstream-only: Start kvm-setup service before libvirtd service
26ba25
- 59b43d6 Do not stop qemu-guest-agent service on target switch
26ba25
- 4d851fa provide vhost module config file with max_mem_regions set to 509
26ba25
- 0b18027 spec: Require proper version of SLOF
26ba25
- 3c436c7 Fix rh-brew-aarch64, rh-brew-ppc rh-brew-ga-ppc target
26ba25
26ba25
(cherry picked from commit ba7591ec4a0906121d15ffbf740580bd79ec5814)
26ba25
---
26ba25
 .gitpublish                        |  58 +--
26ba25
 Makefile                           |   2 +-
26ba25
 block/Makefile.objs                |   2 +-
26ba25
 os-posix.c                         |   2 +-
26ba25
 redhat/.gitignore                  |   5 +
26ba25
 redhat/85-kvm.preset               |   5 +
26ba25
 redhat/95-kvm-memlock.conf         |  10 +
26ba25
 redhat/99-qemu-guest-agent.rules   |   2 +
26ba25
 redhat/Makefile                    |  88 ++++
26ba25
 redhat/Makefile.common             |  48 +++
26ba25
 redhat/Makefile.local              |  76 ++++
26ba25
 redhat/bridge.conf                 |   1 +
26ba25
 redhat/build_configure.sh          | 145 +++++++
26ba25
 redhat/ksm.service                 |  13 +
26ba25
 redhat/ksm.sysconfig               |   4 +
26ba25
 redhat/ksmctl.c                    |  77 ++++
26ba25
 redhat/ksmtuned                    | 139 +++++++
26ba25
 redhat/ksmtuned.conf               |  21 +
26ba25
 redhat/ksmtuned.service            |  12 +
26ba25
 redhat/kvm-s390x.conf              |   7 +
26ba25
 redhat/kvm-setup                   |  40 ++
26ba25
 redhat/kvm-setup.service           |  14 +
26ba25
 redhat/kvm-x86.conf                |  12 +
26ba25
 redhat/kvm.conf                    |   3 +
26ba25
 redhat/kvm.modules                 |  18 +
26ba25
 redhat/qemu-ga.sysconfig           |  19 +
26ba25
 redhat/qemu-guest-agent.service    |  20 +
26ba25
 redhat/qemu-kvm.spec.template      | 794 +++++++++++++++++++++++++++++++++++++
26ba25
 redhat/qemu-pr-helper.service      |  15 +
26ba25
 redhat/qemu-pr-helper.socket       |   9 +
26ba25
 redhat/rpmbuild/BUILD/.gitignore   |   2 +
26ba25
 redhat/rpmbuild/RPMS/.gitignore    |   2 +
26ba25
 redhat/rpmbuild/SOURCES/.gitignore |   2 +
26ba25
 redhat/rpmbuild/SPECS/.gitignore   |   2 +
26ba25
 redhat/rpmbuild/SRPMS/.gitignore   |   2 +
26ba25
 redhat/scripts/frh.py              |  26 ++
26ba25
 redhat/scripts/git-backport-diff   | 327 +++++++++++++++
26ba25
 redhat/scripts/git-compile-check   | 215 ++++++++++
26ba25
 redhat/scripts/process-patches.sh  |  78 ++++
26ba25
 redhat/scripts/tarball_checksum.sh |   3 +
26ba25
 redhat/vhost.conf                  |   3 +
26ba25
 ui/vnc.c                           |   2 +-
26ba25
 42 files changed, 2270 insertions(+), 55 deletions(-)
26ba25
 create mode 100644 redhat/.gitignore
26ba25
 create mode 100644 redhat/85-kvm.preset
26ba25
 create mode 100644 redhat/95-kvm-memlock.conf
26ba25
 create mode 100644 redhat/99-qemu-guest-agent.rules
26ba25
 create mode 100644 redhat/Makefile
26ba25
 create mode 100644 redhat/Makefile.common
26ba25
 create mode 100644 redhat/Makefile.local
26ba25
 create mode 100644 redhat/bridge.conf
26ba25
 create mode 100755 redhat/build_configure.sh
26ba25
 create mode 100644 redhat/ksm.service
26ba25
 create mode 100644 redhat/ksm.sysconfig
26ba25
 create mode 100644 redhat/ksmctl.c
26ba25
 create mode 100644 redhat/ksmtuned
26ba25
 create mode 100644 redhat/ksmtuned.conf
26ba25
 create mode 100644 redhat/ksmtuned.service
26ba25
 create mode 100644 redhat/kvm-s390x.conf
26ba25
 create mode 100644 redhat/kvm-setup
26ba25
 create mode 100644 redhat/kvm-setup.service
26ba25
 create mode 100644 redhat/kvm-x86.conf
26ba25
 create mode 100644 redhat/kvm.conf
26ba25
 create mode 100644 redhat/kvm.modules
26ba25
 create mode 100644 redhat/qemu-ga.sysconfig
26ba25
 create mode 100644 redhat/qemu-guest-agent.service
26ba25
 create mode 100644 redhat/qemu-kvm.spec.template
26ba25
 create mode 100644 redhat/qemu-pr-helper.service
26ba25
 create mode 100644 redhat/qemu-pr-helper.socket
26ba25
 create mode 100644 redhat/rpmbuild/BUILD/.gitignore
26ba25
 create mode 100644 redhat/rpmbuild/RPMS/.gitignore
26ba25
 create mode 100644 redhat/rpmbuild/SOURCES/.gitignore
26ba25
 create mode 100644 redhat/rpmbuild/SPECS/.gitignore
26ba25
 create mode 100644 redhat/rpmbuild/SRPMS/.gitignore
26ba25
 create mode 100755 redhat/scripts/frh.py
26ba25
 create mode 100755 redhat/scripts/git-backport-diff
26ba25
 create mode 100755 redhat/scripts/git-compile-check
26ba25
 create mode 100755 redhat/scripts/process-patches.sh
26ba25
 create mode 100755 redhat/scripts/tarball_checksum.sh
26ba25
 create mode 100644 redhat/vhost.conf
26ba25
26ba25
diff --git a/Makefile b/Makefile
26ba25
index d71dd5b..89ba4c5 100644
26ba25
--- a/Makefile
26ba25
+++ b/Makefile
26ba25
@@ -804,7 +804,7 @@ install-doc: $(DOCS)
26ba25
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.txt "$(DESTDIR)$(qemu_docdir)"
26ba25
 ifdef CONFIG_POSIX
26ba25
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man1"
26ba25
-	$(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1"
26ba25
+	$(INSTALL_DATA) qemu.1 "$(DESTDIR)$(mandir)/man1/qemu-kvm.1"
26ba25
 	$(INSTALL_DIR) "$(DESTDIR)$(mandir)/man7"
26ba25
 	$(INSTALL_DATA) docs/interop/qemu-qmp-ref.7 "$(DESTDIR)$(mandir)/man7"
26ba25
 	$(INSTALL_DATA) docs/qemu-block-drivers.7 "$(DESTDIR)$(mandir)/man7"
26ba25
diff --git a/block/Makefile.objs b/block/Makefile.objs
26ba25
index d644bac..c0693fc 100644
26ba25
--- a/block/Makefile.objs
26ba25
+++ b/block/Makefile.objs
26ba25
@@ -20,7 +20,7 @@ block-obj-$(CONFIG_LIBNFS) += nfs.o
26ba25
 block-obj-$(CONFIG_CURL) += curl.o
26ba25
 block-obj-$(CONFIG_RBD) += rbd.o
26ba25
 block-obj-$(CONFIG_GLUSTERFS) += gluster.o
26ba25
-block-obj-$(CONFIG_VXHS) += vxhs.o
26ba25
+#block-obj-$(CONFIG_VXHS) += vxhs.o
26ba25
 block-obj-$(CONFIG_LIBSSH2) += ssh.o
26ba25
 block-obj-y += accounting.o dirty-bitmap.o
26ba25
 block-obj-y += write-threshold.o
26ba25
diff --git a/os-posix.c b/os-posix.c
26ba25
index b9c2343..05de8ee 100644
26ba25
--- a/os-posix.c
26ba25
+++ b/os-posix.c
26ba25
@@ -75,7 +75,7 @@ void os_setup_signal_handling(void)
26ba25
 /* Find a likely location for support files using the location of the binary.
26ba25
    For installed binaries this will be "$bindir/../share/qemu".  When
26ba25
    running from the build tree this will be "$bindir/../pc-bios".  */
26ba25
-#define SHARE_SUFFIX "/share/qemu"
26ba25
+#define SHARE_SUFFIX "/share/qemu-kvm"
26ba25
 #define BUILD_SUFFIX "/pc-bios"
26ba25
 char *os_find_datadir(void)
26ba25
 {
26ba25
diff --git a/ui/vnc.c b/ui/vnc.c
26ba25
index e164eb7..0c3011b 100644
26ba25
--- a/ui/vnc.c
26ba25
+++ b/ui/vnc.c
26ba25
@@ -4045,7 +4045,7 @@ void vnc_display_open(const char *id, Error **errp)
26ba25
     trace_vnc_auth_init(vd, 1, vd->ws_auth, vd->ws_subauth);
26ba25
 
26ba25
 #ifdef CONFIG_VNC_SASL
26ba25
-    if ((saslErr = sasl_server_init(NULL, "qemu")) != SASL_OK) {
26ba25
+    if ((saslErr = sasl_server_init(NULL, "qemu-kvm")) != SASL_OK) {
26ba25
         error_setg(errp, "Failed to initialize SASL auth: %s",
26ba25
                    sasl_errstring(saslErr, NULL, NULL));
26ba25
         goto fail;
26ba25
-- 
26ba25
1.8.3.1
26ba25