]> git.ipfire.org Git - thirdparty/libvirt.git/commit
Convert Xen domain lifecycle driver methods to use virDomainDefPtr
authorDaniel P. Berrange <berrange@redhat.com>
Wed, 1 May 2013 09:54:30 +0000 (10:54 +0100)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 21 May 2013 15:11:38 +0000 (16:11 +0100)
commitf547c520bf2b82dc4ee57ba3980e3abb5c1869cc
tree98dc5977adac6387ce8914c267a38eb9c525a2d9
parent5ed5783bc7aed3674d2bf092de3cb4d2ff037bbe
Convert Xen domain lifecycle driver methods to use virDomainDefPtr

Introduce use of a virDomainDefPtr in the domain lifecycle
APIs to simplify introduction of ACL security checks.
The virDomainPtr cannot be safely used, since the app
may have supplied mis-matching name/uuid/id fields. eg
the name points to domain X, while the uuid points to
domain Y. Resolving the virDomainPtr to a virDomainDefPtr
ensures a consistent name/uuid/id set.

Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
src/xen/xen_driver.c
src/xen/xend_internal.c
src/xen/xend_internal.h
src/xen/xm_internal.c