On 23/11/2017 19:45, Liran Alon wrote: > 3. Use kvm_vcpu_events.reserved[0] and kvm_vcpu_events.reserved[1] for > exception_extra_info which will be either CR2 for #PF or DR6 for #DB. > 4. Add to kvm_queued_exception() a u64 exception_extra_info that will > either be CR2 for #PF or DR6 for #DB. Make sure that these will be set > on relevant places and filled to vcpu.arch.cr2/VMCS only on > inject_pending_event() injection of a pending exception. An aside: just to complicate things a bit, AMD overwrites the actual DR6 (and thus the "guest" DR6) even if you intercept the #DB vmexit. Paolo