Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-26 Thread Marcelo Tosatti
On Thu, May 15, 2014 at 06:51:28PM +0200, Paolo Bonzini wrote: > 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;

Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-26 Thread Marcelo Tosatti
On Thu, May 15, 2014 at 06:51:28PM +0200, Paolo Bonzini wrote: 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;

Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-25 Thread Wei Huang
>> 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 > > s/flag/EFLAGS/ > >> task switch; however, this will not work once we get

Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-25 Thread Wei Huang
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 s/flag/EFLAGS/ task switch; however, this will not work once we get the CPL

Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-16 Thread Paolo Bonzini
Il 15/05/2014 18:51, Paolo Bonzini ha scritto: 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 s/flag/EFLAGS/ task switch;

Re: [PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-16 Thread Paolo Bonzini
Il 15/05/2014 18:51, Paolo Bonzini ha scritto: 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 s/flag/EFLAGS/ task switch;

[PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-15 Thread Paolo Bonzini
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; however, this will not work once we get the CPL from SS.DPL: setting SS

[PATCH v2 1/4] KVM: x86: use new CS.RPL as CPL during task switch

2014-05-15 Thread Paolo Bonzini
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; however, this will not work once we get the CPL from SS.DPL: setting SS