x86/pv: Move segment descriptor infrastructure into PV-only files
authorAndrew Cooper <andrew.cooper3@citrix.com>
Thu, 3 Sep 2020 18:28:15 +0000 (19:28 +0100)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Wed, 9 Sep 2020 16:57:26 +0000 (17:57 +0100)
commit89002866bb6c6f26024f015820c8f52012f95cf2
treeb098189f515394a52c573b16aa9dcc7aff92d9ec
parentba65a2ff688f1eb390b3f91fdfd09d799925f460
x86/pv: Move segment descriptor infrastructure into PV-only files

... so all segment checking/adjustment logic is co-located.

Perform some trivial style cleanup to check_descriptor() as it moves,
converting types, and cleaning up trailing whitespace.

In particular, this means that check_descriptor() is now excluded from
!CONFIG_PV builds.

No functional change.

Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/mm.c
xen/arch/x86/pv/descriptor-tables.c
xen/arch/x86/x86_64/mm.c
xen/include/asm-x86/mm.h
xen/include/asm-x86/pv/mm.h