qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Markus Armbruster <armbru@redhat.com>
Cc: qemu-devel@nongnu.org, Luiz Capitulino <lcapitulino@redhat.com>
Subject: Re: [Qemu-devel] Re: [PATCH] Revert "PCI: Convert pci_device_hot_add() to QObject"
Date: Mon, 03 May 2010 11:59:55 -0500	[thread overview]
Message-ID: <4BDF010B.6090007@codemonkey.ws> (raw)
In-Reply-To: <m3mxwhz629.fsf@blackfin.pond.sub.org>

On 05/03/2010 04:29 AM, Markus Armbruster wrote:
> Luiz Capitulino<lcapitulino@redhat.com>  writes:
>
>    
>> On Mon, 26 Apr 2010 19:44:19 +0200
>> Markus Armbruster<armbru@redhat.com>  wrote:
>>
>>      
>>> We don't want pci_add in QMP.  Use device_add instead.
>>>
>>> This reverts commit 7a344f7ac7bb651d0556a933ed8060d3a9e5d949.
>>>
>>> Conflicts:
>>>
>>> 	hw/pci-hotplug.c
>>> 	sysemu.h
>>>
>>> Signed-off-by: Markus Armbruster<armbru@redhat.com>
>>>        
>>   The patch looks ok and I'm assuming that device_add can do everything
>> pci_add does, right?
>>      
> Not quite.
>
> pci_add comes in several flavors:
>
> * nic: Hot plug a PCI NIC.  device_add is more general.
>
> * storage: Hot plug a PCI disk controller, and a drive connected to it.
>
>    The controller is either virtio-blk-pci (if=virtio) or lsi53c895a
>    (if=scsi).  With the latter, the drive is optional.  Use drive_add to
>    hotplug additional SCSI drives.  Except drive_add is not available in
>    QMP.
>
>    device_add is more general for controllers and the guest part of
>    drives.  I'm working on a more general alternative for the host part
>    of drives.
>
> Why am I proposing to remove pci_add from QMP before its replacement is
> ready?  I want it out sooner rather than later, because it isn't fully
> functional (errors and drive_add are missing), and we do not plan to
> complete the job.  In other words, it's not really usable over QMP now,
> and it's not what we want for QMP anyway.  Since we don't want it to be
> used over QMP, we should take it out, not leave it around as a trap for
> the uninitiated.
>
> Anyway, I'll respin with a more verbose commit message, and I'll throw
> in the buddy patch Revert "monitor: Convert do_pci_device_hot_remove()
> to QObject".
>    

Does libvirt not use pci_add with QMP?

Regards,

Anthony Liguori

>
>    

  reply	other threads:[~2010-05-03 17:00 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-04-26 17:44 [Qemu-devel] [PATCH] Revert "PCI: Convert pci_device_hot_add() to QObject" Markus Armbruster
2010-04-26 18:21 ` [Qemu-devel] " Luiz Capitulino
2010-05-03  9:29   ` Markus Armbruster
2010-05-03 16:59     ` Anthony Liguori [this message]
2010-05-04  8:38       ` Markus Armbruster
2010-05-04  9:26       ` Daniel P. Berrange

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=4BDF010B.6090007@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=armbru@redhat.com \
    --cc=lcapitulino@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).