lkml.org 
[lkml]   [2011]   [Sep]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v3 06/11] KVM: MMU: cleanup FNAME(invlpg)
On 09/13/2011 09:31 PM, Xiao Guangrong wrote:
> >> @@ -675,36 +684,20 @@ static void FNAME(invlpg)(struct kvm_vcpu *vcpu, gva_t gva)
> >>
> >> sp = page_header(__pa(sptep));
> >> if (is_last_spte(*sptep, level)) {
> >> - int offset, shift;
> >> -
> >> if (!sp->unsync)
> >> break;
> >>
> >> - shift = PAGE_SHIFT -
> >> - (PT_LEVEL_BITS - PT64_LEVEL_BITS) * level;
> >> - offset = sp->role.quadrant<< shift;
> >> -
> >> - pte_gpa = (sp->gfn<< PAGE_SHIFT) + offset;
> >> + pte_gpa = FNAME(get_first_pte_gpa)(sp);
> >
> >
> > Here is can be used for L2 - I think we can use 2MB host pages to back 4MB guest mappings.
> >
>
> Only unsync shadow page is fetched here, and its level is always 1.
>

Right.

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



\
 
 \ /
  Last update: 2011-09-14 11:59    [W:0.062 / U:0.288 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site