mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-01 06:43:53 -06:00
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>
This commit is contained in:
parent
2b2449f7e4
commit
5a2223ca26
2 changed files with 6 additions and 17 deletions
|
@ -32,7 +32,7 @@
|
|||
#include "hw/pci/pci.h" /* for PCIHotplugState */
|
||||
|
||||
typedef struct AcpiPciHpPciStatus {
|
||||
uint32_t up; /* deprecated, maintained for migration compatibility */
|
||||
uint32_t up;
|
||||
uint32_t down;
|
||||
uint32_t hotplug_enable;
|
||||
uint32_t device_present;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue