[libvirt] [PATCH 0/3] Fix improper union member access on hostdevs and refactoring

Marc Hartmayer mhartmay at linux.vnet.ibm.com
Tue Nov 15 18:25:38 UTC 2016


This patch series fixes improper union member accesses on
hostdevs. Additionally, it adds a util function which checks whether a
hostdev is a SCSI device or not. This function is used to simplify and
clarify the code.

Marc Hartmayer (3):
  qemu: Fix improper union member access on hostdevs
  util: Add virHostdevIsSCSIDevice()
  Refactoring: Use virHostdevIsSCSIDevice()

 src/Makefile.am          |  3 ++-
 src/conf/domain_conf.c   |  8 +++-----
 src/libvirt_private.syms |  1 +
 src/qemu/qemu_command.c  |  3 +--
 src/qemu/qemu_conf.c     |  7 +++----
 src/qemu/qemu_domain.c   | 14 +++++---------
 src/qemu/qemu_process.c  |  3 +++
 src/util/virhostdev.c    | 23 +++++++++++++++++------
 src/util/virhostdev.h    |  3 +++
 9 files changed, 38 insertions(+), 27 deletions(-)

-- 
2.5.5




More information about the libvir-list mailing list