[libvirt] [PATCH 2/6] qemu: Use spapr-vscsi on pseries machine type

Eric Blake eblake at redhat.com
Fri Dec 9 20:14:47 UTC 2011


On 12/07/2011 11:41 PM, Michael Ellerman wrote:
> From: Michael Ellerman <michael at ellerman.id.au>
> 
> On the PPC64 pseries machine type we need to use the spapr-vscsi device
> rather than an lsi.
> 
> Signed-off-by: Michael Ellerman <michael at ellerman.id.au>
> ---
>  src/qemu/qemu_command.c |   13 +++++++++----
>  src/qemu/qemu_command.h |    3 ++-
>  src/qemu/qemu_hotplug.c |    2 +-
>  3 files changed, 12 insertions(+), 6 deletions(-)

ACK.  I've also added you to AUTHORS.

> @@ -2126,7 +2127,11 @@ qemuBuildControllerDevStr(virDomainControllerDefPtr def,
>  
>      switch (def->type) {
>      case VIR_DOMAIN_CONTROLLER_TYPE_SCSI:
> -        virBufferAddLit(&buf, "lsi");
> +        if (STREQ(domainDef->os.arch, "ppc64") && STREQ(domainDef->os.machine, "pseries")) {

I wrapped this line to fit in 80 chars.

-- 
Eric Blake   eblake at redhat.com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 620 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20111209/41359a7e/attachment-0001.sig>


More information about the libvir-list mailing list