aboutsummaryrefslogtreecommitdiffstats
path: root/xen/include/asm-x86/domain.h
diff options
context:
space:
mode:
authorKeir Fraser <keir@xen.org>2011-04-13 16:10:26 +0100
committerKeir Fraser <keir@xen.org>2011-04-13 16:10:26 +0100
commit87e0dc6ea0a983ae1dbe1f10c300ac0b89b0f23b (patch)
treedd2d2ed693c6b26821a54ebe01dcf7311e47339f /xen/include/asm-x86/domain.h
parenta222899f96e72ba764338105fb57036282f56e27 (diff)
downloadxen-87e0dc6ea0a983ae1dbe1f10c300ac0b89b0f23b.tar.gz
xen-87e0dc6ea0a983ae1dbe1f10c300ac0b89b0f23b.tar.bz2
xen-87e0dc6ea0a983ae1dbe1f10c300ac0b89b0f23b.zip
x86: make the pv-only e820 array be dynamic.
During creation of the PV domain we allocate the E820 structure to have the amount of E820 entries on the machine, plus the number three. This will allow the tool stack to fill the E820 with more than three entries. Specifically the use cases is , where the toolstack retrieves the E820, sanitizes it, and then sets it for the PV guest (for PCI passthrough), this dynamic number of E820 is just right. Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/include/asm-x86/domain.h')
-rw-r--r--xen/include/asm-x86/domain.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/xen/include/asm-x86/domain.h b/xen/include/asm-x86/domain.h
index 0df43726f1..244338ac6b 100644
--- a/xen/include/asm-x86/domain.h
+++ b/xen/include/asm-x86/domain.h
@@ -241,7 +241,8 @@ struct pv_domain
unsigned long pirq_eoi_map_mfn;
/* Pseudophysical e820 map (XENMEM_memory_map). */
- struct e820entry e820[3];
+ spinlock_t e820_lock;
+ struct e820entry *e820;
unsigned int nr_e820;
};