summaryrefslogtreecommitdiff
path: root/mm
diff options
context:
space:
mode:
authorPaolo Bonzini <pbonzini@redhat.com>2021-02-06 17:53:33 +0300
committerPaolo Bonzini <pbonzini@redhat.com>2021-02-08 22:49:01 +0300
commit897218ff7cf19290ec2d69652ce673d8ed6fedeb (patch)
treee2901b8ab7865dc22205fdd57c173f72279aad19 /mm
parente36b250e502a6145fa95a3d93af83ba66fc6ae1b (diff)
downloadlinux-897218ff7cf19290ec2d69652ce673d8ed6fedeb.tar.xz
KVM: x86: compile out TDP MMU on 32-bit systems
The TDP MMU assumes that it can do atomic accesses to 64-bit PTEs. Rather than just disabling it, compile it out completely so that it is possible to use for example 64-bit xchg. To limit the number of stubs, wrap all accesses to tdp_mmu_enabled or tdp_mmu_page with a function. Calls to all other functions in tdp_mmu.c are eliminated and do not even reach the linker. Reviewed-by: Sean Christopherson <seanjc@google.com> Tested-by: Sean Christopherson <seanjc@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions