]> exis.tech > repos - linux.git/commit
x86/xen: Guard PV-only stuff in xen-ops.h with CONFIG_XEN_PV
authorJuergen Gross <jgross@suse.com>
Fri, 22 May 2026 15:21:12 +0000 (17:21 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 8 Jun 2026 07:20:12 +0000 (09:20 +0200)
commit41e5f312aec83657ce651c0bf0dd3e2e4879717a
tree460865e80dc1ea32659a10d2479f6a2a2e7ac110
parent77a834c9d9c66a13dcf2e69c4389a41fa23e6c39
x86/xen: Guard PV-only stuff in xen-ops.h with CONFIG_XEN_PV

A lot of arch/x86/xen/xen-ops.h is meant to be for PV only. Guard all
of it with CONFIG_XEN_PV in order to avoid someone misusing it in
non-PV builds. Additionally any 64-bit tests for now guarded items can
be dropped.

Move the enum pt_level definition to mmu_pv.c, as it is used only there.

Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20260522152114.77319-2-jgross@suse.com>
arch/x86/xen/mmu_pv.c
arch/x86/xen/xen-ops.h