aboutsummaryrefslogtreecommitdiff
path: root/arch/x86/kvm/x86.h
diff options
context:
space:
mode:
authorGravatar Babu Moger <babu.moger@amd.com> 2020-09-11 14:29:05 -0500
committerGravatar Paolo Bonzini <pbonzini@redhat.com> 2020-09-28 07:57:16 -0400
commit3f3393b3ce383600fc7255f5ec04385209b6f404 (patch)
tree2d93f69c82e62c8d35343accbdf2e37ed51f0d34 /arch/x86/kvm/x86.h
parentKVM: SVM: Remove set_cr_intercept, clr_cr_intercept and is_cr_intercept (diff)
downloadlinux-3f3393b3ce383600fc7255f5ec04385209b6f404.tar.gz
linux-3f3393b3ce383600fc7255f5ec04385209b6f404.tar.bz2
linux-3f3393b3ce383600fc7255f5ec04385209b6f404.zip
KVM: X86: Rename and move the function vmx_handle_memory_failure to x86.c
Handling of kvm_read/write_guest_virt*() errors can be moved to common code. The same code can be used by both VMX and SVM. Signed-off-by: Babu Moger <babu.moger@amd.com> Reviewed-by: Jim Mattson <jmattson@google.com> Message-Id: <159985254493.11252.6603092560732507607.stgit@bmoger-ubuntu> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/x86/kvm/x86.h')
-rw-r--r--arch/x86/kvm/x86.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/x86.h b/arch/x86/kvm/x86.h
index ea20b8bfd5dc..c05a953ad29a 100644
--- a/arch/x86/kvm/x86.h
+++ b/arch/x86/kvm/x86.h
@@ -371,6 +371,8 @@ void kvm_load_host_xsave_state(struct kvm_vcpu *vcpu);
int kvm_spec_ctrl_test_value(u64 value);
int kvm_valid_cr4(struct kvm_vcpu *vcpu, unsigned long cr4);
bool kvm_vcpu_exit_request(struct kvm_vcpu *vcpu);
+int kvm_handle_memory_failure(struct kvm_vcpu *vcpu, int r,
+ struct x86_exception *e);
#define KVM_MSR_RET_INVALID 2