xen: arm: improve VMID allocation.
authorIan Campbell <ian.campbell@citrix.com>
Tue, 17 Sep 2013 15:56:28 +0000 (16:56 +0100)
committerIan Campbell <ian.campbell@citrix.com>
Sat, 21 Sep 2013 15:18:49 +0000 (16:18 +0100)
commit8e2acc2074cefe54ce71ab8a7e41d75a8dabdd10
tree1593117c8581dd6a32975ed73422ed0cdcd7aee9
parentdf17e9c889c48c9c10aa3f9dd0bb11077f54efc4
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>
xen/arch/arm/p2m.c
xen/arch/arm/setup.c
xen/include/asm-arm/p2m.h