From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?UTF-8?Q?Roger_Pau_Monn=c3=a9?= Subject: Re: [PATCH v6 24/29] xen/x86: allow HVM guests to use hypercalls to bring up vCPUs Date: Wed, 30 Sep 2015 16:23:01 +0200 Message-ID: <560BF045.7020502@citrix.com> References: <1441368548-43465-1-git-send-email-roger.pau@citrix.com> <1441368548-43465-25-git-send-email-roger.pau@citrix.com> <5600420C02000078000A4234@prv-mh.provo.novell.com> <5609664D.8060604@citrix.com> <560A555402000078000A6625@prv-mh.provo.novell.com> <560A6124.2090404@citrix.com> <560A7EFA02000078000A6846@prv-mh.provo.novell.com> <560A6714.7060303@citrix.com> <560A851202000078000A68AA@prv-mh.provo.novell.com> <560A69DB.9060505@citrix.com> <560A888D02000078000A68DD@prv-mh.provo.novell.com> <560A99C0.5050202@citrix.com> <560ACA7302000078000A6C93@prv-mh.provo.novell.com> <560AB5C6.6080404@citrix.com> <560AD65F02000078000A6CF6@prv-mh.provo.novell.com> <560AC129.1040309@citrix.com> <560BCF9102000078000A7016@prv-mh.provo.novell.com> <560BC970.1060300@citrix.com> <560BE9A502000078000A716C@prv-mh.provo.novell.com> <560BD345.5090301@citrix.com> <560BF31D02000078000A71BF@prv-mh.provo.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xen.org with esmtp (Exim 4.72) (envelope-from ) id 1ZhIHj-0006DH-PQ for xen-devel@lists.xenproject.org; Wed, 30 Sep 2015 14:23:07 +0000 In-Reply-To: <560BF31D02000078000A71BF@prv-mh.provo.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Jan Beulich Cc: Ian Campbell , George Dunlap , Andrew Cooper , Tim Deegan , Stefano Stabellini , xen-devel@lists.xenproject.org List-Id: xen-devel@lists.xenproject.org El 30/09/15 a les 14.35, Jan Beulich ha escrit: > On 30.09.15 at 14:19, wrote: >> For VCPU_HVM_MODE_32B: >> - rIP within CS limit. >> - Check that CS.DPL == SS.DPL. >> - rSP within SS limit. >> >> TBH I don't think we should enforce the last two checks, starting with >> an invalid stack should be fine as long as the user knows it. Maybe >> print a warning/debug message in this case? > > I wouldn't check ESP at all. As to the two DPLs to, I don't think you > could launch a guest with these disagreeing. I think we should basically check that the DPL of the CS segment is equal or greater than the DPL of all the other segments (ds, ss and es). Roger.