[DragonFlyBSD - Bug #3310] NVMM+QEMU fail to boot with UEFI: Mem Assist Failed [gpa=0xfffffff0]

mneumann bugtracker-admin at leaf.dragonflybsd.org
Sun Jun 28 09:42:34 PDT 2026


Issue #3310 has been updated by mneumann.


> nvmmctl identify
nvmm: Kernel API version 3
nvmm: State size 1008
nvmm: Comm size 4096
nvmm: Max machines 128
nvmm: Max VCPUs per machine 128
nvmm: Max RAM per machine 127T
nvmm: Arch Mach conf 0
nvmm: Arch VCPU conf 0x3<CPUID,TPR>
nvmm: Guest FPU states 0x3<x87,SSE>

> pkg info|grep qemu
qemu-9.2.0_1                   QEMU CPU Emulator

> /usr/local/bin/qemu-system-x86_64 --version
QEMU emulator version 9.2.0
Copyright (c) 2003-2024 Fabrice Bellard and the QEMU Project developers

> dmesg
DragonFly v6.5.0.1706.g93c52-DEVELOPMENT #35: Thu Jun 25 18:43:54 CEST 2026
    mneumann at letsnote.localnet:/usr/obj/usr/src/sys/X86_64_GENERIC
acpi_hpet: frequency 24000000
TSC crystal clock: 24000000 Hz, TSC/crystal ratio: 158/2
TSC clock: 1896000000 Hz, invariant
CPU: Intel(R) Core(TM) i5-8350U CPU @ 1.70GHz (1896.00-MHz K8-class CPU)
  Origin="GenuineIntel"  Id=0x806ea  Family=0x6  Model=0x8e  Stepping=10
  Features=0xbfebfbff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,APIC,SEP,MTRR,PGE,MCA,CMOV,PAT,PSE36,CLFLUSH,DTS,ACPI,MMX,FXSR,SSE,SSE2,SS,HTT,TM,PBE>
  Features2=0x77fafbff<SSE3,PCLMULQDQ,DTES64,MON,DS_CPL,VMX,SMX,EST,TM2,SSSE3,SDBG,FMA,CX16,xTPR,PDCM,PCID,SSE4.1,SSE4.2,x2APIC,MOVBE,POPCNT,TSCDLT,AESNI,XSAVE,AVX,F16C,RDRAND>
  XSAVE Features=0xf<XSAVEOPT,XSAVEC,XGETBV,XSAVES>
  IA32_ARCH_CAPS=0x2000c04<RSBA>
  AMD Features=0x2c100800<SYSCALL,NX,Page1GB,RDTSCP,LM>
  AMD Features2=0x121<LAHF,ABM,Prefetch>
  Structured Extended Features=0x29c6fbf<GSFSBASE,TSCADJ,BMI1,HLE,AVX2,SMEP,BMI2,ENHMOVSB,INVPCID,RTM,NFPUSG,MPX,RDSEED,ADX,SMAP,CLFLUSHOPT,PROCTRACE>
  Structured Extended Features3=0xbc002e00<MCUOPT,MD_CLEAR,TSXFA,IBPB,STIBP,L1DFL,ARCH_CAP,SSBD>
  Thermal and PM Features=0x27f7<SENSOR,TURBO,ARAT,PLN,ECMD,PTM,HWP>
  MONITOR/MWAIT Features=0x3<CST,INTBRK>
  VT-x: Basic Features=0xda0400<SMM,INS/OUTS,TRUE>
        Pin-Based Controls=0x7f<ExtINT,NMI,VNMI,PreTmr>
        Primary Processor Controls=0xfff9fffe<INTWIN,TSCOff,HLT,INVLPG,MWAIT,RDPMC,RDTSC,CR3-LD,CR3-ST,CR8-LD,CR8-ST,TPR,NMIWIN,MOV-DR,IO,IOmap,MTF,MSRmap,MONITOR,PAUSE>
        Secondary Processor Controls=0x5ffcff<APIC,EPT,DT,RDTSCP,x2APIC,VPID,WBINVD,UG,PAUSE-loop,RDRAND,INVPCID,VMFUNC,VMCS,EPT#VE,XSAVES>
        Exit Controls=0x1ffffff<DR,PERF,HostLMA,AckInt,PAT-SV,PAT-LD,EFER-SV,EFER-LD,PTMR-SV>
        Entry Controls=0x3ffff<DR,GuestLMA,PERF,PAT,EFER>
        EPT Features=0x6734141<XO,PW4,UC,WB,2M,1G,INVEPT,AD,single,all>
        VPID Features=0xf01<INVVPID,individual,single,all,single-globals>
CPU Special Features Installed: SMAP SMEP
real memory  = 8449400832 (8057 MB)
avail memory = 8045039616 (7672 MB)
LAPIC: enter X2APIC mode


> /usr/local/bin/qemu-system-x86_64 \
  -machine type=q35,accel=nvmm \
  -smp cpus=1 -m 1G \
  -drive file=/usr/local/share/qemu/edk2-x86_64-code.fd,if=pflash,format=raw,readonly=on
NetBSD Virtual Machine Monitor accelerator is operational
qemu: NVMM: Mem Assist Failed [gpa=0xfffffff0]
qemu: NVMM: Failed to execute a VCPU.
Abort trap (core dumped)





----------------------------------------
Bug #3310: NVMM+QEMU fail to boot with UEFI: Mem Assist Failed [gpa=0xfffffff0]
http://bugs.dragonflybsd.org/issues/3310#change-14672

* Author: liweitianux
* Status: In Progress
* Priority: Normal
* Category: nvmm
* Target version: 6.4
* Start date: 2022-01-09
----------------------------------------
NVMM+QEMU fail to boot with UEFI, for example:

<pre>
% qemu-system-x86_64 \
      -boot menu=on -display sdl -accel nvmm \
      -drive file=OVMF_CODE.fd,if=pflash,format=raw,readonly=on \
      -drive file=OVMF_VARS.fd,if=pflash,format=raw
NetBSD Virtual Machine Monitor accelerator is operational
qemu-system-x86_64: NVMM: Mem Assist Failed [gpa=0xfffff000]
qemu-system-x86_64: NVMM: Failed to execute a VCPU.
</pre>

The UEFI firmware can be obtained by installing the @uefi-edk2-qemu-x86_64@ package
or by downloading from: https://leaf.dragonflybsd.org/~aly/uefi/

First reported by Mario Marietto and confirmed by me, see:
https://lists.dragonflybsd.org/pipermail/users/2022-January/404898.html

---Files--------------------------------
qemu-system-x86.7z (3.5 MB)
freebsd-boot.jpg (68.1 KB)


-- 
You have received this notification because you have either subscribed to it, or are involved in it.
To change your notification preferences, please click here: http://bugs.dragonflybsd.org/my/account


More information about the Bugs mailing list