diff options
author | Wei Gang <gang.wei@intel.com> | 2011-03-14 17:04:42 +0000 |
---|---|---|
committer | Wei Gang <gang.wei@intel.com> | 2011-03-14 17:04:42 +0000 |
commit | 1a048a1d9e37576f4c0e867ba362afbd456555aa (patch) | |
tree | e8c48efd45280165db6b500f33c9838a272520e5 /tools/flask/libflask | |
parent | 84c4461b7d3a3ea0a082812821018a3e9a9cb12f (diff) | |
download | xen-1a048a1d9e37576f4c0e867ba362afbd456555aa.tar.gz xen-1a048a1d9e37576f4c0e867ba362afbd456555aa.tar.bz2 xen-1a048a1d9e37576f4c0e867ba362afbd456555aa.zip |
x86: add volatile prefix for cpuid asm clauses
cpuid results are possible to be changed now. For example, changing
CR4.OSXSAVE bit or setting MSR XCR_XFEATURE_ENABLED_MASK may change
XSAVE related cpuid leave return values.
The volatile prefix is required to avoid the second cpuid calls
following some possible changing operations being optimized in
incorrect way by compiler.
The sample bug is in xsave_init while debug=3Dn. The second call to
cpuid_count() may be optimized and lead to a BUG_ON case while compare
xsave_cntxt_size with ebx.
Signed-off-by: Wei Gang <gang.wei@intel.com>
Diffstat (limited to 'tools/flask/libflask')
0 files changed, 0 insertions, 0 deletions