Bug 524012 - libvirt cannot hot-unplug devices which were not previously hot-plugged
Summary: libvirt cannot hot-unplug devices which were not previously hot-plugged
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: libvirt
Version: 12
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Mark McLoughlin
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: F13VirtTarget
TreeView+ depends on / blocked
 
Reported: 2009-09-17 15:20 UTC by Mark McLoughlin
Modified: 2010-03-16 15:23 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-03-16 15:23:03 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description Mark McLoughlin 2009-09-17 15:20:57 UTC
The problem is here:

  if (!virHostdevHasValidGuestAddr(detach)) {
      qemudReportError(conn, NULL, NULL, VIR_ERR_OPERATION_FAILED,
                       "%s", _("hostdev cannot be detached - device state missing"));
      return -1;
  }

Basically, because we do not know what PCI address was assigned to the device at startup, we cannot remove it.

This will be fixed with future versions of qemu and libvirt by libvirt parsing the output of a monitor command to query the PCI address.

Adding to F13VirtTarget

Comment 1 Bug Zapper 2009-11-16 12:34:07 UTC
This bug appears to have been reported against 'rawhide' during the Fedora 12 development cycle.
Changing version to '12'.

More information and reason for this action is here:
http://fedoraproject.org/wiki/BugZappers/HouseKeeping

Comment 2 Cole Robinson 2010-03-16 15:23:03 UTC
Pretty sure this is fixed in latest libvirt. Since this is part of -device support which is hugely invasive, it will only be in rawhide/F14 unless we rebase older Fedora. Closing as RAWHIDE.


Note You need to log in before you can comment on or make changes to this bug.