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

Re: [libvirt] [RFC v3 PATCH 5/5] PowerPC : Add address-type "spapr-vio"

On Tue, Nov 29, 2011 at 08:33:09PM +0530, Prerna Saxena wrote:
> From: Michael Ellerman <michael ellerman id au>
> Date: Tue, 29 Nov 2011 13:48:09 +0530
> Subject: [PATCH 5/5] Add address-type "spapr-vio" for devices based on
> the same bus.
>  For QEMU PPC64 we have a machine type ("pseries") which
>  has a virtual bus called "spapr-vio". We need to be
>  able to create devices on this bus, and as such need a
>  way to specify the address for those devices.
> This patch adds a new address type "spapr-vio", which achieves this.
> The addressing is specified with a "reg" property in the address
> definition. The reg is optional, if it is not specified QEMU will
> auto-assign an address for the device.

In libvirt, we need to guarantee that addressing is stable across
QEMU releases. So if the 'reg' property is not set in the XML,
libvirt must auto-assign one itself before starting QEMU.

You'll notice we have a qemuDomainAssignPCIAddresses() API.
We will need to have some kind of equivalent for sparpr-vio
"reg" addresses. Ideally libvirt will auto-assign using the
same algorithm as QEMU would have, just for sake of sanity.

|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|

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