Hi, One of the patches needs patching... I thought nvmm was upstreamed and we didn't need the patches for it?
Index: patch-target_i386_nvmm_all.c =================================================================== RCS file: /cvsroot/pkgsrc/emulators/qemu/patches/patch-target_i386_nvmm_all.c,v retrieving revision 1.1 diff -u -r1.1 patch-target_i386_nvmm_all.c --- patch-target_i386_nvmm_all.c 6 Mar 2021 11:19:34 -0000 1.1 +++ patch-target_i386_nvmm_all.c 29 Mar 2021 09:55:19 -0000 @@ -1166,10 +1166,6 @@ + error_report("NVMM: Unable to fetch capability, error=%d", errno); + return -err; + } -+ if (qemu_mach.cap.version != 1) { -+ error_report("NVMM: Unsupported version %u", qemu_mach.cap.version); -+ return -EPROGMISMATCH; -+ } + if (qemu_mach.cap.state_size != sizeof(struct nvmm_x64_state)) { + error_report("NVMM: Wrong state size %u", qemu_mach.cap.state_size); + return -EPROGMISMATCH; On Mon, 29 Mar 2021 at 01:32, Chavdar Ivanov <ci4...@gmail.com> wrote: > > Hi, > > Have I missed something regarding nvmm? Since today's -current update, > I am getting > > qemu-system-x86_64: -accel nvmm: NVMM: Unsupported version 2 > qemu-system-x86_64: -accel nvmm: failed to initialize nvmm: Program > version wrong > > when I try to run any of my usual nvmm-accelerated guests (they work > without nvmm). > > I updated qemu to the latest available version - qemu-5.2.0nb4 - and > even ran the suggested atf tests: > > ➜ libnvmm atf-run | atf-report > Tests root: /usr/tests/lib/libnvmm > > t_io_assist (1/2): 1 test cases > io_assist: [0.013472s] Passed. > [0.013606s] > > t_mem_assist (2/2): 1 test cases > mem_assist: [0.012884s] Passed. > [0.013004s] > > Summary for 2 test programs: > 2 passed test cases. > 0 failed test cases. > 0 expected failed test cases. > 0 skipped test cases. > > Chavdar > > -- > ---- -- ----