Re: KVM Page Fault Question

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

 



When a guest OS writes to a shadowed (and therefore page protected) guest page table, does the resulting page fault get handled in paging_tmpl.h:xxx_page_fault or does it call some rmap related code directly? Also, what does the "direct" mmu page role mean?

Thanks!

Marek


Avi Kivity wrote:
On 03/19/2010 01:50 AM, Marek Olszewski wrote:
When using VMX without EPT, is it ever possible for a guest to receive a page fault without it first appearing (and being reinjected) in KVM?

Yes.  On Intel hosts only, and controlled by bypass_guest_pf.

I'm seeing some strange behavior where accesses to mprotected (but yet to be accessed) memory causes a fault in the guest OS, that I cannot see KVM intercepting.


Look for 'shadow_trap_nonpresent_pte' (which will trap into kvm) and 'shadow_notrap_nonpresent_pte' (which will not) in the code.


--
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