qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v6 06/27] bootindex: move setting bootindex on r


From: Gonglei (Arei)
Subject: Re: [Qemu-devel] [PATCH v6 06/27] bootindex: move setting bootindex on reset() instead of realize/init()
Date: Fri, 5 Sep 2014 00:09:14 +0000

> Subject: Re: [PATCH v6 06/27] bootindex: move setting bootindex on reset()
> instead of realize/init()
> 
> On Sat, Aug 30, 2014 at 06:00:06PM +0800, address@hidden wrote:
> > From: Gonglei <address@hidden>
> >
> > Only in this way, we can assure the new bootindex take effect
> > during vm rebooting.
> >
> > Signed-off-by: Gonglei <address@hidden>
> 
> An API that doesn't work unless it is called at a very specific moment
> (during reset) is very easy to misuse.
> 
> Why not simply make the core bootindex/reset code smart enough to update
> the tables on reset if add_boot_device_path() was called at any moment,
> instead of requiring all devices to call add_boot_device_path() on
> reset?
> 
Yes. I have moved this call to $device_set_bootindex() by Gerd's suggestion.

Best regards,
-Gonglei



reply via email to

[Prev in Thread] Current Thread [Next in Thread]