summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorEric Auger <eric.auger@redhat.com>2016-07-22 16:20:37 +0000
committerMarc Zyngier <marc.zyngier@arm.com>2016-07-22 18:51:49 +0100
commit76a10b86785c5e3fc49bcee355502d035b07e47a (patch)
treee7f27dfa1b3c6c79a60eab55040be1745ce71903 /include
parent3a88bded203591d4683aacdbb65cd0f549bc58cb (diff)
downloadlinux-stable-76a10b86785c5e3fc49bcee355502d035b07e47a.tar.gz
linux-stable-76a10b86785c5e3fc49bcee355502d035b07e47a.tar.bz2
linux-stable-76a10b86785c5e3fc49bcee355502d035b07e47a.zip
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')
-rw-r--r--include/uapi/linux/kvm.h5
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 {
__u32 address_lo;
__u32 address_hi;
__u32 data;
- __u32 pad;
+ union {
+ __u32 pad;
+ __u32 devid;
+ };
};
struct kvm_irq_routing_s390_adapter {