x86: correct comment about alternatives ordering
authorJan Beulich <jbeulich@suse.com>
Thu, 29 Apr 2021 14:04:35 +0000 (16:04 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 29 Apr 2021 14:04:35 +0000 (16:04 +0200)
Unlike Linux, Xen has never (so far) used alternatives patching for
memcpy() or memset(), even less such utilizing multiple alternatives.
Correct the Linux-inherited comment to match reality.

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

index 004e9ede25f36bfead2ab2fe5f9b084cef0fea0e..1cb531c9df8311fb866faa37906912b551cca792 100644 (file)
@@ -194,8 +194,7 @@ static void init_or_livepatch _apply_alternatives(struct alt_instr *start,
     /*
      * The scan order should be from start to end. A later scanned
      * alternative code can overwrite a previous scanned alternative code.
-     * Some kernel functions (e.g. memcpy, memset, etc) use this order to
-     * patch code.
+     * Some code (e.g. ALTERNATIVE_2()) relies on this order of patching.
      *
      * So be careful if you want to change the scan order to any other
      * order.