diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2013-09-17 16:56:28 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2013-09-21 16:18:49 +0100 |
commit | 8e2acc2074cefe54ce71ab8a7e41d75a8dabdd10 (patch) | |
tree | 1593117c8581dd6a32975ed73422ed0cdcd7aee9 /xen/include/asm-arm | |
parent | df17e9c889c48c9c10aa3f9dd0bb11077f54efc4 (diff) | |
download | xen-8e2acc2074cefe54ce71ab8a7e41d75a8dabdd10.tar.gz xen-8e2acc2074cefe54ce71ab8a7e41d75a8dabdd10.tar.bz2 xen-8e2acc2074cefe54ce71ab8a7e41d75a8dabdd10.zip |
xen: arm: improve VMID allocation.
The VMID field is 8 bits. Rather than allowing only up to 256 VMs per host
reboot before things start "acting strange" instead maintain a simple bitmap
of used VMIDs and allocate them statically to guests upon creation.
This limits us to 256 concurrent VMs which is a reasonable improvement.
Eventually we will want a proper scheme to allocate VMIDs on context switch.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Julien Grall <julien.grall@linaro.org>
Diffstat (limited to 'xen/include/asm-arm')
-rw-r--r-- | xen/include/asm-arm/p2m.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/xen/include/asm-arm/p2m.h b/xen/include/asm-arm/p2m.h index a00069bdbd..c660820a3d 100644 --- a/xen/include/asm-arm/p2m.h +++ b/xen/include/asm-arm/p2m.h @@ -20,6 +20,9 @@ struct p2m_domain { uint8_t vmid; }; +/* Initialise vmid allocator */ +void p2m_vmid_allocator_init(void); + /* Init the datastructures for later use by the p2m code */ int p2m_init(struct domain *d); |