From: Wei Liu Date: Thu, 8 Nov 2018 14:52:03 +0000 (+0000) Subject: x86/amd: don't set pv_post_outb_hook when !CONFIG_PV X-Git-Tag: archive/raspbian/4.14.0+80-gd101b417b7-1+rpi1^2~63^2~3028 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=20c076d13b50e6d968a25ae51278054b6aa2fd08;p=xen.git x86/amd: don't set pv_post_outb_hook when !CONFIG_PV Obviously it won't exist when PV is disabled. Signed-off-by: Wei Liu Acked-by: Andrew Cooper Reviewed-by: Roger Pau Monné --- diff --git a/xen/arch/x86/cpu/amd.c b/xen/arch/x86/cpu/amd.c index 8895c25682..e1fc88bdcf 100644 --- a/xen/arch/x86/cpu/amd.c +++ b/xen/arch/x86/cpu/amd.c @@ -631,7 +631,9 @@ static void init_amd(struct cpuinfo_x86 *c) case 0xf ... 0x17: disable_c1e(NULL); if (acpi_smi_cmd && (acpi_enable_value | acpi_disable_value)) { +#ifdef CONFIG_PV pv_post_outb_hook = amd_check_disable_c1e; +#endif amd_acpi_c1e_quirk = true; } break;