Skip to content

Commit faf6b75

Browse files
Maxim Levitskybonzini
authored andcommitted
KVM: x86: nSVM: don't copy virt_ext from vmcb12
These field correspond to features that we don't expose yet to L2 While currently there are no CVE worthy features in this field, if AMD adds more features to this field, that could allow guest escapes similar to CVE-2021-3653 and CVE-2021-3656. Signed-off-by: Maxim Levitsky <[email protected]> Message-Id: <[email protected]> Cc: [email protected] Signed-off-by: Paolo Bonzini <[email protected]>
1 parent d1cba6c commit faf6b75

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

arch/x86/kvm/svm/nested.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -545,7 +545,6 @@ static void nested_vmcb02_prepare_control(struct vcpu_svm *svm)
545545
(svm->nested.ctl.int_ctl & int_ctl_vmcb12_bits) |
546546
(svm->vmcb01.ptr->control.int_ctl & int_ctl_vmcb01_bits);
547547

548-
svm->vmcb->control.virt_ext = svm->nested.ctl.virt_ext;
549548
svm->vmcb->control.int_vector = svm->nested.ctl.int_vector;
550549
svm->vmcb->control.int_state = svm->nested.ctl.int_state;
551550
svm->vmcb->control.event_inj = svm->nested.ctl.event_inj;

0 commit comments

Comments
 (0)