Re: kvm: x86-32 fails to link with tdp_mmu

From: Sean Christopherson
Date: Fri Oct 23 2020 - 23:04:24 EST


On Fri, Oct 23, 2020 at 07:17:54PM -0700, Sean Christopherson wrote:
> On Fri, Oct 23, 2020 at 09:13:21PM -0500, Daniel Díaz wrote:
> > Hello!
> >
> > We found the following problem building torvalds/master, which
> > recently merged the for-linus tag from the KVM tree, when building
> > with gcc 7.3.0 and glibc 2.27 for x86 32-bits under OpenEmbedded:
> >
> > | LD vmlinux.o
> > | MODPOST vmlinux.symvers
> > | MODINFO modules.builtin.modinfo
> > | GEN modules.builtin
> > | LD .tmp_vmlinux.kallsyms1
> > | arch/x86/kvm/mmu/tdp_mmu.o: In function `__handle_changed_spte':
> > | tdp_mmu.c:(.text+0x78a): undefined reference to `__umoddi3'
>
> The problem is a % on a 64-bit value. Patches incoming, there's also a goof
> in similar code that was tweaked last minute to avoid the %.

Just the one patch actually, I misread some cleverness. Patch still inbound...