Re: [Qemu-devel] [PATCH v7 05/28] bootindex: rework add_boot_device_path function

2014-09-08 Thread Gonglei
> Subject: Re: [Qemu-devel] [PATCH v7 05/28] bootindex: rework > add_boot_device_path function > > On Fri, Sep 05, 2014 at 04:37:13PM +0800, arei.gong...@huawei.com wrote: > [...] > > +static void del_original_boot_device(DeviceState *dev, const char *suffix) > >

Re: [Qemu-devel] [PATCH v7 05/28] bootindex: rework add_boot_device_path function

2014-09-05 Thread Eduardo Habkost
On Fri, Sep 05, 2014 at 04:37:13PM +0800, arei.gong...@huawei.com wrote: [...] > +static void del_original_boot_device(DeviceState *dev, const char *suffix) > +{ > +FWBootEntry *i; > + > +if (dev == NULL) { > +return; > +} > + > +QTAILQ_FOREACH(i, &fw_boot_order, link) { > +

[Qemu-devel] [PATCH v7 05/28] bootindex: rework add_boot_device_path function

2014-09-05 Thread arei.gonglei
From: Gonglei Add the function of updating bootindex about fw_boot_order list in add_boot_device_path(). We should delete the old one if a device has existed in global fw_boot_order list. Signed-off-by: Gonglei --- bootdevice.c | 30 ++ 1 file changed, 30 insertions