common/domain: Do not rely on the assumption that guest_type_pv has the value 0
PATCH 1/1 common/domain: Do not rely on the assumption that guest_type_pv has the value 0
Signed-off-by Andrew Cooper <[email protected]>
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
@@ -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