qemu: update to 9.1.0
authorVladimir Ermakov <[email protected]>
Sun, 29 Sep 2024 14:11:44 +0000 (16:11 +0200)
committerRosen Penev <[email protected]>
Wed, 2 Oct 2024 20:28:48 +0000 (13:28 -0700)
- Update version
- Refresh patches
- Remove unsupported config options:
  - `--enable-live-block-migration`
  - `--disable-pvrdma`

Signed-off-by: Vladimir Ermakov <[email protected]>
utils/qemu/Makefile
utils/qemu/patches/0001-configure-allow-disable-fortify_source.patch
utils/qemu/patches/0007-qga-invoke-separate-applets-for-guest-shutdown-modes.patch
utils/qemu/patches/0010-no-tests.patch

index 7f74bdc3c59df436b6b3e8ed4ceecf5928086cdc..c12ee129265340339b401b3d2f194f65514f6be9 100644 (file)
@@ -9,10 +9,10 @@
 include $(TOPDIR)/rules.mk
 
 PKG_NAME:=qemu
-PKG_VERSION:=9.0.2
+PKG_VERSION:=9.1.0
 PKG_RELEASE:=1
 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.xz
-PKG_HASH:=a8c3f596aece96da3b00cafb74baafa0d14515eafb8ed1ee3f7f5c2d0ebf02b6
+PKG_HASH:=816b7022a8ba7c2ac30e2e0cf973e826f6bcc8505339603212c5ede8e94d7834
 PKG_SOURCE_URL:=https://download.qemu.org/
 PKG_LICENSE:=GPL-2.0-only
 PKG_LICENSE_FILES:=LICENSE tcg/LICENSE
@@ -361,7 +361,6 @@ CONFIGURE_ARGS +=                   \
 CONFIGURE_ARGS +=                      \
        --enable-coroutine-pool         \
        --enable-crypto-afalg           \
-       --enable-live-block-migration   \
        --enable-membarrier             \
        --enable-replication            \
        --enable-lto                    \
@@ -414,7 +413,6 @@ CONFIGURE_ARGS +=                   \
        --disable-numa                  \
        --disable-opengl                \
        --disable-plugins               \
-       --disable-pvrdma                \
        --disable-qom-cast-debug        \
        --disable-rbd                   \
        --disable-rdma                  \
index 45badf97b7f79ab2c584b8c3118492f919b9b8b9..1843df22a21619311c5d0371fd2ba6dd483780da 100644 (file)
@@ -11,7 +11,7 @@ OpenWrt base build system decide flavor of fortify_source to use
 
 --- a/configure
 +++ b/configure
-@@ -760,6 +760,8 @@ for opt do
+@@ -757,6 +757,8 @@ for opt do
    ;;
    --gdb=*) gdb_bin="$optarg"
    ;;
index 94061b8bf281d28f34df693f99e23fe03a84b764..da00996fd9dec377dd9b29cf05869124bc1fb5ff 100644 (file)
@@ -13,15 +13,15 @@ https://gitlab.alpinelinux.org/alpine/aports/commit/76b81b486480fd9c3294cd420bcf
 
 --- a/qga/commands-posix.c
 +++ b/qga/commands-posix.c
-@@ -79,6 +79,7 @@ static void ga_wait_child(pid_t pid, int
+@@ -217,6 +217,7 @@ out:
  void qmp_guest_shutdown(const char *mode, Error **errp)
  {
      const char *shutdown_flag;
 +    const char *fallback_cmd = NULL;
      Error *local_err = NULL;
-     pid_t pid;
-     int status;
-@@ -100,10 +101,13 @@ void qmp_guest_shutdown(const char *mode
+ #ifdef CONFIG_SOLARIS
+@@ -236,10 +237,13 @@ void qmp_guest_shutdown(const char *mode
      slog("guest-shutdown called, mode: %s", mode);
      if (!mode || strcmp(mode, "powerdown") == 0) {
          shutdown_flag = powerdown_flag;
@@ -35,11 +35,18 @@ https://gitlab.alpinelinux.org/alpine/aports/commit/76b81b486480fd9c3294cd420bcf
      } else {
          error_setg(errp,
                     "mode is invalid (valid values are: halt|powerdown|reboot");
-@@ -128,6 +132,7 @@ void qmp_guest_shutdown(const char *mode
-         execl("/sbin/shutdown", "shutdown", "-h", shutdown_flag, "+0",
-                "hypervisor initiated shutdown", (char *)NULL);
- #endif
-+        execl(fallback_cmd, fallback_cmd, (char*)NULL);
-         _exit(EXIT_FAILURE);
-     } else if (pid < 0) {
-         error_setg_errno(errp, errno, "failed to create child process");
+@@ -258,8 +262,12 @@ void qmp_guest_shutdown(const char *mode
+     ga_run_command(argv, NULL, "shutdown", &local_err);
+     if (local_err) {
+-        error_propagate(errp, local_err);
+-        return;
++        const char fallback_argv[] = {fallback_cmd, (char *) NULL};
++        ga_run_command(fallback_argv, NULL, fallback_cmd, &local_err);
++        if (local_err) {
++            error_propagate(errp, local_err);
++            return;
++        }
+     }
+     /* succeeded */
index 92f8c5ac8b815d223347df606dc48bd876f0c826..4841b52ffe2f64c40ae48179c9b97b2d39efa142 100644 (file)
@@ -1,6 +1,6 @@
 --- a/meson.build
 +++ b/meson.build
-@@ -3576,10 +3576,6 @@ subdir('common-user')
+@@ -3630,10 +3630,6 @@ subdir('common-user')
  subdir('bsd-user')
  subdir('linux-user')
  
@@ -11,7 +11,7 @@
  # accel modules
  tcg_real_module_ss = ss.source_set()
  tcg_real_module_ss.add_all(when: 'CONFIG_TCG_MODULAR', if_true: tcg_module_ss)
-@@ -4094,10 +4090,6 @@ subdir('scripts')
+@@ -4161,10 +4157,6 @@ subdir('scripts')
  subdir('tools')
  subdir('pc-bios')
  subdir('docs')