From: Nicolai Stange <nstange@suse.de>
To: speck@linutronix.de
Subject: [MODERATED] [QUESTION] about vmx_l1d_flush_pages
Date: Wed, 18 Jul 2018 16:58:33 +0200 [thread overview]
Message-ID: <87sh4gtwti.fsf@suse.de> (raw)
Hi,
I've got two questions related to the initialization of
vmx_l1d_flush_pages from v15 commit a47dd5f06714 ("x86/KVM/VMX: Add L1D
flush algorithm").
[Apologies for not replying properly -- I don't have the original mail].
1.) The
[empty_zp] "r" (vmx_l1d_flush_pages)
asm constraint in vmx_l1d_flush() seems to suggest that these pages
are zeroed out. But AFAICS they're actually left uninitialized.
Am I wrong or is this intended?
2.) With nested KVM, the vmx_l1d_flush_pages could be subject to KSM on
the host. This means that the 16 vmx_l1d_flush_pages could get
mapped to fewer host physical pages and that would break the L1d
flush?
If so, an obvious fix would be to initialize all 16 pages with
a different pattern each.
Thanks,
Nicolai
--
SUSE Linux GmbH, GF: Felix Imendörffer, Jane Smithard, Graham Norton,
HRB 21284 (AG Nürnberg)
next reply other threads:[~2018-07-18 14:58 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2018-07-18 14:58 Nicolai Stange [this message]
2018-07-18 15:45 ` [QUESTION] about vmx_l1d_flush_pages Thomas Gleixner
2018-07-18 17:07 ` [MODERATED] [PATCH] fix L1TF kvm initialization Nicolai Stange
2018-07-19 10:38 ` Thomas Gleixner
2018-07-20 5:25 ` [MODERATED] Re: [QUESTION] about vmx_l1d_flush_pages Nicolai Stange
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=87sh4gtwti.fsf@suse.de \
--to=nstange@suse.de \
--cc=speck@linutronix.de \
/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.