All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Alex Bennée" <alex.bennee@linaro.org>
To: Pranith Kumar <bobby.prani@gmail.com>
Cc: qemu-devel <qemu-devel@nongnu.org>, "Fam Zheng" <famz@redhat.com>,
	"Richard Henderson" <rth@twiddle.net>,
	"Peter Maydell" <peter.maydell@linaro.org>,
	"MTTCG Devel" <mttcg@listserver.greensocs.com>,
	nikunj@linux.vnet.ibm.com, "Jan Kiszka" <jan.kiszka@siemens.com>,
	"Mark Burton" <mark.burton@greensocs.com>,
	"alvise rigo" <a.rigo@virtualopensystems.com>,
	"Emilio G. Cota" <cota@braap.org>,
	"Sergey Fedorov" <serge.fdrv@gmail.com>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Bamvor Zhang Jian" <bamvor.zhangjian@linaro.org>,
	"KONRAD Frédéric" <fred.konrad@greensocs.com>
Subject: Re: [Qemu-devel] [PATCH v13 00/24] MTTCG Base enabling patches with ARM enablement
Date: Thu, 23 Feb 2017 08:19:39 +0000	[thread overview]
Message-ID: <87zihduxno.fsf@linaro.org> (raw)
In-Reply-To: <CAJhHMCAwFVfW1u7VnCE2WVDtueD1+BJhq9EpSjOTGO85Q3fytw@mail.gmail.com>


Pranith Kumar <bobby.prani@gmail.com> writes:

> On Wed, Feb 22, 2017 at 4:02 PM, Alex Bennée <alex.bennee@linaro.org> wrote:
>>
>> Alex Bennée <alex.bennee@linaro.org> writes:
>>
>>> no-reply@patchew.org writes:
>>>
>>>> Hi,
>>>>
>>>> This series failed build test on s390x host. Please find the details
>>>> below.
>>
>> It also failed on x86-on-x86 MTTCG as well as other tests:
>>
>>>> ERROR:/var/tmp/patchew-tester-tmp-_186415r/src/cpus.c:1554:qemu_mutex_lock_iothread: assertion failed: (!qemu_mutex_iothread_locked())
>>>> GTester: last random seed: R02Sf1ce767b432f1559eaf8cc0c5a31eb02
>>>
>>> Well I've seen this before if the IRQ chain doesn't do locking properly
>>> but I'm at a loss why this breaks on an s390 host as the code is common.
>>>
>>> Does anyone have a spare s390 that I can test on?
>>
>> Look like I'll have to roll this in:
>>
>>   https://github.com/stsquad/qemu/commit/c6f4245ffd9df8ffcd2d4d655c322189c19a6c1a
>>
>
> I am able to successfully boot my test images using this patch (they
> fail without it). Another approach might be to reset the lock in the
> outer loop:
>
> diff --git a/cpu-exec.c b/cpu-exec.c
> index f3c78a9..8327050 100644
> --- a/cpu-exec.c
> +++ b/cpu-exec.c
> @@ -684,6 +684,9 @@ int cpu_exec(CPUState *cpu)
>                 if the guest is in advance */
>              align_clocks(&sc, cpu);
>          }
> +        if (qemu_mutex_iothread_locked()) {
> +          qemu_mutex_unlock_iothread();
> +        }

The only aesthetic objection I have is not aligning the unlocks with
where the lock are taken. That said my patch is fairly ugly in that
regard ;-)

>      }
>
>      cc->cpu_exec_exit(cpu);
>
>
> I think either patch is fine.




--
Alex Bennée

      reply	other threads:[~2017-02-23  8:19 UTC|newest]

Thread overview: 39+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-02-22 17:13 [Qemu-devel] [PATCH v13 00/24] MTTCG Base enabling patches with ARM enablement Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 01/24] docs: new design document multi-thread-tcg.txt Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 02/24] mttcg: translate-all: Enable locking debug in a debug build Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 03/24] mttcg: Add missing tb_lock/unlock() in cpu_exec_step() Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 04/24] tcg: move TCG_MO/BAR types into own file Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 05/24] tcg: add options for enabling MTTCG Alex Bennée
2017-02-22 21:13   ` Pranith Kumar
2017-02-23  8:21     ` Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 06/24] tcg: add kick timer for single-threaded vCPU emulation Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 07/24] tcg: rename tcg_current_cpu to tcg_current_rr_cpu Alex Bennée
2017-02-22 17:13 ` [PATCH v13 08/24] tcg: drop global lock during TCG code execution Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 09/24] tcg: remove global exit_request Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 10/24] tcg: enable tb_lock() for SoftMMU Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 11/24] tcg: enable thread-per-vCPU Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 12/24] tcg: handle EXCP_ATOMIC exception for system emulation Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 13/24] cputlb: add assert_cpu_is_self checks Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 14/24] cputlb: tweak qemu_ram_addr_from_host_nofail reporting Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 15/24] cputlb: introduce tlb_flush_* async work Alex Bennée
2017-02-22 17:13 ` [PATCH v13 16/24] cputlb and arm/sparc targets: convert mmuidx flushes from varg to bitmap Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 17/24] cputlb: add tlb_flush_by_mmuidx async routines Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 18/24] cputlb: atomically update tlb fields used by tlb_reset_dirty Alex Bennée
2017-02-22 17:13 ` [Qemu-devel] [PATCH v13 19/24] cputlb: introduce tlb_flush_*_all_cpus[_synced] Alex Bennée
2017-02-22 17:13 ` [PATCH v13 20/24] target-arm/powerctl: defer cpu reset work to CPU context Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 17:13 ` [PATCH v13 21/24] target-arm: don't generate WFE/YIELD calls for MTTCG Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 17:13 ` [PATCH v13 22/24] target-arm: ensure all cross vCPUs TLB flushes complete Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 17:13 ` [PATCH v13 23/24] hw/misc/imx6_src: defer clearing of SRC_SCR reset bits Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 17:13 ` [PATCH v13 24/24] tcg: enable MTTCG by default for ARM on x86 hosts Alex Bennée
2017-02-22 17:13   ` [Qemu-devel] " Alex Bennée
2017-02-22 18:17 ` [Qemu-devel] [PATCH v13 00/24] MTTCG Base enabling patches with ARM enablement no-reply
2017-02-22 19:55   ` Alex Bennée
2017-02-22 21:02     ` Alex Bennée
2017-02-23  1:14       ` Pranith Kumar
2017-02-23  8:19         ` Alex Bennée [this message]

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=87zihduxno.fsf@linaro.org \
    --to=alex.bennee@linaro.org \
    --cc=a.rigo@virtualopensystems.com \
    --cc=bamvor.zhangjian@linaro.org \
    --cc=bobby.prani@gmail.com \
    --cc=cota@braap.org \
    --cc=famz@redhat.com \
    --cc=fred.konrad@greensocs.com \
    --cc=jan.kiszka@siemens.com \
    --cc=mark.burton@greensocs.com \
    --cc=mttcg@listserver.greensocs.com \
    --cc=nikunj@linux.vnet.ibm.com \
    --cc=pbonzini@redhat.com \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    --cc=rth@twiddle.net \
    --cc=serge.fdrv@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.