One user gave me the missing file,OVMFX64.fd and I tried to see if it worked.
These are the parameters that I've used :
case 1)
qemu-system-x86_64 -accel nvmm \
-cpu max -smp cpus=4 -m 8G \
#-drive if=pflash,format=raw,readonly=on,file=/usr/pkg/share/qemu/edk2-x86_64-code.fd \
#-drive if=pflash,format=raw,readonly=on,file=/home/marietto/Downloads/vm/OVMF-X64-r15214/OVMF.fd \
-drive if=pflash,format=raw,readonly=on,file=/home/marietto/Downloads/vm/OVMFX64.fd \
-drive id=cdrom,if=none,media=cdrom,file=/home/marietto/Downloads/vm/ubuntu-22.04-desktop-amd64.iso \
-object rng-random,filename=/dev/urandom,id=viornd0 \
-device virtio-rng-pci,rng=viornd0 \
-netdev user,id=vioif0 -device virtio-net-pci,netdev=vioif0 \
-audiodev oss,id=oss,out.dev=/dev/audio,in.dev=/dev/audio \
-device ac97,audiodev=oss \
-display sdl,gl=on -vga vmware \
-usb -device usb-mouse,bus=usb-bus.0
and qemu + nvmm started (as you can see on the picture,but the iso image won't boot) :
I've also tried to do :
case 2)
qemu-system-x86_64 -accel nvmm \
-cpu max -smp cpus=4 -m 8G \
-drive if=pflash,format=raw,readonly=on,file=/home/marietto/Downloads/vm/OVMFX64.fd \
-drive id=cdrom,if=none,media=cdrom,file=/home/marietto/Downloads/vm/ubuntu-22.04-desktop-amd64.iso \
-object rng-random,filename=/dev/urandom,id=viornd0 \
-device virtio-rng-pci,rng=viornd0 \
-netdev user,id=vioif0 -device virtio-net-pci,netdev=vioif0 \
-audiodev oss,id=oss,out.dev=/dev/audio,in.dev=/dev/audio \
-device ac97,audiodev=oss \
-display sdl,gl=on -vga vmware \
-usb -device usb-mouse,bus=usb-bus.0
and
the error "NVMM: Mem Assist Failed [gpa=0xfffffff0]" appeared again. I
really don't understand why in the first case it seems that the bug is
fixed. And i suspect that inside the parameters there is a mistake,since the iso image is not recognized.
Mario.