]> xenbits.xensource.com Git - xen.git/commitdiff
x86: don't enable XPTI on idle domain
authorJan Beulich <jbeulich@suse.com>
Wed, 30 May 2018 11:38:03 +0000 (13:38 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 May 2018 11:38:03 +0000 (13:38 +0200)
While the involved code (in pv_domain_initialise()) sits behind an
!is_idle_domain() check already in 4.10, we need to add one here.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/domain.c

index 3fa8fc481131bbd1422466906f4ae895a24f7e59..0eb377a2f288258751194603ed7e7226e02da770 100644 (file)
@@ -742,7 +742,7 @@ int arch_domain_create(struct domain *d, unsigned int domcr_flags,
         if ( (rc = hvm_domain_initialise(d)) != 0 )
             goto fail;
     }
-    else
+    else if ( !is_idle_domain(d) )
     {
         /* 64-bit PV guest by default. */
         d->arch.is_32bit_pv = d->arch.has_32bit_shinfo = 0;