diff options
| author | Andre Przywara <andre.przywara@arm.com> | 2016-07-15 07:43:38 -0400 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-18 13:14:38 -0400 |
| commit | 0e4e82f154e387969ea7ecd2c8876689fb68f710 (patch) | |
| tree | 684d959f3f33a71e91e5d53a868ba87d45d0e495 /include/kvm | |
| parent | 2891a7dfb6c4a273996f0047660a75e88e3b8690 (diff) | |
KVM: arm64: vgic-its: Enable ITS emulation as a virtual MSI controller
Now that all ITS emulation functionality is in place, we advertise
MSI functionality to userland and also the ITS device to the guest - if
userland has configured that.
Signed-off-by: Andre Przywara <andre.przywara@arm.com>
Reviewed-by: Marc Zyngier <marc.zyngier@arm.com>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/kvm')
| -rw-r--r-- | include/kvm/arm_vgic.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/include/kvm/arm_vgic.h b/include/kvm/arm_vgic.h index a6ca326055cf..4e63a07b9001 100644 --- a/include/kvm/arm_vgic.h +++ b/include/kvm/arm_vgic.h | |||
| @@ -163,6 +163,9 @@ struct vgic_dist { | |||
| 163 | /* vGIC model the kernel emulates for the guest (GICv2 or GICv3) */ | 163 | /* vGIC model the kernel emulates for the guest (GICv2 or GICv3) */ |
| 164 | u32 vgic_model; | 164 | u32 vgic_model; |
| 165 | 165 | ||
| 166 | /* Do injected MSIs require an additional device ID? */ | ||
| 167 | bool msis_require_devid; | ||
| 168 | |||
| 166 | int nr_spis; | 169 | int nr_spis; |
| 167 | 170 | ||
| 168 | /* TODO: Consider moving to global state */ | 171 | /* TODO: Consider moving to global state */ |
| @@ -308,4 +311,6 @@ static inline int kvm_vgic_get_max_vcpus(void) | |||
| 308 | return kvm_vgic_global_state.max_gic_vcpus; | 311 | return kvm_vgic_global_state.max_gic_vcpus; |
| 309 | } | 312 | } |
| 310 | 313 | ||
| 314 | int kvm_send_userspace_msi(struct kvm *kvm, struct kvm_msi *msi); | ||
| 315 | |||
| 311 | #endif /* __KVM_ARM_VGIC_H */ | 316 | #endif /* __KVM_ARM_VGIC_H */ |
