pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/qemu qemu: updated to 2.12.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/165b8fb67801
branches:  trunk
changeset: 379165:165b8fb67801
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed Apr 25 07:56:05 2018 +0000

description:
qemu: updated to 2.12.0

2.12.0:

Incompatible changes
The deprecated CLI options "-tdf", "-no-kvm-pit" and "-drive boot=on|off" have been removed (they only emitted a warning since QEMU 1.3.0).
The deprecated CLI option "-net channel" has been removed. You can use "-netdev user,guestfwd=..." instead.
The deprecated CLI option "-hdachs" has been removed. You can specify the disk geometry e.g. via -device ide-hd,cyls=c,heads=h,secs=s instead.
The deprecated way of configuring SCSI devices with "-drive if=scsi" on x86 has been removed. Use an appropriate SCSI controller together "-device scsi-hd" or "-device scsi-cd" and a corresponding 
"-blockdev" parameter instead.
The deprecated way of configuring a "host", "serial", "disk" or "net" USB device with "-usbdevice" has been removed. Use "-device usb-..." instead.
The deprecated HMP commands "usb_add" and "usb_del" have been removed. Use "device_add" and "device_del" as replacement instead.
The deprecated HMP commands "host_net_add" and "host_net_remove" have been removed. Use "netdev_add" and "netdev_remove" instead.
The deprecated way of dumping network traffic with "-net dump" has been removed. Use "-object filter-dump" instead.
The deprecated "spapr-pci-vfio-host-bridge" device has been removed (from qemu-system-ppc64). It is not needed for vfio since QEMU v2.6.0 anymore.
Deprecated options and features
qemu-system-ppcemb is deprecated. Use qemu-system-ppc instead.
The parameters "serial", "trans", "secs", "heads", "cyls" and "addr" of the "-drive" option are now deprecated. Use the corresponding options of "-device" instead.
The "-nodefconfig" option is now deprecated. Use "-no-user-config" instead.
The "-s390-squash-mcss" parameter for the s390-ccw-virtio machine is now deprecated. It has been made obsolete by allowing to put any device into any channel subsystem image (unrestricted cssids).
The parameter "handle" of the "-fsdev" and "-virtfs" options is now depecrated. Use "local" instead.
The qmp command "query-cpus" is now deprecated. Use the new "query-cpus-fast" qmp command instead, which does not interrupt all running vCPUs. (However, there is a known bug that in 2.12, the 
"query-cpus-fast" command reports bogus architecture information for all architectures except "x86" and "s390".)
While "-net" is not deprecated yet, you are encouraged to use the new option "-nic" instead of "-net", as it provides a simpler and better interface ("-nic user" replaces the old "-net nic -net 
user").
The "-no-frame" parameter is now deprecated and will be removed together with SDL 1.2 in a future release.
The "-balloon" parameter is deprecated, use "-device virtio-balloon" instead.
The "-rtc-td-hack", "-localtime" and "-startdate" parameters are deprecated. You can use the "-rtc" parameter instead.
The "handle" backend for 9pfs is deprecated.
Consult the "Deprecated Features" appendix for the full list of historically deprecated features/options.

Future incompatible changes
Three options are using different names on the command line and in configuration file. In particular:
The "acpi" configuration file section matches command-line option "acpitable";
The "boot-opts" configuration file section matches command-line option "boot";
The "smp-opts" configuration file section matches command-line option "smp".
-readconfig will standardize on the name for the command line option.
Behavior of automatic calculation of SMP topology when some SMP topology options for -smp are omitted (sockets, cores, threads) will change in the future. If guest ABI needs to be preserved on 
upgrades while using the SMP topology options, users should either set set all options explicitly (sockets, cores, threads), or omit all of them.
Devices "allwinner-a10", "pc87312", "ssi-sd" will be configured with explicit properties instead of implicitly. This is unlikely to affect users.
For x86, specifying a CPUID feature with both "+feature/-feature" and "feature=on/off" will cause a warning. The current behavior for this combination ("+feature/-feature" wins over "feature=on/off") 
will be changed so that "+feature" and "-feature" will be synonyms for "feature=on" and "feature=off" respectively).
The read-only block drivers "bochs", "cloop" and "dmg" as well as "rbd" and "vvfat" in certain read-only configurations will no longer enable read-only mode automatically. It will be necessary to 
specify "read-only=on" explicitly on the command line and in QMP commands for the setup to keep working; the default "read-only=off" setting will result in an error.
On s390x, using KVM with a Linux host kernel version < 3.15 has been broken since QEMU version 2.10. This will not be fixed unless a need is communicated (otherwise the code will be removed in the 
near future, so that you need at least Linux kernel version 3.15 on the host to run KVM on System z)

