NetBSD-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

NVMM not working, NetBSD 9x amd64



Hello,

I'm curious about the situation on the NVMM front. On its page it says
that it works both with Intel and AMD cpu's
(https://m00nbsd.net/4e0798b7f2620c965d0dd9d6a7a2f296.html), but I've
read elsewhere (https://blog.netbsd.org/tnf/entry/the_hardware_assisted_virtualization_challenge)
that it only works on AMD - so who is right?

1. I tried it on my PC, but it didn't work. My CPU is Intel(R)
Core(TM)2 Duo CPU T9600, Vt-x enabled.
First I used the NetBSD 9.0 amd64 release version:

localhost# modload nvmm
modload: nvmm: Operation not permitted
/var/log/messages:
Apr 25 14:40:33 localhost /netbsd: [ 902.3991765] WARNING: module
error: use -f to reinstate builtin module `nvmm'

localhost# modload -f nvmm
modload: nvmm: Not supported
Apr 25 14:55:11 localhost /netbsd: [ 1781.0615600] [!] No implementation found
Apr 25 14:55:11 localhost /netbsd: [ 1781.0615600] WARNING: module
error: built-in module nvmm failed its MODULE_CMD_INIT, error 86

I took the current kernel (NetBSD 9.99.56), uncommented
"#pseudo-device nvmm" and compiled it, but after I booted it I got the
same errors when trying to load the module.

I'm not sure this is down to my CPU being not AMD, or am I wrong here?

2. Also I've got a question about qemu. The 'vanilla' qemu from pkgsrc
(that is recommended on the m00nbsd page) doesn't know the accelerator
'nvmm'.

localhost$ qemu-system-x86_64 -hda ubuntu.qcow -cdrom
/mnt/ubuntu-16.04.4-desktop-amd64.iso -m 1024M -accel nvmm
qemu-system-x86_64: -machine accel=nvmm: No accelerator found

Qemu-nvmm is deleted from pkgsrc/wip at the moment:
https://pkgsrc.se/wip/qemu-nvmm

3. Trying the nvmmctl utility ('nvmmctl identify' and 'nvmmctl list')
results in panic and following reboot after a long count, see
screenshots for output:
https://drive.google.com/open?id=1vT0WZbRp8x97qPjGIiNf0GF4PvBezu2H
https://drive.google.com/open?id=13hl3Z3FMkX6dLZcpL3LXydIMdSqq4qDZ

(Of course 2. and 3. refer to a situation without the nvmm module loaded)

Andrei


Home | Main Index | Thread Index | Old Index