]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
genid: Introduce again Windows generation ID device
authorFrediano Ziglio <frediano.ziglio@citrix.com>
Tue, 19 Feb 2013 08:54:34 +0000 (08:54 +0000)
committerKeir Fraser <keir@xen.org>
Thu, 21 Feb 2013 16:47:57 +0000 (16:47 +0000)
This device was removed due to change in specifications.
Original patch written by Paul Durrant

Signed-off-by: Paul Durrant <paul.durrant@citrix.com>
Signed-off-by: Frediano Ziglio <frediano.ziglio@citrix.com>
tools/firmware/hvmloader/acpi/dsdt.asl

index 64896ce11db357f53c2f0a955fae7f2b90dc741d..247a8ad40ec0590f8783ca49f60fdf03c07211c6 100644 (file)
@@ -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)
+                    }
+                }
             }
         }
     }