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: li guang
Subject: Re: [Qemu-devel] [PATCH][RFC v2 2/7] hw/power: add main power chip implementation
Date: Mon, 08 Apr 2013 08:32:48 +0800

在 2013-04-05五的 10:23 +0100,Peter Maydell写道:
> On 5 April 2013 09:45, li guang <address@hidden> wrote:
> > 在 2013-04-05五的 09:35 +0100,Peter Maydell写道:
> >> What actual hardware is this supposed to be modelling?
> >> I don't believe there's such a thing as a 'generic
> >> power controller' that makes sense for all architectures.
> >
> > unfortunately, I'm considering it as generic and abstract.
> > I think we have no need to model a specific type of power
> > controller, because what we are doing is to construct a
> > power controlling process, not to realize a hardware platform's
> > device for special purpose.
> 
> 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),
though for the platform of laptop seems power controller is happened to
be a ACPI defined device EC, power control mostly is one of jobs of EC,
but OS doesn't know that.
am I right for this point?






reply via email to

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