x86/paging: replace most mfn_valid() in log-dirty handling
authorJan Beulich <jbeulich@suse.com>
Wed, 12 Jan 2022 07:54:20 +0000 (08:54 +0100)
committerJan Beulich <jbeulich@suse.com>
Wed, 12 Jan 2022 07:54:20 +0000 (08:54 +0100)
commit77a69c2dc72f0ab2cbd84f4e6e3a9420ec92b997
tree8ac4cb0afbbbede4b84e0d91d8c47be52661384e
parentdc773e0e8997f10c4d369f9b60bc529a05de0b79
x86/paging: replace most mfn_valid() in log-dirty handling

Top level table and intermediate table entries get explicitly set to
INVALID_MFN when un-allocated. There's therefore no need to use the more
expensive mfn_valid() when checking for that sentinel.

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