]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/commitdiff
add include for queue-4.9/kvm-x86-protect-dr-based-index-computations-from-spectre...
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:15:04 +0000 (16:15 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 14 Feb 2020 21:15:04 +0000 (16:15 -0500)
queue-4.9/kvm-x86-protect-dr-based-index-computations-from-spectre-v1-l1tf-attacks.patch

index e029ba34c06a9e38abae35e03e6815f785caab1d..5b9148e3ea0eb174e43b15f224b91cd5ee0a18b4 100644 (file)
@@ -24,12 +24,20 @@ Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
 
 ---
- arch/x86/kvm/x86.c |    ++++++--
- 1 file changed, 6 insertions(+), 2 deletions(-)
+ arch/x86/kvm/x86.c |    9 +++++++--
+ 1 file changed, 7 insertions(+), 2 deletions(-)
 
 --- a/arch/x86/kvm/x86.c
 +++ b/arch/x86/kvm/x86.c
-@@ -889,9 +889,11 @@ static u64 kvm_dr6_fixed(struct kvm_vcpu
+@@ -54,6 +54,7 @@
+ #include <linux/pvclock_gtod.h>
+ #include <linux/kvm_irqfd.h>
+ #include <linux/irqbypass.h>
++#include <linux/nospec.h>
+ #include <trace/events/kvm.h>
+ #include <asm/debugreg.h>
+@@ -889,9 +890,11 @@ static u64 kvm_dr6_fixed(struct kvm_vcpu
  
  static int __kvm_set_dr(struct kvm_vcpu *vcpu, int dr, unsigned long val)
  {
@@ -42,7 +50,7 @@ Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
                if (!(vcpu->guest_debug & KVM_GUESTDBG_USE_HW_BP))
                        vcpu->arch.eff_db[dr] = val;
                break;
-@@ -928,9 +930,11 @@ EXPORT_SYMBOL_GPL(kvm_set_dr);
+@@ -928,9 +931,11 @@ EXPORT_SYMBOL_GPL(kvm_set_dr);
  
  int kvm_get_dr(struct kvm_vcpu *vcpu, int dr, unsigned long *val)
  {