diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2010-04-22 06:33:14 -0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2010-05-17 05:19:27 -0400 |
commit | ff47a49b235e59e606e1cb267a08f7fbeb5719d1 (patch) | |
tree | bd6f38e3e91e8a68136be2f30b81b43411ad4ab4 /arch/x86/kvm/svm.c | |
parent | ce7ddec4bbbc08f0c2901cc103773aed864b09fd (diff) |
KVM: SVM: Handle MCE intercepts always on host level
This patch prevents MCE intercepts from being propagated
into the L1 guest if they happened in an L2 guest.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kvm/svm.c')
-rw-r--r-- | arch/x86/kvm/svm.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kvm/svm.c b/arch/x86/kvm/svm.c index 30e49fe7f8c0..889f66022e57 100644 --- a/arch/x86/kvm/svm.c +++ b/arch/x86/kvm/svm.c | |||
@@ -1651,6 +1651,7 @@ static int nested_svm_exit_special(struct vcpu_svm *svm) | |||
1651 | switch (exit_code) { | 1651 | switch (exit_code) { |
1652 | case SVM_EXIT_INTR: | 1652 | case SVM_EXIT_INTR: |
1653 | case SVM_EXIT_NMI: | 1653 | case SVM_EXIT_NMI: |
1654 | case SVM_EXIT_EXCP_BASE + MC_VECTOR: | ||
1654 | return NESTED_EXIT_HOST; | 1655 | return NESTED_EXIT_HOST; |
1655 | case SVM_EXIT_NPF: | 1656 | case SVM_EXIT_NPF: |
1656 | /* For now we are always handling NPFs when using them */ | 1657 | /* For now we are always handling NPFs when using them */ |