On Tue, Jan 26, 2021 at 4:40 PM Michael S. Tsirkin <m...@redhat.com> wrote: > > Poking at sysfs from QEMU poses a bunch of issues, for example, > security, migration, etc. Running timers on the host is also not nice > since it causes exits from VM ... > > So I agree, as a starting point let's just let user > control the battery level through QMP. >
Thanks for the review, Michael. Yep, I fully agree - indeed looking at the host's battery is better to be left for the user, and QEMU should just set what the guest sees. Will modify accordingly, and send a v2. Cheers, Leonid.