summary refs log tree commit diff stats
path: root/hw/apic.c
diff options
context:
space:
mode:
authorAnthony Liguori <aliguori@us.ibm.com>2012-06-26 15:05:33 -0500
committerAnthony Liguori <aliguori@us.ibm.com>2012-06-26 15:05:33 -0500
commit7a542b67b32742ff5fe286f819df891d1df7bf56 (patch)
treecc85c3d9c0c381ae32178616c5956879cd554cb4 /hw/apic.c
parentb1a6609e754330c657a057a96322e574c129bc29 (diff)
parent3854ca577dad92c4fe97b4a6ebce360e25407af7 (diff)
downloadfocaccia-qemu-7a542b67b32742ff5fe286f819df891d1df7bf56.tar.gz
focaccia-qemu-7a542b67b32742ff5fe286f819df891d1df7bf56.zip
Merge remote-tracking branch 'sstabellini/xen-pt' into staging
* sstabellini/xen-pt:
  Introduce Xen PCI Passthrough, MSI
  Introduce apic-msidef.h
  Introduce Xen PCI Passthrough, PCI config space helpers
  Introduce Xen PCI Passthrough, qdevice
  qdev-properties: Introduce pci-host-devaddr.
  pci.c: Add opaque argument to pci_for_each_device.
  Introduce XenHostPCIDevice to access a pci device on the host.
  configure: Introduce --enable-xen-pci-passthrough.
  pci_ids: Add INTEL_82599_SFP_VF id.
Diffstat (limited to 'hw/apic.c')
-rw-r--r--hw/apic.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/hw/apic.c b/hw/apic.c
index 5fbf01c278..60552df619 100644
--- a/hw/apic.c
+++ b/hw/apic.c
@@ -23,19 +23,10 @@
 #include "host-utils.h"
 #include "trace.h"
 #include "pc.h"
+#include "apic-msidef.h"
 
 #define MAX_APIC_WORDS 8
 
-/* Intel APIC constants: from include/asm/msidef.h */
-#define MSI_DATA_VECTOR_SHIFT		0
-#define MSI_DATA_VECTOR_MASK		0x000000ff
-#define MSI_DATA_DELIVERY_MODE_SHIFT	8
-#define MSI_DATA_TRIGGER_SHIFT		15
-#define MSI_DATA_LEVEL_SHIFT		14
-#define MSI_ADDR_DEST_MODE_SHIFT	2
-#define MSI_ADDR_DEST_ID_SHIFT		12
-#define	MSI_ADDR_DEST_ID_MASK		0x00ffff0
-
 #define SYNC_FROM_VAPIC                 0x1
 #define SYNC_TO_VAPIC                   0x2
 #define SYNC_ISR_IRR_TO_VAPIC           0x4