]> git.proxmox.com Git - mirror_qemu.git/commit - device-hotplug.c
Add generic drive hotplugging
authorAlexander Graf <agraf@suse.de>
Mon, 23 Aug 2010 21:43:10 +0000 (23:43 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 4 Jan 2012 01:48:14 +0000 (02:48 +0100)
commitdd97aa8adc9a15fa509d5a0196002d309f6d21fd
treebf9cbdf4884f56effa7926332502af0d14595f6b
parent963d83c85420b39eb4ab6ae1ebdcd7f818221402
Add generic drive hotplugging

The monitor command for hotplugging is in i386 specific code. This is just
plain wrong, as S390 just learned how to do hotplugging too and needs to
get drives for that.

So let's add a generic copy to generic code that handles drive_add in a
way that doesn't have pci dependencies. All pci specific code can then
be handled in a pci specific function.

Signed-off-by: Alexander Graf <agraf@suse.de>
---

v1 -> v2:

  - align generic drive_add to pci specific one
  - rework to split between generic and pci code

v2 -> v3:

  - remove comment
hw/device-hotplug.c
hw/pci-hotplug.c
sysemu.h