kvm: qemu: Move assigned device capability init earlier
commitba7ce8c2f1faab5af6c6c638fe872b53564b37f4
authorSheng Yang <sheng@linux.intel.com>
Thu, 19 Mar 2009 07:02:02 +0000 (19 15:02 +0800)
committerAvi Kivity <avi@redhat.com>
Thu, 19 Mar 2009 09:40:07 +0000 (19 11:40 +0200)
tree56312a424e94c0b4b1764b791b6537e485eaa2fe
parent34d482b6a24bba0fc3d731a413994df71e48137c
kvm: qemu: Move assigned device capability init earlier

For if assign_irq() is called before capability init, it don't know device
support MSI or not for the first time calling. So it won't enable MSI2INTx...

Signed-off-by: Sheng Yang <sheng@linux.intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu/hw/device-assignment.c