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)
commit92176a8ede577d0ff78ab3298e06701f67ad5f51
tree240705f00a071112c8738b680e499c2c8537d1d5
parent196f20ca52e8c7281932663c348fa54b82d03914
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