Re: [PATCH v2 0/4] KVM: x86: get CPL from SS.DPL

2014-05-26 Thread Paolo Bonzini
Il 26/05/2014 00:58, Wei Huang ha scritto: If so , my question: is there other special cases similar to task switch which can break patch 4? I don't think so. CPL can only change when SS is loaded, i.e. for inter-privilege transfers that aren't far calls or far jumps to a conforming code seg

Re: [PATCH v2 0/4] KVM: x86: get CPL from SS.DPL

2014-05-25 Thread Wei Huang
> Another day, another CPL patch... > > It turns out that the simple approach of getting CPL from SS.DPL > broke x86/taskswitch2.flat. To fix that, already "imagine" that the > CPL is CS.RPL, or 3 for VM86 tasks, while loading segment descriptors > during task switches. This removes the hack wher

[PATCH v2 0/4] KVM: x86: get CPL from SS.DPL

2014-05-15 Thread Paolo Bonzini
Another day, another CPL patch... It turns out that the simple approach of getting CPL from SS.DPL broke x86/taskswitch2.flat. To fix that, already "imagine" that the CPL is CS.RPL, or 3 for VM86 tasks, while loading segment descriptors during task switches. This removes the hack where task swit