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

[Xen-devel] Displaying battery state inside Windows guests


  • To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
  • From: "Barak Fargoun" <barak@xxxxxxxxxxxx>
  • Date: Wed, 26 Mar 2008 07:09:11 -0400
  • Delivery-date: Wed, 26 Mar 2008 04:07:35 -0700
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>
  • Thread-index: AciPMdGaEJAMHjQEQP+z4vNzPpDqAw==
  • Thread-topic: Displaying battery state inside Windows guests

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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.