Skip to content

Commit 2c46d2a

Browse files
joergroedelavikivity
authored andcommitted
KVM: SVM: Advance instruction pointer in dr_intercept
In the dr_intercept function a new cpu-feature called decode-assists is implemented and used when available. This code-path does not advance the guest-rip causing the guest to dead-loop over mov-dr instructions. This is fixed by this patch. Signed-off-by: Joerg Roedel <joerg.roedel@amd.com> Signed-off-by: Avi Kivity <avi@redhat.com>
1 parent a0dc00b commit 2c46d2a

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎arch/x86/kvm/svm.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2777,6 +2777,8 @@ static int dr_interception(struct vcpu_svm *svm)
27772777
kvm_register_write(&svm->vcpu, reg, val);
27782778
}
27792779

2780+
skip_emulated_instruction(&svm->vcpu);
2781+
27802782
return 1;
27812783
}
27822784

0 commit comments

Comments
 (0)