<div dir="ltr"><div>Resend to list.<br></div><div><div><div class="gmail_extra"><br></div><div class="gmail_extra">Regards,<br>Chunyan<br></div><div class="gmail_extra"><br><div class="gmail_quote">2013/9/12 Jim Fehlig <span dir="ltr"><<a href="mailto:jfehlig@suse.com" target="_blank">jfehlig@suse.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Chunyan Liu wrote:<br>
> [rebased to latest libvirt code for applying and reviewing the patches]<br>
><br>
<br>
Odd, but I just noticed that this series is not in the list archives,<br>
nor is the original V5 you sent on Sept. 2. You're obviously subscribed<br>
to the list, so I wouldn't expect the mails to be held for moderation.<br>
Makes it difficult for others on the libvirt list to review...<br>
<br>
Regards,<br>
Jim<br>
<br>
> These patches implements a separate module for hostdev passthrough so that it<br>
> could be shared by different drivers and can maintain a global state of a host<br>
> device. Plus, add passthrough to libxl driver, and change qemu driver and lxc<br>
> driver to use hostdev common library instead of their own hostdev APIs.<br>
><br>
> ---<br>
> Changes to v4:<br>
> * change the way checking hypervisor driver name to decide whether use pciback<br>
> or pci-stub as stub driver, instead, using driver callback to handle that.<br>
> * remove get active/inactive list APIs from hostdev common library since<br>
> currently no code uses them.<br>
> * add nodedev-detach/reattach/reset to libxl driver<br>
> * other fixes to Daniel and Jim's comments<br>
> v4 is here:<br>
> <a href="https://www.redhat.com/archives/libvir-list/2013-August/msg00806.html" target="_blank">https://www.redhat.com/archives/libvir-list/2013-August/msg00806.html</a><br>
><br>
> Changes to v3:<br>
> * fix Jim's comments<br>
> v3 is here:<br>
> <a href="https://www.redhat.com/archives/libvir-list/2013-August/msg00019.html" target="_blank">https://www.redhat.com/archives/libvir-list/2013-August/msg00019.html</a><br>
><br>
> Changes to v2:<br>
> * add patches for qemu driver and lxc driver, use common library APIs instead<br>
> of their own hostdev APIs.<br>
> * add APIs for nodedev-detach and nodedev-reattach calling.<br>
> * rename functions to use unified prefix 'virHostdev'<br>
> * use VIR_ONCE_GLOBAL_INIT() as others instead of previous Init and Cleanup.<br>
> * use VIR_STRDUP instead of strdup<br>
> * rebase to latest code<br>
> v2 is here:<br>
> <a href="https://www.redhat.com/archives/libvir-list/2013-June/msg00263.html" target="_blank">https://www.redhat.com/archives/libvir-list/2013-June/msg00263.html</a><br>
><br>
> Chunyan Liu (4):<br>
> add hostdev passthrough common library<br>
> add pci passthrough to libxl driver<br>
> change qemu driver to use hostdev common library<br>
> change lxc driver to use hostdev common library<br>
><br>
> docs/schemas/domaincommon.rng | 1 +<br>
> po/POTFILES.in | 3 +-<br>
> src/Makefile.am | 3 +-<br>
> src/conf/domain_conf.c | 3 +-<br>
> src/conf/domain_conf.h | 1 +<br>
> src/libvirt_private.syms | 15 +<br>
> src/libxl/libxl_conf.c | 63 ++<br>
> src/libxl/libxl_conf.h | 4 +<br>
> src/libxl/libxl_domain.c | 9 +<br>
> src/libxl/libxl_driver.c | 443 ++++++++++++++-<br>
> src/lxc/lxc_conf.h | 4 -<br>
> src/lxc/lxc_driver.c | 45 +-<br>
> src/lxc/lxc_hostdev.c | 413 -------------<br>
> src/lxc/lxc_hostdev.h | 43 --<br>
> src/lxc/lxc_process.c | 21 +-<br>
> src/qemu/qemu_command.c | 1 -<br>
> src/qemu/qemu_conf.h | 9 +-<br>
> src/qemu/qemu_domain.c | 9 +<br>
> src/qemu/qemu_driver.c | 72 +--<br>
> src/qemu/qemu_hostdev.c | 1289 ---------------------------------------<br>
> src/qemu/qemu_hostdev.h | 72 ---<br>
> src/qemu/qemu_hotplug.c | 126 ++---<br>
> src/qemu/qemu_process.c | 34 +-<br>
> src/util/virhostdev.c | 1335 +++++++++++++++++++++++++++++++++++++++++<br>
> src/util/virhostdev.h | 104 ++++<br>
> src/util/virpci.c | 28 +-<br>
> src/util/virpci.h | 9 +-<br>
> src/util/virscsi.c | 26 +-<br>
> src/util/virscsi.h | 8 +-<br>
> src/util/virusb.c | 27 +-<br>
> src/util/virusb.h | 8 +-<br>
> 31 files changed, 2195 insertions(+), 2033 deletions(-)<br>
> delete mode 100644 src/lxc/lxc_hostdev.c<br>
> delete mode 100644 src/lxc/lxc_hostdev.h<br>
> delete mode 100644 src/qemu/qemu_hostdev.c<br>
> delete mode 100644 src/qemu/qemu_hostdev.h<br>
> create mode 100644 src/util/virhostdev.c<br>
> create mode 100644 src/util/virhostdev.h<br>
><br>
><br>
><br>
</blockquote></div><br></div></div></div></div>