common/domain: do not rely on the assumption that guest_type_pv has the value 0
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 28 May 2014 07:51:46 +0000 (09:51 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 28 May 2014 07:51:46 +0000 (09:51 +0200)
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/common/domain.c

index dc1813915d298fe27b3519f598dee4311f665df8..bc57174ba19fde7ad5aa13ddb660a6ac8e07fab0 100644 (file)
@@ -286,6 +286,8 @@ struct domain *domain_create(
         d->guest_type = guest_type_hvm;
     else if ( domcr_flags & DOMCRF_pvh )
         d->guest_type = guest_type_pvh;
+    else
+        d->guest_type = guest_type_pv;
 
     if ( domid == 0 || domid == hardware_domid )
     {