Home
last modified time | relevance | path

Searched refs:next_tss_desc (Results 1 – 2 of 2) sorted by relevance

/openbmc/qemu/target/i386/hvf/
H A Dx86_task.c124 struct x86_segment_descriptor curr_tss_desc, next_tss_desc; in vmx_handle_task_switch() local
135 x86_read_segment_descriptor(cpu, &next_tss_desc, tss_sel); in vmx_handle_task_switch()
149 desc_limit = x86_segment_limit(&next_tss_desc); in vmx_handle_task_switch()
150 … if (!next_tss_desc.p || ((desc_limit < 0x67 && (next_tss_desc.type & 8)) || desc_limit < 0x2b)) { in vmx_handle_task_switch()
166 next_tss_desc.type |= (1 << 1); /* set busy flag */ in vmx_handle_task_switch()
167 x86_write_segment_descriptor(cpu, &next_tss_desc, tss_sel); in vmx_handle_task_switch()
170 if (next_tss_desc.type & 8) in vmx_handle_task_switch()
171 ret = task_switch_32(cpu, tss_sel, old_tss_sel, old_tss_base, &next_tss_desc); in vmx_handle_task_switch()
178 x86_segment_descriptor_to_vmx(cpu, tss_sel, &next_tss_desc, &vmx_seg); in vmx_handle_task_switch()
/openbmc/linux/arch/x86/kvm/
H A Demulate.c2923 struct desc_struct curr_tss_desc, next_tss_desc; in emulator_do_task_switch() local
2967 desc_limit = desc_limit_scaled(&next_tss_desc); in emulator_do_task_switch()
2968 if (!next_tss_desc.p || in emulator_do_task_switch()
2969 ((desc_limit < 0x67 && (next_tss_desc.type & 8)) || in emulator_do_task_switch()
2987 if (next_tss_desc.type & 8) in emulator_do_task_switch()
2988 ret = task_switch_32(ctxt, old_tss_sel, old_tss_base, &next_tss_desc); in emulator_do_task_switch()
2991 old_tss_base, &next_tss_desc); in emulator_do_task_switch()
2999 next_tss_desc.type |= (1 << 1); /* set busy flag */ in emulator_do_task_switch()
3000 write_segment_descriptor(ctxt, tss_selector, &next_tss_desc); in emulator_do_task_switch()
3004 ops->set_segment(ctxt, tss_selector, &next_tss_desc, 0, VCPU_SREG_TR); in emulator_do_task_switch()
[all …]