]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: MMU: prepare to support mapping of VM_IO and VM_PFNMAP frames
authorPaolo Bonzini <pbonzini@redhat.com>
Tue, 7 Jun 2016 14:22:47 +0000 (16:22 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 5 Jul 2016 12:41:03 +0000 (14:41 +0200)
commit6896f9b284c91a88091d571ef3b2e0f4e24a483c
tree240705f00a071112c8738b680e499c2c8537d1d5
parent537c59f90b845b13ff815674805022fd63edd6de
KVM: MMU: prepare to support mapping of VM_IO and VM_PFNMAP frames

Handle VM_IO like VM_PFNMAP, as is common in the rest of Linux; extract
the formula to convert hva->pfn into a new function, which will soon
gain more capabilities.

Cc: Xiao Guangrong <guangrong.xiao@linux.intel.com>
Cc: Andrea Arcangeli <aarcange@redhat.com>
Cc: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
virt/kvm/kvm_main.c