From: Boris Ostrovsky <boris.ostrovsky@oracle.com>
To: Julien Grall <julien.grall@arm.com>, xen-devel@lists.xen.org
Cc: sstabellini@kernel.org, wei.liu2@citrix.com,
George.Dunlap@eu.citrix.com, andrew.cooper3@citrix.com,
ian.jackson@eu.citrix.com, tim@xen.org, jbeulich@suse.com
Subject: Re: [PATCHES v8 8/8] mm: Make sure pages are scrubbed
Date: Thu, 17 Aug 2017 09:44:32 -0400 [thread overview]
Message-ID: <d7773d67-0b10-8758-2747-bc26da33605d@oracle.com> (raw)
In-Reply-To: <52f4df02-1a57-b6b8-992b-394118f50026@arm.com>
On 08/17/2017 06:27 AM, Julien Grall wrote:
> Hi Boris,
>
> On 16/08/17 19:33, Boris Ostrovsky wrote:
>> +static void check_one_page(struct page_info *pg)
>> +{
>> +#ifdef CONFIG_SCRUB_DEBUG
>> + mfn_t mfn = _mfn(page_to_mfn(pg));
>> + const uint64_t *ptr;
>> + unsigned int i;
>> +
>> + if ( !boot_scrub_done )
>> + return;
>> +
>> + ptr = map_domain_page(mfn);
>> + for ( i = 0; i < PAGE_SIZE / sizeof (*ptr); i++ )
>> + ASSERT(ptr[i] == SCRUB_PATTERN);
>
> ASSERT will be turned into a NOP on non-debug build. However, it is
> possible to select SCRUB_DEBUG on non-debug build when expert mode is
> enabled.
>
> So I would turn this into a BUG_ON() to make it work in all
> configuration.
Yes, good point, thanks.
I will wait for Jan's review and if there are no more comments then,
given that this is the last patch in the series and so the change can
cause no conflicts, perhaps he can fix it during commit. Or I can resend.
-boris
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
prev parent reply other threads:[~2017-08-17 13:44 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-16 18:33 [PATCHES v8 0/8] Memory scrubbing from idle loop Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 1/8] mm: Place unscrubbed pages at the end of pagelist Boris Ostrovsky
2017-08-17 10:30 ` Julien Grall
2017-08-21 13:49 ` Jan Beulich
2017-08-21 17:00 ` Julien Grall
2017-08-18 9:11 ` Jan Beulich
2017-08-18 13:11 ` Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 2/8] mm: Extract allocation loop from alloc_heap_pages() Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 3/8] mm: Scrub pages in alloc_heap_pages() if needed Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 4/8] mm: Scrub memory from idle loop Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 5/8] spinlock: Introduce spin_lock_cb() Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 6/8] mm: Keep heap accessible to others while scrubbing Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 7/8] mm: Print number of unscrubbed pages in 'H' debug handler Boris Ostrovsky
2017-08-16 18:33 ` [PATCHES v8 8/8] mm: Make sure pages are scrubbed Boris Ostrovsky
2017-08-17 10:27 ` Julien Grall
2017-08-17 13:44 ` Boris Ostrovsky [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=d7773d67-0b10-8758-2747-bc26da33605d@oracle.com \
--to=boris.ostrovsky@oracle.com \
--cc=George.Dunlap@eu.citrix.com \
--cc=andrew.cooper3@citrix.com \
--cc=ian.jackson@eu.citrix.com \
--cc=jbeulich@suse.com \
--cc=julien.grall@arm.com \
--cc=sstabellini@kernel.org \
--cc=tim@xen.org \
--cc=wei.liu2@citrix.com \
--cc=xen-devel@lists.xen.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).