All of lore.kernel.org
 help / color / mirror / Atom feed
From: Christoffer Dall <christoffer.dall@linaro.org>
To: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
Cc: Peter Maydell <peter.maydell@linaro.org>,
	Anup Patel <anup.patel@linaro.org>,
	patches@apm.com, qemu-devel <qemu-devel@nongnu.org>,
	Alexander Graf <agraf@suse.de>,
	"kvmarm@lists.cs.columbia.edu" <kvmarm@lists.cs.columbia.edu>
Subject: Re: [Qemu-devel] [RFC PATCH 7/7] target-arm: Hacky implementation of kvm_arch_reset_vcpu() for KVM ARM64
Date: Thu, 13 Mar 2014 20:51:42 -0700	[thread overview]
Message-ID: <20140314035142.GG24808@cbox> (raw)
In-Reply-To: <CAAHg+Hi8tANv+4muxPkP53b9x8osT-aFrvRXyyMKD1ooZkQJAA@mail.gmail.com>

On Thu, Feb 27, 2014 at 04:05:04PM +0530, Pranavkumar Sawargaonkar wrote:
> Hi Peter,
> 
> On 27 February 2014 15:23, Peter Maydell <peter.maydell@linaro.org> wrote:
> > On 27 February 2014 06:51, Pranavkumar Sawargaonkar
> > <pranavkumar@linaro.org> wrote:
> >> We need to "Feed the kernel back its initial register state" using KVM
> >> ioctls for KVM ARM64 (just like KVM ARM). This means we need to save
> >> the "initial register state" in kvm_arch_init_vcpu() which is not the
> >> case for KVM ARM64 right now. In simpler work, we are depended upon
> >> VCPU register init/save/restore for implementing kvm_arch_reset_vcpu().
> >>
> >> This patch adds a hacky implementation of kvm_arch_reset_vcpu() which
> >> only works for "mach-virt". As-per this hacky implemenation, we re-init
> >> the VCPU using kvm_arch_init_vcpu() so that all registers of VCPU are
> >> set to their reset values by in-kernel KVM code.
> >
> > Re-initing the VCPU is actually the right way to do this -- it is feeding
> > all the register state back to KVM that is the hack. (One day I may
> > fix 32 bit ARM to re-init the VCPU).
> >
> 
Didn't I promise a patch to the KVM Documentation some time to clarify
this?  Hmmm.

-Christoffer

  parent reply	other threads:[~2014-03-14  3:51 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <1393483868-6151-1-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:11 ` [Qemu-devel] [RFC PATCH 0/7] PSCI v0.2 support for KVM ARM/ARM64 Pranavkumar Sawargaonkar
     [not found] ` <1393483868-6151-2-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:12   ` [Qemu-devel] [RFC PATCH 1/7] linux-headers: Update KVM headers from v3.14-rc3 Pranavkumar Sawargaonkar
     [not found] ` <1393483868-6151-3-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:13   ` [Qemu-devel] [RFC PATCH 2/7] target-arm: Try X-Gene Potenza target type for KVM Aarch64 Pranavkumar Sawargaonkar
     [not found] ` <1393483868-6151-4-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:14   ` [Qemu-devel] [RFC PATCH 3/7] target-arm: Handle exit reason KVM_EXIT_SYSTEM_EVENT Pranavkumar Sawargaonkar
     [not found]   ` <20140314034348.GE24808@cbox>
2014-03-17 19:34     ` Peter Maydell
     [not found] ` <1393483868-6151-5-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:15   ` [Qemu-devel] [RFC PATCH 4/7] target-arm: Provide PSCI v0.2 constants to generic QEMU code Pranavkumar Sawargaonkar
     [not found] ` <1393483868-6151-6-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:16   ` [Qemu-devel] [RFC PATCH 5/7] target-arm: Enable KVM_ARM_VCPU_PSCI_0_2 feature when possible Pranavkumar Sawargaonkar
2014-03-17 19:35     ` Peter Maydell
2014-03-17 22:48       ` Christoffer Dall
     [not found] ` <1393483868-6151-7-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:16   ` [Qemu-devel] [RFC PATCH 6/7] hw/arm/virt: Use PSCI v0.2 function IDs when kernel supports its Pranavkumar Sawargaonkar
     [not found]   ` <20140314034926.GF24808@cbox>
2014-03-14  6:53     ` Pranavkumar Sawargaonkar
2014-03-14 10:23       ` Mark Rutland
2014-03-14 17:10         ` Rob Herring
2014-03-17 10:09           ` Mark Rutland
     [not found] ` <1393483868-6151-8-git-send-email-pranavkumar@linaro.org>
2014-02-27  7:17   ` [Qemu-devel] [RFC PATCH 7/7] target-arm: Hacky implementation of kvm_arch_reset_vcpu() for KVM ARM64 Pranavkumar Sawargaonkar
     [not found]   ` <CAFEAcA9VcpVS_FJKYruCaWB=jr9unkor1aAzAAJX_GLC0LBouw@mail.gmail.com>
2014-02-27 10:35     ` Pranavkumar Sawargaonkar
2014-02-27 11:26       ` Peter Maydell
2014-03-14  3:51       ` Christoffer Dall [this message]
2014-03-14  6:58         ` Pranavkumar Sawargaonkar

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=20140314035142.GG24808@cbox \
    --to=christoffer.dall@linaro.org \
    --cc=agraf@suse.de \
    --cc=anup.patel@linaro.org \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=patches@apm.com \
    --cc=peter.maydell@linaro.org \
    --cc=pranavkumar@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /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.