From: "Andreas Färber" <afaerber@suse.de>
To: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, Anup Patel <anup.patel@linaro.org>,
patches@apm.com, robherring2@gmail.com,
Paolo Bonzini <pbonzini@redhat.com>,
kvmarm@lists.cs.columbia.edu, christoffer.dall@linaro.org
Subject: Re: [Qemu-devel] [RFC PATCH V4 6/6] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64
Date: Mon, 05 May 2014 11:57:49 +0200 [thread overview]
Message-ID: <5367609D.30601@suse.de> (raw)
In-Reply-To: <1399280501-25512-1-git-send-email-pranavkumar@linaro.org>
Am 05.05.2014 11:01, schrieb Pranavkumar Sawargaonkar:
> To implement kvm_arch_reset_vcpu(), we simply re-init the VCPU
> using kvm_arm_vcpu_init() so that all registers of VCPU are set
> to their reset values by in-kernel KVM code.
>
> Signed-off-by: Pranavkumar Sawargaonkar <pranavkumar@linaro.org>
> Signed-off-by: Anup Patel <anup.patel@linaro.org>
> ---
> target-arm/kvm64.c | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/target-arm/kvm64.c b/target-arm/kvm64.c
> index f7cc3ef..4855b4b 100644
> --- a/target-arm/kvm64.c
> +++ b/target-arm/kvm64.c
> @@ -259,4 +259,8 @@ int kvm_arch_get_registers(CPUState *cs)
>
> void kvm_arch_reset_vcpu(CPUState *cs)
> {
> + /* Re-init VCPU so that all registers are set to
> + * their respective reset values.
> + */
> + kvm_arm_vcpu_init(cs, 0x0);
> }
>
CC'ing Paolo, who was about to drop kvm_arch_reset_vcpu().
Andreas
--
SUSE LINUX Products GmbH, Maxfeldstr. 5, 90409 Nürnberg, Germany
GF: Jeff Hawn, Jennifer Guild, Felix Imendörffer; HRB 16746 AG Nürnberg
next prev parent reply other threads:[~2014-05-05 9:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-05 9:01 [Qemu-devel] [RFC PATCH V4 6/6] target-arm: Implement kvm_arch_reset_vcpu() for KVM ARM64 Pranavkumar Sawargaonkar
2014-05-05 9:57 ` Andreas Färber [this message]
2014-05-05 10:29 ` Paolo Bonzini
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=5367609D.30601@suse.de \
--to=afaerber@suse.de \
--cc=anup.patel@linaro.org \
--cc=christoffer.dall@linaro.org \
--cc=kvmarm@lists.cs.columbia.edu \
--cc=patches@apm.com \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=pranavkumar@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=robherring2@gmail.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.