KVM: SVM: Don't strip the C-bit from CR2 on #PF interception
authorSean Christopherson <seanjc@google.com>
Fri, 5 Mar 2021 01:10:56 +0000 (17:10 -0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 15 Mar 2021 08:42:26 +0000 (04:42 -0400)
commit6d1b867d045699d6ce0dfa0ef35d1b87dd36db56
treec2f5b471bfb1227d84b0cbf1089682c0e6fbfb34
parent73ad160693dc3baf230d76cf44c3207defad6e21
KVM: SVM: Don't strip the C-bit from CR2 on #PF interception

Don't strip the C-bit from the faulting address on an intercepted #PF,
the address is a virtual address, not a physical address.

Fixes: 0ede79e13224 ("KVM: SVM: Clear C-bit from the page fault address")
Cc: stable@vger.kernel.org
Cc: Brijesh Singh <brijesh.singh@amd.com>
Cc: Tom Lendacky <thomas.lendacky@amd.com>
Signed-off-by: Sean Christopherson <seanjc@google.com>
Message-Id: <20210305011101.3597423-13-seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/svm/svm.c