All of lore.kernel.org
 help / color / mirror / Atom feed
From: Diana Craciun <diana.craciun@freescale.com>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: patches@linaro.org, qemu-devel@nongnu.org, kvmarm@lists.cs.columbia.edu
Subject: Re: [Qemu-devel] [PATCH] target-arm: Implement vCPU reset via KVM_ARM_VCPU_INIT for 32-bit CPUs
Date: Fri, 27 Jun 2014 10:38:07 +0300	[thread overview]
Message-ID: <53AD1F5F.3040504@freescale.com> (raw)
In-Reply-To: <1403802973-20841-1-git-send-email-peter.maydell@linaro.org>

On 06/26/2014 08:16 PM, Peter Maydell wrote:
> Implement kvm_arm_vcpu_init() as a simple call to arm_arm_vcpu_init()
> (which uses the KVM_ARM_VCPU_INIT vcpu ioctl to tell the kernel
> to re-initialize the vCPU), rather than via the complicated code
> which saves a copy of the register state on first init and then
> writes it back to the kernel. This is much simpler and brings the
> 32-bit KVM code into line with the 64-bit code.
>
>
> Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
> ---
> The kernel has always supported being able to call VCPU_INIT
> multiple times for this reset effect; I just didn't realize it
> was possible when I wrote the original reset code.
>
> When kvm64.c grows support for system registers we can probably
> coalesce the two kvm_arm_reset_cpu() functions into one.
>
> I also have a vague recollection that somebody reported that
> we had an actual bug in this area that this patch would fix;
> however I can't now find that in the mailing list archives :-(

I did: http://lists.gnu.org/archive/html/qemu-devel/2014-05/msg03131.html


>
> Testing appreciated: my ARMv7 box is being a bit flaky at the
> moment; I don't *think* the occasional weird stuff I see is
> the effect of this patch but it's hard to be certain.

I will test your patch in the following days.

Diana

  reply	other threads:[~2014-06-27  8:11 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-06-26 17:16 [Qemu-devel] [PATCH] target-arm: Implement vCPU reset via KVM_ARM_VCPU_INIT for 32-bit CPUs Peter Maydell
2014-06-27  7:38 ` Diana Craciun [this message]
2014-06-27 12:26   ` Peter Maydell
2014-06-30 14:22     ` Diana Craciun
2014-06-30 14:41       ` Peter Maydell

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=53AD1F5F.3040504@freescale.com \
    --to=diana.craciun@freescale.com \
    --cc=kvmarm@lists.cs.columbia.edu \
    --cc=patches@linaro.org \
    --cc=peter.maydell@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.