summaryrefslogtreecommitdiffstats
path: root/arch/arm/include/asm/kvm_host.h
diff options
context:
space:
mode:
authorEric Auger <eric.auger@linaro.org>2015-09-25 23:41:17 +0200
committerChristoffer Dall <christoffer.dall@linaro.org>2015-10-22 23:01:46 +0200
commit3b92830ad41b2fe377e0765322e8aefd0ab8388d (patch)
tree5a69f4ea8df65339fee73f748bef97e85ee9fb14 /arch/arm/include/asm/kvm_host.h
parent101d3da09c953b08c814cd9a0b8605623d640ba0 (diff)
downloadblackbird-op-linux-3b92830ad41b2fe377e0765322e8aefd0ab8388d.tar.gz
blackbird-op-linux-3b92830ad41b2fe377e0765322e8aefd0ab8388d.zip
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>
Diffstat (limited to 'arch/arm/include/asm/kvm_host.h')
-rw-r--r--arch/arm/include/asm/kvm_host.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm/include/asm/kvm_host.h b/arch/arm/include/asm/kvm_host.h
index 107374f986fd..6692982c9b57 100644
--- a/arch/arm/include/asm/kvm_host.h
+++ b/arch/arm/include/asm/kvm_host.h
@@ -129,6 +129,9 @@ struct kvm_vcpu_arch {
/* vcpu power-off state */
bool power_off;
+ /* Don't run the guest (internal implementation need) */
+ bool pause;
+
/* IO related fields */
struct kvm_decode mmio_decode;
OpenPOWER on IntegriCloud