diff options
| author | Anthony PERARD | 2020-10-27 16:40:58 +0100 |
|---|---|---|
| committer | Anthony PERARD | 2020-11-02 12:56:55 +0100 |
| commit | 045b1d4dbb44da67f1f86efa75b02843c0e951ef (patch) | |
| tree | f8f226ae2cdab26dbf5c1c980d4749fa9fa75a22 /docs | |
| parent | Merge remote-tracking branch 'remotes/awilliam/tags/vfio-update-20201101.0' i... (diff) | |
| download | qemu-045b1d4dbb44da67f1f86efa75b02843c0e951ef.tar.gz qemu-045b1d4dbb44da67f1f86efa75b02843c0e951ef.tar.xz qemu-045b1d4dbb44da67f1f86efa75b02843c0e951ef.zip | |
xen: rework pci_piix3_xen_ide_unplug
This is to allow IDE disks to be unplugged when adding to QEMU via:
-drive file=/root/disk_file,if=none,id=ide-disk0,format=raw
-device ide-hd,drive=ide-disk0,bus=ide.0,unit=0
as the current code only works for disk added with:
-drive file=/root/disk_file,if=ide,index=0,media=disk,format=raw
Since the code already have the IDE controller as `dev`, we don't need
to use the legacy DriveInfo to find all the drive we want to unplug.
We can simply use `blk` from the controller, as it kind of was already
assume to be the same, by setting it to NULL.
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Acked-by: John Snow <jsnow@redhat.com>
Reviewed-by: Paul Durrant <paul@xen.org>
Message-Id: <20201027154058.495112-1-anthony.perard@citrix.com>
Signed-off-by: Anthony PERARD <anthony.perard@citrix.com>
Diffstat (limited to 'docs')
0 files changed, 0 insertions, 0 deletions
