kvm tools: Fix <linux/msi.h> kobject build breakage
Commit b50cac5 ("PCI/sysfs: add per pci device msi[x] irq listing (v5)") added
"struct kobject" dependency to <linux/msi.h> which breaks KVM tool build. As
the header file is no longer about MSI hardware, make a new header file for
"struct msi_ms".
Reported-by: Ingo Molnar <mingo@elte.hu>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
diff --git a/include/kvm/irq.h b/include/kvm/irq.h
index 4461c45..43fecaf 100644
--- a/include/kvm/irq.h
+++ b/include/kvm/irq.h
@@ -5,7 +5,8 @@
#include <linux/rbtree.h>
#include <linux/list.h>
#include <linux/kvm.h>
-#include <linux/msi.h>
+
+#include "kvm/msi.h"
struct kvm;
diff --git a/include/kvm/msi.h b/include/kvm/msi.h
new file mode 100644
index 0000000..885eb5b
--- /dev/null
+++ b/include/kvm/msi.h
@@ -0,0 +1,10 @@
+#ifndef LKVM_MSI_H
+#define LKVM_MSI_H
+
+struct msi_msg {
+ u32 address_lo; /* low 32 bits of msi message address */
+ u32 address_hi; /* high 32 bits of msi message address */
+ u32 data; /* 16 bits of msi message data */
+};
+
+#endif /* LKVM_MSI_H */
diff --git a/include/kvm/pci.h b/include/kvm/pci.h
index 64e42f5..7903723 100644
--- a/include/kvm/pci.h
+++ b/include/kvm/pci.h
@@ -4,10 +4,10 @@
#include <linux/types.h>
#include <linux/kvm.h>
#include <linux/pci_regs.h>
-#include <linux/msi.h>
#include <endian.h>
#include "kvm/kvm.h"
+#include "kvm/msi.h"
#define PCI_MAX_DEVICES 256
/*