Guest ACPI battery functionality broken

Description

The immediate and obvious symptom is that the battery says it is charging, the icon says it is dead and the text says it is fully charged at 100%. The not obvious symptom is there is really high CPU utilization in the guest kernel, QEMU and Xenstore.

I suspect this is due to the Xen 4.6.1 uprev (it is not related to the QEMU 2.6.2 work). I am surprised no one else has noticed this.

Environment

None

Validation Steps

None

Activity

Show:

MagOXT December 13, 2016 at 3:40 PM

OK oxt-dev-220-master

Ross Philipson October 28, 2016 at 8:51 PM
Edited

PR posted, going in soon. To see the symptoms are fixed (using a Windows guest):

  • Test that battery information is correct.

  • Test that AC plugs and unplugs are seen in the guest.

  • Test that battery hotplug works.

  • Run Task Manager and make sure there isn't really high CPU usage.

  • Run xentop in dom0 and make sure the domain and stubdom are slamming CPUs with 50+% activity.

  • Run top in dom0 and make sure xenstore is not running at around 15% CPU usage.

Ross Philipson October 28, 2016 at 5:28 PM

Linux guests don't seem to have the problem and they get the GPEs for AC and what not.

Ross Philipson October 27, 2016 at 3:47 PM

Sanity checked on stable-6 - seems to be fine there. ACPI events happening correctly and no out of control CPU usage.

Ross Philipson October 27, 2016 at 3:11 PM

There are other odd behaviors too. It does not consistently show the visible symptoms above in the guest. It also does not see the AC unplug/plug.

Fixed

Details

Assignee

Reporter

QA Assignee

Fix versions

Affects versions

Priority

Created October 27, 2016 at 2:49 PM
Updated December 13, 2016 at 3:40 PM
Resolved October 31, 2016 at 2:36 PM