Re: [PATCH 0/5] KVM: x86: support setting the CPL independent of CS

2014-05-14 Thread Paolo Bonzini
Il 13/05/2014 16:55, Paolo Bonzini ha scritto: Until now, KVM used to assume that CS.RPL could always be used as the CPL value when KVM_SET_SREGS is called. Unfortunately this is not the case. If userspace decides to call KVM_GET_SREGS/KVM_SET_SREGS exactly after CR0.PE has been set to 1, but be

[PATCH 0/5] KVM: x86: support setting the CPL independent of CS

2014-05-13 Thread Paolo Bonzini
Until now, KVM used to assume that CS.RPL could always be used as the CPL value when KVM_SET_SREGS is called. Unfortunately this is not the case. If userspace decides to call KVM_GET_SREGS/KVM_SET_SREGS exactly after CR0.PE has been set to 1, but before the long jump that reloads CS, the CPL will