[libvirt] [PATCH 1/1] Make virtio as the default net device for PPC64

Pradipta Kr. Banerjee bpradip at in.ibm.com
Thu Dec 12 11:48:13 UTC 2013


From: "Pradipta Kr. Banerjee" <bpradip at in.ibm.com>

Make virtio as the default net device for PPC64

Signed-off-by: Pradipta Kr. Banerjee <bpradip at in.ibm.com>
---
 src/qemu/qemu_domain.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index e964c75..db36eff 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -790,7 +790,8 @@ static const char *
 qemuDomainDefaultNetModel(const virDomainDef *def)
 {
     if (def->os.arch == VIR_ARCH_S390 ||
-        def->os.arch == VIR_ARCH_S390X)
+        def->os.arch == VIR_ARCH_S390X ||
+        def->os.arch == VIR_ARCH_PPC64)
         return "virtio";
 
     if (def->os.arch == VIR_ARCH_ARMV7L) {
-- 
1.8.3.1




More information about the libvir-list mailing list