Re: [PATCH v2 3/8] KVM: x86: set/get_events ioctl should consider only injected exceptions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux