diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2007-09-05 11:21:32 -0400 |
---|---|---|
committer | Avi Kivity <avi@qumranet.com> | 2007-10-13 04:18:27 -0400 |
commit | 1747fb71fd7c9389696e91f354d2f841b5c85790 (patch) | |
tree | 8c0658884e62693a94c2ebd35f83331ffa083a7d /drivers/kvm/kvm.h | |
parent | 81f50e3bfdf864103ef890ca156e7a9c922c7089 (diff) |
KVM: Hoist SVM's get_cs_db_l_bits into core code.
SVM gets the DB and L bits for the cs by decoding the segment. This
is in fact the completely generic code, so hoist it for kvm-lite to use.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Avi Kivity <avi@qumranet.com>
Diffstat (limited to 'drivers/kvm/kvm.h')
-rw-r--r-- | drivers/kvm/kvm.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/kvm/kvm.h b/drivers/kvm/kvm.h index 9bf9ac6389b1..ee9f8bdee755 100644 --- a/drivers/kvm/kvm.h +++ b/drivers/kvm/kvm.h | |||
@@ -586,6 +586,7 @@ void set_cr4(struct kvm_vcpu *vcpu, unsigned long cr0); | |||
586 | void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); | 586 | void set_cr8(struct kvm_vcpu *vcpu, unsigned long cr0); |
587 | unsigned long get_cr8(struct kvm_vcpu *vcpu); | 587 | unsigned long get_cr8(struct kvm_vcpu *vcpu); |
588 | void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); | 588 | void lmsw(struct kvm_vcpu *vcpu, unsigned long msw); |
589 | void kvm_get_cs_db_l_bits(struct kvm_vcpu *vcpu, int *db, int *l); | ||
589 | 590 | ||
590 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); | 591 | int kvm_get_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 *pdata); |
591 | int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data); | 592 | int kvm_set_msr_common(struct kvm_vcpu *vcpu, u32 msr, u64 data); |