diff options
author | Jan Beulich <jbeulich@novell.com> | 2011-05-01 13:16:30 +0100 |
---|---|---|
committer | Jan Beulich <jbeulich@novell.com> | 2011-05-01 13:16:30 +0100 |
commit | f22f2fe48d144141fffd42a380383f45efbea8e3 (patch) | |
tree | 8e0d2c4787f66363688bc649a9c19a39a41379b2 /xen/include/asm-x86/domain.h | |
parent | 4c7909939b059cd366426acaf9988cc7c5f4c00b (diff) | |
download | xen-f22f2fe48d144141fffd42a380383f45efbea8e3.tar.gz xen-f22f2fe48d144141fffd42a380383f45efbea8e3.tar.bz2 xen-f22f2fe48d144141fffd42a380383f45efbea8e3.zip |
x86: replace nr_irqs sized per-domain arrays with radix trees
It would seem possible to fold the two trees into one (making e.g. the
emuirq bits stored in the upper half of the pointer), but I'm not
certain that's worth it as it would make deletion of entries more
cumbersome. Unless pirq-s and emuirq-s were mutually exclusive...
Signed-off-by: Jan Beulich <jbeulich@novell.com>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r-- | xen/include/asm-x86/domain.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h index 244338ac6b..095735ed85 100644 --- a/xen/include/asm-x86/domain.h +++ b/xen/include/asm-x86/domain.h @@ -3,6 +3,7 @@ #include <xen/config.h> #include <xen/mm.h> +#include <xen/radix-tree.h> #include <asm/hvm/vcpu.h> #include <asm/hvm/domain.h> #include <asm/e820.h> @@ -284,10 +285,9 @@ struct arch_domain const char *nested_p2m_function; /* NB. protected by d->event_lock and by irq_desc[irq].lock */ - int *irq_pirq; + struct radix_tree_root irq_pirq; int *pirq_irq; - /* pirq to emulated irq and vice versa */ - int *emuirq_pirq; + /* pirq to emulated irq */ int *pirq_emuirq; /* Maximum physical-address bitwidth supported by this guest. */ |