]> xenbits.xensource.com Git - people/royger/xen.git/commitdiff
x86/shadow: drop zero initialization from shadow_domain_init()
authorJan Beulich <jbeulich@suse.com>
Thu, 16 Mar 2023 13:49:20 +0000 (14:49 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 16 Mar 2023 13:49:20 +0000 (14:49 +0100)
There's no need for this as struct domain starts out zero-filled.

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

index a9260f5711ce092bd75bd937729db16643a5249f..7ad0e538b31d6a9998a4a83e34aec994a2cb6284 100644 (file)
@@ -102,12 +102,8 @@ int shadow_domain_init(struct domain *d)
 
     d->arch.paging.update_paging_modes = shadow_update_paging_modes;
 
-#if (SHADOW_OPTIMIZATIONS & SHOPT_OUT_OF_SYNC)
-    d->arch.paging.shadow.oos_active = 0;
-#endif
 #ifdef CONFIG_HVM
     d->arch.paging.flush_tlb = shadow_flush_tlb;
-    d->arch.paging.shadow.pagetable_dying_op = 0;
 #endif
 
     return 0;