From patchwork Tue May 18 17:07:43 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Miguel Di Ciurcio Filho X-Patchwork-Id: 52898 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [199.232.76.165]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id CD975B7D71 for ; Wed, 19 May 2010 03:29:11 +1000 (EST) Received: from localhost ([127.0.0.1]:57558 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEQbN-0003R1-1j for incoming@patchwork.ozlabs.org; Tue, 18 May 2010 13:29:09 -0400 Received: from [140.186.70.92] (port=60996 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OEQRW-0006IH-4c for qemu-devel@nongnu.org; Tue, 18 May 2010 13:19:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OEQHF-0005Sv-8U for qemu-devel@nongnu.org; Tue, 18 May 2010 13:08:28 -0400 Received: from mail-gx0-f218.google.com ([209.85.217.218]:55821) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OEQHB-0005SF-L6 for qemu-devel@nongnu.org; Tue, 18 May 2010 13:08:20 -0400 Received: by gxk10 with SMTP id 10so1295099gxk.10 for ; Tue, 18 May 2010 10:08:17 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:from:to:cc:subject:date :message-id:x-mailer:in-reply-to:references; bh=6IAIY53ass+kT6gqE26H2LQuvXWtNdWpXgJHghFGXEA=; b=KYw20pBsr0OX6LyCMiRsNMjLDt1o/6wrNN7eyLGDi5VHBxJGaVVkeEGSWUC1snQi0g XKA+1VjenVlBXNvx1G8WIkA3oXQdKA4/inViklJHA2t7JwEt8jEJb9CzZ67G5gju4QOd aPDn6+4rUkSnfliE/s2ivgbGpjaQX/7JGbWp8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; b=Rbe9Dk5Lt6Qe7vfLaeg3qe9NgiDUlMHwTsPmCM1CW5GaWKElULW2o2tuu21xPQfxnC xnRMiAU/bOHzm7DCbDogboxh2H+g7XPcDG0a3ZR8uxgZnje43F7poSOV32CIsKU/WobI PUdr4nJE7kPpZ02XacsuKjb9d2Naht0kMh5pw= Received: by 10.150.128.7 with SMTP id a7mr8326483ybd.230.1274202497041; Tue, 18 May 2010 10:08:17 -0700 (PDT) Received: from localhost.localdomain (quake.ic.unicamp.br [143.106.7.51]) by mx.google.com with ESMTPS id k30sm58427272ybb.19.2010.05.18.10.08.15 (version=TLSv1/SSLv3 cipher=RC4-MD5); Tue, 18 May 2010 10:08:16 -0700 (PDT) From: Miguel Di Ciurcio Filho To: qemu-devel@nongnu.org Date: Tue, 18 May 2010 14:07:43 -0300 Message-Id: <1274202469-9332-5-git-send-email-miguel.filho@gmail.com> X-Mailer: git-send-email 1.7.1 In-Reply-To: <1274202469-9332-1-git-send-email-miguel.filho@gmail.com> References: <1274202469-9332-1-git-send-email-miguel.filho@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: armbru@redhat.com, lcapitulino@redhat.com Subject: [Qemu-devel] [PATCH v4 04/10] net: xen: introduce info_dict X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Signed-off-by: Miguel Di Ciurcio Filho --- hw/xen_nic.c | 5 +++++ 1 files changed, 5 insertions(+), 0 deletions(-) diff --git a/hw/xen_nic.c b/hw/xen_nic.c index 08055b8..1820059 100644 --- a/hw/xen_nic.c +++ b/hw/xen_nic.c @@ -321,6 +321,11 @@ static int net_init(struct XenDevice *xendev) snprintf(netdev->nic->nc.info_str, sizeof(netdev->nic->nc.info_str), "nic: xenbus vif macaddr=%s", netdev->mac); + netdev->nic->nc.info_dict = qdict_new(); + qdict_put(netdev->nic->nc.info_dict, "macaddr", + qstring_from_str(netdev->mac)); + qdict_put(netdev->nic->nc.info_dict, "model", qstring_from_str("xen")); + /* fill info */ xenstore_write_be_int(&netdev->xendev, "feature-rx-copy", 1); xenstore_write_be_int(&netdev->xendev, "feature-rx-flip", 0);