diff options
-rw-r--r-- | arch/x86/kvm/x86.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 1842a86f7c33..017daa2561f4 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c | |||
@@ -3484,7 +3484,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason) | |||
3484 | } | 3484 | } |
3485 | 3485 | ||
3486 | if (reason == TASK_SWITCH_IRET || reason == TASK_SWITCH_JMP) { | 3486 | if (reason == TASK_SWITCH_IRET || reason == TASK_SWITCH_JMP) { |
3487 | cseg_desc.type &= ~(1 << 8); //clear the B flag | 3487 | cseg_desc.type &= ~(1 << 1); //clear the B flag |
3488 | save_guest_segment_descriptor(vcpu, tr_seg.selector, | 3488 | save_guest_segment_descriptor(vcpu, tr_seg.selector, |
3489 | &cseg_desc); | 3489 | &cseg_desc); |
3490 | } | 3490 | } |
@@ -3510,7 +3510,7 @@ int kvm_task_switch(struct kvm_vcpu *vcpu, u16 tss_selector, int reason) | |||
3510 | } | 3510 | } |
3511 | 3511 | ||
3512 | if (reason != TASK_SWITCH_IRET) { | 3512 | if (reason != TASK_SWITCH_IRET) { |
3513 | nseg_desc.type |= (1 << 8); | 3513 | nseg_desc.type |= (1 << 1); |
3514 | save_guest_segment_descriptor(vcpu, tss_selector, | 3514 | save_guest_segment_descriptor(vcpu, tss_selector, |
3515 | &nseg_desc); | 3515 | &nseg_desc); |
3516 | } | 3516 | } |