vfio-pci: Fix multifunction=on
commit8d07d6c46597a885eb38d99cc6fff399ce69cd21
authorAlex Williamson <alex.williamson@redhat.com>
Tue, 12 Nov 2013 18:53:24 +0000 (12 11:53 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Thu, 21 Nov 2013 16:39:04 +0000 (21 17:39 +0100)
treedf3cb7351ac8464d2541a925f99b19660e4c7f94
parent392a4d5b9a1860aae82429d09321dac302d70396
vfio-pci: Fix multifunction=on

When an assigned device is initialized it copies the device config
space into the emulated config space.  Unfortunately multifunction is
setup prior to the device initfn and gets clobbered.  We need to
restore it just like pci-assign does.

Cc: qemu-stable@nongnu.org
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
hw/misc/vfio.c