On Mon, Nov 22, 2010 at 04:35:33PM -0500, Cole Robinson wrote:
Do this by adding a helper function to get the persistent domain
config. This
should be useful for other functions that may eventually want to alter
the persistent domain config (attach/detach device). Also make similar changes
to the test drivers setvcpus command.
A caveat is that the function will return the running config for a transient
domain, rather than error. This simplifies callers, as long as they use
other methods to ensure the guest is persistent.
Signed-off-by: Cole Robinson <crobinso(a)redhat.com>
---
src/conf/domain_conf.c | 21 +++++++++++++++++++++
src/conf/domain_conf.h | 3 +++
src/libvirt_private.syms | 1 +
src/qemu/qemu_driver.c | 44 +++++++++++++++++---------------------------
src/test/test_driver.c | 39 ++++++++++++---------------------------
5 files changed, 54 insertions(+), 54 deletions(-)
ACK