Y
Y
Yuri Popov2012-05-09 00:30:28
virtual box
Yuri Popov, 2012-05-09 00:30:28

Switching TSS: Intel vs. Oracle?

Who is to blame, and what to do about it?

The Intel specs say (7.3):

8. Saves the state of the current (old) task in the current task's TSS.

12. The TSS state is loaded into the processor.

First we save, then we load, which is logical. But, while trying to recreate this code , I came across the #TS exception in VirtualBox and QEMU (everything was ok in vmWare and real computers). Digging into the problem, it was found out that there are zeros in the TSS segment registers, that is, VirtualBox and QEMU do not save the current state of the task (or rather, they do it after loading. Proof 1 : 375, Proof 2 : 386).

Temporarily solved the problem by forced manual filling of TSS. What is true in the end? Which of the giants to believe?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question