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)
commita1cd3f0883f435e5f9ae6530d7e62b361c87a91a
tree1774043ecb1aee3e5b6029f4061130c9500d20c1
parente4945b9da52b36052b7c509ca31c5ead1d165b24
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