]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: Introduce a 'mmap' method for KVM devices
authorCédric Le Goater <clg@kaod.org>
Thu, 18 Apr 2019 10:39:36 +0000 (12:39 +0200)
committerPaul Mackerras <paulus@ozlabs.org>
Tue, 30 Apr 2019 09:35:16 +0000 (19:35 +1000)
commit4c7bc010cbf1bbf495e253bd112fcbffddfc2b6a
tree1774043ecb1aee3e5b6029f4061130c9500d20c1
parent4bfadb314904f831950a3098669ce86ec4a48d65
KVM: Introduce a 'mmap' method for KVM devices

Some KVM devices will want to handle special mappings related to the
underlying HW. For instance, the XIVE interrupt controller of the
POWER9 processor has MMIO pages for thread interrupt management and
for interrupt source control that need to be exposed to the guest when
the OS has the required support.

Cc: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Paul Mackerras <paulus@ozlabs.org>
include/linux/kvm_host.h
virt/kvm/kvm_main.c