KVM: Add kvm_x86_ops get_tdp_level()

The function get_tdp_level() provided the number of tdp level for EPT and
NPT rather than the NPT specific macro.

Signed-off-by: Sheng Yang <sheng.yang@intel.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
This commit is contained in:
Sheng Yang
2008-05-04 14:44:34 +03:00
committed by Avi Kivity
parent 8c6d6adc6b
commit 67253af52e
6 changed files with 20 additions and 8 deletions
+1
View File
@@ -422,6 +422,7 @@ struct kvm_x86_ops {
struct kvm_run *run);
int (*set_tss_addr)(struct kvm *kvm, unsigned int addr);
int (*get_tdp_level)(void);
};
extern struct kvm_x86_ops *kvm_x86_ops;