diff options
author | Joerg Roedel <joerg.roedel@amd.com> | 2008-02-13 18:58:46 +0100 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2008-04-27 10:53:21 +0200 |
commit | f65c229c3e7743c6654c16b9ec6248466b5eef21 (patch) | |
tree | 0326e1e3e7a407c8271d2ae5427c300e6e741a39 /arch/x86/kvm/kvm_svm.h | |
parent | KVM: SVM: let init_vmcb() take struct vcpu_svm as parameter (diff) | |
download | linux-f65c229c3e7743c6654c16b9ec6248466b5eef21.tar.xz linux-f65c229c3e7743c6654c16b9ec6248466b5eef21.zip |
KVM: SVM: allocate the MSR permission map per VCPU
This patch changes the kvm-amd module to allocate the SVM MSR permission map
per VCPU instead of a global map for all VCPUs. With this we have more
flexibility allowing specific guests to access virtualized MSRs. This is
required for LBR virtualization.
Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Markus Rechberger <markus.rechberger@amd.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'arch/x86/kvm/kvm_svm.h')
-rw-r--r-- | arch/x86/kvm/kvm_svm.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/kvm/kvm_svm.h b/arch/x86/kvm/kvm_svm.h index ecdfe97e4635..65ef0fc2c036 100644 --- a/arch/x86/kvm/kvm_svm.h +++ b/arch/x86/kvm/kvm_svm.h @@ -39,6 +39,8 @@ struct vcpu_svm { unsigned long host_db_regs[NUM_DB_REGS]; unsigned long host_dr6; unsigned long host_dr7; + + u32 *msrpm; }; #endif |