Skip to contentSkip to conversation

Add HPET emulation to qemu (v3)

PATCH In review Beth Kon 2 participants 2 messages Oct 17, 2008 – Oct 21, 2008 KVM

lore
Share & tools
lore

Beth Kon

author
#0 lore raw

PATCH 2/2 Add HPET emulation to qemu (v3)

Signature · 5 lines
-- 
Elizabeth Kon (Beth)
IBM Linux Technology Center
Open Hypervisor Team
email: [email protected]

This patch contains the bochs bios changes needed to support the qemu hpet.

---
 bios/acpi-dsdt.dsl |   18 ++++++++++++++++++
 bios/rombios32.c   |   46 ++++++++++++++++++++++++++++++++++++++++++++--
 2 files changed, 62 insertions(+), 2 deletions(-)
bios/acpi-dsdt.dsl +18 -0
Index: bochs-2.3.7/bios/acpi-dsdt.dsl
===================================================================
@@ -159,6 +159,24 @@
                 Return (MEMP)
             }
         }
+        Device(HPET) {
+            Name(_HID,  EISAID("PNP0103"))
+            Name(_UID, 0)
+            Method (_STA, 0, NotSerialized) {
+                    Return(0x0F)
+            }
+            Name(_CRS, ResourceTemplate() {
+                DWordMemory(
+                    ResourceConsumer, PosDecode, MinFixed, MaxFixed,
+                    NonCacheable, ReadWrite,
+                    0x00000000,
+                    0xFED00000,
+                    0xFED003FF,
+                    0x00000000,
+                    0x00000400 /* 1K memory: FED00000 - FED003FF */
+                )
+            })
+        }
     }
 
     Scope(\_SB.PCI0) {
bios/rombios32.c +44 -2

83 lines not on this page · raw message

#1 lore raw
Quoted 2 lines · Beth Kon

This patch contains the bochs bios changes needed to support the qemu hpet.

Please wrap the bios changes in #ifdef BX_QEMU. Also, you need Signed-off-by lines.

Regards,

Anthony Liguori