pkgsrc-Changes-HG archive

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

[pkgsrc/trunk]: pkgsrc/emulators/haxm haxm: Update to 1.20190214.3bdfd1a39021...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/a0a32b8e9434
branches:  trunk
changeset: 329786:a0a32b8e9434
user:      kamil <kamil%pkgsrc.org@localhost>
date:      Thu Feb 14 23:17:55 2019 +0000

description:
haxm: Update to 1.20190214.3bdfd1a39021df9b4dfe69e05a277e4e6456494a

The only upstream change is the merge of all local patches in an improved
version and prevent FPU DNA crash on host.

diffstat:

 emulators/haxm/Makefile                          |   8 ++---
 emulators/haxm/distinfo                          |  15 +++-------
 emulators/haxm/patches/patch-core_ia32.c         |  20 --------------
 emulators/haxm/patches/patch-core_ia32__ops.asm  |  19 -------------
 emulators/haxm/patches/patch-core_include_ia32.h |  25 -----------------
 emulators/haxm/patches/patch-core_include_vcpu.h |  16 -----------
 emulators/haxm/patches/patch-core_vcpu.c         |  34 ------------------------
 7 files changed, 8 insertions(+), 129 deletions(-)

diffs (174 lines):

diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/Makefile
--- a/emulators/haxm/Makefile   Thu Feb 14 22:59:49 2019 +0000
+++ b/emulators/haxm/Makefile   Thu Feb 14 23:17:55 2019 +0000
@@ -1,13 +1,11 @@
-# $NetBSD: Makefile,v 1.5 2019/02/14 20:54:17 nia Exp $
+# $NetBSD: Makefile,v 1.6 2019/02/14 23:17:55 kamil Exp $
 
 GITHUB_PROJECT=        haxm
-GITHUB_TAG=    c072ad9b68e1d558a9fb791511468d10a1a9b319
-DISTNAME=      haxm-0.${GITHUB_TAG}
+GITHUB_TAG=    3bdfd1a39021df9b4dfe69e05a277e4e6456494a
+DISTNAME=      haxm-1.20190214.${GITHUB_TAG}
 CATEGORIES=    emulators
 MASTER_SITES=  ${MASTER_SITE_GITHUB:=intel/}
 
-PKGREVISION=   1
-
 MAINTAINER=    kamil%NetBSD.org@localhost
 HOMEPAGE=      https://github.com/intel/haxm/
 COMMENT=       Intel Hardware Accelerated Execution Manager
diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/distinfo
--- a/emulators/haxm/distinfo   Thu Feb 14 22:59:49 2019 +0000
+++ b/emulators/haxm/distinfo   Thu Feb 14 23:17:55 2019 +0000
@@ -1,11 +1,6 @@
-$NetBSD: distinfo,v 1.1 2019/02/13 05:20:15 kamil Exp $
+$NetBSD: distinfo,v 1.2 2019/02/14 23:17:55 kamil Exp $
 
