]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
xen: replace XENFEAT_auto_translated_physmap with xen_pv_domain()
authorJuergen Gross <jgross@suse.com>
Tue, 26 Aug 2025 14:56:07 +0000 (16:56 +0200)
committerJuergen Gross <jgross@suse.com>
Mon, 8 Sep 2025 15:01:36 +0000 (17:01 +0200)
commit0f4283123fe1e6016296048d0fdcfce615047a13
tree6e073d82ff1cc58b732f97cdb6a543b1618fb47f
parent34c605fe53d49886d2741223b12950a33bdf2acf
xen: replace XENFEAT_auto_translated_physmap with xen_pv_domain()

Instead of testing the XENFEAT_auto_translated_physmap feature, just
use !xen_pv_domain() which is equivalent.

This has the advantage that a kernel not built with CONFIG_XEN_PV
will be smaller due to dead code elimination.

Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Message-ID: <20250826145608.10352-3-jgross@suse.com>
12 files changed:
arch/x86/include/asm/xen/page.h
arch/x86/xen/mmu.c
arch/x86/xen/p2m.c
drivers/xen/balloon.c
drivers/xen/gntdev.c
drivers/xen/grant-table.c
drivers/xen/privcmd.c
drivers/xen/unpopulated-alloc.c
drivers/xen/xenbus/xenbus_client.c
include/xen/grant_table.h
include/xen/mem-reservation.h
include/xen/xen-ops.h