Index: Makefile =================================================================== RCS file: /cvsroot/pkgsrc/emulators/qemu/Makefile,v retrieving revision 1.295 diff -u -p -r1.295 Makefile --- Makefile 19 May 2022 16:10:15 -0000 1.295 +++ Makefile 12 Jun 2022 11:43:23 -0000 @@ -1,6 +1,7 @@ # $NetBSD: Makefile,v 1.295 2022/05/19 16:10:15 ryoon Exp $ DISTNAME= qemu-7.0.0 +PKGREVISION= 1 CATEGORIES= emulators MASTER_SITES= https://download.qemu.org/ EXTRACT_SUFX= .tar.xz Index: distinfo =================================================================== RCS file: /cvsroot/pkgsrc/emulators/qemu/distinfo,v retrieving revision 1.192 diff -u -p -r1.192 distinfo --- distinfo 11 Jun 2022 10:13:05 -0000 1.192 +++ distinfo 12 Jun 2022 11:43:23 -0000 @@ -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 Index: patches/patch-target_i386_cpu.c =================================================================== RCS file: patches/patch-target_i386_cpu.c diff -N patches/patch-target_i386_cpu.c --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-target_i386_cpu.c 12 Jun 2022 11:43:23 -0000 @@ -0,0 +1,33 @@ +$NetBSD$ + +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: patches/patch-target_i386_meson.build =================================================================== RCS file: patches/patch-target_i386_meson.build diff -N patches/patch-target_i386_meson.build --- /dev/null 1 Jan 1970 00:00:00 -0000 +++ patches/patch-target_i386_meson.build 12 Jun 2022 11:43:23 -0000 @@ -0,0 +1,14 @@ +$NetBSD$ + +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(