lkml.org 
[lkml]   [2010]   [Nov]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v2 5/6] KVM: MMU: remove 'clear_unsync' parameter
On 11/18/2010 12:49 AM, Marcelo Tosatti wrote:
bool clear_unsync)
>> +static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp)
>> {
>> int i, offset, nr_present;
>> bool host_writable;
>> @@ -781,7 +780,7 @@ static int FNAME(sync_page)(struct kvm_vcpu *vcpu, struct kvm_mmu_page *sp,
>> u64 nonpresent;
>>
>> if (rsvd_bits_set || is_present_gpte(gpte) ||
>> - !clear_unsync)
>> + sp->unsync)
>> nonpresent = shadow_trap_nonpresent_pte;
>> else
>> nonpresent = shadow_notrap_nonpresent_pte;
>
> Its better to keep this explicit as a parameter.
>

But after patch 6 (KVM: MMU: cleanup update_pte, pte_prefetch and sync_page functions),
this parameter is not used anymore... i don't have strong opinion on it :-)


\
 
 \ /
  Last update: 2010-11-18 08:39    [W:0.045 / U:0.524 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site