KVM: SVM: Introduce direct access msr list
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 1 Mar 2010 14:34:36 +0000 (15:34 +0100)
committerAvi Kivity <avi@redhat.com>
Mon, 17 May 2010 09:15:10 +0000 (12:15 +0300)
commitac72a9b733995cb3ef538000f6309b5e724aa469
tree7a35953db8e79c9f2d7c8935f167070c882e744e
parent455716fa941ec7a03c04bd54e1b906698171b15c
KVM: SVM: Introduce direct access msr list

This patch introduces a list with all msrs a guest might
have direct access to and changes the svm_vcpu_init_msrpm
function to use this list.
It also adds a check to set_msr_interception which triggers
a warning if a developer changes a msr intercept that is not
in the list.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/svm.c