Blob Blame History Raw
From aab4187704935affc5f653d3bf673b608807b457 Mon Sep 17 00:00:00 2001
From: Amos Kong <akong@redhat.com>
Date: Thu, 7 Nov 2013 08:38:28 +0100
Subject: don't disable ctrl_mac_addr feature for 6.5 machine (RHEL only)

RH-Author: Amos Kong <akong@redhat.com>
Message-id: <1383813508-6353-1-git-send-email-akong@redhat.com>
Patchwork-id: 55592
O-Subject: [RHEL-7.0 qemu-kvm PATCH] don't disable ctrl_mac_addr feature for 6.5 machine (RHEL only)
Bugzilla: 1005039
RH-Acked-by: Orit Wasserman <owasserm@redhat.com>
RH-Acked-by: Michael S. Tsirkin <mst@redhat.com>
RH-Acked-by: Stefan Hajnoczi <stefanha@redhat.com>

Bugzilla: 1005039
Brew: http://brewweb.devel.redhat.com/brew/taskinfo?taskID=6540840
Test: tested by myself

ctrl_mac_addr is already supported in qemu-kvm 6.5,
we should not disable this feature for 6.5 machine type.

Signed-off-by: Amos Kong <akong@redhat.com>

diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c
index 1b21f93..30a87d4 100644
--- a/hw/i386/pc_piix.c
+++ b/hw/i386/pc_piix.c
@@ -985,10 +985,6 @@ static QEMUMachine pc_machine_rhel700 = {
         .value    = stringify(1),\
     },{\
         .driver   = "virtio-net-pci",\
-        .property = "ctrl_mac_addr",\
-        .value    = "off",\
-    },{\
-        .driver   = "virtio-net-pci",\
         .property = "mq",\
         .value    = "off",\
     },{\
@@ -1113,6 +1109,10 @@ static QEMUMachine pc_machine_rhel650 = {
         .driver   = "hda-output",\
         .property = "mixer",\
         .value    = "off",\
+    },{\
+        .driver   = "virtio-net-pci",\
+        .property = "ctrl_mac_addr",\
+        .value    = "off",\
     }
 
 static void pc_init_rhel640(MachineState *machine)