From patchwork Thu Oct 27 08:49:06 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jason Wang X-Patchwork-Id: 122090 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [140.186.70.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id A9A321007D8 for ; Thu, 27 Oct 2011 19:49:49 +1100 (EST) Received: from localhost ([::1]:45751 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJLec-00023v-3X for incoming@patchwork.ozlabs.org; Thu, 27 Oct 2011 04:49:38 -0400 Received: from eggs.gnu.org ([140.186.70.92]:53133) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJLe8-0000cm-JE for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:49:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RJLe7-0005rp-9N for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:49:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53313) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RJLe7-0005rg-1l for qemu-devel@nongnu.org; Thu, 27 Oct 2011 04:49:07 -0400 Received: from int-mx02.intmail.prod.int.phx2.redhat.com (int-mx02.intmail.prod.int.phx2.redhat.com [10.5.11.12]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id p9R8n5gi030419 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 27 Oct 2011 04:49:05 -0400 Received: from dhcp-8-146.nay.redhat.com (dhcp-8-146.nay.redhat.com [10.66.8.146]) by int-mx02.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id p9R8n1OL030610; Thu, 27 Oct 2011 04:49:02 -0400 To: aliguori@us.ibm.com, mst@redhat.com, jan.kiszka@siemens.com, rusty@rustcorp.com.au, qemu-devel@nongnu.org, blauwirbel@gmail.com, stefanha@gmail.com From: Jason Wang Date: Thu, 27 Oct 2011 16:49:06 +0800 Message-ID: <20111027084906.15020.6622.stgit@dhcp-8-146.nay.redhat.com> In-Reply-To: <20111027084700.15020.24087.stgit@dhcp-8-146.nay.redhat.com> References: <20111027084700.15020.24087.stgit@dhcp-8-146.nay.redhat.com> User-Agent: StGit/0.15 MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.67 on 10.5.11.12 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 209.132.183.28 Cc: netdev@vger.kernel.org, kvm@vger.kernel.org Subject: [Qemu-devel] [RFC v3 PATCH 4/4] virtio-net: compat guest announce support. X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Disable guest announce for compat machine types. Signed-off-by: Jason Wang --- hw/pc_piix.c | 16 ++++++++++++++++ 1 files changed, 16 insertions(+), 0 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 8c7f2b7..6ca50a6 100644 --- a/hw/pc_piix.c +++ b/hw/pc_piix.c @@ -340,6 +340,10 @@ static QEMUMachine pc_machine_v0_13 = { .driver = "virtio-net-pci", .property = "event_idx", .value = "off", + },{ + .driver = "virtio-net-pci", + .property = "guest_announce", + .value = "off", }, { /* end of list */ } }, @@ -383,6 +387,10 @@ static QEMUMachine pc_machine_v0_12 = { .driver = "virtio-net-pci", .property = "event_idx", .value = "off", + },{ + .driver = "virtio-net-pci", + .property = "guest_announce", + .value = "off", }, { /* end of list */ } } @@ -434,6 +442,10 @@ static QEMUMachine pc_machine_v0_11 = { .driver = "virtio-net-pci", .property = "event_idx", .value = "off", + },{ + .driver = "virtio-net-pci", + .property = "guest_announce", + .value = "off", }, { /* end of list */ } } @@ -497,6 +509,10 @@ static QEMUMachine pc_machine_v0_10 = { .driver = "virtio-net-pci", .property = "event_idx", .value = "off", + },{ + .driver = "virtio-net-pci", + .property = "guest_announce", + .value = "off", }, { /* end of list */ } },