pcihp: reduce number of device check events
authorMichael S. Tsirkin <mst@redhat.com>
Sun, 26 Jan 2014 10:31:27 +0000 (12:31 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 5 Feb 2014 14:55:49 +0000 (16:55 +0200)
commit5a2223ca26b1a34e131b5b9a63599d9426d2c25c
tree7d5c543c94afdaab0cc4e3abef828bb4ac51fe99
parent2b2449f7e467957778ca006904471b231dc0ac8e
pcihp: reduce number of device check events

PIIX created a made-up value for the UP register since it was read by
guest 32 times for each interrupt.
There's no reason to do this for the new PCIHP: register is only read
once for each interrupt, so clean up code by making read act as an
interrupt acknowledgement: the new UP register clear on read.

In this way we cut down the number of bus rescans
by a factor of 32, and drop a bunch of code that's
now unused.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
hw/acpi/pcihp.c
include/hw/acpi/pcihp.h