Skip to contentSkip to conversation

genid: ACPI Windows generation ID updates

PATCH New Frediano Ziglio 1 participant 3 messages Feb 19, 2013

lore
Share & tools
lore
#0 lore raw

cover genid: ACPI Windows generation ID updates

These patch update Windows generation ID support on ACPI.

First patch mainly update to new specifications while second one introduce again the device in ACPI table.

Frediano Ziglio (2):
genid: Update Windows generation ID
genid: Introduce again Windows generation ID device

 docs/misc/xenstore-paths.markdown      |    6 ++++
 tools/firmware/hvmloader/acpi/build.c  |   49 ++++++++++++++++++++++----------
 tools/firmware/hvmloader/acpi/dsdt.asl |   25 ++++++++++++++++
 3 files changed, 65 insertions(+), 15 deletions(-)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/2 genid: Update Windows generation ID

First draft specification document it as a 64bit counter, now are a 128bit value handled as a couple of 64bit values.

Allow to disable the device is values are all zeroes.

Add documentation for platform/generation-id key.

---
 docs/misc/xenstore-paths.markdown     |    6 ++++
 tools/firmware/hvmloader/acpi/build.c |   49 +++++++++++++++++++++++----------
 2 files changed, 40 insertions(+), 15 deletions(-)
docs/misc/xenstore-paths.markdown +6 -0
index 09e551b..535830e 100644
@@ -164,6 +164,12 @@ Various platform properties.
 * acpi_s3 -- is ACPI S3 support enabled for this domain
 * acpi_s4 -- is ACPI S4 support enabled for this domain
 
+#### ~/platform/generation-id = INTEGER ":" INTEGER [HVM,INTERNAL]
+
+Two 64 bit values that represent the Windows Generation ID.
+Is used by the BIOS initializer to get this value.
+If not present or "0:0" (all zeroes) device will not be present to the machine.
+
 ### Frontend device paths
 
 Paravirtual device frontends are generally specified by their own
tools/firmware/hvmloader/acpi/build.c +34 -15

80 lines not on this page · raw message

Signature · 1 line
1.7.9.5
#2 lore raw

PATCH 2/2 genid: Introduce again Windows generation ID device

In reply to Frediano Ziglio

This device was removed due to change in specifications. Original patch written by Paul Durrant

---
 tools/firmware/hvmloader/acpi/dsdt.asl |   25 +++++++++++++++++++++++++
 1 file changed, 25 insertions(+)
tools/firmware/hvmloader/acpi/dsdt.asl +25 -0
index 64896ce..247a8ad 100644
@@ -397,6 +397,31 @@ DefinitionBlock ("DSDT.aml", "DSDT", 2, "Xen", "HVM", 0)
                         IRQNoFlags () {7}
                     })
                 }
+
+                Device(VGID) {
+                    Name(_HID, EisaId ("XEN0000"))
+                    Name(_UID, 0x00)
+                    Name(_CID, "VM_Gen_Counter")
+                    Name(_DDN, "VM_Gen_Counter")
+                    Method(_STA, 0, NotSerialized)
+                    {
+                        If(LEqual(\_SB.VGIA, 0x00000000)) {
+                            Return(0x00)
+                        } Else {
+                            Return(0x0F)
+                        }
+                    }
+                    Name(PKG, Package ()
+                    {
+                        0x00000000,
+                        0x00000000
+                    })
+                    Method(ADDR, 0, NotSerialized)
+                    {
+                        Store(\_SB.VGIA, Index(PKG, 0))
+                        Return(PKG)
+                    }
+                }
             }
         }
     }
Signature · 1 line
1.7.9.5