diffstat:

 emulators/qemu/Makefile                         |   5 +-
 emulators/qemu/PLIST                            |   9 +++-
 emulators/qemu/distinfo                         |  14 +++----
 emulators/qemu/patches/patch-block.c            |   8 ++--
 emulators/qemu/patches/patch-configure          |  49 -------------------------
 emulators/qemu/patches/patch-util_oslib-posix.c |  16 --------
 6 files changed, 19 insertions(+), 82 deletions(-)

diffs (192 lines):

diff -r c0d8655a7d23 -r 165b8fb67801 emulators/qemu/Makefile
--- a/emulators/qemu/Makefile   Wed Apr 25 07:06:58 2018 +0000
+++ b/emulators/qemu/Makefile   Wed Apr 25 07:56:05 2018 +0000
@@ -1,7 +1,6 @@
-# $NetBSD: Makefile,v 1.183 2018/04/17 20:02:14 gson Exp $
+# $NetBSD: Makefile,v 1.184 2018/04/25 07:56:05 adam Exp $
 
-DISTNAME=      qemu-2.11.1
-PKGREVISION=   3
+DISTNAME=      qemu-2.12.0
 CATEGORIES=    emulators
 MASTER_SITES=  http://download.qemu-project.org/
 EXTRACT_SUFX=  .tar.xz
diff -r c0d8655a7d23 -r 165b8fb67801 emulators/qemu/PLIST
--- a/emulators/qemu/PLIST      Wed Apr 25 07:06:58 2018 +0000
+++ b/emulators/qemu/PLIST      Wed Apr 25 07:56:05 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.53 2017/12/14 02:03:52 kamil Exp $
+@comment $NetBSD: PLIST,v 1.54 2018/04/25 07:56:05 adam Exp $
 ${PLIST.ivshmem}bin/ivshmem-client
 ${PLIST.ivshmem}bin/ivshmem-server
 ${PLIST.alpha}bin/qemu-alpha
@@ -29,6 +29,7 @@
 bin/qemu-system-alpha
 bin/qemu-system-arm
 bin/qemu-system-cris
+bin/qemu-system-hppa
 bin/qemu-system-i386
 bin/qemu-system-lm32
 bin/qemu-system-m68k
@@ -44,6 +45,8 @@
 bin/qemu-system-ppc
 bin/qemu-system-ppc64
 bin/qemu-system-ppcemb
+bin/qemu-system-riscv32
+bin/qemu-system-riscv64
 bin/qemu-system-s390x
 bin/qemu-system-sh4
 bin/qemu-system-sh4eb
@@ -79,10 +82,10 @@
 ${PLIST.gtk}share/locale/zh_CN/LC_MESSAGES/qemu.mo
 share/qemu/QEMU,cgthree.bin
 share/qemu/QEMU,tcx.bin
-share/qemu/acpi-dsdt.aml
 share/qemu/bamboo.dtb
 share/qemu/bios-256k.bin
 share/qemu/bios.bin
+share/qemu/canyonlands.dtb
 share/qemu/efi-e1000.rom
 share/qemu/efi-e1000e.rom
 share/qemu/efi-eepro100.rom
@@ -91,6 +94,7 @@
 share/qemu/efi-rtl8139.rom
 share/qemu/efi-virtio.rom
 share/qemu/efi-vmxnet3.rom
+share/qemu/hppa-firmware.img
 share/qemu/keymaps/ar
 share/qemu/keymaps/bepo
 share/qemu/keymaps/common
@@ -155,6 +159,7 @@
 share/qemu/slof.bin
 share/qemu/spapr-rtas.bin
 share/qemu/trace-events-all
