qemu-devel
[Top][All Lists]
Advanced

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

Re: [Qemu-devel] [PATCH][RFC v2 2/7] hw/power: add main power chip imple


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH][RFC v2 2/7] hw/power: add main power chip implementation
Date: Mon, 8 Apr 2013 10:21:15 +0100

On 8 April 2013 01:32, li guang <address@hidden> wrote:
> 在 2013-04-05五的 10:23 +0100,Peter Maydell写道:
>> QEMU is fundamentally modelling real hardware platforms,
>> not abstract devices. You have to model a real power
>> controller to at least some extent, because that's what
>> guest OSes expect to be interacting with, and what
>> device and board hardware models expect to be dealing with.
>
> Hmm, let me see ...
> but you know, in my mind OS mostly dose not care more about power
> controller, for example, if OS want to reset, it just issues a command
> or writes a special value to register in a chip(not power controller),
> like PC, one of reset path is to issue a KBC reset command to IO
> register 0x64. so it seems OS has no idea about power controller(chip),

This is architecture specific, which is my point. You can
provide generic mechanisms for making it easier to implement
power control, but you have to be clear about what is generic
(and optional) mechanism and what is board and hardware specific.

-- PMM



reply via email to

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