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.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -879,7 +879,10 @@ struct kvm_irq_routing_msi { · 878 unmodified lines | |||
| 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 { |