]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
KVM: Introduce kvm_host_page_size
authorJoerg Roedel <joerg.roedel@amd.com>
Thu, 28 Jan 2010 11:37:56 +0000 (12:37 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:36:08 +0000 (12:36 -0300)
commit8f0b1ab6fb045a1324d9435ba00c2940783b0041
tree34db9f9080cea014150249da16348ed3e3e01fc3
parentc45b4fd416f5497b6b38dd70acc0e5b01399e5c9
KVM: Introduce kvm_host_page_size

This patch introduces a generic function to find out the
host page size for a given gfn. This function is needed by
the kvm iommu code. This patch also simplifies the x86
host_mapping_level function.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
include/linux/kvm_host.h
virt/kvm/kvm_main.c