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)
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>

No differences found