Re: [PATCH v2 1/5] KVM: Add arch specific interfaces for sampling guest callchains

From: Tianyi Liu
Date: Sun Oct 08 2023 - 23:20:46 EST


> All warnings (new ones prefixed by >>):
>
> arch/x86/kvm/x86.c: In function 'kvm_arch_vcpu_read_virt':
> >> arch/x86/kvm/x86.c:12917:42: warning: passing argument 2 of 'kvm_read_guest_virt' makes integer from pointer without a cast [-Wint-conversion]
> 12917 | return kvm_read_guest_virt(vcpu, addr, dest, length, &e) == X86EMUL_CONTINUE;
> | ^~~~
> | |
> | void *
> arch/x86/kvm/x86.c:7388:38: note: expected 'gva_t' {aka 'long unsigned int'} but argument is of type 'void *'
> 7388 | gva_t addr, void *val, unsigned int bytes,
> | ~~~~~~^~~~
>

Terribly sorry for the build warnings, which is caused by type casting.
Will be fixed in the next version.