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

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

 



On 12/07/2011 11:41 PM, Michael Ellerman wrote:
> From: Michael Ellerman <michael@xxxxxxxxxxxxxx>
> 
> On the PPC64 pseries machine type we need to use the spapr-vscsi device
> rather than an lsi.
> 
> Signed-off-by: Michael Ellerman <michael@xxxxxxxxxxxxxx>
> ---
>  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@xxxxxxxxxx    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]