Bug 47451
Summary: | need to re-load driver in guest to make a hot-plug VF work | ||
---|---|---|---|
Product: | Virtualization | Reporter: | Jay Ren (yongjie.ren) |
Component: | kvm | Assignee: | virtualization_kvm |
Status: | CLOSED UNREPRODUCIBLE | ||
Severity: | normal | CC: | alex.williamson |
Priority: | P1 | ||
Hardware: | All | ||
OS: | Linux | ||
Kernel Version: | 3.5.0 | Subsystem: | |
Regression: | Yes | Bisected commit-id: |
Description
Jay Ren
2012-09-13 09:21:40 UTC
The steps to reproduce don't indicate what you've done in the host to prepare the device. Is igbvf loaded in the host? Is the vf attached to igbvf or pci-stub or nothing? Can we narrow down the kvm.git commit range at all? The one provided is over 12k commits covering v3.4-rc3 to v3.5-rc6. Thanks (In reply to comment #1) > The steps to reproduce don't indicate what you've done in the host to prepare > the device. Is igbvf loaded in the host? No, I don't load igbvf driver in host. >Is the vf attached to igbvf or pci-stub or nothing? VF is attached to 'pci-stub' in host. >Can we narrow down the kvm.git commit range at all? The > one provided is over 12k commits covering v3.4-rc3 to v3.5-rc6. Thanks I did more testing. Do you remember the bug #43328 ( VT-d/SR-IOV totally doesn't work in guest)? Just use your fix commit for that bug, I'll meet this hot-plug issue. Is there a chance your patch fixed one bug but introduced another one? :) commit a76beb14123a69ca080f5a5425e28b786d62318d Author: Alex Williamson <alex.williamson@redhat.com> Date: Mon Jul 9 10:53:22 2012 -0600 KVM: Fix device assignment threaded irq handler (In reply to comment #2) > (In reply to comment #1) > >Can we narrow down the kvm.git commit range at all? The > > one provided is over 12k commits covering v3.4-rc3 to v3.5-rc6. Thanks > I did more testing. > Do you remember the bug #43328 ( VT-d/SR-IOV totally doesn't work in guest)? > Just use your fix commit for that bug, I'll meet this hot-plug issue. > Is there a chance your patch fixed one bug but introduced another one? :) > > commit a76beb14123a69ca080f5a5425e28b786d62318d > Author: Alex Williamson <alex.williamson@redhat.com> > Date: Mon Jul 9 10:53:22 2012 -0600 > > KVM: Fix device assignment threaded irq handler Thanks for the narrowing it down. It looks like perhaps that patch was ineffective at trying to keep us out of using IRQF_ONESHOT due to irq_setup_forced_threading() re-enabling it. Does the problem go away if you change the two calls to request_threaded_irq() in that commit to use IRQF_NO_THREAD for the flag value in place of 0? (In reply to comment #3) > (In reply to comment #2) > > (In reply to comment #1) > > >Can we narrow down the kvm.git commit range at all? The > > > one provided is over 12k commits covering v3.4-rc3 to v3.5-rc6. Thanks > > I did more testing. > > Do you remember the bug #43328 ( VT-d/SR-IOV totally doesn't work in > guest)? > > Just use your fix commit for that bug, I'll meet this hot-plug issue. > > Is there a chance your patch fixed one bug but introduced another one? :) > > > > commit a76beb14123a69ca080f5a5425e28b786d62318d > > Author: Alex Williamson <alex.williamson@redhat.com> > > Date: Mon Jul 9 10:53:22 2012 -0600 > > > > KVM: Fix device assignment threaded irq handler > > Thanks for the narrowing it down. It looks like perhaps that patch was > ineffective at trying to keep us out of using IRQF_ONESHOT due to > irq_setup_forced_threading() re-enabling it. Does the problem go away if you > change the two calls to request_threaded_irq() in that commit to use > IRQF_NO_THREAD for the flag value in place of 0? No, replacing flag value with 'IRQF_NO_THREAD' can't make PCIe NIC hot-plug work. Can you try with your commit "a76beb14123a6" ? BTW, sometimes, this bug is not so stable. Using '-m 512 -smp 2' option for qemu-kvm commandline to start a RHEL6.x guest will make it very easy to reproduce. I re-tested this bug against kvm.git next branch (commit:e6c7d321,kernel 3.7) and qemu-kvm.git master branch (commit:4d9367b7). I can't reproduce it now. It should have been fixed by some patches, but I don't know which patch fixed it. As this bug is unstable to reproduce, it's hard for me to do a bisect to find out the exact fix. close this bug as unreproducible. |