KVM: Fix PCI header check on device assignment
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 15 Jun 2012 13:56:20 +0000 (07:56 -0600)
committerMarcelo Tosatti <mtosatti@redhat.com>
Sat, 16 Jun 2012 02:22:12 +0000 (23:22 -0300)
commitf961f72836eb6c0fd76201f6f6b2fafff93c4cea
treee816a93debb5d46b55cce1c5e743b4d541c59032
parenta2c2df8672f55195f101d9251117aa59e358d296
KVM: Fix PCI header check on device assignment

The masking was wrong (must have been 0x7f), and there is no need to
re-read the value as pci_setup_device already does this for us.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=43339
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Acked-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
virt/kvm/assigned-dev.c