diff options
Diffstat (limited to 'drivers/kvm/kvm_svm.h')
-rw-r--r-- | drivers/kvm/kvm_svm.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/kvm/kvm_svm.h b/drivers/kvm/kvm_svm.h index 624f1ca48657..a869983d683d 100644 --- a/drivers/kvm/kvm_svm.h +++ b/drivers/kvm/kvm_svm.h | |||
@@ -9,17 +9,15 @@ | |||
9 | #include "svm.h" | 9 | #include "svm.h" |
10 | #include "kvm.h" | 10 | #include "kvm.h" |
11 | 11 | ||
12 | static const u32 host_save_msrs[] = { | 12 | static const u32 host_save_user_msrs[] = { |
13 | #ifdef CONFIG_X86_64 | 13 | #ifdef CONFIG_X86_64 |
14 | MSR_STAR, MSR_LSTAR, MSR_CSTAR, MSR_SYSCALL_MASK, MSR_KERNEL_GS_BASE, | 14 | MSR_STAR, MSR_LSTAR, MSR_CSTAR, MSR_SYSCALL_MASK, MSR_KERNEL_GS_BASE, |
15 | MSR_FS_BASE, MSR_GS_BASE, | 15 | MSR_FS_BASE, |
16 | #endif | 16 | #endif |
17 | MSR_IA32_SYSENTER_CS, MSR_IA32_SYSENTER_ESP, MSR_IA32_SYSENTER_EIP, | 17 | MSR_IA32_SYSENTER_CS, MSR_IA32_SYSENTER_ESP, MSR_IA32_SYSENTER_EIP, |
18 | MSR_IA32_DEBUGCTLMSR, /*MSR_IA32_LASTBRANCHFROMIP, | ||
19 | MSR_IA32_LASTBRANCHTOIP, MSR_IA32_LASTINTFROMIP,MSR_IA32_LASTINTTOIP,*/ | ||
20 | }; | 18 | }; |
21 | 19 | ||
22 | #define NR_HOST_SAVE_MSRS ARRAY_SIZE(host_save_msrs) | 20 | #define NR_HOST_SAVE_USER_MSRS ARRAY_SIZE(host_save_user_msrs) |
23 | #define NUM_DB_REGS 4 | 21 | #define NUM_DB_REGS 4 |
24 | 22 | ||
25 | struct vcpu_svm { | 23 | struct vcpu_svm { |
@@ -28,13 +26,12 @@ struct vcpu_svm { | |||
28 | struct svm_cpu_data *svm_data; | 26 | struct svm_cpu_data *svm_data; |
29 | uint64_t asid_generation; | 27 | uint64_t asid_generation; |
30 | 28 | ||
31 | unsigned long cr0; | ||
32 | unsigned long cr4; | ||
33 | unsigned long db_regs[NUM_DB_REGS]; | 29 | unsigned long db_regs[NUM_DB_REGS]; |
34 | 30 | ||
35 | u64 next_rip; | 31 | u64 next_rip; |
36 | 32 | ||
37 | u64 host_msrs[NR_HOST_SAVE_MSRS]; | 33 | u64 host_user_msrs[NR_HOST_SAVE_USER_MSRS]; |
34 | u64 host_gs_base; | ||
38 | unsigned long host_cr2; | 35 | unsigned long host_cr2; |
39 | unsigned long host_db_regs[NUM_DB_REGS]; | 36 | unsigned long host_db_regs[NUM_DB_REGS]; |
40 | unsigned long host_dr6; | 37 | unsigned long host_dr6; |