qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 2/2] all vga: fail graicefully when vga ports are taken
Date: Tue, 18 May 2010 14:45:40 +0200	[thread overview]
Message-ID: <4BF28BF4.4070602@redhat.com> (raw)
In-Reply-To: <m3sk5pl787.fsf@blackfin.pond.sub.org>

On 05/18/10 14:33, Markus Armbruster wrote:
> Gerd Hoffmann<kraxel@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

  reply	other threads:[~2010-05-18 12:45 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-11 20:43 [Qemu-devel] [PATCH 1/2] ioport: add function to check whenever a port is assigned or not Gerd Hoffmann
2010-05-11 20:43 ` [Qemu-devel] [PATCH 2/2] all vga: fail graicefully when vga ports are taken Gerd Hoffmann
2010-05-12 18:59   ` Blue Swirl
2010-05-18 12:33   ` Markus Armbruster
2010-05-18 12:45     ` Gerd Hoffmann [this message]
2010-05-18 14:06       ` Markus Armbruster
  -- strict thread matches above, loose matches on Subject: below --
2010-05-19  9:54 [Qemu-devel] [PATCH 1/2] ioport: add function to check whenever a port is assigned or not Gerd Hoffmann
2010-05-19  9:54 ` [Qemu-devel] [PATCH 2/2] all vga: fail graicefully when vga ports are taken Gerd Hoffmann

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4BF28BF4.4070602@redhat.com \
    --to=kraxel@redhat.com \
    --cc=armbru@redhat.com \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).