x86/shadow: un-hide "full" auditing code
authorJan Beulich <jbeulich@suse.com>
Wed, 21 Nov 2018 09:53:14 +0000 (10:53 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 21 Nov 2018 09:53:14 +0000 (10:53 +0100)
commitf92212e1354cafb2cee741af653f12e273783cbf
treed0127c5f73f93db615cde5a9b3e44b02fd9268c5
parent2276da0db9b0f111e1a8f41dd707c6bd1dea9a7d
x86/shadow: un-hide "full" auditing code

In particular sh_oos_audit() has become stale due to changes elsewhere,
and the need for adjustment was not noticed because both "full audit"
flags are off in both release and debug builds. Switch away from pre-
processor conditionals, thus exposing the code to the compiler at all
times. This obviously requires correcting the accumulated issues with
the so far hidden code.

Note that shadow_audit_tables() now also gains an effect with "full
entry audit" mode disabled; the prior code structure suggests that this
was originally intended anyway.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
xen/arch/x86/mm/shadow/common.c
xen/arch/x86/mm/shadow/private.h