提交 ff47a49b 编写于 作者: J Joerg Roedel 提交者: Avi Kivity

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: NJoerg Roedel <joerg.roedel@amd.com>
Signed-off-by: NAvi Kivity <avi@redhat.com>
上级 ce7ddec4
...@@ -1651,6 +1651,7 @@ static int nested_svm_exit_special(struct vcpu_svm *svm) ...@@ -1651,6 +1651,7 @@ static int nested_svm_exit_special(struct vcpu_svm *svm)
switch (exit_code) { switch (exit_code) {
case SVM_EXIT_INTR: case SVM_EXIT_INTR:
case SVM_EXIT_NMI: case SVM_EXIT_NMI:
case SVM_EXIT_EXCP_BASE + MC_VECTOR:
return NESTED_EXIT_HOST; return NESTED_EXIT_HOST;
case SVM_EXIT_NPF: case SVM_EXIT_NPF:
/* For now we are always handling NPFs when using them */ /* For now we are always handling NPFs when using them */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册