]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit0b28b60b3588fb41ec561ac468f1caab02b885e8
tree4e2ec85ff33c9c1e7245e83ed8e4fa3791007ef7
parent85aa0e590eeb3d2dd80928832478cfabbc18fd4d
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