Hi all,
I would like to make Windows guest which runs on laptop
machine, to display the battery state (as if Windows is running on the physical
machine itself).
(BTW, VMWare has added this functionality inside the latest
version of VMWare)
I have thought about the following ways in order to perform
it. If someone is familiar with these stuff, and can help me in doing so or
comment about it, I would appreciate it a lot. These are the ways I thought
about:
1.
Writing a pv battery mini-class
driver in Windows, which will receive the battery state from dom-0, and will
report it to Windows
2.
Adding a section in the dsdt of
the hvm guest, which will return the battery state using some IO ports, then I will
try to catch these IO ports accesses using qemu, and will return the proper
values. This method will enable Windows to use it’s own generic control method
battery (CmBatt.sys).
Can anyone help/comment?
Barak