Re: [PATCH] qemu: Need to check for machine.os when using ADDRESS_TYPE_CCW

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

 



On Wed, 2015-09-02 at 15:47 +0200, Ján Tomko wrote:

> >      case VIR_DOMAIN_DISK_BUS_VIRTIO:
> >          if (disk->info.type == VIR_DOMAIN_DEVICE_ADDRESS_TYPE_CCW)
> > {
> > +            if (!STREQLEN(def->os.machine, "s390-ccw", 8)) {
> 
> Maybe we need a 'qemuDomainMachineIsS390CCW' helper?

I'd also use STRPREFIX() instead of STREQLEN().

Cheers.

-- 
Andrea Bolognani
Software Engineer - Virtualization Team

--
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]