x86/cpuid: Fix up stale comments
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 14 Jul 2017 15:27:26 +0000 (15:27 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 27 Jun 2018 16:42:32 +0000 (17:42 +0100)
 * There is no legacy path any more.  All static information is retrieved in
   the first pass.
 * d->arch.cpuids[] doesn't exist any more.

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

index beee47d0ed2869c00e95d4191eec2ed2d5ac3ca4..eca1a9a55ba4e77e3b416ec189dfd333cd7d788a 100644 (file)
@@ -701,7 +701,7 @@ void guest_cpuid(const struct vcpu *v, uint32_t leaf,
      * First pass:
      * - Perform max_leaf/subleaf calculations.  Out-of-range leaves return
      *   all zeros, following the AMD model.
-     * - Fill in *res for leaves no longer handled on the legacy path.
+     * - Fill in *res with static data.
      * - Dispatch the virtualised leaves to their respective handlers.
      */
     switch ( leaf )
index 8fbbf3aeb3e62e25188846eb037cb38d3e6693f8..105a576cd89c82b2a75be9fd5960c01f5495a444 100644 (file)
@@ -56,9 +56,8 @@ static int update_domain_cpuid_info(struct domain *d,
     bool call_policy_changed = false; /* Avoid for_each_vcpu() unnecessarily */
 
     /*
-     * Skip update for leaves we don't care about.  This avoids the overhead
-     * of recalculate_cpuid_policy() and making d->arch.cpuids[] needlessly
-     * longer to search.
+     * Skip update for leaves we don't care about, to avoid the overhead of
+     * recalculate_cpuid_policy().
      */
     switch ( ctl->input[0] )
     {