Re: [PATCH v5 08/12] Inject asynchronous page fault into a guest if page is swapped out.

Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
From: Avi Kivity
Date: Monday, August 23, 2010 - 9:17 am

On 07/19/2010 06:30 PM, Gleb Natapov wrote:

Please don't add more stats, instead add tracepoints which can be 
converted to stats by userspace.

Would be good to have both guest and host tracepoints.


Ok.  so token is globally unique.  We're limited to 4096 vcpus, I guess 
that's fine.  Wraparound at 1M faults/vcpu, what's the impact?  failure 
if we have 1M faulting processes on one vcpu?

I guess that's fine too.


!! !needed, bool autoconverts.  But > 0 is more readable.


This goto is pretty ugly.  How about:

     async = false;
     if (can_do_async_pf(&async)) {
     }
     if (async && !setup())
           async = false;
     if (async)
           ...

or something.


This repetition is ugly too.


This nice cache needs to be outside apf to reduce complexity for 
reviewers and since it is useful for others.

Would be good to have memslot-cached kvm_put_guest() and kvm_get_guest().


All those #ifdefs can be eliminated with virt/kvm/apf.[ch].


  kvm_apf_init() etc.


100 == too high.  At 16 vcpus, this allows 1600 kernel threads to wait 
for I/O.

Would have been best if we could ask for a page to be paged in 
asynchronously.


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

--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH v5 07/12] Maintain memslot version number, Gleb Natapov, (Mon Jul 19, 8:30 am)
Re: [PATCH v5 07/12] Maintain memslot version number, Avi Kivity, (Mon Aug 23, 8:53 am)
Re: [PATCH v5 08/12] Inject asynchronous page fault into a ..., Avi Kivity, (Mon Aug 23, 9:17 am)