From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:41952) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqHok-00060r-Ja for qemu-devel@nongnu.org; Tue, 10 Dec 2013 02:33:26 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VqHoS-0000Sh-OX for qemu-devel@nongnu.org; Tue, 10 Dec 2013 02:33:18 -0500 Received: from e23smtp01.au.ibm.com ([202.81.31.143]:59739) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqHoR-0000O6-VW for qemu-devel@nongnu.org; Tue, 10 Dec 2013 02:33:00 -0500 Received: from /spool/local by e23smtp01.au.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 10 Dec 2013 17:32:54 +1000 From: Alexey Kardashevskiy Date: Tue, 10 Dec 2013 18:32:34 +1100 Message-Id: <1386660757-7505-3-git-send-email-aik@ozlabs.ru> In-Reply-To: <1386660757-7505-1-git-send-email-aik@ozlabs.ru> References: <1386660757-7505-1-git-send-email-aik@ozlabs.ru> Subject: [Qemu-devel] [PATCH v3 2/5] spapr-llan: add to boot device list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Alexey Kardashevskiy , Paolo Bonzini , qemu-ppc@nongnu.org, Alexander Graf , =?UTF-8?q?Andreas=20F=C3=A4rber?= Signed-off-by: Alexey Kardashevskiy --- hw/net/spapr_llan.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/hw/net/spapr_llan.c b/hw/net/spapr_llan.c index 1bd6f50..229de00 100644 --- a/hw/net/spapr_llan.c +++ b/hw/net/spapr_llan.c @@ -29,6 +29,7 @@ #include "hw/qdev.h" #include "hw/ppc/spapr.h" #include "hw/ppc/spapr_vio.h" +#include "sysemu/sysemu.h" #include @@ -213,6 +214,8 @@ static int spapr_vlan_init(VIOsPAPRDevice *sdev) object_get_typename(OBJECT(sdev)), sdev->qdev.id, dev); qemu_format_nic_info_str(qemu_get_queue(dev->nic), dev->nicconf.macaddr.a); + add_boot_device_path(dev->nicconf.bootindex, DEVICE(dev), ""); + return 0; } -- 1.8.4.rc4