From: Frediano Ziglio Date: Tue, 19 Feb 2013 08:54:34 +0000 (+0000) Subject: genid: Introduce again Windows generation ID device X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~7235 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=1ac127193dafb4b5a303e1b0180188141509df3e;p=xen.git genid: Introduce again Windows generation ID device This device was removed due to change in specifications. Original patch written by Paul Durrant Signed-off-by: Paul Durrant Signed-off-by: Frediano Ziglio --- diff --git a/tools/firmware/hvmloader/acpi/dsdt.asl b/tools/firmware/hvmloader/acpi/dsdt.asl index 64896ce11d..247a8ad40e 100644 --- a/tools/firmware/hvmloader/acpi/dsdt.asl +++ b/tools/firmware/hvmloader/acpi/dsdt.asl @@ -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) + } + } } } }