[PATCH v3 07/17] KVM: arm64: hyp: Use ctxt_sys_reg/__vcpu_sys_reg instead of raw sys_regs access
Alexandru Elisei
alexandru.elisei at arm.com
Tue Jul 7 08:57:04 EDT 2020
Hi,
On 7/6/20 1:54 PM, Marc Zyngier wrote:
> Switch the hypervisor code to using ctxt_sys_reg/__vcpu_sys_reg instead
> of raw sys_regs accesses. No intended functionnal change.
>
> Signed-off-by: Marc Zyngier <maz at kernel.org>
> ---
> arch/arm64/include/asm/kvm_host.h | 2 +-
> arch/arm64/kvm/hyp/include/hyp/debug-sr.h | 4 +-
> arch/arm64/kvm/hyp/include/hyp/switch.h | 7 +-
> arch/arm64/kvm/hyp/include/hyp/sysreg-sr.h | 110 ++++++++++-----------
> arch/arm64/kvm/hyp/nvhe/switch.c | 4 +-
> 5 files changed, 62 insertions(+), 65 deletions(-)
Looks fine to me, checked that the correct function is used (either
__vcpu_sys_reg, or ctxt_sys_reg), and that the registers names match. Also did a
compile test to make extra sure I didn't miss anything:
Reviewed-by: Alexandru Elisei <alexandru.elisei at arm.com>
Thanks,
Alex
More information about the linux-arm-kernel
mailing list