x86/shadow: suppress "fast fault path" optimization when running virtualized
authorJan Beulich <jbeulich@suse.com>
Mon, 8 Mar 2021 09:41:50 +0000 (10:41 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 8 Mar 2021 09:41:50 +0000 (10:41 +0100)
commit60c0444fae2148452f9ed0b7c49af1fa41f8f522
treee3d9d305008f3b2635e6fbd78c60068ad0b983d3
parent51972482f77b68ef494c8b9591b125460e7984b9
x86/shadow: suppress "fast fault path" optimization when running virtualized

We can't make correctness of our own behavior dependent upon a
hypervisor underneath us correctly telling us the true physical address
with hardware uses. Without knowing this, we can't be certain reserved
bit faults can actually be observed. Therefore, besides evaluating the
number of address bits when deciding whether to use the optimization,
also check whether we're running virtualized ourselves. (Note that since
we may get migrated when running virtualized, the number of address bits
may also change.)

Requested-by: Andrew Cooper <andrew.cooper3@citrix.com>
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Release-Acked-by: Ian Jackson <iwj@xenproject.org>
xen/arch/x86/mm/shadow/types.h