]> git.baikalelectronics.ru Git - kernel.git/commit
kvm: fix previous commit for 32-bit builds
authorPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Jun 2021 05:49:13 +0000 (01:49 -0400)
committerPaolo Bonzini <pbonzini@redhat.com>
Wed, 9 Jun 2021 05:49:13 +0000 (01:49 -0400)
commita1840125a771fb8301eb690a8ee89969f10a7b12
tree4604b6646782e727dc5d16b506d12e282eded269
parentf5b5b68261e034bed6a2ca640546bb514bc0aad6
kvm: fix previous commit for 32-bit builds

array_index_nospec does not work for uint64_t on 32-bit builds.
However, the size of a memory slot must be less than 20 bits wide
on those system, since the memory slot must fit in the user
address space.  So just store it in an unsigned long.

Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
include/linux/kvm_host.h