qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Gerd Hoffmann <kraxel@redhat.com>
To: Anthony Liguori <anthony@codemonkey.ws>
Cc: qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH 0/3] add hotplug opt-out option for devices.
Date: Mon, 22 Nov 2010 11:17:10 +0100	[thread overview]
Message-ID: <4CEA4326.2040009@redhat.com> (raw)
In-Reply-To: <4CE732CB.2060708@codemonkey.ws>

> I understand why you're adding this but this is one of those horrible
> abuses of qdev that we really need to avoid.
>
> There are two valid reasons why hotplug is not possible:
>
> 1) Hotplugging is not supported by the *slot*.  This is something that
> needs to be exposes through ACPI. This is not a qdev property, but a
> property of a PCI slot.

Well, yea, right.  Sort of.  The ACPI thing applies to some of the slots 
only.  But, yes, strictly speaking this is a slot not a device property 
in the case of PCI.  Problem is qemu doesn't really has an idea what a 
pci slot is ...

> It's very important that we do this correctly
> because Windows puts a little icon in the systray that advertises
> quick-removal of devices in slots that support hotplug.

Indeed.

> 2) The PCI device is soldered to the MB or is otherwise not part of a
> PCI slot. Again, this is part of the ACPI definition.

(3) The qemu emulation can't handle hot-unplug.

> Since the PIIX3 lives in slot 1, our ACPI tables should not advertise
> slot 0 or slot 1 as supporting hotplug.

They do currently.  Should be easily fixable.

> Hotplug information has no business being part of the core qdev
> structures. Hotplug is a PCI concept and the information needs to live
> at the PCI layer to be meaningfully.

Wrong.  PCI certainly isn't the only bus which supports hotplug.  It 
*does* make sense to handle generic hotplug stuff at qdev level.

> An ideal interface would explicitly allow a user to mark a series of PCI
> slots as no supporting hotplug. It would be convenient in order to
> ensure that your virtio-net wasn't accidentally ejected by a click-happy
> Windows user.

Indeed.  That one is a bit harder I suspect.  Can this be done without 
generating acpi tables dynamically?

cheers,
   Gerd

  parent reply	other threads:[~2010-11-22 10:17 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-11-18 10:45 [Qemu-devel] [PATCH 0/3] add hotplug opt-out option for devices Gerd Hoffmann
2010-11-18 10:45 ` [Qemu-devel] [PATCH 1/3] qdev: allow devices being tagged as not hotpluggable Gerd Hoffmann
2010-11-18 10:45 ` [Qemu-devel] [PATCH 2/3] piix: tag " Gerd Hoffmann
2010-11-18 10:45 ` [Qemu-devel] [PATCH 3/3] vga: tag as not hotplugable Gerd Hoffmann
2010-11-18 11:01 ` [Qemu-devel] [PATCH 0/3] add hotplug opt-out option for devices Gleb Natapov
2010-11-18 11:13   ` Gerd Hoffmann
2010-11-18 11:20     ` Gleb Natapov
2010-11-18 11:29       ` Gerd Hoffmann
2010-11-18 11:42         ` Gleb Natapov
2010-11-18 12:07           ` Michael Tokarev
2010-11-18 12:16             ` Gleb Natapov
2010-11-20  2:30 ` Anthony Liguori
2010-11-20 17:24   ` Gleb Natapov
2010-11-22 10:17   ` Gerd Hoffmann [this message]
2010-11-22 13:31     ` Gleb Natapov
2010-12-10 12:34     ` Markus Armbruster
2010-12-10 14:04       ` 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=4CEA4326.2040009@redhat.com \
    --to=kraxel@redhat.com \
    --cc=anthony@codemonkey.ws \
    --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).