diff options
author | Shanker Donthineni <shankerd@codeaurora.org> | 2017-07-08 15:48:30 +0200 |
---|---|---|
committer | Marc Zyngier <marc.zyngier@arm.com> | 2017-07-25 15:17:34 +0200 |
commit | 79962a5c8ba5b33f49d88a058e2124bf2ff3c034 (patch) | |
tree | 337b07fe43f72c694ab74768a259fcf71ac9d4a5 /virt/kvm/arm/vgic/vgic-init.c | |
parent | Linux v4.13-rc1 (diff) | |
download | linux-79962a5c8ba5b33f49d88a058e2124bf2ff3c034.tar.xz linux-79962a5c8ba5b33f49d88a058e2124bf2ff3c034.zip |
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>
Diffstat (limited to 'virt/kvm/arm/vgic/vgic-init.c')
-rw-r--r-- | virt/kvm/arm/vgic/vgic-init.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/virt/kvm/arm/vgic/vgic-init.c b/virt/kvm/arm/vgic/vgic-init.c index 3a0b8999f011..5801261f3add 100644 --- a/virt/kvm/arm/vgic/vgic-init.c +++ b/virt/kvm/arm/vgic/vgic-init.c @@ -285,9 +285,6 @@ int vgic_init(struct kvm *kvm) if (ret) goto out; - if (vgic_has_its(kvm)) - dist->msis_require_devid = true; - kvm_for_each_vcpu(i, vcpu, kvm) kvm_vgic_vcpu_enable(vcpu); |