[libvirt] [PATCH] pass stub driver name instead of pciFindStubDriver

Daniel P. Berrange berrange at redhat.com
Thu Jan 10 10:16:00 UTC 2013


On Thu, Jan 10, 2013 at 03:51:43PM +0800, Chunyan Liu wrote:
> Pass stub driver name directly to pciDettachDevice and pciReAttachDevice to fit
> for different libvirt drivers. For example, qemu driver prefers pci-stub, but
> Xen prefers pciback.
>  
> Signed-off-by: Chunyan Liu <cyliu at suse.com>
> ---
>  src/qemu/qemu_driver.c  |    4 +-
>  src/qemu/qemu_hostdev.c |    6 ++--
>  src/util/virpci.c       |   62 +++++++++++++++-------------------------------
>  src/util/virpci.h       |    6 +++-
>  src/xen/xen_driver.c    |    4 +-
>  5 files changed, 31 insertions(+), 51 deletions(-)

ACK, this looks nicer to me.

Daniel
-- 
|: http://berrange.com      -o-    http://www.flickr.com/photos/dberrange/ :|
|: http://libvirt.org              -o-             http://virt-manager.org :|
|: http://autobuild.org       -o-         http://search.cpan.org/~danberr/ :|
|: http://entangle-photo.org       -o-       http://live.gnome.org/gtk-vnc :|




More information about the libvir-list mailing list