Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp3579631imm; Mon, 25 Jun 2018 00:37:50 -0700 (PDT) X-Google-Smtp-Source: ADUXVKJDU/vVERsXidE5tgRN48OHf4ELPevlGdRDi5IoT/NyPOX8Q/oDLYp8jFwLcV/AO5uOl7EC X-Received: by 2002:a17:902:14b:: with SMTP id 69-v6mr11341288plb.184.1529912270501; Mon, 25 Jun 2018 00:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1529912270; cv=none; d=google.com; s=arc-20160816; b=p0f0X90pzArKWjUY+M2/EBNrUtsHlHbEyowTf7gZQrPpogYt6/Ok+8QKtLJy11+dF3 xP4Q00i3hhowDAp0loI8tzuy9kcU1/bRSyXdtSePdXKaTKZ1l6cnQHIo4PMLVyHjshDU O3fq5FhXGbCWD47eIxKIPZnlLdtw4aEiLm7QeI40JRm/smurzJRSqmpc+uIPlpdH36// /MmSOl1r/RVCNndXpYxygAb/dDEQveW9VYgfTEYxLeeZP9Dt/E8ePv+UxZEdkJbYUpoI +TUFw/rE48q8ku2YdoMgrWrEGiyDmLRi2d7TYuMhNtiMU5nYZbkv//Pli3gQVU2BEaSj Wpng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :organization:references:in-reply-to:date:cc:to:from:subject :message-id:arc-authentication-results; bh=3FOpaY/0U4Y1o33c66szm0Pg+N6rlaIEu12jGWR4nyo=; b=O+qmHDy+UvNtC691oC0S1FdRcGFaVUHrSmje1Ul6L7gZ9ruORjK/iqVuGGmRDLqgmn 4H8gAT8/8OM33M3RBo+YJdt8AIYULwr0Qgs3V13qeIPeSsKis7Dfa6VYALCkFEM1V5J5 DAI6/wVRoniUyWwiMWlBh+QJOC9QrlJWpdrYxmp4Yh2K6iKQ05FjV+zDZiqQwCwGmUeO YrXF/9bsi7qxIIdN2tTpe2pRPzx0MGStFf3CI1sjb3nnsTfNwwtrzlGV7dM1gcdZ6DhJ Xa4+ekfolmsSfzU4jtcBDmhsUZQIxuUyFLZjP63zmyUnuZj0vI6muBgTItGsl9XnCuVB PfYA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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. [209.132.180.67]) by mx.google.com with ESMTP id h189-v6si6258819pge.66.2018.06.25.00.37.36; Mon, 25 Jun 2018 00:37:50 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 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 S1752526AbeFYHgw (ORCPT + 99 others); Mon, 25 Jun 2018 03:36:52 -0400 Received: from mga05.intel.com ([192.55.52.43]:39248 "EHLO mga05.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752335AbeFYHgv (ORCPT ); Mon, 25 Jun 2018 03:36:51 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 25 Jun 2018 00:36:50 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.51,269,1526367600"; d="scan'208";a="51997282" Received: from jsakkine-mobl1.tm.intel.com (HELO jsakkine-mobl1) ([10.237.50.42]) by orsmga008.jf.intel.com with ESMTP; 25 Jun 2018 00:36:47 -0700 Message-ID: <208b7c272ca4a5f01299ec6c89f57b2b00b7866d.camel@linux.intel.com> Subject: Re: [intel-sgx-kernel-dev] [PATCH v11 09/13] x86, sgx: basic routines for enclave page cache From: Jarkko Sakkinen To: Andy Lutomirski , Jethro Beekman Cc: X86 ML , Platform Driver , npmccallum@redhat.com, LKML , Ingo Molnar , intel-sgx-kernel-dev@lists.01.org, "H. Peter Anvin" , Thomas Gleixner Date: Mon, 25 Jun 2018 10:36:47 +0300 In-Reply-To: References: <20180608171216.26521-1-jarkko.sakkinen@linux.intel.com> <20180608171216.26521-10-jarkko.sakkinen@linux.intel.com> <78982a32-c589-48e2-9a83-fd36903b5588@fortanix.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.28.1-2 Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2018-06-18 at 14:33 -0700, Andy Lutomirski wrote: > When KVM host support goes in, even this won't be good enough if we > want to allow passthrough access to the MSRs because we will no longer > be able to guarantee that all zeros is invalid. Instead we'd need an > actual flag saying that the cache is invalid. I'm not sure if I understood this part. If it was pass-through, and there was a flag, how that flag in the host would get updated? /Jarkko