From: Julien Grall <julien@xen.org>
To: Jan Beulich <jbeulich@suse.com>,
Stefano Stabellini <sstabellini@kernel.org>,
Bertrand Marquis <bertrand.marquis@arm.com>
Cc: xen-devel@lists.xenproject.org,
osstest service owner <osstest-admin@xenproject.org>
Subject: Re: [xen-unstable bisection] complete test-armhf-armhf-xl-multivcpu
Date: Tue, 13 Apr 2021 17:17:19 +0100 [thread overview]
Message-ID: <867e0bc1-ba0d-771a-0cfd-1e83fad431aa@xen.org> (raw)
In-Reply-To: <b7800c49-8106-e2cc-2fa3-9682305f333f@suse.com>
Hi Jan,
On 12/04/2021 09:53, Jan Beulich wrote:
> On 11.04.2021 04:12, osstest service owner wrote:
>> branch xen-unstable
>> xenbranch xen-unstable
>> job test-armhf-armhf-xl-multivcpu
>> testid guest-start/debian.repeat
>>
>> Tree: linux git://xenbits.xen.org/linux-pvops.git
>> Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git
>> Tree: qemuu git://xenbits.xen.org/qemu-xen.git
>> Tree: xen git://xenbits.xen.org/xen.git
>>
>> *** Found and reproduced problem changeset ***
>>
>> Bug is in tree: xen git://xenbits.xen.org/xen.git
>> Bug introduced: 9617d5f9c19d1d157629e1e436791509526e0ce5
>> Bug not present: 5c3c410bd2ea8d2cc520e8e8f83ad143c9c5cff7
>> Last fail repro: http://logs.test-lab.xenproject.org/osstest/logs/160931/
>>
>>
>> commit 9617d5f9c19d1d157629e1e436791509526e0ce5
>> Author: Julien Grall <jgrall@amazon.com>
>> Date: Sat Feb 20 17:54:13 2021 +0000
>>
>> xen/arm: mm: flush_page_to_ram() only need to clean to PoC
>>
>> At the moment, flush_page_to_ram() is both cleaning and invalidate to
>> PoC the page.
>>
>> The goal of flush_page_to_ram() is to prevent corruption when the guest
>> has disabled the cache (the cache line may be dirty) and the guest to
>> read previous content.
>>
>> Per this definition, the invalidating the line is not necessary. So
>> invalidating the cache is unnecessary. In fact, it may be counter-
>> productive as the line may be (speculatively) accessed a bit after.
>> So this will incurr an expensive access to the memory.
>>
>> More generally, we should avoid interferring too much with cache.
>> Therefore, flush_page_to_ram() is updated to only clean to PoC the page.
>>
>> The performance impact of this change will depend on your
>> workload/processor.
>>
>> Signed-off-by: Julien Grall <jgrall@amazon.com>
>> Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
>> Acked-by: Stefano Stabellini <sstabellini@kernel.org>
>
> Is it possible that other code (guest one in particular considering the
> failure pattern, but possibly not limited to that) has developed a
> dependency on the prior behavior?
This is not a problem in the guest. I overlooked that
flush_page_to_ram() is also used when emulating the instruction to
invalidate by set/way the data cache.
We would need to tell flush_page_to_ram() which type of operation we
want to do. I will not have time to work on it right now, so I have
reverted the patch to unblock OssTest.
Sorry for the breakage.
Cheers,
--
Julien Grall
prev parent reply other threads:[~2021-04-13 16:17 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2021-04-11 2:12 [xen-unstable bisection] complete test-armhf-armhf-xl-multivcpu osstest service owner
2021-04-12 8:53 ` Jan Beulich
2021-04-13 16:17 ` Julien Grall [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=867e0bc1-ba0d-771a-0cfd-1e83fad431aa@xen.org \
--to=julien@xen.org \
--cc=bertrand.marquis@arm.com \
--cc=jbeulich@suse.com \
--cc=osstest-admin@xenproject.org \
--cc=sstabellini@kernel.org \
--cc=xen-devel@lists.xenproject.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).