Dong, Eddie wrote: >> What I mean is we pre-load 2 pages where the stack are in, the >> logic may >> be: >> >> If (real mode) >> get 2 pages. >> enter critical path >> .... >> VM Resume. >> put these 2 pages. >> handle VM Exit normally. >> >> >> > With 2nd thinking, We can cache these 2 pages. Something like: > if (real mode) > cache_2_pages (ss:esp) > enter critical path. > > In cache_2_pages, old cache can be invalidated (put to user pages), new > pages are loaded (get user page) to avoid SW irq injection page fault. > When switch from real mode to protect mode, invalidate the page cache. > >
I prefer the first one. Indefinitely holding on to pages is not good, we may want to remove those pages for swapping or page migration. -- error compiling committee.c: too many arguments to function ------------------------------------------------------------------------- SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4 _______________________________________________ kvm-devel mailing list kvm-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/kvm-devel