From: "Andreas Färber" <afaerber@suse.de>
To: Alexander Graf <agraf@suse.de>, qemu-devel@nongnu.org
Cc: Paolo Bonzini <pbonzini@redhat.com>,
Christoffer Dall <christoffer.dall@linaro.org>,
kvm@vger.kernel.org, Peter Maydell <peter.maydell@linaro.org>,
Richard Henderson <rth@twiddle.net>,
Guan Xuetao <gxt@mprc.pku.edu.cn>
Subject: Re: BUG: commit 50a2c6e breaks KVM/ARM (reset/init vcpu order)
Date: Mon, 26 May 2014 14:36:23 +0200 [thread overview]
Message-ID: <53833547.30300@suse.de> (raw)
In-Reply-To: <538317F0.4010907@suse.de>
Am 26.05.2014 12:31, schrieb Alexander Graf:
>
> On 26.05.14 12:20, Andreas Färber wrote:
>> Am 26.05.2014 11:57, schrieb Alexander Graf:
>>> Any reason we're so incredibly inconsistent in what we do during realize
>>> with reset? I would really prefer to ensure we're doing the same thing
>>> on all targets.
>>>
>>>
>>> Alex
>>>
>>> $ grep -R -A 3 -B 3 qemu_init_vcpu target-*
>>> target-alpha/cpu.c- CPUState *cs = CPU(dev);
>>> target-alpha/cpu.c- AlphaCPUClass *acc = ALPHA_CPU_GET_CLASS(dev);
>>> target-alpha/cpu.c-
>>> target-alpha/cpu.c: qemu_init_vcpu(cs);
>>> target-alpha/cpu.c-
>>> target-alpha/cpu.c- acc->parent_realize(dev, errp);
>>> target-alpha/cpu.c-}
>> Alpha is the main blocker for unifying CPU reset iirc. It does not
>> implement reset at all and thus is not calling it. The struct was not
>> designed for zero'ing things, so there's a mix of data fields and
>> pointers without clear separation to allow memset(), and I have neither
>> a working alpha test image nor the time to investigate this at the
>> moment.
>>
>> WIP here:
>> https://github.com/afaerber/qemu-cpu/commits/qom-cpu-alpha
>> https://github.com/afaerber/qemu-cpu/commits/qom-cpu-reset
>>
>> According to my commit unicore32 is another odd sock that doesn't reset
>> the CPU - despite implemented iirc.
>
> So if we had reset, we could call
>
> qemu_init_vcpu();
> cpu_reset()
>
> inside parent_realize(), right?
That's exactly what the single commit on qom-cpu-reset does. :)
Andreas
> Then let's prepare for that step and make at least all targets that do
> call cpu_reset call it after init_vcpu().
>
>
> Alex
>
--
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-26 12:36 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-05-26 9:18 BUG: commit 50a2c6e breaks KVM/ARM (reset/init vcpu order) Christoffer Dall
2014-05-26 9:18 ` [Qemu-devel] " Christoffer Dall
2014-05-26 9:55 ` Paolo Bonzini
2014-05-26 9:55 ` [Qemu-devel] " Paolo Bonzini
2014-05-26 9:57 ` Alexander Graf
2014-05-26 9:57 ` [Qemu-devel] " Alexander Graf
2014-05-26 10:20 ` Andreas Färber
2014-05-26 10:20 ` [Qemu-devel] " Andreas Färber
2014-05-26 10:31 ` Alexander Graf
2014-05-26 10:31 ` [Qemu-devel] " Alexander Graf
2014-05-26 12:36 ` Andreas Färber [this message]
2014-05-26 21:04 ` Alexander Graf
2014-05-26 12:39 ` 回复: " 管雪涛
2014-05-26 17:28 ` Richard Henderson
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=53833547.30300@suse.de \
--to=afaerber@suse.de \
--cc=agraf@suse.de \
--cc=christoffer.dall@linaro.org \
--cc=gxt@mprc.pku.edu.cn \
--cc=kvm@vger.kernel.org \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rth@twiddle.net \
/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.