genid: ACPI Windows generation ID updates
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
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
@@ -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
PATCH 2/2 genid: Introduce again Windows generation ID device
In reply to Frediano ZiglioThis 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
@@ -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