Re: [PATCH] KVM: VMX: Conditionally reload debug register 6

Avi Kivity
2009-09-01T12:55:02Z

On 09/01/2009 03:32 PM, Jan Kiszka wrote:
> I'm worried about vm-exits that may take precedence over the #db trap.
> If we skip to save/restore dr6 for them, the value that the interception
> handler sees later on will be bogus. Or is this architecturally impossible?
>

I think it's architectually impossible. Debug traps take effect after
the instruction executed, so if we made it to that point, nothing else
can cause the vmexit.

--
error compiling committee.c: too many arguments to function