KVM: Clarify KVM_ASSIGN_PCI_DEVICE documentation
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 3 Jun 2011 06:51:05 +0000 (08:51 +0200)
committerAvi Kivity <avi@redhat.com>
Tue, 12 Jul 2011 10:16:16 +0000 (13:16 +0300)
Neither host_irq nor the guest_msi struct are used anymore today.
Tag the former, drop the latter to avoid confusion.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Documentation/virtual/kvm/api.txt
include/linux/kvm.h

index 2bd06b018b32bf5b0c4f1aafc7a2e78f819ef70b..0ebe9225b1716f95076261d008ab3e7485faa54d 100644 (file)
@@ -1143,15 +1143,10 @@ Assigns an IRQ to a passed-through device.
 
 struct kvm_assigned_irq {
        __u32 assigned_dev_id;
-       __u32 host_irq;
+       __u32 host_irq; /* ignored (legacy field) */
        __u32 guest_irq;
        __u32 flags;
        union {
-               struct {
-                       __u32 addr_lo;
-                       __u32 addr_hi;
-                       __u32 data;
-               } guest_msi;
                __u32 reserved[12];
        };
 };
index 55ef181521ff803231f7f1989f5ec5b5374b606b..9c9ca7c7b49145a32ce6f5a30c0735e0748a29e5 100644 (file)
@@ -773,20 +773,14 @@ struct kvm_assigned_pci_dev {
 
 struct kvm_assigned_irq {
        __u32 assigned_dev_id;
-       __u32 host_irq;
+       __u32 host_irq; /* ignored (legacy field) */
        __u32 guest_irq;
        __u32 flags;
        union {
-               struct {
-                       __u32 addr_lo;
-                       __u32 addr_hi;
-                       __u32 data;
-               } guest_msi;
                __u32 reserved[12];
        };
 };
 
-
 struct kvm_assigned_msix_nr {
        __u32 assigned_dev_id;
        __u16 entry_nr;