[Libvirt-cim] [PATCH] Make cleanup_dominfo() handle KVM domains
Kaitlin Rupert
kaitlin at linux.vnet.ibm.com
Mon Jan 14 17:02:43 UTC 2008
Dan Smith wrote:
> # HG changeset patch
> # User Dan Smith <danms at us.ibm.com>
> # Date 1200067187 28800
> # Node ID 4ae48640b6dfaf77c60300aa2f41a3be9395bf83
> # Parent e834b93342a431c9414fbb07c2aa34e28002744d
> Make cleanup_dominfo() handle KVM domains
>
> This avoids the following message in the CIMOM logs:
>
> device_parsing.c(818): Unknown domain type 2
>
> Signed-off-by: Dan Smith <danms at us.ibm.com>
>
> diff -r e834b93342a4 -r 4ae48640b6df libxkutil/device_parsing.c
> --- a/libxkutil/device_parsing.c Fri Jan 11 07:40:28 2008 -0800
> +++ b/libxkutil/device_parsing.c Fri Jan 11 07:59:47 2008 -0800
> @@ -810,7 +810,8 @@ void cleanup_dominfo(struct domain **dom
> free(dom->os_info.pv.kernel);
> free(dom->os_info.pv.initrd);
> free(dom->os_info.pv.cmdline);
> - } else if (dom->type == DOMAIN_XENFV) {
> + } else if ((dom->type == DOMAIN_XENFV) ||
> + (dom->type == DOMAIN_KVM)) {
Good catch. +1
--
Kaitlin Rupert
IBM Linux Technology Center
karupert at us.ibm.com
More information about the Libvirt-cim
mailing list