pkgsrc-Changes archive

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

CVS commit: pkgsrc/emulators/qemu



Module Name:    pkgsrc
Committed By:   leot
Date:           Sun Jun 12 13:49:28 UTC 2022

Modified Files:
        pkgsrc/emulators/qemu: Makefile distinfo
Added Files:
        pkgsrc/emulators/qemu/patches: patch-target_i386_cpu.c
            patch-target_i386_meson.build

Log Message:
qemu: Permit to use `-cpu host' with NVMM

PKGREVISION++


To generate a diff of this commit:
cvs rdiff -u -r1.295 -r1.296 pkgsrc/emulators/qemu/Makefile
cvs rdiff -u -r1.192 -r1.193 pkgsrc/emulators/qemu/distinfo
cvs rdiff -u -r0 -r1.1 pkgsrc/emulators/qemu/patches/patch-target_i386_cpu.c
cvs rdiff -u -r0 -r1.4 \
    pkgsrc/emulators/qemu/patches/patch-target_i386_meson.build

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/emulators/qemu/Makefile
diff -u pkgsrc/emulators/qemu/Makefile:1.295 pkgsrc/emulators/qemu/Makefile:1.296
--- pkgsrc/emulators/qemu/Makefile:1.295        Thu May 19 16:10:15 2022
+++ pkgsrc/emulators/qemu/Makefile      Sun Jun 12 13:49:28 2022
@@ -1,6 +1,7 @@
-# $NetBSD: Makefile,v 1.295 2022/05/19 16:10:15 ryoon Exp $
+# $NetBSD: Makefile,v 1.296 2022/06/12 13:49:28 leot Exp $
 
 DISTNAME=      qemu-7.0.0
+PKGREVISION=   1
 CATEGORIES=    emulators
 MASTER_SITES=  https://download.qemu.org/
 EXTRACT_SUFX=  .tar.xz

Index: pkgsrc/emulators/qemu/distinfo
diff -u pkgsrc/emulators/qemu/distinfo:1.192 pkgsrc/emulators/qemu/distinfo:1.193
--- pkgsrc/emulators/qemu/distinfo:1.192        Sat Jun 11 10:13:05 2022
+++ pkgsrc/emulators/qemu/distinfo      Sun Jun 12 13:49:28 2022
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.192 2022/06/11 10:13:05 bsiegert Exp $
+$NetBSD: distinfo,v 1.193 2022/06/12 13:49:28 leot Exp $
 
 BLAKE2s (palcode-clipper-qemu-5.2.0nb8) = d388c896a80c1cc3d4785c8434d6688bbcfd54c28f7252ce550ab162a0bba321
 SHA512 (palcode-clipper-qemu-5.2.0nb8) = 33695d6001d86a19793a92d5e31775607c4dfc9ab9eea019ea6c4d543a2e11e8c07f83cca4934811a13ef829b528737ea37d9d2aaf66cba6f2746d44d2aa0b43
@@ -22,4 +22,6 @@ SHA1 (patch-meson.build) = 67fcc428b1953
 SHA1 (patch-net_tap-solaris.c) = cc953c9a624dd55ace4e130d0b31bbfb956c17d5
 SHA1 (patch-roms_u-boot-sam460ex_Makefile) = 3a1bbf19b1422c10ebdd819eb0b711fafc78e2f2
 SHA1 (patch-slirp_src_tcp__subr.c) = bd6d80ecf3baeaf6f8458b2361bcb92298d41f7e
+SHA1 (patch-target_i386_cpu.c) = ec53954cbf0458d6974d87fa30951876ee0a6d3a
+SHA1 (patch-target_i386_meson.build) = 0ef0636dd68e5eeb9a2a34473e2a24bf3c141c0f
 SHA1 (patch-target_sparc_translate.c) = 7ec2add2fd808facb48b9a66ccc345599251bf76

Added files:

Index: pkgsrc/emulators/qemu/patches/patch-target_i386_cpu.c
diff -u /dev/null pkgsrc/emulators/qemu/patches/patch-target_i386_cpu.c:1.1
--- /dev/null   Sun Jun 12 13:49:28 2022
+++ pkgsrc/emulators/qemu/patches/patch-target_i386_cpu.c       Sun Jun 12 13:49:28 2022
@@ -0,0 +1,33 @@
+$NetBSD: patch-target_i386_cpu.c,v 1.1 2022/06/12 13:49:28 leot Exp $
+
+Permit to use `-cpu host' with NVMM.
+
+--- target/i386/cpu.c.orig     2022-04-19 19:10:27.000000000 +0000
++++ target/i386/cpu.c
+@@ -26,6 +26,7 @@
+ #include "tcg/helper-tcg.h"
+ #include "sysemu/reset.h"
+ #include "sysemu/hvf.h"
++#include "sysemu/nvmm.h"
+ #include "kvm/kvm_i386.h"
+ #include "sev.h"
+ #include "qapi/error.h"
+@@ -1440,7 +1441,7 @@ static uint32_t xsave_area_size(uint64_t
+ 
+ static inline bool accel_uses_host_cpuid(void)
+ {
+-    return kvm_enabled() || hvf_enabled();
++    return kvm_enabled() || hvf_enabled() || nvmm_enabled();
+ }
+ 
+ static inline uint64_t x86_cpu_xsave_components(X86CPU *cpu)
+@@ -6418,7 +6419,8 @@ static void x86_cpu_realizefn(DeviceStat
+ 
+     if (xcc->host_cpuid_required && !accel_uses_host_cpuid()) {
+         g_autofree char *name = x86_cpu_class_get_model_name(xcc);
+-        error_setg(&local_err, "CPU model '%s' requires KVM or HVF", name);
++        error_setg(&local_err,
++                 "CPU model '%s' requires KVM or HVF or NVMM", name);
+         goto out;
+     }
+ 

Index: pkgsrc/emulators/qemu/patches/patch-target_i386_meson.build
diff -u /dev/null pkgsrc/emulators/qemu/patches/patch-target_i386_meson.build:1.4
--- /dev/null   Sun Jun 12 13:49:28 2022
+++ pkgsrc/emulators/qemu/patches/patch-target_i386_meson.build Sun Jun 12 13:49:28 2022
@@ -0,0 +1,14 @@
+$NetBSD: patch-target_i386_meson.build,v 1.4 2022/06/12 13:49:28 leot Exp $
+
+Permit to use `-cpu host' with NVMM.
+
+--- target/i386/meson.build.orig       2022-04-19 19:10:27.000000000 +0000
++++ target/i386/meson.build
+@@ -11,6 +11,7 @@ i386_ss.add(when: 'CONFIG_SEV', if_true:
+ # x86 cpu type
+ i386_ss.add(when: 'CONFIG_KVM', if_true: files('host-cpu.c'))
+ i386_ss.add(when: 'CONFIG_HVF', if_true: files('host-cpu.c'))
++i386_ss.add(when: 'CONFIG_NVMM', if_true: files('host-cpu.c'))
+ 
+ i386_softmmu_ss = ss.source_set()
+ i386_softmmu_ss.add(files(



Home | Main Index | Thread Index | Old Index