From: Andrew Jones Subject: [PATCH kvm-unit-tests 0/3] arm/arm64: smp: prepare for on_cpu Date: Mon, 29 May 2017 15:58:01 +0200 Message-ID: <20170529135804.22891-1-drjones@redhat.com> Cc: rkrcmar@redhat.com To: kvm@vger.kernel.org, pbonzini@redhat.com Return-path: Received: from mx1.redhat.com ([209.132.183.28]:45534 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751025AbdE2N6I (ORCPT ); Mon, 29 May 2017 09:58:08 -0400 Received: from smtp.corp.redhat.com (int-mx05.intmail.prod.int.phx2.redhat.com [10.5.11.15]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id B0DC381243 for ; Mon, 29 May 2017 13:58:07 +0000 (UTC) Sender: kvm-owner@vger.kernel.org List-ID: Paolo inspired me to add x86's on_cpu and on_cpu_asynch to ARM's API. I messed around with it a while, but haven't really settled on what I want to do. I played with the following approaches: - wfe/sev, requires the concept of an idle state and knowing that the target CPU is in that state - i.e. no arbitrary preemption. - IPI, allows arbitrary preemption, but requires the GIC to be setup enough to receive SGIs and also a dedicated SGI for the scheduling - PSCI, poweroff state isn't better than an idle state, and PSCI works asynchronously wrt CPUs I need to switch to more pressing work now, so I'm going to backburn this. However, I'll probably come back to it sometime and while I was messing with it I wrote the 3 patches in this series that we can take now. drew Andrew Jones (3): arm/arm64: smp: assert secondaries only boot once arm/arm64: psci: cpu_psci_cpu_die operates on itself arm/arm64: psci: avoid calling halt directly arm/psci.c | 5 ++--- lib/arm/asm/psci.h | 2 +- lib/arm/asm/smp.h | 8 -------- lib/arm/psci.c | 5 +++-- lib/arm/smp.c | 13 +++++++++++++ 5 files changed, 19 insertions(+), 14 deletions(-) -- 2.9.4