Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp5967315ybv; Wed, 12 Feb 2020 03:39:39 -0800 (PST) X-Google-Smtp-Source: APXvYqyOFMO8/eXCX3S6n7YonD3Tvkiyn04bqWWD/4zViLFIln8xYV26GrXvI1dKmg4PiGHwnrWA X-Received: by 2002:aca:2118:: with SMTP id 24mr5959552oiz.28.1581507579555; Wed, 12 Feb 2020 03:39:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581507579; cv=none; d=google.com; s=arc-20160816; b=w1o/uX+EhMXTtYoDLdyrTz0+Bj4kY6tRPQN49ebfPvCo9leAzapAziR3KfVEWx5J6g uksgRaFg7pVCBgkgFo2QnHKIgfcHrLMf3E95oIkvGlyAdSmbD3+PGwOtGsgJIianq6fs x49oTc+i6hgfMFQBIAZ8H6p5dMMwIAIev6+W3hZ5AjpNqhpzzsEsera3U9oVnXxFu/LV W7iA7xE/M5/FJzpMOK+R8GsMKhfkJxGMCKCMSc/J8B+3j1Nxp2NpP9G9HeFgR6BOhDRg yKTHtcanC+eplCjqg28b67x73qxTcR4+7hXO62pcYNeQYDYHb6GD4uWN8uW+pnVeKis2 24ew== 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; bh=qJFh2M13BWOpiSsw+DIcDY/FcTMglxSFhV9hBVPuSKg=; b=B6qjwmWgVF9EnOEA6BQoKyB5uvzUCLTWQic1cmEG/GTwm4GFqshl2ryKXCGIB0N5YJ u2PlOupb0IT0wNGOrMHHKSKCVowhLxvMHiBXYMzpTaVIKs1Q5JUnQUx8HpWQyE74NGXg BboAZIePj5X44vU1dsnIYrLfGS9D0OXJw/t4dNG2kWqBwA7/XrXDJm/ZWh2LWqkJLpU+ iMfhGd5UblsMflvkdRoe+j3v7qcinUoAlWtOHpktrRESQb6b28NIBlIY1f7IW7YKFEMQ nS9GOqIX8yodU8W6mYFnLEINlEhyEs5MGqSfHIvoWU6pLua2j4kKff4ksdC5LMyYIs/l l03A== 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 z18si72841oti.219.2020.02.12.03.39.27; Wed, 12 Feb 2020 03:39:39 -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 S1728099AbgBLLi5 (ORCPT + 99 others); Wed, 12 Feb 2020 06:38:57 -0500 Received: from 8bytes.org ([81.169.241.247]:53660 "EHLO theia.8bytes.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726728AbgBLLi4 (ORCPT ); Wed, 12 Feb 2020 06:38:56 -0500 Received: by theia.8bytes.org (Postfix, from userid 1000) id E4BE34A6; Wed, 12 Feb 2020 12:38:54 +0100 (CET) Date: Wed, 12 Feb 2020 12:38:40 +0100 From: Joerg Roedel To: Andy Lutomirski Cc: X86 ML , "H. Peter Anvin" , Dave Hansen , Peter Zijlstra , Thomas Hellstrom , Jiri Slaby , Dan Williams , Tom Lendacky , Juergen Gross , Kees Cook , LKML , kvm list , Linux Virtualization , Joerg Roedel Subject: Re: [PATCH 14/62] x86/boot/compressed/64: Add stage1 #VC handler Message-ID: <20200212113840.GB20066@8bytes.org> References: <20200211135256.24617-1-joro@8bytes.org> <20200211135256.24617-15-joro@8bytes.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 02:23:22PM -0800, Andy Lutomirski wrote: > On Tue, Feb 11, 2020 at 5:53 AM Joerg Roedel wrote: > > +void __init no_ghcb_vc_handler(struct pt_regs *regs) > > Isn't there a second parameter: unsigned long error_code? No, the function gets the error-code from regs->orig_ax. This particular function only needs to check for error_code == SVM_EXIT_CPUID, as that is the only one supported when there is no GHCB. Regards, Joerg