Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

VM will not boot with IOMMU for nvidia GPU on Ubuntu 22.04 #6

Open
burnbrigther opened this issue Oct 1, 2024 · 1 comment
Open
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed

Comments

@burnbrigther
Copy link

RAM: 32GB (reduced to 2048)
NUMA enabled
Hotplug CPU/Mem enabled
Added for CPU:
/lib/udev/rules.d/80-hotplug-cpu.rules
SUBSYSTEM=="cpu", ACTION=="add", TEST=="online", ATTR{online}=="0", ATTR{online}="1"
According to documentation, nothing else needs to be added for hot memory.
Seeing this on boot up of the VM:
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: VFIO_MAP_DMA failed: Invalid argument
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: vfio_container_dma_map(0x5ae448831540, 0x3ffc00000000, 0x400000000, 0x706d10000000) = -22 (Invalid argument)
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: VFIO_MAP_DMA failed: Invalid argument
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: vfio_container_dma_map(0x5ae448831540, 0x400000000000, 0x2000000, 0x70715e000000) = -22 (Invalid argument)
Oct 01 08:04:49 myhost QEMU[1019150]: kvm: kvm_set_user_memory_region: KVM_SET_USER_MEMORY_REGION failed, slot=10, start=0x400000000000, size=0x2000000: Invalid argument
Oct 01 08:04:49 myhost QEMU[1019150]: kvm_set_phys_mem: error registering slot: Invalid argument

For IOMMU to work, you must add a PCI device
image
If you remove this device, the VM boots just fine and the above errors go away.

@fabriziosalmi fabriziosalmi added bug Something isn't working help wanted Extra attention is needed good first issue Good for newcomers labels Oct 1, 2024
fabriziosalmi added a commit that referenced this issue Oct 3, 2024
should fix this issue: #6
@fabriziosalmi
Copy link
Owner

should be fixed here, can you confirm?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working good first issue Good for newcomers help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants