From: Andi Kleen <andi-Vw/NltI1exuRpAAqCnN02g@public.gmane.org>
To: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
Cc: avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org
Subject: wbinvd
Date: Fri, 26 Oct 2007 11:33:57 +0200 [thread overview]
Message-ID: <p73ve8up6d6.fsf@bingen.suse.de> (raw)
[no direct reply because gmane still breaks it]
WBINVD or CLFLUSH is also needed to safely change caching attributes
of pages that are already mapped. Since CLFLUSH is somewhat hard to use
for this near all Linux kernels use WBINVD for this. Examples where this
happens are ioremap() using PAT, AGP allocations, 3d drivers.
For the PCI-E case typically CLFLUSH can be used instead of WBINVD too
(on CPUs that support it) but again it's harder to use.
Another case where the kernel uses it is reboot but there you can
likely ignore it. But might be hard to distingush from legitimate
cases.
If you allow uncached pages in guests it is probably not safe to nop
completely (on SVM). You might be able to emulate it by doing CLFLUSH
on all guest mappings or rather on all mappings that alias an uncached
mapping. That might be even slower than wbinvd though, but should be
at least potentially preemptible.
-Andi
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
reply other threads:[~2007-10-26 9:33 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=p73ve8up6d6.fsf@bingen.suse.de \
--to=andi-vw/nlti1exurpaaqcnn02g@public.gmane.org \
--cc=avi-atKUWr5tajBWk0Htik3J/w@public.gmane.org \
--cc=kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.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