Re: [PATCH v2] KVM: x86: Fix guest debug across vcpu INIT reset

2012-09-23 Thread Avi Kivity
On 09/21/2012 06:42 AM, Jan Kiszka wrote: > From: Jan Kiszka > > If we reset a vcpu on INIT, we so far overwrote dr7 as provided by > KVM_SET_GUEST_DEBUG, and we also cleared switch_db_regs unconditionally. > > Fix this by saving the dr7 used for guest debugging and calculating the > effective reg

[PATCH v2] KVM: x86: Fix guest debug across vcpu INIT reset

2012-09-20 Thread Jan Kiszka
From: Jan Kiszka If we reset a vcpu on INIT, we so far overwrote dr7 as provided by KVM_SET_GUEST_DEBUG, and we also cleared switch_db_regs unconditionally. Fix this by saving the dr7 used for guest debugging and calculating the effective register value as well as switch_db_regs on any potential