On 05/18/10 14:33, Markus Armbruster wrote:
Gerd Hoffmann<kra...@redhat.com> writes:
Try to pci hotplug a vga card, watch qemu die with hw_error().
This patch fixes it.
Looks good.
Are there any other hot-pluggable devices that acquire single-use
resources such as fixed I/O ports?
Any PCI device doing ISA compatibility stuff I'd guess, which makes IDE
a candidate. Checking ...
Yes (hw/ide/piix.c):
ide_init_ioport(&d->bus[0], 0x1f0, 0x3f6);
ide_init_ioport(&d->bus[1], 0x170, 0x376);
Those are tagged with "no-user" though due to being hard-coded in pc.c,
so any attempt to hot-plug one of those should fail way before it
attempts to grab the I/O ports.
cheers,
Gerd