]> xenbits.xensource.com Git - xen.git/commit
arm/alternatives: Rename alt_instr fields which are used in common code
authorAndrew Cooper <andrew.cooper3@citrix.com>
Sun, 16 Apr 2023 00:10:43 +0000 (01:10 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Tue, 9 Apr 2024 11:56:55 +0000 (12:56 +0100)
commit4f7656fe8ed94d07f7de9a4274cd2a47675fb178
tree792e939a1e5a2607efb56c1d89ee7517598606b7
parent9bc40dbcf9eafccc1923b2555286bf6a2af03b7a
arm/alternatives: Rename alt_instr fields which are used in common code

Alternatives auditing for livepatches is currently broken.  To fix it, the
livepatch code needs to inspect more fields of alt_instr.

Rename ARM's fields to match x86's, because:

 * ARM already exposes alt_offset under the repl name via ALT_REPL_PTR().
 * "alt" is ambiguous in a structure entirely about alternatives already.
 * "repl", being the same width as orig leads to slightly neater code.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
(cherry picked from commit 418cf59c4e29451010d7efb3835b900690d19866)
xen/arch/arm/alternative.c
xen/arch/arm/include/asm/alternative.h