]> 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)
commit0b33439df3069233e0edbea4ca0c0191fcbc50ab
tree240705f00a071112c8738b680e499c2c8537d1d5
parent2eba582595e9227c3dc7e73937c3e61943974e75
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