ARM: KVM: Add support for KVM on ARM architecture

Add basic support for KVM on ARM architecture.

Signed-off-by: Christoffer Dall <cdall@cs.columbia.edu>
[PMM: Minor tweaks and code cleanup, switch to ONE_REG]
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
Christoffer Dall 2013-03-05 00:34:41 +00:00 committed by Peter Maydell
parent f5206413af
commit 494b00c76a
5 changed files with 363 additions and 1 deletions

View file

@ -1617,7 +1617,7 @@ uint32_t HELPER(get_r13_banked)(CPUARMState *env, uint32_t mode)
#else
/* Map CPU modes onto saved register banks. */
static inline int bank_number(int mode)
int bank_number(int mode)
{
switch (mode) {
case ARM_CPU_MODE_USR: