KVM: x86: add functions to get the cpl of vcpu

Signed-off-by: Izik Eidus <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
This commit is contained in:
Izik Eidus 2008-03-24 19:38:34 +02:00 • committed by Avi Kivity
commit 2e4d265349
3 changed files with 24 additions and 0 deletions

View file

@ -388,6 +388,7 @@ struct kvm_x86_ops {
u64 (*get_segment_base)(struct kvm_vcpu *vcpu, int seg);
void (*get_segment)(struct kvm_vcpu *vcpu,
struct kvm_segment *var, int seg);
int (*get_cpl)(struct kvm_vcpu *vcpu);
void (*set_segment)(struct kvm_vcpu *vcpu,
struct kvm_segment *var, int seg);
void (*get_cs_db_l_bits)(struct kvm_vcpu *vcpu, int *db, int *l);