[Bug 206579] KVM with passthrough generates "BUG: kernel NULL pointer dereference" and crashes

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

 



https://bugzilla.kernel.org/show_bug.cgi?id=206579

--- Comment #34 from muncrief (rmuncrief@xxxxxxxxxxxxxxx) ---
Created attachment 287697
  --> https://bugzilla.kernel.org/attachment.cgi?id=287697&action=edit
Working avic setup information

Final success Suravee!

The last steps were to disable nested virtualization and set the pit tickpolicy
to discard. Setting kernel_irgchip to split was not necessary, and actually
caused the GPU HDMI audio to crackle and eventually disappear. There was also
no need to pass kernel options via grub as they can be specified in an option
file. I've attached the final working grub and qemu command lines, and VM XML,
to this comment.

So to wrap things up, here are the steps I took to get avic fully functioning:

1. Download the Arch linux-mainline AUR package, which currently downloads
kernel 5.6 rc3 from
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git.

2. Patch the kernel source with "svm.c patch option 2" from the Attachments and
compile the kernel.

3. Create file "/etc/modprobe.d/kvm.conf" and add "options kvm_amd avic=1
nested=0" to it.

4. Edit the VM XML file and change the pit tickpolicy with "<timer name='pit'
tickpolicy='discard'/>"

And that was it. I didn't see any performance change with the quick CPUID
benchmark I ran, but that may be because the VM runs at 98% of bare metal
already. It's really amazing.

So if you could give me the final word on which svm patch should be used that's
it for this bug (I used patch 2 because it seemed more direct). And if anyone
knows how to set the avic and nested options in the XML file, instead of an
options file, that would be great. I couldn't find any way to do it, and at
this point am assuming it can only be done in a file.

Thank you and Paolo and Alex for all your help, it's been both fun and
educational hammering out this bug with all of you.

-- 
You are receiving this mail because:
You are watching the assignee of the bug.



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux