This patch adds a new driver xm_internal.c which manages inactive domains
whose config files are found in /etc/xen. On certain operations the driver
will scan /etc/xen for new domains - the scanning is throttled to only
occur at most every 10 seconds. When scanning any new domains are loaded
into memory, and any domains deleted off disk are removed. This driver can
start new domains, define domains, get/set memory, max memory, vcpus, can
dump XML, and list inactive domains. The list of inactive domains is
filtered to remove any domains which are running.
This driver is still work in progress. There is more work needed to report
error exact conditions via libvirt error APIs, and the code for serializing
from XML -> XM config file is not yet complete. The code for serializing
from XM config files into XML is pretty much complete although needs more
testing. All the APIs can be tested via the commands added to virsh for
inactive domains last week. eg list --inactive, start, define, undefine
I'll post another update of this patch tomorrow which should be more complete
Dan.
--
|=- Red Hat, Engineering, Emerging Technologies, Boston. +1 978 392 2496 -=|
|=- Perl modules:
http://search.cpan.org/~danberr/ -=|
|=- Projects:
http://freshmeat.net/~danielpb/ -=|
|=- GnuPG: 7D3B9505 F3C9 553F A1DA 4AC2 5648 23C1 B3DF F742 7D3B 9505 -=|