KVM: Remove unnecessary divide operations
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 1 Jul 2010 14:00:11 +0000 (16:00 +0200)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:47:30 +0000 (10:47 +0300)
commit828554136bbacae6e39fc31b9cd7e7c660ad7530
tree4e2ec85ff33c9c1e7245e83ed8e4fa3791007ef7
parent95c87e2b4460a488ec7ce42f273893e410ab385a
KVM: Remove unnecessary divide operations

This patch converts unnecessary divide and modulo operations
in the KVM large page related code into logical operations.
This allows to convert gfn_t to u64 while not breaking 32
bit builds.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/ia64/include/asm/kvm_host.h
arch/powerpc/include/asm/kvm_host.h
arch/s390/include/asm/kvm_host.h
arch/x86/include/asm/kvm_host.h
arch/x86/kvm/mmu.c
virt/kvm/kvm_main.c