Searched refs:next_tss_desc (Results 1 – 2 of 2) sorted by relevance
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_task.c | 124 struct x86_segment_descriptor curr_tss_desc, next_tss_desc; in vmx_handle_task_switch() local 134 x86_read_segment_descriptor(cpu, &next_tss_desc, tss_sel); in vmx_handle_task_switch() 148 desc_limit = x86_segment_limit(&next_tss_desc); in vmx_handle_task_switch() 149 … if (!next_tss_desc.p || ((desc_limit < 0x67 && (next_tss_desc.type & 8)) || desc_limit < 0x2b)) { in vmx_handle_task_switch() 165 next_tss_desc.type |= (1 << 1); /* set busy flag */ in vmx_handle_task_switch() 166 x86_write_segment_descriptor(cpu, &next_tss_desc, tss_sel); in vmx_handle_task_switch() 169 if (next_tss_desc.type & 8) { in vmx_handle_task_switch() 170 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 D | emulate.c | 2923 struct desc_struct curr_tss_desc, next_tss_desc; in emulator_do_task_switch() local 2933 ret = read_segment_descriptor(ctxt, tss_selector, &next_tss_desc, &desc_addr); in emulator_do_task_switch() 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() [all …]
|