Radim Krčmář 2332333c97 pc: acpi: fix pvpanic for buggy guests
In the old times, we always had pvpanic in ACPI and a _STA method told
the guest not to use it.  Automatic generation dropped the _STA method
as the specification says that missing _STA means enabled and working.
Some guests (Linux) had buggy drivers and this change made them unable
to utilize pvpanic.

A Linux patch is posted as well, but I think it's worth to make pvpanic
useable on old guests at the price of three lines and few bytes of SSDT.

The old _STA method was
  Method (_STA, 0, NotSerialized) {
      Store (PEST, Local0)
      If (LEqual (Local0, Zero)) {
          Return (Zero) }
      Else {
          Return (0x0F) }}

Igor pointed out that we don't need to use a method to return a constant
and that 0xB (don't show in UI) is the common definition now.

Also, the device used to be PEVT.  (PEVT as in "panic event"?)

Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2015-05-31 16:26:42 +02:00
..
2015-03-19 11:11:55 +03:00
2015-04-27 18:24:18 +02:00
2015-05-11 16:25:33 +01:00
2015-05-29 11:28:59 +01:00
2015-04-30 16:06:18 +03:00
2015-04-30 16:06:17 +03:00
2015-04-30 16:05:48 +03:00
2015-05-11 16:25:33 +01:00
2014-10-24 12:19:11 +01:00
2015-05-31 16:26:41 +02:00
2015-05-11 16:25:33 +01:00
2015-03-19 11:11:55 +03:00
2015-04-30 16:05:48 +03:00
2015-03-10 17:07:28 +01:00
2015-05-11 13:54:00 +01:00