[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 #15 from muncrief (rmuncrief@xxxxxxxxxxxxxxx) ---
Created attachment 287595
  --> https://bugzilla.kernel.org/attachment.cgi?id=287595&action=edit
Dmesg crash output with properly cast pointer

I looked at the modified patch I made and realized the pointer indirection was
probably wrong so I looked at the other code and cast it the same way. There's
still a kvm crash at boot and I attached the dmesg to this comment. I just
didn't want to add any confusion by patching things incorrectly. Here's what
the final code looks like after (what I hope is) the correct patch:

        int ret;
        struct kvm_vcpu *vcpu = &svm->vcpu;

        if (!avic && !irqchip_in_kernel(vcpu->kvm))
                return 0;

        ret = avic_init_backing_page(&svm->vcpu);
        if (ret)
                return ret;

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