KVM: arm/arm64: implement kvm_arm_[halt,resume]_guest
authorEric Auger <eric.auger@linaro.org>
Fri, 25 Sep 2015 21:41:17 +0000 (23:41 +0200)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 22 Oct 2015 21:01:46 +0000 (23:01 +0200)
commit3b92830ad41b2fe377e0765322e8aefd0ab8388d
tree5a69f4ea8df65339fee73f748bef97e85ee9fb14
parent101d3da09c953b08c814cd9a0b8605623d640ba0
KVM: arm/arm64: implement kvm_arm_[halt,resume]_guest

We introduce kvm_arm_halt_guest and resume functions. They
will be used for IRQ forward state change.

Halt is synchronous and prevents the guest from being re-entered.
We use the same mechanism put in place for PSCI former pause,
now renamed power_off. A new flag is introduced in arch vcpu state,
pause, only meant to be used by those functions.

Signed-off-by: Eric Auger <eric.auger@linaro.org>
Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_host.h
arch/arm/kvm/arm.c
arch/arm64/include/asm/kvm_host.h