[libvirt] PATCH add q35 support ide

Paul Schlacter wlfightup at gmail.com
Thu Nov 30 01:50:01 UTC 2017


hello everyone:
    In q35 motherboard use ide,  Currently, the qemu has supported q35
Motherboard support ide bus


diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index cc7596b..2dbade8 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -7188,6 +7188,7 @@ bool
 qemuDomainMachineHasBuiltinIDE(const char *machine)
 {
     return qemuDomainMachineIsI440FX(machine) ||
+        qemuDomainMachineIsQ35(machine) ||
         STREQ(machine, "malta") ||
         STREQ(machine, "sun4u") ||
         STREQ(machine, "g3beige");




[root at kvm ~]# virsh dumpxml instance-00000004 | grep machine=
    <type arch='x86_64' machine='pc-q35-rhel7.3.0'>hvm</type>
[root at kvm~]#
[root at kvm~]# virsh dumpxml instance-00000004 | grep "'disk'" -A 13
    <disk type='file' device='disk'>
      <driver name='qemu' type='qcow2' cache='none'/>
      <source file='/var/lib/nova/instances/288271ce-69eb-4629-b98c-
779036661294/disk'/>
      <backingStore type='file' index='1'>
        <format type='raw'/>
        <source file='/var/lib/nova/instances/_base/
8d383eef2e628adfc197a6e40e656916de566ab1'/>
        <backingStore/>
      </backingStore>
      <target dev='vda' bus='ide'/>
      <alias name='ide0-0-0'/>
      <address type='drive' controller='0' bus='0' target='0' unit='0'/>
    </disk>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20171130/652c6b05/attachment-0001.htm>


More information about the libvir-list mailing list