diff options
author | kamil <kamil@pkgsrc.org> | 2019-03-09 10:57:33 +0000 |
---|---|---|
committer | kamil <kamil@pkgsrc.org> | 2019-03-09 10:57:33 +0000 |
commit | f6c21fd54565c7bea0a4c3753c9ce01f2a4d366a (patch) | |
tree | 4f8aec561180aa3727cfed5440ab1d066abd0aee /emulators/haxm | |
parent | ed0cc7deaacdf3ab55542f4300bcdaa9d830624a (diff) | |
download | pkgsrc-f6c21fd54565c7bea0a4c3753c9ce01f2a4d366a.tar.gz |
haxm: Update to 0.20190301.7cb307c4e7ff066b51a503c76f72d7dfefc78760
Drop local patches as merged.
Compat breaking change
======================
Changed major numbers used on NetBSD.
The device nodes must be regenerated.
Upstream changelog
==================
- Improve support of NetBSD as host.
- Changes improving emulation of niche guests.
Diffstat (limited to 'emulators/haxm')
-rw-r--r-- | emulators/haxm/Makefile | 8 | ||||
-rw-r--r-- | emulators/haxm/distinfo | 12 | ||||
-rw-r--r-- | emulators/haxm/files/haxm-mknod | 6 | ||||
-rw-r--r-- | emulators/haxm/patches/patch-platforms_netbsd_hax__entry.c | 23 | ||||
-rw-r--r-- | emulators/haxm/patches/patch-platforms_netbsd_hax__wrapper.c | 23 |
5 files changed, 11 insertions, 61 deletions
diff --git a/emulators/haxm/Makefile b/emulators/haxm/Makefile index df4ca080397..4c39eaa5970 100644 --- a/emulators/haxm/Makefile +++ b/emulators/haxm/Makefile @@ -1,13 +1,11 @@ -# $NetBSD: Makefile,v 1.10 2019/02/19 13:49:14 kamil Exp $ +# $NetBSD: Makefile,v 1.11 2019/03/09 10:57:33 kamil Exp $ GITHUB_PROJECT= haxm -GITHUB_TAG= 3bdfd1a39021df9b4dfe69e05a277e4e6456494a -DISTNAME= haxm-1.20190214.${GITHUB_TAG} +GITHUB_TAG= 7cb307c4e7ff066b51a503c76f72d7dfefc78760 +DISTNAME= haxm-1.20190301.${GITHUB_TAG} CATEGORIES= emulators MASTER_SITES= ${MASTER_SITE_GITHUB:=intel/} -PKGREVISION= 2 - MAINTAINER= kamil@NetBSD.org HOMEPAGE= https://github.com/intel/haxm/ COMMENT= Intel Hardware Accelerated Execution Manager diff --git a/emulators/haxm/distinfo b/emulators/haxm/distinfo index b0b74ff0fab..3a5024c4699 100644 --- a/emulators/haxm/distinfo +++ b/emulators/haxm/distinfo @@ -1,8 +1,6 @@ -$NetBSD: distinfo,v 1.3 2019/02/19 13:49:14 kamil Exp $ +$NetBSD: distinfo,v 1.4 2019/03/09 10:57:33 kamil Exp $ -SHA1 (haxm-1.20190214.3bdfd1a39021df9b4dfe69e05a277e4e6456494a-3bdfd1a39021df9b4dfe69e05a277e4e6456494a.tar.gz) = 456f8ec479838c3b55e9e789b88a0c1dabed986a -RMD160 (haxm-1.20190214.3bdfd1a39021df9b4dfe69e05a277e4e6456494a-3bdfd1a39021df9b4dfe69e05a277e4e6456494a.tar.gz) = a2fca76a36e41f8b8f338752678211098437111d -SHA512 (haxm-1.20190214.3bdfd1a39021df9b4dfe69e05a277e4e6456494a-3bdfd1a39021df9b4dfe69e05a277e4e6456494a.tar.gz) = 0330862f5b85c18fd4f15f76645603ff7ad545aa872ac9ddd58bb6fb53c2b0b3895e8c9b6504370e58c724c4f2c868a684adccc85e719e07c09a3b5460c9dc0f -Size (haxm-1.20190214.3bdfd1a39021df9b4dfe69e05a277e4e6456494a-3bdfd1a39021df9b4dfe69e05a277e4e6456494a.tar.gz) = 233258 bytes -SHA1 (patch-platforms_netbsd_hax__entry.c) = 5bfebf21fe4720c0e01855c2830c88e940f1d4db -SHA1 (patch-platforms_netbsd_hax__wrapper.c) = 53110b734a3be7d5b12123d9ac8e465a9492f8b2 +SHA1 (haxm-1.20190301.7cb307c4e7ff066b51a503c76f72d7dfefc78760-7cb307c4e7ff066b51a503c76f72d7dfefc78760.tar.gz) = e4bc675625eee743fbcb388ba84c09bd5db1a6fc +RMD160 (haxm-1.20190301.7cb307c4e7ff066b51a503c76f72d7dfefc78760-7cb307c4e7ff066b51a503c76f72d7dfefc78760.tar.gz) = 31e07a40d0dd130f923e2687b8348fd5ca2f72ca +SHA512 (haxm-1.20190301.7cb307c4e7ff066b51a503c76f72d7dfefc78760-7cb307c4e7ff066b51a503c76f72d7dfefc78760.tar.gz) = ad8c0128ddceb7684d772248c74794cc2dff033ab5c8a9de5697aa7cceb42e7b756fbbe0b5f4791070ac55c69ed9787bd7710602b99fbc47c7828bda41724faa +Size (haxm-1.20190301.7cb307c4e7ff066b51a503c76f72d7dfefc78760-7cb307c4e7ff066b51a503c76f72d7dfefc78760.tar.gz) = 233969 bytes diff --git a/emulators/haxm/files/haxm-mknod b/emulators/haxm/files/haxm-mknod index 1a92fb9067a..fb62ba9ba8b 100644 --- a/emulators/haxm/files/haxm-mknod +++ b/emulators/haxm/files/haxm-mknod @@ -6,10 +6,10 @@ if [ -e /dev/HAX ]; then fi echo "*** Creating HAX devices ***" -mknod /dev/HAX c 220 0 +mknod /dev/HAX c 348 0 mkdir /dev/hax_vm for i in `seq 0 7`; do mkdir /dev/hax_vm0$i; done -for i in `seq 0 7`; do mknod /dev/hax_vm/vm0$i c 222 $i; done +for i in `seq 0 7`; do mknod /dev/hax_vm/vm0$i c 349 $i; done echo "*** Creating VCPU Nodes ***" i=0 @@ -17,7 +17,7 @@ while [ $i -lt 128 ]; do vm=$(echo "$i/16"|bc) vcpu=$(echo "$i%16"|bc) echo "i=$i vm=$vm vcpu=$vcpu" - cmd=$(printf "mknod /dev/hax_vm%02d/vcpu%02d c 221 %d" $vm $vcpu $i) + cmd=$(printf "mknod /dev/hax_vm%02d/vcpu%02d c 350 %d" $vm $vcpu $i) $cmd let "i+=1" done diff --git a/emulators/haxm/patches/patch-platforms_netbsd_hax__entry.c b/emulators/haxm/patches/patch-platforms_netbsd_hax__entry.c deleted file mode 100644 index ea1b71423f6..00000000000 --- a/emulators/haxm/patches/patch-platforms_netbsd_hax__entry.c +++ /dev/null @@ -1,23 +0,0 @@ -$NetBSD: patch-platforms_netbsd_hax__entry.c,v 1.1 2019/02/19 13:49:15 kamil Exp $ - -Correct retrieving CPU index. - ---- platforms/netbsd/hax_entry.c.orig 2019-02-14 08:45:35.000000000 +0000 -+++ platforms/netbsd/hax_entry.c -@@ -33,6 +33,7 @@ - #include <sys/conf.h> - #include <sys/device.h> - #include <sys/module.h> -+#include <sys/cpu.h> - - #include "../../core/include/config.h" - #include "../../core/include/hax_core_interface.h" -@@ -230,7 +231,7 @@ haxm_modcmd(modcmd_t cmd, void *arg __un - for (CPU_INFO_FOREACH(cii, ci)) { - ++max_cpus; - if (!ISSET(ci->ci_schedstate.spc_flags, SPCF_OFFLINE)) { -- cpu_online_map |= __BIT(ci->ci_cpuid); -+ cpu_online_map |= __BIT(cpu_index(ci)); - } - } - diff --git a/emulators/haxm/patches/patch-platforms_netbsd_hax__wrapper.c b/emulators/haxm/patches/patch-platforms_netbsd_hax__wrapper.c deleted file mode 100644 index 35f6894d2a4..00000000000 --- a/emulators/haxm/patches/patch-platforms_netbsd_hax__wrapper.c +++ /dev/null @@ -1,23 +0,0 @@ -$NetBSD: patch-platforms_netbsd_hax__wrapper.c,v 1.1 2019/02/19 13:49:15 kamil Exp $ - -Correct retrieving CPU index. - ---- platforms/netbsd/hax_wrapper.c.orig 2019-02-14 08:45:35.000000000 +0000 -+++ platforms/netbsd/hax_wrapper.c -@@ -35,6 +35,7 @@ - #include <sys/mutex.h> - #include <sys/systm.h> - #include <sys/xcall.h> -+#include <sys/cpu.h> - #include <machine/cpu.h> - #include <machine/cpufunc.h> - -@@ -61,7 +62,7 @@ int hax_log_level(int level, const char - - uint32_t hax_cpuid(void) - { -- return curcpu()->ci_cpuid; -+ return cpu_index(curcpu()); - } - - typedef struct smp_call_parameter { |