]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm: Reserve bit in KVM_REG_ARM encoding for secure/nonsecure
authorPeter Maydell <peter.maydell@linaro.org>
Tue, 6 Mar 2018 19:47:41 +0000 (19:47 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 17:45:38 +0000 (17:45 +0000)
commit04240a9c216eb2c3149647c9c900e55d0399e1cc
treebdaec4500c1a832f7f221dd0982fbe55aeedf590
parent6521c8e548a3694ce19f09ab56bb7b7d5d675606
KVM: arm: Reserve bit in KVM_REG_ARM encoding for secure/nonsecure

We have a KVM_REG_ARM encoding that we use to expose KVM guest registers
to userspace. Define that bit 28 in this encoding indicates secure vs
nonsecure, so we can distinguish the secure and nonsecure banked versions
of a banked AArch32 register.

For KVM currently, all guest registers are nonsecure, but defining
the bit is useful for userspace. In particular, QEMU uses this
encoding as part of its on-the-wire migration format, and needs to be
able to describe secure-bank registers when it is migrating (fully
emulated) EL3-enabled CPUs.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/uapi/asm/kvm.h