[Libguestfs] [v2v PATCH v2 0/3] Use libosinfo for query device drivers

Pino Toscano ptoscano at redhat.com
Tue Jan 28 15:25:35 UTC 2020


This patch series integrates libosinfo in virt-v2v to get the list of
files for Windows from libosinfo, if possible. The actual data is still
from virtio-win, just unpacked.

Changes from v1:
- adapt to use the priority in libosinfo 1.7.0+
- filter out non-pre-installable drivers
- collect all the drivers matching the requirements, not just the first,
  sorting them by priority like libosinfo does to get the best ones
- actually upload the files by the lowercase file name
- few minor fixes

Pino Toscano (3):
  build: require libosinfo
  v2v: add a minimal libosinfo interface
  v2v: try to get windows driver files from libosinfo

 m4/guestfs-v2v.m4       |   3 +
 v2v/Makefile.am         |   9 +-
 v2v/libosinfo-c.c       | 237 ++++++++++++++++++++++++++++++++++++++++
 v2v/libosinfo.ml        |  53 +++++++++
 v2v/libosinfo.mli       |  48 ++++++++
 v2v/libosinfo_utils.ml  |  34 ++++++
 v2v/libosinfo_utils.mli |  26 +++++
 v2v/windows_virtio.ml   |  78 ++++++++++++-
 8 files changed, 483 insertions(+), 5 deletions(-)
 create mode 100644 v2v/libosinfo-c.c
 create mode 100644 v2v/libosinfo.ml
 create mode 100644 v2v/libosinfo.mli
 create mode 100644 v2v/libosinfo_utils.ml
 create mode 100644 v2v/libosinfo_utils.mli

-- 
2.24.1




More information about the Libguestfs mailing list