]> git.baikalelectronics.ru Git - kernel.git/commit
x86, amd: Check X86_FEATURE_OSVW bit before accessing OSVW MSRs
authorAndreas Herrmann <herrmann.der.user@googlemail.com>
Tue, 27 Apr 2010 10:13:48 +0000 (12:13 +0200)
committerH. Peter Anvin <hpa@linux.intel.com>
Thu, 13 May 2010 23:21:20 +0000 (16:21 -0700)
commitb407d05cfbc718b994a7c51bf099e898fd5624d5
treebbd1d01429950207716337fbbd9e9f356560258c
parentf96950995216d4054fbbe91f0e9e9b0fcaa00690
x86, amd: Check X86_FEATURE_OSVW bit before accessing OSVW MSRs

If host CPU is exposed to a guest the OSVW MSRs are not guaranteed
to be present and a GP fault occurs. Thus checking the feature flag is
essential.

Cc: <stable@kernel.org> # .32.x .33.x
Signed-off-by: Andreas Herrmann <andreas.herrmann3@amd.com>
LKML-Reference: <20100427101348.GC4489@alberich.amd.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
arch/x86/kernel/process.c