diff options
author | Andi Kleen <ak@linux.intel.com> | 2019-03-30 01:47:42 +0100 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2019-04-19 17:58:57 +0200 |
commit | 14e581c381b942ce5463a7e61326d8ce1c843be7 (patch) | |
tree | 59b0c7f713ba7bb6c2835d61cb717bda84571a2e /arch/x86/kernel/kvm.c | |
parent | x86/hyperv: Make hv_vcpu_is_preempted() visible (diff) | |
download | linux-14e581c381b942ce5463a7e61326d8ce1c843be7.tar.xz linux-14e581c381b942ce5463a7e61326d8ce1c843be7.zip |
x86/kvm: Make steal_time visible
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
Diffstat (limited to 'arch/x86/kernel/kvm.c')
-rw-r--r-- | arch/x86/kernel/kvm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/kernel/kvm.c b/arch/x86/kernel/kvm.c index 5c93a65ee1e5..3f0cc828cc36 100644 --- a/arch/x86/kernel/kvm.c +++ b/arch/x86/kernel/kvm.c @@ -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; /* |