Re: What's the difference between EPT_MISCONFIG and EPT_VIOLATION?

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

 




On 03/12/2014 11:12, Zhang Haoyu wrote:
>> > EXIT_REASON_EPT_VIOLATION is similar to a "page not present" pagefault
>> > EXIT_REASON_EPT_MISCONFIG is similar to a "reserved bit set" pagefault.
>> > handle_ept_misconfig() handles mmio pagefault because KVM has an
>> > optimization that uses reserved bits to mark mmio regions.
>> >
> Thanks, Gleb, 
> where does kvm use the reserved bits to mark mmio regions?

ept_set_mmio_spte_mask is where KVM tells mmu.c how to mark MMIO
regions.  You can search mmu.c for shadow_mmio_mask and is_mmio_spte in
order to find out more about this optimization, you'll also get to the
mark_mmio_spte function that Gleb mentioned.

Paolo
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[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