qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [patch 2/2] qemu: PCI device, disk and host network hot


From: Daniel P. Berrange
Subject: Re: [Qemu-devel] [patch 2/2] qemu: PCI device, disk and host network hot-add / hot-remove
Date: Mon, 9 Feb 2009 08:41:39 +0000
User-agent: Mutt/1.4.1i

On Sun, Feb 08, 2009 at 03:28:45PM -0200, Marcelo Tosatti wrote:
> On Sun, Feb 08, 2009 at 12:08:34PM +0200, Avi Kivity wrote:
> > Marcelo Tosatti wrote:
> >> Add monitor command to hot-add PCI devices (nic and storage).
> >>     Syntax is:
> >>     pci_add pci_addr=[[<domain>:]<bus>:]<slot> nic|storage params
> >>     It returns the domain, bus and slot for the newly added device on 
> >> success
> >
> > Instead of returning something, how about
> >
> >  pci_add pci_addr=...,name=blah
> >
> > and then
> >
> >  pci_del blah
> >
> > 'info pci' could also output the name so that it could be associated  
> > with the bus address.
> 
> Sure that can be done. Like an alias. So you identify <domain,bus,slot>
> with a name. I can see it simplifies direct management of hotplug on the
> monitor.

Also bear in mind that we need the ability to hot unplug devices which
were specified on the command line argv. For these we currently have
neither the pci <domain,bus,slot>, nor are given any 'name'. Markus
has previously suggested allowing <domain,bus,slot> to be specified on
the cli which would let us manually assign & use that info for unplug.

A device type specific unique naming would be useful too though. In
changeset r6220,  Mark McLoughlin provided the ability to give every
single NIC a unique name. I'd like to be able to use that name for
unplug. 

For disks, meanwhile we generally know the logic bus,unit,index info as
provided to -drive / pci_add disk, which can be used to unplug.

So, I'd suggest that pci_del allow either a <domain,bus,slot> or some
form of unique name, or device type specific unique identifier. Ideally
so we can still just as easily use unplug for devices added on the cli,
as for those added via the monitor.

Daniel
-- 
|: Red Hat, Engineering, London   -o-   http://people.redhat.com/berrange/ :|
|: http://libvirt.org  -o-  http://virt-manager.org  -o-  http://ovirt.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: GnuPG: 7D3B9505  -o-  F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 :|




reply via email to

[Prev in Thread] Current Thread [Next in Thread]