Skip to content
Commit 2305339e authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

kvm: selftests: create a GDT and TSS



The GDT and the TSS base were left to zero, and this has interesting effects
when the TSS descriptor is later read to set up a VMCS's TR_BASE.  Basically
it worked by chance, and this patch fixes it by setting up all the protected
mode data structures properly.

Because the GDT and TSS addresses are virtual, the page tables now always
exist at the time of vcpu setup.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 44883f01
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment