lkml.org 
[lkml]   [2019]   [Oct]   [3]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v5 02/10] KVM: arm/arm64: Factor out hypercall handling from PSCI code
On Wed, Oct 02, 2019 at 03:50:29PM +0100, Steven Price wrote:
> From: Christoffer Dall <christoffer.dall@arm.com>
>
> We currently intertwine the KVM PSCI implementation with the general
> dispatch of hypercall handling, which makes perfect sense because PSCI
> is the only category of hypercalls we support.
>
> However, as we are about to support additional hypercalls, factor out
> this functionality into a separate hypercall handler file.
>
> Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
> [steven.price@arm.com: rebased]
> Signed-off-by: Steven Price <steven.price@arm.com>
> ---
> arch/arm/kvm/Makefile | 2 +-
> arch/arm/kvm/handle_exit.c | 2 +-
> arch/arm64/kvm/Makefile | 1 +
> arch/arm64/kvm/handle_exit.c | 4 +-
> include/Kbuild | 2 +
> include/kvm/arm_hypercalls.h | 43 ++++++++++++++++++
> include/kvm/arm_psci.h | 2 +-
> virt/kvm/arm/hypercalls.c | 59 +++++++++++++++++++++++++
> virt/kvm/arm/psci.c | 84 +-----------------------------------
> 9 files changed, 112 insertions(+), 87 deletions(-)
> create mode 100644 include/kvm/arm_hypercalls.h
> create mode 100644 virt/kvm/arm/hypercalls.c
>

Reviewed-by: Andrew Jones <drjones@redhat.com>

\
 
 \ /
  Last update: 2019-10-03 14:23    [W:0.125 / U:0.896 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site