Re: [RFC PATCH v8 00/16] Provide a zero-copy method on KVM virtio-net.

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

On 08/02/2010 07:25 PM, Shirley Ma wrote:

No, for xmit getting the page as read only is fine.

I was inaccurate, gup_fast() performs as follows:

- if .write = 1, gup_fast() will be fast if the page is mapped and writeable
- if .write = 0, gup_fast() will be fast if the page is mapped

so, using .write = 0 for the xmit path will be faster in more cases than 
.write = 1.

When are you seeing gup_fast() fall back to gup()?  It should be at most 
once per page (when a guest starts up none of its pages are mapped, it 
faults them in on demand).

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

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

Messages in current thread:
Re: [RFC PATCH v8 00/16] Provide a zero-copy method on KVM ..., Michael S. Tsirkin, (Sun Aug 1, 1:31 am)
Re: [RFC PATCH v8 00/16] Provide a zero-copy method on KVM ..., Avi Kivity, (Mon Aug 2, 9:32 am)