From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: [PATCH] common/domain: Do not rely on the assumption that guest_type_pv has the value 0 Date: Mon, 26 May 2014 20:06:12 +0100 Message-ID: <1401131172-30322-1-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Xen-devel Cc: Andrew Cooper , Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org Signed-off-by: Andrew Cooper CC: Keir Fraser CC: Jan Beulich --- xen/common/domain.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/common/domain.c b/xen/common/domain.c index dc18139..bc57174 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 ) { -- 1.7.10.4