+share/qemu/u-boot-sam460-20100605.bin
 share/qemu/u-boot.e500
 share/qemu/vgabios-cirrus.bin
 share/qemu/vgabios-qxl.bin
diff -r c0d8655a7d23 -r 165b8fb67801 emulators/qemu/distinfo
--- a/emulators/qemu/distinfo   Wed Apr 25 07:06:58 2018 +0000
+++ b/emulators/qemu/distinfo   Wed Apr 25 07:56:05 2018 +0000
@@ -1,14 +1,13 @@
-$NetBSD: distinfo,v 1.134 2018/04/17 20:02:14 gson Exp $
+$NetBSD: distinfo,v 1.135 2018/04/25 07:56:05 adam Exp $
 
-SHA1 (qemu-2.11.1.tar.xz) = e85cfbdff264510fd9bba73d83978ab4ecee3f41
-RMD160 (qemu-2.11.1.tar.xz) = 5e713f1fb5f742536211d0e27fc377b849730b1e
-SHA512 (qemu-2.11.1.tar.xz) = 7fd4a7c6fa8627510431ed34f05bdd6b055ea66207bab29904bbce66dfd5b07546f02dfcb34937f48efb67184200ab3c8501763776adc1cdc1302a924fb2a5ef
-Size (qemu-2.11.1.tar.xz) = 28992188 bytes
+SHA1 (qemu-2.12.0.tar.xz) = 5a62c911b2cebbd41decd5c77c524395212411cf
+RMD160 (qemu-2.12.0.tar.xz) = 6d73b29ee562553c02711acd0dc552363c67f96e
+SHA512 (qemu-2.12.0.tar.xz) = dda057c52cf5fe460b029448049266ace061d21fb5f1cf71a6a37f67b3b7fc3350f6712bf22803fc38fa91f0bd438896ba01b5817b3b94ba9b6925aeaae053b7
+Size (qemu-2.12.0.tar.xz) = 35405044 bytes
 SHA1 (patch-Makefile) = b3899fb8d0dd2f29bf3edd843836612e6e6c019c
 SHA1 (patch-audio_audio.c) = 98a1de2fd48638886b5d16f6a61dc72910e98b41
-SHA1 (patch-block.c) = 6f54da333696584067a7556b8cabfa8853758824
+SHA1 (patch-block.c) = 5eb15a87d6646719bf1e9277fbe73a99e4905481
 SHA1 (patch-chardev_char-mux.c) = e597d4dc3889c00d001d899088c4c8cdc4e00474
-SHA1 (patch-configure) = 6d0acd72edb8c602ffbc98fdbc161bc10aa968e2
 SHA1 (patch-contrib_ivshmem-client_ivshmem-client.c) = 40c8751607cbf66a37e4c4e08f2664b864e2e984
 SHA1 (patch-contrib_ivshmem-server_ivshmem-server.c) = d8f53432b5752f4263dc4ef96108a976a05147a3
 SHA1 (patch-hw_display_omap__dss.c) = 6b13242f28e32346bc70548c216c578d98fd3420
@@ -17,4 +16,3 @@
 SHA1 (patch-hw_usb_dev-mtp.c) = f5a446079d51b19eae6c2f5e0c9810c181e4f02d
 SHA1 (patch-slirp_tcp__subr.c) = f011c9dc58282e61b26017547a9884f30a6e6154
 SHA1 (patch-tests_Makefile.include) = 42345d697cb2e324dccf1d68bd8d61e8001c6162
-SHA1 (patch-util_oslib-posix.c) = 319ad18de96860172c8d10920fe2c117e787403e
diff -r c0d8655a7d23 -r 165b8fb67801 emulators/qemu/patches/patch-block.c
--- a/emulators/qemu/patches/patch-block.c      Wed Apr 25 07:06:58 2018 +0000
+++ b/emulators/qemu/patches/patch-block.c      Wed Apr 25 07:56:05 2018 +0000
@@ -1,15 +1,15 @@
-$NetBSD: patch-block.c,v 1.1 2017/12/14 08:01:11 adam Exp $
+$NetBSD: patch-block.c,v 1.2 2018/04/25 07:56:05 adam Exp $
 
 Remove block driver whitelisting logic; reasons being:
 - PkgSrc does not configure Qemu to use whitelisting
 - sometimes CONFIG...WHITELIST macros contain ["", NULL],
   and bdrv_is_whitelisted() fails.
 
