> -Original Message-
> From: 陈梁 [mailto:chenliang0...@icloud.com]
> Sent: Sunday, July 27, 2014 11:51 AM
> Subject: Re: [Qemu-devel] [PATCH v3 1/7] bootindex: add
> modify_boot_device_path function
>
> Hi
> > +if (bootindex >= 0) {
> > +
Hi
> +if (bootindex >= 0) {
> +node = g_malloc0(sizeof(FWBootEntry));
> +node->bootindex = bootindex;
> +if (suffix) {
> +node->suffix = g_strdup(suffix);
> +} else if (old_entry) {
> +node->suffix = g_strdup(old_entry->suffix);
> +
From: Gonglei
When we want to change one device's bootindex, we
should lookup the device and change the bootindex.
it is simply that remove it from the global boot list,
then re-add it, sorted by new bootindex. If the new
bootindex has already used by another device just
throw an error.
Signed-o