x86/PV: _PAGE_RW changes may take fast path of mod_l[234]_entry()
authorJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:18:17 +0000 (09:18 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 9 Apr 2021 07:18:17 +0000 (09:18 +0200)
commit64581e5ade68bca185ea8b1be0f50fdcbe39205c
tree6677e7bb55e06e472acbbaff1088802848d57956
parent9689b1acab71adc2bcc07b3e23c141907dd9ecb8
x86/PV: _PAGE_RW changes may take fast path of mod_l[234]_entry()

The only time _PAGE_RW matters when validating an L2 or higher entry is
when a linear page table is tried to be installed (see the comment ahead
of define_get_linear_pagetable()). Therefore when we disallow such at
build time, we can allow _PAGE_RW changes to take the fast paths there.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm.c