aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/mach-default
diff options
context:
space:
mode:
authorKeir Fraser <keir.fraser@citrix.com>2009-08-19 12:53:46 +0100
committerKeir Fraser <keir.fraser@citrix.com>2009-08-19 12:53:46 +0100
commit487a1cffd71a34d729c05c9a379ff05ea39b9fe2 (patch)
treef049fe8aaeee2f2abdf21e49e176a6f993bf84ce /xen/include/asm-x86/mach-default
parentb07b22f961709fc4639b550450caa4681881977d (diff)
downloadxen-487a1cffd71a34d729c05c9a379ff05ea39b9fe2.tar.gz
xen-487a1cffd71a34d729c05c9a379ff05ea39b9fe2.tar.bz2
xen-487a1cffd71a34d729c05c9a379ff05ea39b9fe2.zip
x86: Implement per-cpu vector for xen hypervisor
Since Xen and Linux has big differece in code base, it is very hard to port Linux's patch and apply it to Xen directly, so this patch only adopts core logic of Linux, and make it work for Xen. Key changes: 1. vector allocation algorithm 2. all IRQ chips' set_affinity logic 3. IRQ migration when cpu hot remove. 4. Break assumptions which depend on global vector policy. Signed-off-by: Xiantao Zhang <xiantao.zhang@intel.com>
Diffstat (limited to 'xen/include/asm-x86/mach-default')
-rw-r--r--xen/include/asm-x86/mach-default/irq_vectors.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-x86/mach-default/irq_vectors.h b/xen/include/asm-x86/mach-default/irq_vectors.h
index 7ca3312def..8453d06714 100644
--- a/xen/include/asm-x86/mach-default/irq_vectors.h
+++ b/xen/include/asm-x86/mach-default/irq_vectors.h
@@ -28,6 +28,9 @@
/* Dynamically-allocated vectors available to any driver. */
#define FIRST_DYNAMIC_VECTOR 0x20
#define LAST_DYNAMIC_VECTOR 0xdf
+#define NR_DYNAMIC_VECTORS (LAST_DYNAMIC_VECTOR - FIRST_DYNAMIC_VECTOR + 1)
+
+#define IRQ_MOVE_CLEANUP_VECTOR FIRST_DYNAMIC_VECTOR
#define NR_VECTORS 256