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