lkml.org 
[lkml]   [2021]   [Oct]   [20]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] KVM: cleanup allocation of rmaps and page tracking data
From
On 19/10/21 21:28, Maxim Levitsky wrote:
>> +static inline bool kvm_memslots_have_rmaps(struct kvm *kvm)
>> +{
>> + return !kvm->arch.tdp_mmu_enabled || kvm_shadow_root_alloced(kvm);
>> }
> Note that this breaks 32 bit build - kvm->arch.tdp_mmu_enabled is not defined.

Indeed, the right test is is_tdp_mmu_enabled(kvm).

Paolo

\
 
 \ /
  Last update: 2021-10-20 11:21    [W:0.576 / U:0.460 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site