Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp109660ybt; Thu, 25 Jun 2020 16:40:54 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzAAcdX/OK83qMEDocvSKSVp71GX1qzA96i2SgFLpEBVCci9lW2wxn1nSmKSlLhg/AijmSp X-Received: by 2002:a50:f109:: with SMTP id w9mr625703edl.277.1593128453944; Thu, 25 Jun 2020 16:40:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593128453; cv=none; d=google.com; s=arc-20160816; b=HeEiiJ5dMab7x/M+fkvA4lbin+AYBS4qFipu40dx7ryebOZShkQekGkp3EWWUKpW4r T70wTN9tqHHYAkcO2JlbQjBG397w30p2kplX/VSArDy0hvj+FuRBemFHkYHeVopwaOpV sS1+IDbT5X8l3SQ9qZZakwzEc6qAM44LYhIUFcYBvmTWcT/R+31TsQGWaRVkKlj2GgE4 q2BpZLpNgMfEDpOMcEsERG3AkQtJvMHiQrvLTA+aWdKq3EjDroRQLRFiyhc4L1MGeUDV ysKScJq/tMmp7RD+fB2//Dw4VFaV3bnbIdemYEJkzVlBkFh6MVDX+ix5HMWHd0YbIgv4 Utjw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:organization:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=STP6//TlYgNczZqJUbnFDI0HPmhfqZNiTSQQ8iTo/QI=; b=YNEhS/ZxCm8YCDerT3uPnx/boYcfj5p8h1NUMjtMVnjgnYhEOIEtySrbgBJEcd5iET tDTmr1W20xWqc6JeNLoENrWktjgoxyJt41UOe4jH3AgLBgWH6HoPsejOC658IVxUi/pr BLVV3pKlizOqs7mx1UA59g3/8MPbjnkLUWLrUwsNOAv7dKLo7YlCdj7c2/JHcHvBNhye LQRnavLjnSTgbhlsmpjt7+uFW96Wph6ZRXgEe3AIixnWohTySna2Yrr4ugnE/t9XEQ6P C5GHiOk7p/E/6rmvokmjNGjnq0j+3XUVVkX6spolxDmxiLHS5zWkDojzBG6W51TGj7ps ns+g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i23si9272979edx.261.2020.06.25.16.40.24; Thu, 25 Jun 2020 16:40:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2407265AbgFYVhO (ORCPT + 99 others); Thu, 25 Jun 2020 17:37:14 -0400 Received: from mga02.intel.com ([134.134.136.20]:19238 "EHLO mga02.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2403961AbgFYVhN (ORCPT ); Thu, 25 Jun 2020 17:37:13 -0400 IronPort-SDR: wZzgOCCSU9HONFG6Ay41YdLmcva6n7OOXmYZ/PvUgcQrBBT78/9SeexGrcjN2HyYvN0D39kOGg YDkp/6QsoW6w== X-IronPort-AV: E=McAfee;i="6000,8403,9663"; a="133493436" X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="133493436" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by orsmga101.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Jun 2020 14:37:13 -0700 IronPort-SDR: ZYE4sOE06IOvTvItpR8GtoR8eyOVVzhAYghfwYSFdFMybDF5U6/sjPX2HGzPeVw6MVrlkPSe1y kUwKb40kmF+w== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.75,280,1589266800"; d="scan'208";a="265464116" Received: from jproldan-mobl.ger.corp.intel.com (HELO localhost) ([10.252.49.123]) by fmsmga008.fm.intel.com with ESMTP; 25 Jun 2020 14:37:06 -0700 Date: Fri, 26 Jun 2020 00:37:05 +0300 From: Jarkko Sakkinen To: Don Porter Cc: Andy Lutomirski , Thomas Gleixner , Andi Kleen , Sasha Levin , linux-kernel@vger.kernel.org, bp@alien8.de, luto@kernel.org, hpa@zytor.com, dave.hansen@intel.com, tony.luck@intel.com, ravi.v.shankar@intel.com, chang.seok.bae@intel.com Subject: Re: [PATCH v12 00/18] Enable FSGSBASE instructions Message-ID: <20200625213705.GF20341@linux.intel.com> References: <7A3EBAB0-B3B3-4CB7-AA6A-FDF29D03E30D@amacapital.net> <20200529152756.GA7452@invisiblethingslab.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 25, 2020 at 11:27:28AM -0400, Don Porter wrote: > On 5/29/20 11:27 AM, Wojtek Porczyk wrote: > > On Thu, May 28, 2020 at 11:38:01AM -0700, Andy Lutomirski wrote: > > > One useful test for the actual kernel patches would be to run your SGX > > > workload on a loaded core. That is, do something like taskset -c > > > 0 graphene_thing and, simultaneously, write a trivial infinite loop program > > > and run that under taskset -c 0 as well. For good measure, you could have > > > perf top or perf record running at the same time. Look for kernel errors, > > > but also look for any evidence of your workload malfunctioning. > > > > We currently run as part of CI several workloads[1], among them LTP tests[2], > > and sometimes it's not pretty, because we encounter stability problems in > > Graphene+SGX even without the patchset. We'll pick some stable subset and > > will let know. Right now we'll have to retool CI for custom kernels, which > > will take some back and forth with uni's admins. > > > > [1] https://github.com/oscarlab/graphene/tree/master/Examples > > [2] https://github.com/oscarlab/graphene/tree/master/LibOS/shim/test/ltp > > > > Following up: we have been running a patched 5.7 kernel with v12 of this > series on one of our CI workers. As Wojtek mentions, infrastructure and > other orthogonal issues took some time. > > We have run our complete SGX testing pipelines successfully several times > with no issues: no errors in Graphene or suspicious kernel messages. > > I also did Andy's suggested test: > * Graphene running nginx pinned to core 0 > * infinite loop on core 0 > * perf top running > * Exercised with non-SGX apache bench several times (~10 minutes of testing > time) also from core 0 > > Again, no apparent issues, nothing in dmesg. I ran a similar setup with our > SGX-specific Graphene (PAL) unit tests. Same story: everything looks good. > > Let us know if we can be of any more help here. > > Thanks, > Don Can unmodified Graphene-SGX used with these changes? /Jarkko