pass info about hpets to seabios.]
commit40ac17cd56eb5c5a89559ea0fa53f7eea80cbd07
authorGleb Natapov <gleb@redhat.com>
Mon, 14 Jun 2010 08:29:28 +0000 (14 11:29 +0300)
committerAnthony Liguori <aliguori@us.ibm.com>
Mon, 14 Jun 2010 16:12:53 +0000 (14 11:12 -0500)
tree5075aa9aac81afe13cf9115423b0ea523ddc87ef
parent072c2c31c27204e8e1897c52e481d2ab0b4d075d
pass info about hpets to seabios.]

Currently HPET ACPI table is created regardless of whether qemu actually
created hpet device. This may confuse some guests that don't check that
hpet is functional before using it. Solve this by passing info about
hpets in qemu to seabios via fw config interface. Additional benefit is
that seabios no longer uses hard coded hpet configuration. Proposed
interface supports up to 8 hpets. This is the number defined by hpet
spec.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/hpet.c
hw/hpet_emul.h
hw/pc.c