---- block.c.orig       2017-12-04 12:07:17.000000000 +0000
+--- block.c.orig       2018-03-27 22:29:23.000000000 +0000
 +++ block.c
-@@ -369,31 +369,7 @@ BlockDriver *bdrv_find_format(const char
+@@ -373,31 +373,7 @@ BlockDriver *bdrv_find_format(const char
  
- static int bdrv_is_whitelisted(BlockDriver *drv, bool read_only)
+ int bdrv_is_whitelisted(BlockDriver *drv, bool read_only)
  {
 -    static const char *whitelist_rw[] = {
 -        CONFIG_BDRV_RW_WHITELIST
diff -r c0d8655a7d23 -r 165b8fb67801 emulators/qemu/patches/patch-configure
--- a/emulators/qemu/patches/patch-configure    Wed Apr 25 07:06:58 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,49 +0,0 @@
-$NetBSD: patch-configure,v 1.22 2018/01/04 16:48:17 gson Exp $
-
-Use ncursesw6-config; define NCURSES_WIDECHAR to fix building on Darwin (at least).
-
-Check for posix_memalign in configure script instead of incorrectly
-testing _POSIX_C_SOURCE in util/oslib-posix.c
-
---- configure.orig     2017-12-29 22:10:50.000000000 +0000
-+++ configure
-@@ -4542,6 +4542,21 @@ if compile_prog "" "" ; then
- fi
- 
- ##########################################
-+# check if we have posix_memalign()
-+
-+posix_memalign=no
-+cat > $TMPC << EOF
-+#include <stdlib.h>
-+int main(void) {
-+    void *p;
-+    return posix_memalign(&p, 8, 8);
-+}
-+EOF
-+if compile_prog "" "" ; then
-+    posix_memalign=yes
-+fi
-+
-+##########################################
- # check if we have posix_syslog
- 
- posix_syslog=no
-@@ -5509,6 +5524,7 @@ echo "preadv support    $preadv"
- echo "fdatasync         $fdatasync"
- echo "madvise           $madvise"
- echo "posix_madvise     $posix_madvise"
-+echo "posix_memalign    $posix_memalign"
- echo "libcap-ng support $cap_ng"
- echo "vhost-net support $vhost_net"
- echo "vhost-scsi support $vhost_scsi"
-@@ -5982,6 +5998,9 @@ fi
- if test "$posix_madvise" = "yes" ; then
-   echo "CONFIG_POSIX_MADVISE=y" >> $config_host_mak
- fi
-+if test "$posix_memalign" = "yes" ; then
-+  echo "CONFIG_POSIX_MEMALIGN=y" >> $config_host_mak
-+fi
- 
- if test "$spice" = "yes" ; then
-   echo "CONFIG_SPICE=y" >> $config_host_mak
diff -r c0d8655a7d23 -r 165b8fb67801 emulators/qemu/patches/patch-util_oslib-posix.c
--- a/emulators/qemu/patches/patch-util_oslib-posix.c   Wed Apr 25 07:06:58 2018 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-util_oslib-posix.c,v 1.1 2018/01/04 16:48:17 gson Exp $
-
-Check for posix_memalign in configure script instead of incorrectly
-testing _POSIX_C_SOURCE in util/oslib-posix.c
-
---- util/oslib-posix.c.orig    2017-12-13 17:27:20.000000000 +0000
-+++ util/oslib-posix.c
-@@ -105,7 +105,7 @@ void *qemu_try_memalign(size_t alignment
-         alignment = sizeof(void*);
-     }
- 
--#if defined(_POSIX_C_SOURCE) && !defined(__sun__)
-+#if defined(CONFIG_POSIX_MEMALIGN)
-     int ret;
-     ret = posix_memalign(&ptr, alignment, size);
-     if (ret != 0) {



Home | Main Index | Thread Index | Old Index