Received: from eggs.gnu.org ([2001:4830:134:3::10]:43397) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPp2v-0005a9-AP for qemu-devel@nongnu.org; Fri, 05 Sep 2014 04:39:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XPp2q-0003PQ-Ge for qemu-devel@nongnu.org; Fri, 05 Sep 2014 04:39:05 -0400 Received: from szxga03-in.huawei.com ([119.145.14.66]:64646) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XPp2p-0003Ei-Ql for qemu-devel@nongnu.org; Fri, 05 Sep 2014 04:39:00 -0400 From: Date: Fri, 5 Sep 2014 16:37:14 +0800 Message-ID: <1409906256-11368-7-git-send-email-arei.gonglei@huawei.com> In-Reply-To: <1409906256-11368-1-git-send-email-arei.gonglei@huawei.com> References: <1409906256-11368-1-git-send-email-arei.gonglei@huawei.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v7 06/28] bootindex: support to set a existent device's bootindex to -1 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: chenliang88@huawei.com, weidong.huang@huawei.com, mst@redhat.com, aik@ozlabs.ru, hutao@cn.fujitsu.com, armbru@redhat.com, kraxel@redhat.com, akong@redhat.com, agraf@suse.de, Gonglei , aliguori@amazon.com, ehabkost@redhat.com, luonengjun@huawei.com, peter.huangpeng@huawei.com, hani@linux.com, stefanha@redhat.com, pbonzini@redhat.com, lcapitulino@redhat.com, kwolf@redhat.com, peter.crosthwaite@xilinx.com, imammedo@redhat.com, afaerber@suse.de From: Gonglei When set a device's bootindex to -1, we remove it from global fw_boot_order list. Signed-off-by: Gonglei --- bootdevice.c | 1 + 1 file changed, 1 insertion(+) diff --git a/bootdevice.c b/bootdevice.c index 6f430ec..484d0c9 100644 --- a/bootdevice.c +++ b/bootdevice.c @@ -106,6 +106,7 @@ void add_boot_device_path(int32_t bootindex, DeviceState *dev, FWBootEntry *node, *i; if (bootindex < 0) { + del_original_boot_device(dev, suffix); return; } -- 1.7.12.4