]> 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)
commit78c7d453b0c157a6f965b6afc3bb1e1ed9a09d18
tree1774043ecb1aee3e5b6029f4061130c9500d20c1
parent89ba6bf8e8b105543c18e461e2f7ada9dc441c26
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