From: Andrew Cooper Date: Wed, 28 May 2014 07:51:46 +0000 (+0200) Subject: common/domain: do not rely on the assumption that guest_type_pv has the value 0 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~4947 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=84c4a1f62b0505026e9846bf707ba3de15109834;p=xen.git common/domain: do not rely on the assumption that guest_type_pv has the value 0 Signed-off-by: Andrew Cooper --- diff --git a/xen/common/domain.c b/xen/common/domain.c index dc1813915d..bc57174ba1 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -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 ) {