diff options
author | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:37:51 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-05-07 23:37:51 -0400 |
commit | 02bbc0f09c90cefdb2837605c96a66c5ce4ba2e1 (patch) | |
tree | 04ef573cd4de095c500c9fc3477f4278c0b36300 /drivers/kvm/kvm_svm.h | |
parent | 7487a2245b8841c77ba9db406cf99a483b9334e9 (diff) | |
parent | 5b94f675f57e4ff16c8fda09088d7480a84dcd91 (diff) |
Merge branch 'linux-2.6'
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; |