[xen staging] x86/amd: don't set pv_post_outb_hook when !CONFIG_PV

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[xen staging] x86/amd: don't set pv_post_outb_hook when !CONFIG_PV

patchbot
commit 20c076d13b50e6d968a25ae51278054b6aa2fd08
Author:     Wei Liu <[hidden email]>
AuthorDate: Thu Nov 8 14:52:03 2018 +0000
Commit:     Wei Liu <[hidden email]>
CommitDate: Thu Nov 8 16:40:20 2018 +0000

    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 <[hidden email]>
    Acked-by: Andrew Cooper <[hidden email]>
    Reviewed-by: Roger Pau Monné <[hidden email]>
---
 xen/arch/x86/cpu/amd.c | 2 ++
 1 file changed, 2 insertions(+)

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;
--
generated by git-patchbot for /home/xen/git/xen.git#staging


_______________________________________________
Xen-changelog mailing list
[hidden email]
https://lists.xenproject.org/xen-changelog