lkml.org 
[lkml]   [2009]   [Nov]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH 03/11] Handle asynchronous page fault in a PV guest.
On 11/03/2009 04:32 PM, Marcelo Tosatti wrote:
> Any attempt to access the swapped out data will cause a #PF vmexit,
> since the translation is marked as not present. If there's swapin in
> progress, you wait for that swapin, otherwise start swapin and wait.
>
> Its not as efficient as paravirt because you have to wait for a timer
> interrupt and the guest scheduler to decide to taskswitch, but OTOH its
> transparent.
>

With a dyntick guest the timer interrupt will come at the end of the
time slice, likely after the page has been swapped in. That leaves smp
reschedule interrupts and non-dyntick guests.

An advantage is that there is one code path for apf and non-apf.
Another is that interrupts are processed, improving timekeeping and
maybe responsiveness.


--
error compiling committee.c: too many arguments to function



\
 
 \ /
  Last update: 2009-11-03 15:41    [W:0.082 / U:1.304 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site