[libvirt] [PATCH 2/2] parallels: fix IS_CT macro

Maxim Nestratov mnestratov at parallels.com
Wed Apr 22 19:49:43 UTC 2015


CT stands for containers, i.e. def->os.type should be compared with VIR_DOMAIN_OSTYPE_EXE
rather than VIR_DOMAIN_OSTYPE_HVM

Signed-off-by: Maxim Nestratov <mnestratov at parallels.com>
---
 src/parallels/parallels_utils.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/parallels/parallels_utils.h b/src/parallels/parallels_utils.h
index 5731381..c9cba0f 100644
--- a/src/parallels/parallels_utils.h
+++ b/src/parallels/parallels_utils.h
@@ -37,7 +37,7 @@
     virReportErrorHelper(VIR_FROM_TEST, VIR_ERR_OPERATION_FAILED, __FILE__,    \
                      __FUNCTION__, __LINE__, _("Can't parse prlctl output"))
 
-# define IS_CT(def)  (def->os.type == VIR_DOMAIN_OSTYPE_HVM)
+# define IS_CT(def)  (def->os.type == VIR_DOMAIN_OSTYPE_EXE)
 
 # define parallelsDomNotFoundError(domain)                               \
     do {                                                                 \
-- 
1.7.1




More information about the libvir-list mailing list