pcie/slot: fix hotplug event
authorIsaku Yamahata <yamahata@valinux.co.jp>
Fri, 5 Aug 2011 09:22:03 +0000 (18:22 +0900)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 24 Aug 2011 12:52:54 +0000 (15:52 +0300)
commit1553d4f1fc6b7455234de93d105e7b46bc7a0844
treed53d6846915e9c4afd74eb9dcdc404179234c48b
parente8906f3529a452276375ab8e7b8598751bc33b01
pcie/slot: fix hotplug event

When slot status register is cleared, PCIDevice::exp.hpev_notify
needs to be cleared.
Otherwise, PCIDevice::exp.hpev_notify is never set to false resulting
in no more hot plug event once it's raised.

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