]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: kvm_io_bus: Add kvm_io_bus_get_dev() call
authorAndre Przywara <andre.przywara@arm.com>
Fri, 15 Jul 2016 11:43:26 +0000 (12:43 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 18 Jul 2016 17:10:40 +0000 (18:10 +0100)
commit993300b7f12042173bc200ce647a49f0e0bdb636
tree8c480a938d0eea48c798c2ddeaa08c2e83d5a047
parent3d2f707eecf3dd823202376ac59816a9a0c27f35
KVM: kvm_io_bus: Add kvm_io_bus_get_dev() call

The kvm_io_bus framework is a nice place of holding information about
various MMIO regions for kernel emulated devices.
Add a call to retrieve the kvm_io_device structure which is associated
with a certain MMIO address. This avoids to duplicate kvm_io_bus'
knowledge of MMIO regions without having to fake MMIO calls if a user
needs the device a certain MMIO address belongs to.
This will be used by the ITS emulation to get the associated ITS device
when someone triggers an MSI via an ioctl from userspace.

Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Paolo Bonzini <pbonzini@redhat.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
include/linux/kvm_host.h
virt/kvm/kvm_main.c