pcie: clean up hot plug notification
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 25 Oct 2010 05:46:47 +0000 (07:46 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 27 Oct 2010 17:01:59 +0000 (19:01 +0200)
commit15724a0a7af107c800c99db52aab09b500a98d11
tree4dfc51485e7b1e40587ff9ec520a5479bb068f35
parent63542eaf0404ecaf03efe4a3d18a9c0a00c59d13
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