[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset
From: |
Isaku Yamahata |
Subject: |
[Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset. |
Date: |
Mon, 30 Aug 2010 18:38:02 +0900 |
User-agent: |
Mutt/1.5.19 (2009-01-05) |
Thank you for comments.
On Mon, Aug 30, 2010 at 10:50:47AM +0200, Paolo Bonzini wrote:
> On 08/30/2010 09:49 AM, Isaku Yamahata wrote:
>> +/* those two functions are obsoleted by cold/warm reset API. */
>> [qemu_register_reset/qemu_unregister_reset]
>
> Are they?
>
> They have a _lot_ of callers and most of the time you do not really care
> about cold vs. warm reset. So, I think either you define a new API
> where you can request cold reset/warm reset/both, or qemu_register_reset
> is here to stay forever.
Then, let's keep qemu_register_reset() as for both cold/warm with
documentation/comments.
> In general, I don't like the duplication you introduce between cold
> reset, warm reset, shutdown, powerdown, etc. Maybe you can introduce a
> new "VMEvent" abstraction with functions like "request", "is requested",
> "register handler"?
Sounds good idea. I'll give it a try.
Before touching the code, I'd like to split out those related functions
and main_loop() from vl.c into a new file, main-loop.c or something like that.
Any objection for splitting out vl.c for that?
> It could also be interesting to convert everything to the Notifier API,
> if someone wants to play with Coccinelle...
>
> Paolo
>
--
yamahata
- [Qemu-devel] [PATCH 0/5] RFC: distinguish warm reset from cold reset., Isaku Yamahata, 2010/08/30
- [Qemu-devel] [PATCH 1/5] sysemu.h, vl.c: static'fy qemu_xxx_requested()., Isaku Yamahata, 2010/08/30
- [Qemu-devel] [PATCH 3/5] vl.c: consolidate qemu_system_xxx_request() logic., Isaku Yamahata, 2010/08/30
- [Qemu-devel] [PATCH 2/5] vl.c: consolidate qemu_xxx_requested() logic., Isaku Yamahata, 2010/08/30
- [Qemu-devel] [PATCH 4/5] vl.c: factor out qemu_reguster/unregister_reset()., Isaku Yamahata, 2010/08/30
- [Qemu-devel] [PATCH 5/5] RFC: distinguish warm reset from cold reset., Isaku Yamahata, 2010/08/30
- [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Paolo Bonzini, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Anthony Liguori, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Blue Swirl, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Anthony Liguori, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Blue Swirl, 2010/08/30
- Re: [Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Anthony Liguori, 2010/08/30
[Qemu-devel] Re: [PATCH 5/5] RFC: distinguish warm reset from cold reset., Anthony Liguori, 2010/08/30