]> 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:37:23 +0000 (13:37 +0200)
committerJan Beulich <jbeulich@suse.com>
Wed, 30 May 2018 11:37:23 +0000 (13:37 +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 3ef7a8489211a9f61e92c34f4a2d691ac3832b04..a3e913b162c517ea542a1f32b08c962dd0e05e5b 100644 (file)
@@ -754,7 +754,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;