]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-5.0/kvm-nvmx-remove-a-rogue-rax-clobber-from-nested_vmx_check_vmentry_hw.patch
Linux 4.19.41
[thirdparty/kernel/stable-queue.git] / queue-5.0 / kvm-nvmx-remove-a-rogue-rax-clobber-from-nested_vmx_check_vmentry_hw.patch
1 From 9ce0a07a6f49822238fd4357c02e0dba060a43cc Mon Sep 17 00:00:00 2001
2 From: Sean Christopherson <sean.j.christopherson@intel.com>
3 Date: Fri, 25 Jan 2019 07:40:55 -0800
4 Subject: KVM: nVMX: Remove a rogue "rax" clobber from nested_vmx_check_vmentry_hw()
5
6 From: Sean Christopherson <sean.j.christopherson@intel.com>
7
8 commit 9ce0a07a6f49822238fd4357c02e0dba060a43cc upstream.
9
10 RAX is not touched by nested_vmx_check_vmentry_hw(), directly or
11 indirectly (e.g. vmx_vmenter()). Remove it from the clobber list.
12
13 Fixes: 52017608da33 ("KVM: nVMX: add option to perform early consistency checks via H/W")
14 Reviewed-by: Jim Mattson <jmattson@google.com>
15 Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
16 Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19 ---
20 arch/x86/kvm/vmx/nested.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/arch/x86/kvm/vmx/nested.c
24 +++ b/arch/x86/kvm/vmx/nested.c
25 @@ -2793,7 +2793,7 @@ static int nested_vmx_check_vmentry_hw(s
26 [fail]"i"(offsetof(struct vcpu_vmx, fail)),
27 [host_rsp]"i"(offsetof(struct vcpu_vmx, host_rsp)),
28 [wordsize]"i"(sizeof(ulong))
29 - : "rax", "cc", "memory"
30 + : "cc", "memory"
31 );
32
33 preempt_enable();