]> xenbits.xensource.com Git - qemu-xen-3.3-testing.git/commit
pci.c: restore bus-level pci interrupt state via pci_set_irq
authorIan Jackson <iwj@mariner.uk.xensource.com>
Fri, 16 May 2008 16:04:57 +0000 (17:04 +0100)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Fri, 16 May 2008 16:04:57 +0000 (17:04 +0100)
commit291ec0bf48503bba33c707650c62ce628100752e
tree3d808b5fcdfa5630fa2cce928ccdd48ea32fc4b6
parent73730fdf0e2d75e51789b771fe227f4e629512a3
pci.c: restore bus-level pci interrupt state via pci_set_irq

This change abolishes pcibus_save.  Instead we use an invariant - that
device interrupts are supposed to be reflected in the bus interrupt
state - to restore the bus interrupt state.

This makes the code smaller and removes one way in which a savefile
could be corrupted (eg, if it had been generated by a buggy emulator).

It also means that systems which do some of their own PCI bus
emulation and thus reflect PCI bus state elsewhere (eg CPU acclerators
such as Xen) get notified of the PCI bus interrupt level, via
pci_set_irq's call to bus->set_irq.
hw/pci.c