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

bugtracker-admin at leaf.dragonflybsd.org bugtracker-admin at leaf.dragonflybsd.org
Thu Jul 14 06:29:26 PDT 2022


Issue #3310 has been updated by tuxillo.


marietto wrote in #note-3:
> Hello. I tried using the -bios parameter to add the efi code,like this :
> 
> qemu-system-x86_64 \
> -machine type=q35,accel=nvmm \
> -smp cpus=1 -m 8G \
> -bios /home/marietto/Desktop/Files/Virt/OVMF/OVMF.fd \
> -drive file=/mnt/dk26/bhyve/impish-cuda-11-4-nvidia-470.img,if=none,id=disk0 \
> -device virtio-blk-pci,drive=disk0 \
> -netdev user,id=net0,hostfwd=tcp:127.0.0.1:6022-:22 \
> -device virtio-net-pci,netdev=net0 \  
> -object rng-random,id=rng0,filename=/dev/urandom \
> -device virtio-rng-pci,rng=rng0 \ 
> -display curses \    
> -vga qxl \
> -spice addr=127.0.0.1,port=5900,ipv4=on,disable-ticketing=on,seamless-migration=on
> 
> but it didn't work :
> 
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x3a, ignored
> qemu-system-x86_64: NVMM: Unexpected WRMSR 0x3a [val=0x1], ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x140, ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0xce, ignored
> qemu-system-x86_64: NVMM: Unexpected WRMSR 0x140 [val=0x0], ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x64e, ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x34, ignored
> 
> and this :
> 
> qemu-system-x86_64 \
> -machine type=q35,accel=nvmm \
> -smp cpus=1 -m 8G \
> -bios /home/marietto/Desktop/Files/Virt/OVMF/QEMU_UEFI_CODE-x86_64.fd \
> -drive file=/mnt/dk26/bhyve/impish-cuda-11-4-nvidia-470.img,if=none,id=disk0 \
> -device virtio-blk-pci,drive=disk0 \
> -netdev user,id=net0,hostfwd=tcp:127.0.0.1:6022-:22 \
> -device virtio-net-pci,netdev=net0 \  
> -object rng-random,id=rng0,filename=/dev/urandom \
> -device virtio-rng-pci,rng=rng0 \ 
> -display curses \    
> -vga qxl \
> -spice addr=127.0.0.1,port=5900,ipv4=on,disable-ticketing=on,seamless-migration=on
> 
> qemu: could not load PC BIOS '/home/marietto/Desktop/Files/Virt/OVMF/QEMU_UEFI_CODE-x86_64.fd'
> 
> with this : OVMF_CODE.fd =
> 
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x3a, ignored
> qemu-system-x86_64: NVMM: Unexpected WRMSR 0x3a [val=0x1], ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x140, ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0xce, ignored
> qemu-system-x86_64: NVMM: Unexpected WRMSR 0x140 [val=0x0], ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x64e, ignored
> qemu-system-x86_64: NVMM: Unexpected RDMSR 0x34, ignored        
> 
> with this :

Is there any specific reason why you need UEFI?

Also, what's that "impish cuda" image? Some custom linux? Please remember we do not have hardware devices passthrough.

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

* 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



-- 
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