x86/kvm: Make steal_time visible
authorAndi Kleen <ak@linux.intel.com>
Sat, 30 Mar 2019 00:47:42 +0000 (17:47 -0700)
committerThomas Gleixner <tglx@linutronix.de>
Fri, 19 Apr 2019 15:58:57 +0000 (17:58 +0200)
This per cpu variable is accessed from assembler code, so it needs
to be visible for LTO.

Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Cc: pbonzini@redhat.com
Link: https://lkml.kernel.org/r/20190330004743.29541-8-andi@firstfloor.org
arch/x86/kernel/kvm.c

index 5c93a65ee1e5c2ec56e83eda147bc1bc31e159cd..3f0cc828cc364fd039f452dc32b4317ed73a6131 100644 (file)
@@ -67,7 +67,7 @@ static int __init parse_no_stealacc(char *arg)
 early_param("no-steal-acc", parse_no_stealacc);
 
 static DEFINE_PER_CPU_DECRYPTED(struct kvm_vcpu_pv_apf_data, apf_reason) __aligned(64);
-static DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64);
+DEFINE_PER_CPU_DECRYPTED(struct kvm_steal_time, steal_time) __aligned(64) __visible;
 static int has_steal_clock = 0;
 
 /*