All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Jones <drjones@redhat.com>
To: kvm@vger.kernel.org, pbonzini@redhat.com
Cc: rkrcmar@redhat.com
Subject: [PATCH kvm-unit-tests 0/3] arm/arm64: smp: prepare for on_cpu
Date: Mon, 29 May 2017 15:58:01 +0200	[thread overview]
Message-ID: <20170529135804.22891-1-drjones@redhat.com> (raw)

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

             reply	other threads:[~2017-05-29 13:58 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-05-29 13:58 Andrew Jones [this message]
2017-05-29 13:58 ` [PATCH kvm-unit-tests 1/3] arm/arm64: smp: assert secondaries only boot once Andrew Jones
2017-05-29 13:58 ` [PATCH kvm-unit-tests 2/3] arm/arm64: psci: cpu_psci_cpu_die operates on itself Andrew Jones
2017-05-29 13:58 ` [PATCH kvm-unit-tests 3/3] arm/arm64: psci: avoid calling halt directly Andrew Jones
2017-05-30 12:13 ` [PATCH kvm-unit-tests 0/3] arm/arm64: smp: prepare for on_cpu Paolo Bonzini
2017-05-30 13:39   ` Andrew Jones
2017-05-30 14:26     ` Paolo Bonzini
2017-05-30 14:37       ` Andrew Jones

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20170529135804.22891-1-drjones@redhat.com \
    --to=drjones@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=rkrcmar@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.