]> git.ipfire.org Git - thirdparty/libvirt.git/commit
conf: Don't store vcpusched orthogonally to other vcpu info
authorPeter Krempa <pkrempa@redhat.com>
Tue, 12 Jan 2016 12:12:05 +0000 (13:12 +0100)
committerPeter Krempa <pkrempa@redhat.com>
Mon, 8 Feb 2016 08:51:34 +0000 (09:51 +0100)
commit99c5fe0e7c26c08103415248ffef1f5acb81ddc7
treeb36d31fb7a73b5417c04e44e1efaf8bcfc2de5df
parente1fa2571c5e8edabb25debc4f0fa4278d0c7b22c
conf: Don't store vcpusched orthogonally to other vcpu info

Due to bad design the vcpu sched element is orthogonal to the way how
the data belongs to the corresponding objects. Now that vcpus are a
struct that allow to store other info too, let's convert the data to the
sane structure.

The helpers for the conversion are made universal so that they can be
reused for iothreads too.

This patch also resolves https://bugzilla.redhat.com/show_bug.cgi?id=1235180
since with the correct storage approach you can't have dangling data.
src/conf/domain_conf.c
src/conf/domain_conf.h
src/qemu/qemu_driver.c
src/qemu/qemu_process.c