Re: [patch 3/5] KVM: add kvm_follow_page()

Avi Kivity
2007-12-24T14:34:39Z

Marcelo Tosatti wrote:

>>>> btw, the call to gfn_to_page() can happen in page_fault() instead of
>>>> walk_addr(); that will reduce the amount of error handling, and will
>>>> simplify the callers to walk_addr() that don't need the page.
>>>>
>>>>
>>> But the gfn in question is only known at walk_addr() time, so thats not
>>> possible.
>>>
>>>
>> It's just walker->gfn; certainly it is known in page_fault().
>>
>
> Oh, you mean to grab walker->gfn before fetch() ?
>
>

Yes.

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