[PATCH 0/4] qemu: fix usage of disk and storage source private data

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



There were a few cases where we'd use private data for a storage source
which was not allocated. Fix it by checking whether it is allocated.

Qemu command line parser allocated disk definition via VIR_ALLOC rather
than the proper function. This resulted into the disk private data
strucutre not being allocated. That one is required.

Peter Krempa (4):
  qemu: parse: Allocate disk definition with private data
  qemu: Tolerate storage source private data being NULL
  qemu: domain: Don't allocate storage source private data if not needed
  qemu: process: Setup disk secrets when preparing disks

 src/qemu/qemu_command.c       | 18 ++++++++++++++----
 src/qemu/qemu_domain.c        | 14 ++++++++------
 src/qemu/qemu_hotplug.c       | 17 ++++++++++++-----
 src/qemu/qemu_parse_command.c |  4 +---
 src/qemu/qemu_process.c       | 14 +++++++++-----
 5 files changed, 44 insertions(+), 23 deletions(-)

-- 
2.14.3

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]
  Powered by Linux