Skip to contentSkip to conversation

common/domain: Do not rely on the assumption that guest_type_pv has the value 0

PATCH New Andrew Cooper 1 participant 1 message May 26, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 common/domain: Do not rely on the assumption that guest_type_pv has the value 0

CC Keir Fraser <[email protected]>
CC Jan Beulich <[email protected]>
---
 xen/common/domain.c |    2 ++
 1 file changed, 2 insertions(+)
xen/common/domain.c +2 -0
index dc18139..bc57174 100644
@@ -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 )
     {
Signature · 1 line
1.7.10.4