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

From: Paolo Bonzini
Date: Mon May 10 2021 - 12:34:11 EST


On 10/05/21 18:14, Ben Gardon wrote:
Possibly stupid (or at least lazy) question: why can't it be a "normal"
static inline function?
That was my initial approach (hence the leftover inline) but I got
some warnings about a forward declaration of struct kvm because
arch/x86/include/asm/kvm_host.h doesn't include virt/kvm/kvm_host.h.
Maybe there's a way to fix that, but I didn't want to mess with it.


Let's just use the field directly.

Paolo