Bug 949211
| Summary: | 'An undefined error has occurred' when hot unplug the unsupport hotplugging usb-ehci in rhel7 | ||
|---|---|---|---|
| Product: | Red Hat Enterprise Linux 7 | Reporter: | Sibiao Luo <sluo> |
| Component: | qemu-kvm | Assignee: | Amnon Ilan <ailan> |
| Status: | CLOSED WONTFIX | QA Contact: | Virtualization Bugs <virt-bugs> |
| Severity: | low | Docs Contact: | |
| Priority: | low | ||
| Version: | 7.0 | CC: | chayang, hhuang, jasowang, juli, juzhang, knoel, kraxel, michen, qzhang, rbalakri, virt-maint, xfu |
| Target Milestone: | rc | ||
| Target Release: | --- | ||
| Hardware: | Unspecified | ||
| OS: | Unspecified | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2015-06-28 11:50:34 UTC | Type: | Bug |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
Sibiao Luo
2013-04-07 03:40:38 UTC
ok so this is a minor bug. it's expected that unplug fails. the fact that is prints 'undefined error has occured' is wrong. only hmp has this issue so cosmetic, low priority There is some refactor, the problem doesn't exist in qemu-upstrean and qemu-kvm-rhev.
This problem only exists in qemu-kvm, we need a internal fix.
hw/core/qdev.c:
void qdev_unplug(DeviceState *dev, Error **errp)
{
......
if (dc->unplug(dev) < 0) {
error_set(errp, QERR_UNDEFINED_ERROR);
return;
}
}
hw/pci/pci.c:
static int pci_unplug_device(DeviceState *qdev)
{
......
if (pc->no_hotplug) {
qerror_report(QERR_DEVICE_NO_HOTPLUG,
object_get_typename(OBJECT(dev)));
- return -1;
+ return 0;
}
......
}
According to Amos: The patch lies to qdev_unplug()'s caller to suppress one error, the fix causes some incoordination between downstream and upstream. The problem only effects HMP, which isn't supported. So it's better to close it as WONTFIX as suggested by Markus. The trivial problem can be fixed by future rebasing. Looks like we can just close this as WONTFIX. |