Tnx for this. I checked some of the properties that are available in BAT0 and this seems already half of the story to get to Battery-status in the VM's.
So the remaining part, would be the question: how to get this "device" (not sure if you can call it that way) in a VM. I currently pass my keyboard and mousepad already to the VM with this:
<qemu:commandline>
<qemu:arg value='-object'/>
<qemu:arg value='input-linux,id=kbd,evdev=/dev/input/by-path/platform-i8042-serio-0-event-kbd,grab_all=on,repeat=on'/>
<qemu:arg value='-object'/>
<qemu:arg value='input-linux,id=mouse,evdev=/dev/input/by-path/platform-i8042-serio-1-event-mouse'/>
</qemu:commandline>
Would passing the BAT0 entity be possible in a same manner?
Are you able to assist to get the BAT0 into the VM with QEMU directives?