]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
x86/shadow: Rework trace_shadow_gen() into sh_trace_va()
authorAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 22 May 2024 12:51:43 +0000 (13:51 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Mon, 24 Jun 2024 15:22:59 +0000 (16:22 +0100)
commit2e9f8a734e3dd2b6abccea325dd5e854a3670dec
tree52b27a72b55d824f678b4852473867829d992a96
parentba52b3b624e4a1a976908552364eba924ca45430
x86/shadow: Rework trace_shadow_gen() into sh_trace_va()

The ((GUEST_PAGING_LEVELS - 2) << 8) expression in the event field is common
to all shadow trace events, so introduce sh_trace() as a very thin wrapper
around trace().

Then, rename trace_shadow_gen() to sh_trace_va() to better describe what it is
doing, and to be more consistent with later cleanup.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Release-Acked-By: Oleksii Kurochko <oleksii.kurochko@gmail.com>
xen/arch/x86/mm/shadow/multi.c