Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6189657ybv; Wed, 12 Feb 2020 07:36:45 -0800 (PST) X-Google-Smtp-Source: APXvYqxJLjWvqwlZBkRmEWaLbuU57uGIlWEJ3Ii7PVRdygrPVmW1oOa0vWwOyklkJY8HqpvMPmsP X-Received: by 2002:a05:6808:18:: with SMTP id u24mr6690941oic.10.1581521804851; Wed, 12 Feb 2020 07:36:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581521804; cv=none; d=google.com; s=arc-20160816; b=UTGcXEwmd/OIWbHCUZmWOrgKg7KVW52gV4NmuUQKqduAMerFKjB375N6QoXn4my4QJ o5N7klTrYnr2Y7E1TiyEZ7PpzN9aXnjXPRqKwM0mH60lurjYFuKuCALa6dgu1Iouy0G0 qz7p9zN1XfkUBuzCHeqgZ7PsxemV21iPAXYIZryLlq91cCmwxGp0RE1OGbQpY6ocJpkk G/sQc6+B0LCpDIMm4lJSnOLovqNRNtWVmpQyN7xLx4Gwkmu9VTncVvPRrIu5gwF5ltDB LqjINcd+BHISWmIFRZdHrNR1nL+t7VcHHY2EOpo67mc1W+YT1H5fN/E8o3jFfbxqvwPl 1Ghw== 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-transfer-encoding:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=BR7u+l0eL1uGBdiANpeU/gHOWAwC7MUpGrkLL2lYJtE=; b=Ju2u9mj+4UZF/7rb6Np06JKiLCHoP3BZKRzydM3HO66GYqXPTXFeN/xhYOPcOd7BYt QhQf0Bruwy3U8yJXUGgkXVYob7E5gWgsO2kSX1QwU1GinJxLd7xbXFrtR2ZE5oM5CQBE AT5umyLTkUFN8S1tpu0nhJ+CgwIdRiJ+Kde/YmKwEC+QXF2AeQ1VxCrK3CjkKwLLUVLa Bs0wsAc8mpah9pFcWoFUZp4ZuFa2Jfn1ThaRXLRcd2q+xbdSgYSonc/GocICzaBI+Ix4 SItFYcPtgRvC2VWR78lBEdyou4p8iFrTUOR4L9hmulk4QPr1ALlizbiNkc56SjSApQZq xFLA== 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=8bytes.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l21si399245otd.1.2020.02.12.07.36.33; Wed, 12 Feb 2020 07:36:44 -0800 (PST) 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=8bytes.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728462AbgBLPgV (ORCPT + 99 others); Wed, 12 Feb 2020 10:36:21 -0500 Received: from 8bytes.org ([81.169.241.247]:54056 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727026AbgBLPgU (ORCPT ); Wed, 12 Feb 2020 10:36:20 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id 56BB03D3; Wed, 12 Feb 2020 16:36:19 +0100 (CET) Date: Wed, 12 Feb 2020 16:36:17 +0100 From: Joerg Roedel To: Andy Lutomirski 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 , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, Joerg Roedel Subject: Re: [PATCH 46/62] x86/sev-es: Handle INVD Events Message-ID: <20200212153617.GD22063@8bytes.org> References: <20200211135256.24617-47-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Feb 11, 2020 at 04:12:19PM -0800, Andy Lutomirski wrote: > > > > On Feb 11, 2020, at 5:53 AM, Joerg Roedel wrote: > > > > From: Tom Lendacky > > > > Implement a handler for #VC exceptions caused by INVD instructions. > > Uh, what? Surely the #VC code can have a catch-all OOPS path for things like this. Linux should never ever do INVD. Right, its hard to come up with a valid use-case for INVD in the Linux kernel. I changed the patch to mark INVD as unsupported and print an error message. Regards, Joerg