[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] why xen use x86_emulat ion() in page_fault
On Tue, Oct 11, 2011 at 7:39 PM, George Dunlap <George.Dunlap@xxxxxxxxxxxxx> wrote:
> 1. In user mode, writes cause a page fault
> another question is that if for some reasons I want to design that the Guest
> PTE is not read-only, which means in the page_fault situation I don't want > xen to emulate, is there any functionability or feasibility problems? > The basic problem is that in shadow mode, changes to the guest's appreciate your explanation so much, that's really detail and helpfull!
but I think for the propagate from GPT to SPT, it's not always need the sync all the time, I know in the early version of xen there is not need to do that, but just the Lazy mode, which means (just what I understand, but not sure):
when guest os modify the GPT, do not emulate (there is no write-protected PTE, so guest can directly modify it)
1) when the access right ascension, the guest OS will INVLPG to shootdown TLB, so hypervisor can catch the INPLPG inst to sync up the SPT/GPT 2) when access right down, when guest OS access this page it will trap to xen, xen will catch #PF to sync up SPT/GPT, have you ever heard of that before, I'm not sure if it is right, what's your opinion?
feel kind and amazed to see the Chinese Pinyin, really feel kind of you:-)
-- - Luit @ Parallel Processing Institute, Fudan University _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |