Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp1368369ybg; Thu, 4 Jun 2020 08:02:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz8EhqjfgfE3PPEwXOb5XqFlWlPRxejyWtxIS2v6DfbvGrG6zODwiouPuQLBom2APbKx7rG X-Received: by 2002:aa7:df05:: with SMTP id c5mr4606207edy.48.1591282954228; Thu, 04 Jun 2020 08:02:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591282954; cv=none; d=google.com; s=arc-20160816; b=URdXDT5Gn03iFwDGA5OjwSzlpXf3wqn3NjfdWe9wjTBEYtLdOhcrxXfyy5Z1CnllRw Bt0/I2Jz5tarXNQifdYFKXmg/GoB/TUkoLNQVWt68osSPWIOKHZFzPrfEn5oGAIJNdUS Z2ZyxjOTq6R+2fIHIF8rD0iBdTS27FsR2hfWYWOfm9ob1BpWdDhTSv7q6JIVvlxYc9hR 2Fp1BORTi284rp+SgVP51vHzFk0fwjXRJ/UCGDd84yhhl2S5QLX/qEWt0omVjv0yR9wA pdCQ5UtJfx/F2pPihGyZrebbyLNalJ7tTHiYGG5u2PPq/TA+KXoOy+8TfiYSrNxyqGO/ 9IDA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:ironport-sdr:ironport-sdr; bh=MTpYqfXLyIpX/t3ey8XYb8o0DgRlxpE29DzFv9VXLoE=; b=b2agG+ECIvxZF/MxuaOwCukukDVWU1oysi2FjGu5BXFMPYGYTiZnmtVOEdQKhcb0HP Rf9+2Cn1cbb5oVAjc0BuexbDPkv0LUvkaxGJyNzRNPCwwsv9gam08LA9qRjZWUu22yFI 93/rKp8PqflL6DQI0USbXABsIm80wJD+6JwjwGTA0xxczO+NTJ+Pbzv4mnKD67mn1pUS gIhffXOTvHdrz3nCJcylaDvI0O8rNY2nDui+rhLiC12xdyEjoQh3OIS63DwlqVwtlze3 SqVbJn3Wpl9yj/tIzyCjzc6WlYaLCyTcIAYBXwSQJmrJJefsw1aPXdncEq7JW5Lm+D3e L45Q== 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 z2si1799447ejo.329.2020.06.04.08.02.07; Thu, 04 Jun 2020 08:02:34 -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 S1729193AbgFDO7h (ORCPT + 99 others); Thu, 4 Jun 2020 10:59:37 -0400 Received: from mga17.intel.com ([192.55.52.151]:10498 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729082AbgFDO7e (ORCPT ); Thu, 4 Jun 2020 10:59:34 -0400 IronPort-SDR: Rxic9d6J17TQzhVOv3tuCH4XFnNGOtIhMPZ21FvhRT7AqCFpMQyuwDXi/4fJRugc4b6jg9Rkvg VlwEClcd6VRQ== X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 04 Jun 2020 07:59:33 -0700 IronPort-SDR: f8xpR6ftA8jWoGpYXfb75vNCZkc5KvD3ZQyaQg8TnxPYhjeRCt/F0z1Qf9QReeDzqvAytAOHpH 64ZoJYMs7T6g== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.73,472,1583222400"; d="scan'208";a="287397621" Received: from sjchrist-coffee.jf.intel.com (HELO linux.intel.com) ([10.54.74.152]) by orsmga002.jf.intel.com with ESMTP; 04 Jun 2020 07:59:33 -0700 Date: Thu, 4 Jun 2020 07:59:33 -0700 From: Sean Christopherson To: Joerg Roedel Cc: x86@kernel.org, hpa@zytor.com, Andy Lutomirski , Dave Hansen , Peter Zijlstra , Thomas Hellstrom , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , David Rientjes , Cfir Cohen , Erdem Aktas , Masami Hiramatsu , Mike Stunes , Joerg Roedel , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org Subject: Re: [PATCH v3 25/75] x86/sev-es: Add support for handling IOIO exceptions Message-ID: <20200604145932.GB30223@linux.intel.com> References: <20200428151725.31091-1-joro@8bytes.org> <20200428151725.31091-26-joro@8bytes.org> <20200520062055.GA17090@linux.intel.com> <20200603142325.GB23071@8bytes.org> <20200603230716.GD25606@linux.intel.com> <20200604101502.GA20739@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200604101502.GA20739@8bytes.org> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Jun 04, 2020 at 12:15:02PM +0200, Joerg Roedel wrote: > On Wed, Jun 03, 2020 at 04:07:16PM -0700, Sean Christopherson wrote: > > On Wed, Jun 03, 2020 at 04:23:25PM +0200, Joerg Roedel wrote: > > > User-space can also cause IOIO #VC exceptions, and user-space can be > > > 32-bit legacy code with segments, so es_base has to be taken into > > > account. > > > > Is there actually a use case for this? Exposing port IO to userspace > > doesn't exactly improve security. > > Might be true, but Linux supports it and this patch-set is not the place > to challenge this feature. But SEV already broke it, no?