pcie: clean up hot plug notification
commit6bde6aaac6f2af14557ef65f5eb053cb135ca173
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 25 Oct 2010 05:46:47 +0000 (25 07:46 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 17:01:59 +0000 (27 19:01 +0200)
tree4dfc51485e7b1e40587ff9ec520a5479bb068f35
parentac0cdda347abee6c1aa8a08a7441fc52c6d7badc
pcie: clean up hot plug notification

Simplify logic for hotplug notification, by tracking state of the
logical interrupt condition.  We then simply use this variable to make
the interrupt decision, according to spec.

API is made cleaner as we no longer force users to pass in
old slot control value.

Includes fixes by Isaku Yamahata.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp>
hw/ioh3420.c
hw/pcie.c
hw/pcie.h
hw/xio3130_downstream.c