KVM: arm/arm64: Fix bug in advertising KVM_CAP_MSI_DEVID capability
authorShanker Donthineni <shankerd@codeaurora.org>
Sat, 8 Jul 2017 13:48:30 +0000 (08:48 -0500)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 25 Jul 2017 13:17:34 +0000 (14:17 +0100)
commit79962a5c8ba5b33f49d88a058e2124bf2ff3c034
tree337b07fe43f72c694ab74768a259fcf71ac9d4a5
parent5771a8c08880cdca3bfb4a3fc6d309d6bba20877
KVM: arm/arm64: Fix bug in advertising KVM_CAP_MSI_DEVID capability

Commit 0e4e82f154e3 ("KVM: arm64: vgic-its: Enable ITS emulation as
a virtual MSI controller") tried to advertise KVM_CAP_MSI_DEVID, but
the code logic was not updating the dist->msis_require_devid field
correctly. If hypervisor tool creates the ITS device after VGIC
initialization then we don't advertise KVM_CAP_MSI_DEVID capability.

Update the field msis_require_devid to true inside vgic_its_create()
to fix the issue.

Fixes: 0e4e82f154e3 ("vgic-its: Enable ITS emulation as a virtual MSI controller")
Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
virt/kvm/arm/vgic/vgic-init.c
virt/kvm/arm/vgic/vgic-its.c