From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: Re: [PATCH] KVM: x86: Revert "check CS.DPL against RPL during task switch" Date: Sun, 17 Aug 2014 23:52:41 +0200 Message-ID: <53F12429.4080103@redhat.com> References: <53F07745.9080200@redhat.com> <1408303946-2796-1-git-send-email-namit@cs.technion.ac.il> <53F11A21.2040406@redhat.com> <53F11AF7.7080706@redhat.com> <4F071719-C55A-4B18-8F25-47D847311C7D@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: QUOTED-PRINTABLE Cc: Nadav Amit , kvm@vger.kernel.org To: Nadav Amit Return-path: Received: from mx1.redhat.com ([209.132.183.28]:20991 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751391AbaHQVws (ORCPT ); Sun, 17 Aug 2014 17:52:48 -0400 In-Reply-To: <4F071719-C55A-4B18-8F25-47D847311C7D@gmail.com> Sender: kvm-owner@vger.kernel.org List-ID: Il 17/08/2014 23:33, Nadav Amit ha scritto: >> > Also, what about the rpl > cpl test below, for non-conforming code >> > segments? It is not mentioned in table 6-6 either. > As far as I understand, after task-switch cpl =3D cs.rpl. This is how= the load_state_from_tss32 does it, and follows SDM 7.3, Task Switching= :=20 > "The new task begins executing at the privilege level specified in th= e CPL field of the CS register, which is loaded from the TSS.=94 > As a result, this condition can never occur during task-switch. >=20 > Do I miss anything? No, you're right. Paolo