Re: [PATCH v3 5/8] KVM: x86/mmu: Add a field to control memslot rmap allocation

From: Paolo Bonzini
Date: Fri May 07 2021 - 04:29:00 EST


On 07/05/21 01:44, Ben Gardon wrote:
struct kvm_vm_stat {
@@ -1853,4 +1859,6 @@ static inline int kvm_cpu_get_apicid(int mps_cpu)

int kvm_cpu_dirty_log_size(void);

+inline bool kvm_memslots_have_rmaps(struct kvm *kvm);
Woops, this shouldn't be marked inline as it creates build problems
for the next patch with some configs.


Possibly stupid (or at least lazy) question: why can't it be a "normal" static inline function?

Paolo