diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-15 17:56:57 +0200 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2014-05-22 17:45:38 +0200 |
commit | 2356aaeb2f58f491679dc0c38bc3f6dbe54e7ded (patch) | |
tree | bb42d366571bf5a594dd761b605a54d39a8c9c67 /firmware/tigon | |
parent | afa538f0a171f479f6b3a9718a8608ef471ebd77 (diff) |
KVM: x86: use new CS.RPL as CPL during task switch
During task switch, all of CS.DPL, CS.RPL, SS.DPL must match (in addition
to all the other requirements) and will be the new CPL. So far this
worked by carefully setting the CS selector and flag before doing the
task switch; setting CS.selector will already change the CPL.
However, this will not work once we get the CPL from SS.DPL, because
then you will have to set the full segment descriptor cache to change
the CPL. ctxt->ops->cpl(ctxt) will then return the old CPL during the
task switch, and the check that SS.DPL == CPL will fail.
Temporarily assume that the CPL comes from CS.RPL during task switch
to a protected-mode task. This is the same approach used in QEMU's
emulation code, which (until version 2.0) manually tracks the CPL.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'firmware/tigon')
0 files changed, 0 insertions, 0 deletions