diff options
| author | Eric Auger <eric.auger@redhat.com> | 2016-07-22 12:20:37 -0400 |
|---|---|---|
| committer | Marc Zyngier <marc.zyngier@arm.com> | 2016-07-22 13:51:49 -0400 |
| commit | 76a10b86785c5e3fc49bcee355502d035b07e47a (patch) | |
| tree | e7f27dfa1b3c6c79a60eab55040be1745ce71903 /include/uapi | |
| parent | 3a88bded203591d4683aacdbb65cd0f549bc58cb (diff) | |
KVM: api: Pass the devid in the msi routing entry
On ARM, the MSI msg (address and data) comes along with
out-of-band device ID information. The device ID encodes the
device that writes the MSI msg. Let's convey the device id in
kvm_irq_routing_msi and use KVM_MSI_VALID_DEVID flag value in
kvm_irq_routing_entry to indicate the msi devid is populated.
Signed-off-by: Eric Auger <eric.auger@redhat.com>
Reviewed-by: Andre Przywara <andre.przywara@arm.com>
Acked-by: Radim Krčmář <rkrcmar@redhat.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Diffstat (limited to 'include/uapi')
| -rw-r--r-- | include/uapi/linux/kvm.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/uapi/linux/kvm.h b/include/uapi/linux/kvm.h index d8c4c324cfae..eb2220895c6e 100644 --- a/include/uapi/linux/kvm.h +++ b/include/uapi/linux/kvm.h | |||
| @@ -879,7 +879,10 @@ struct kvm_irq_routing_msi { | |||
| 879 | __u32 address_lo; | 879 | __u32 address_lo; |
| 880 | __u32 address_hi; | 880 | __u32 address_hi; |
| 881 | __u32 data; | 881 | __u32 data; |
| 882 | __u32 pad; | 882 | union { |
| 883 | __u32 pad; | ||
| 884 | __u32 devid; | ||
| 885 | }; | ||
| 883 | }; | 886 | }; |
| 884 | 887 | ||
| 885 | struct kvm_irq_routing_s390_adapter { | 888 | struct kvm_irq_routing_s390_adapter { |