-SHA1 (haxm-0.c072ad9b68e1d558a9fb791511468d10a1a9b319-c072ad9b68e1d558a9fb791511468d10a1a9b319.tar.gz) = da6fe9b8c98292e8c4ca5f62ad6aa9a4a65c6bb1
-RMD160 (haxm-0.c072ad9b68e1d558a9fb791511468d10a1a9b319-c072ad9b68e1d558a9fb791511468d10a1a9b319.tar.gz) = 6c1248be0b9ee775c9879627bf60d20eb3a94368
-SHA512 (haxm-0.c072ad9b68e1d558a9fb791511468d10a1a9b319-c072ad9b68e1d558a9fb791511468d10a1a9b319.tar.gz) = 
df8e8b634fea18faa05ae57648dee6500a5b0d93fa081172835e1991ab3ae2b6ad0ad1a99d91d695f0a6656e79744445ff6f6f42947b311bb8245640dd8cff23
-Size (haxm-0.c072ad9b68e1d558a9fb791511468d10a1a9b319-c072ad9b68e1d558a9fb791511468d10a1a9b319.tar.gz) = 233043 bytes
-SHA1 (patch-core_ia32.c) = 6252b1b49d5198a9c16aa206cbfc1981c43c9b70
-SHA1 (patch-core_ia32__ops.asm) = ca208e579a39a15f5c62322dcad595b4b0ac4a34
-SHA1 (patch-core_include_ia32.h) = 3195558c44d1d196a7ac89aaa9b1931790395acc
-SHA1 (patch-core_include_vcpu.h) = 9b9e020d4e15f9e310ef5d22fa41b2289813394f
-SHA1 (patch-core_vcpu.c) = 068a20bf96c797cfd5f4629ce0e5cbb0104995a8
+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
diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/patches/patch-core_ia32.c
--- a/emulators/haxm/patches/patch-core_ia32.c  Thu Feb 14 22:59:49 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,20 +0,0 @@
-$NetBSD: patch-core_ia32.c,v 1.1 2019/02/13 05:20:15 kamil Exp $
-
-Cherry-pick from upstream review:
- - Fix FPU DNA exception on NetBSD
-   https://github.com/intel/haxm/pull/168
-
---- core/ia32.c.orig   2019-02-12 09:24:47.000000000 +0000
-+++ core/ia32.c
-@@ -81,6 +81,11 @@ uint64_t ia32_rdtsc(void)
- #endif
- }
- 
-+void hax_clts(void)
-+{
-+    asm_clts();
-+}
-+
- void hax_fxinit(void)
- {
-     asm_fxinit();
diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/patches/patch-core_ia32__ops.asm
--- a/emulators/haxm/patches/patch-core_ia32__ops.asm   Thu Feb 14 22:59:49 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,19 +0,0 @@
-$NetBSD: patch-core_ia32__ops.asm,v 1.1 2019/02/13 05:20:15 kamil Exp $
-
-Cherry-pick from upstream review:
- - Fix FPU DNA exception on NetBSD
-   https://github.com/intel/haxm/pull/168
-
---- core/ia32_ops.asm.orig     2019-02-12 09:24:47.000000000 +0000
-+++ core/ia32_ops.asm
-@@ -213,6 +213,10 @@ function asm_enable_irq, 0
-     sti
-     ret
- 
-+function asm_clts, 0
-+    clts
-+    ret
-+
- function asm_fxinit, 0
-     finit
-     ret
diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/patches/patch-core_include_ia32.h
--- a/emulators/haxm/patches/patch-core_include_ia32.h  Thu Feb 14 22:59:49 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,25 +0,0 @@
-$NetBSD: patch-core_include_ia32.h,v 1.1 2019/02/13 05:20:15 kamil Exp $
-
-Cherry-pick from upstream review:
- - Fix FPU DNA exception on NetBSD
-   https://github.com/intel/haxm/pull/168
-
---- core/include/ia32.h.orig   2019-02-12 09:24:47.000000000 +0000
-+++ core/include/ia32.h
-@@ -72,6 +72,7 @@ void ASMCALL set_kernel_fs(uint16_t val)
- 
- void ASMCALL asm_btr(uint8_t *addr, uint bit);
- void ASMCALL asm_bts(uint8_t *addr, uint bit);
-+void ASMCALL asm_clts(void);
- void ASMCALL asm_fxinit(void);
- void ASMCALL asm_fxsave(mword *addr);
- void ASMCALL asm_fxrstor(mword *addr);
-@@ -85,6 +86,8 @@ void ia32_wrmsr(uint32_t reg, uint64_t v
- 
- uint64_t ia32_rdtsc(void);
- 
-+void hax_clts(void);
-+
- void hax_fxinit(void);
- void hax_fxsave(mword *addr);
- void hax_fxrstor(mword *addr);
diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/patches/patch-core_include_vcpu.h
--- a/emulators/haxm/patches/patch-core_include_vcpu.h  Thu Feb 14 22:59:49 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,16 +0,0 @@
-$NetBSD: patch-core_include_vcpu.h,v 1.1 2019/02/13 05:20:15 kamil Exp $
-
-Cherry-pick from upstream review:
- - Fix FPU DNA exception on NetBSD
-   https://github.com/intel/haxm/pull/168
-
---- core/include/vcpu.h.orig   2019-02-12 09:24:47.000000000 +0000
-+++ core/include/vcpu.h
-@@ -238,6 +238,7 @@ struct vcpu_t {
- #ifdef CONFIG_HAX_EPT2
-     struct mmio_fetch_cache mmio_fetch;
- #endif  // CONFIG_HAX_EPT2
-+    int cr0_ts;
- };
- 
- #define vmx(v, field) v->vmx.field
diff -r c18b96d0c95c -r a0a32b8e9434 emulators/haxm/patches/patch-core_vcpu.c
--- a/emulators/haxm/patches/patch-core_vcpu.c  Thu Feb 14 22:59:49 2019 +0000
+++ /dev/null   Thu Jan 01 00:00:00 1970 +0000
@@ -1,34 +0,0 @@
-$NetBSD: patch-core_vcpu.c,v 1.1 2019/02/13 05:20:15 kamil Exp $
-
-Cherry-pick from upstream review:
- - Fix FPU DNA exception on NetBSD
-   https://github.com/intel/haxm/pull/168
-
---- core/vcpu.c.orig   2019-02-12 09:24:47.000000000 +0000
-+++ core/vcpu.c
-@@ -2041,6 +2041,10 @@ static void vcpu_enter_fpu_state(struct 
-     struct fx_layout *hfx = (struct fx_layout *)hax_page_va(hstate->hfxpage);
-     struct fx_layout *gfx = (struct fx_layout *)hax_page_va(gstate->gfxpage);
- 
-+    vcpu->cr0_ts = !!(get_cr0() & CR0_TS);
-+
-+    hax_clts();
-+
-     hax_fxsave((mword *)hfx);
-     hax_fxrstor((mword *)gfx);
- }
-@@ -2052,8 +2056,14 @@ static void vcpu_exit_fpu_state(struct v
-     struct fx_layout *hfx = (struct fx_layout *)hax_page_va(hstate->hfxpage);
-     struct fx_layout *gfx = (struct fx_layout *)hax_page_va(gstate->gfxpage);
- 
-+    hax_clts();
-+
-     hax_fxsave((mword *)gfx);
-     hax_fxrstor((mword *)hfx);
-+
-+    if (vcpu->cr0_ts) {
-+        set_cr0(get_cr0() | CR0_TS);
-+    }
- }
- 
- // Instructions are never longer than 15 bytes:



Home | Main Index | Thread Index | Old Index