]> xenbits.xensource.com Git - xen.git/commitdiff
x86/pv: don't populate the GDT/LDT L3 slot at domain creation
authorRoger Pau Monné <roger.pau@citrix.com>
Tue, 26 Nov 2024 10:23:58 +0000 (11:23 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 26 Nov 2024 10:23:58 +0000 (11:23 +0100)
The current code in pv_domain_initialise() populates the L3 slot used for the
GDT/LDT, however that's not needed, since the create_perdomain_mapping() in
pv_create_gdt_ldt_l1tab() will already take care of allocating an L2 and
populating the L3 entry if not present.

No functional change intended.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/pv/domain.c

index d5a8564c1cbe4f6ce13a686c7bf957607be37811..7aef628f55be46a60e501182b68384336f530377 100644 (file)
@@ -376,12 +376,6 @@ int pv_domain_initialise(struct domain *d)
          (d->arch.pv.cpuidmasks = xmemdup(&cpuidmask_defaults)) == NULL )
         goto fail;
 
-    rc = create_perdomain_mapping(d, GDT_LDT_VIRT_START,
-                                  GDT_LDT_MBYTES << (20 - PAGE_SHIFT),
-                                  NULL, NULL);
-    if ( rc )
-        goto fail;
-
     d->arch.ctxt_switch = &pv_csw;
 
     if ( !is_pv_32bit_domain(d) && use_invpcid && cpu_has_pcid )