aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86
diff options
context:
space:
mode:
Diffstat (limited to 'arch/x86')
-rw-r--r--arch/x86/kvm/x86.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c
index f175b796c2a6..ceeac8897143 100644
--- a/arch/x86/kvm/x86.c
+++ b/arch/x86/kvm/x86.c
@@ -3373,9 +3373,9 @@ static void seg_desct_to_kvm_desct(struct desc_struct *seg_desc, u16 selector,
3373 kvm_desct->padding = 0; 3373 kvm_desct->padding = 0;
3374} 3374}
3375 3375
3376static void get_segment_descritptor_dtable(struct kvm_vcpu *vcpu, 3376static void get_segment_descriptor_dtable(struct kvm_vcpu *vcpu,
3377 u16 selector, 3377 u16 selector,
3378 struct descriptor_table *dtable) 3378 struct descriptor_table *dtable)
3379{ 3379{
3380 if (selector & 1 << 2) { 3380 if (selector & 1 << 2) {
3381 struct kvm_segment kvm_seg; 3381 struct kvm_segment kvm_seg;
@@ -3400,7 +3400,7 @@ static int load_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector,
3400 struct descriptor_table dtable; 3400 struct descriptor_table dtable;
3401 u16 index = selector >> 3; 3401 u16 index = selector >> 3;
3402 3402
3403 get_segment_descritptor_dtable(vcpu, selector, &dtable); 3403 get_segment_descriptor_dtable(vcpu, selector, &dtable);
3404 3404
3405 if (dtable.limit < index * 8 + 7) { 3405 if (dtable.limit < index * 8 + 7) {
3406 kvm_queue_exception_e(vcpu, GP_VECTOR, selector & 0xfffc); 3406 kvm_queue_exception_e(vcpu, GP_VECTOR, selector & 0xfffc);
@@ -3419,7 +3419,7 @@ static int save_guest_segment_descriptor(struct kvm_vcpu *vcpu, u16 selector,
3419 struct descriptor_table dtable; 3419 struct descriptor_table dtable;
3420 u16 index = selector >> 3; 3420 u16 index = selector >> 3;
3421 3421
3422 get_segment_descritptor_dtable(vcpu, selector, &dtable); 3422 get_segment_descriptor_dtable(vcpu, selector, &dtable);
3423 3423
3424 if (dtable.limit < index * 8 + 7) 3424 if (dtable.limit < index * 8 + 7)
3425 return 1; 3425 return 1;