]> xenbits.xensource.com Git - xen.git/commitdiff
x86/shadow: correct shadow_vcpu_init()'s comment
authorJan Beulich <jbeulich@suse.com>
Thu, 25 Apr 2024 07:54:28 +0000 (09:54 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 25 Apr 2024 07:54:28 +0000 (09:54 +0200)
As of the commit referenced below the update_paging_modes() hook is per-
domain and hence also set (already) during domain construction.

Fixes: d0816a9085b5 ("x86/paging: move update_paging_modes() hook")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm/shadow/common.c

index 8aa7b698f879075d866c43d77cb82eef4f1065a5..f93f0a49877bd082da299d10d0e94cc2836e076c 100644 (file)
@@ -99,11 +99,12 @@ int shadow_domain_init(struct domain *d)
     return 0;
 }
 
-/* Setup the shadow-specfic parts of a vcpu struct. Note: The most important
- * job is to initialize the update_paging_modes() function pointer, which is
- * used to initialized the rest of resources. Therefore, it really does not
- * matter to have v->arch.paging.mode pointing to any mode, as long as it can
- * be compiled.
+/*
+ * Setup the shadow-specific parts of a vcpu struct. Note: The
+ * update_paging_modes() function pointer, which is used to initialize other
+ * resources, was already set during domain creation. Therefore it really does
+ * not matter to have v->arch.paging.mode pointing to any (legitimate) mode,
+ * as long as it can be compiled.
  */
 void shadow_vcpu_init(struct vcpu *v)
 {