]> git.baikalelectronics.ru Git - kernel.git/commit
x86/paravirt: Fix build PARAVIRT_XXL=y without XEN_PV
authorKirill A. Shutemov <kirill@shutemov.name>
Tue, 30 Nov 2021 18:55:32 +0000 (21:55 +0300)
committerDave Hansen <dave.hansen@linux.intel.com>
Tue, 30 Nov 2021 21:50:26 +0000 (13:50 -0800)
commit928b7f88e27ffe20d12ba0e705cb18e5811593c6
treef573adf4aca73da500b1c7b698aedfc07be9969a
parentb1a885c0f40e89a4fd0f041736592b4ab46bfe8a
x86/paravirt: Fix build PARAVIRT_XXL=y without XEN_PV

Kernel fails to compile with PARAVIRT_XXL=y if XEN_PV is not enabled:

ld.lld: error: undefined symbol: xen_iret

It happens because INTERRUPT_RETURN defined to use xen_iret if
CONFIG_PARAVIRT_XXL enabled regardless of CONFIG_XEN_PV.

The issue is not visible in the current kernel because CONFIG_XEN_PV is
the only user of CONFIG_PARAVIRT_XXL and there's no way to enable them
separately.

Rework code to define INTERRUPT_RETURN based on CONFIG_XEN_PV, not
CONFIG_PARAVIRT_XXL.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Signed-off-by: Dave Hansen <dave.hansen@linux.intel.com>
Reviewed-by: Juergen Gross <jgross@suse.com>
Link: https://lkml.kernel.org/r/20211130185533.32658-1-kirill.shutemov@linux.intel.com
arch/x86/include/asm/irqflags.h
arch/x86/include/asm/paravirt.h