[PATCH] KVM: Do not export unsupported msrs to userspace
authorMichael Riepe <michael@mr511.de>
Fri, 22 Dec 2006 09:05:36 +0000 (01:05 -0800)
committerLinus Torvalds <torvalds@woody.osdl.org>
Fri, 22 Dec 2006 16:55:46 +0000 (08:55 -0800)
commitbf591b24d07126143356058966d79423661f491f
tree1e075cd80f0bc6952d7b18411b05ee786900c3b9
parent2c264957105b7c248a456ba6602df667ae986550
[PATCH] KVM: Do not export unsupported msrs to userspace

Some msrs, such as MSR_STAR, are not available on all processors.  Exporting
them causes qemu to try to fetch them, which will fail.

So, check all msrs for validity at module load time.

Signed-off-by: Michael Riepe <michael@mr511.de>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/kvm/kvm_main.c