Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp6232940ybv; Wed, 12 Feb 2020 08:22:45 -0800 (PST) X-Google-Smtp-Source: APXvYqw5q+pW8Uyc+P90sxHAO49VPYhN3RbsVRNngqDxnWWaMsEYyCXitxlUHnNseXuWjIg4xEcM X-Received: by 2002:aca:1c1a:: with SMTP id c26mr6847377oic.75.1581524565260; Wed, 12 Feb 2020 08:22:45 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581524565; cv=none; d=google.com; s=arc-20160816; b=j5sGpfJoBcsMJ2IUBVIIskT4E96gjWkqFkyODtVd88FiJ8L8gO0ZRt5+sdzMOekhsX oqSjMaipXOoMrzzPc2CQvn2Eg/2GwNduiG3vYMM0loD3fDWxYVDOZoXFTWWM06FuMRsw vmAfI3EYPl0S6We3jGtfH8baGIwxE96gm1+mb6Cfvo3+smjz2ZpU+iaqIZYNJkKFwFRd LEXpnF1GIGjBnGvpRSioQ3clc1ncuOdJ0ulwzUmkuwr//vkDAIUAot3a51NLZAlpJFcP BJ9MTxzr8WwE1a2gYSltSZF0lhHNqly6c9BPiKLiiYvA3FBCBaf3gg0ULidlbwHSOGPp 9oJA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:in-reply-to:cc:references:message-id :date:subject:mime-version:from:content-transfer-encoding :dkim-signature; bh=UtBs909g2Ug5B/GmWLl9syqH2ckGGAYGctQB3xVEPLk=; b=mqJxBeLGKoQwzgw26pGX27ipbVsZ38BkXTO+LLzChkE8/uKWkquC22XikKoIkVA0Vy 4PUsjwK8orGXrJi+GRGyJmATtJ6AejDVfZ2fg0TJFdRBrly5jLz3twMNXwYE9vmY4GqW mcnTmxhJa+Cyt6QQb3dDdCwvdKXvbFXAgiVYpfmO7KYyNQnFbwQ684rerRpMjQY/5Phs I2a4fdPDry7Ndv9e6FGFyYjmntKTBriz0IcC/hspu8KuhL6tI1w3zK8hZV6qV3vDKXXG ir/mHCDosneJr0yUU/dotkSaML5nEMTXwaiVrbLPLB0MLgx0nBeuXdBiO15M8fRen/63 Fc9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=V0nJ4J4n; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r82si3396812oie.116.2020.02.12.08.22.31; Wed, 12 Feb 2020 08:22:45 -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; dkim=pass header.i=@amacapital-net.20150623.gappssmtp.com header.s=20150623 header.b=V0nJ4J4n; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728460AbgBLQWS (ORCPT + 99 others); Wed, 12 Feb 2020 11:22:18 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:40061 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727007AbgBLQWS (ORCPT ); Wed, 12 Feb 2020 11:22:18 -0500 Received: by mail-pf1-f195.google.com with SMTP id q8so1474008pfh.7 for ; Wed, 12 Feb 2020 08:22:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amacapital-net.20150623.gappssmtp.com; s=20150623; h=content-transfer-encoding:from:mime-version:subject:date:message-id :references:cc:in-reply-to:to; bh=UtBs909g2Ug5B/GmWLl9syqH2ckGGAYGctQB3xVEPLk=; b=V0nJ4J4nOpEq7kQ1dqdvmNnRxG670BfZwH5PqrHNkdmszKt+Nuf5IkDfEPLa6hHtjy oQ/5HvIyGCUiyO+DKLpmEhjIaRtaMGsX4Ho4j+g5PEHbDGEU4EJj2lBNBfX3LEUu9h39 U7haCGvFvvtAEpjYU7/qWar6H5YvcL/BQUp2/+6JPuTRlsj3hgsVKRDQdiJerCImp4VP 9O/2vHiw/xH7JQHP6NWurerQCjwskocQQpbyiomB2Q4aqgBGsB4wCYS4fgUtTV5EJVqO a9lsRy8l7mxCuMF2IuG8tVVKQVL4K7Y4LzMZWYykNg9SJMfePai7QvvlNM7P3AxhiqI8 2brg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:content-transfer-encoding:from:mime-version :subject:date:message-id:references:cc:in-reply-to:to; bh=UtBs909g2Ug5B/GmWLl9syqH2ckGGAYGctQB3xVEPLk=; b=GEYVc6MflupvVHB03nsuUOm388aaG2YX0abB9Eiocysf4n+ghjQG/ru3sw8m7XuYYz KSXiNxW39EeSPdP2Mfl3hCV6Hv4eevvDd/mcc3pHVuF5Fez7vRK+VNBpJmMgfXD3d4Cg GDCF9+M60oT5MDOUS+Lcg3oXLMh592aHxaExg1eu4YeNQfgoFCoBEcNqxbo47BJAvyCy ueKLlJ1poJ0HXQU47uM/hpB+ppV75eLbNVvrcMVDmzcjKJvL681QfTNbWrtfK/uM+ikc TJf8ZzUqyWRwHprGPUOK+mDHHhR/ATHQFGqbMQpjMIgMM4fBUUmzXHOC1SMqk8Pns4cE tRkw== X-Gm-Message-State: APjAAAVt8IzFr1oAWcH947p2Cdl3BmA0pqQSmI2/Pi15CHG8cvSowbYT SNehuZX8MFpkfJmuWT+zZU7u8A== X-Received: by 2002:aa7:86c2:: with SMTP id h2mr9202566pfo.45.1581524537390; Wed, 12 Feb 2020 08:22:17 -0800 (PST) Received: from ?IPv6:2601:646:c200:1ef2:6918:d286:95c1:bba2? ([2601:646:c200:1ef2:6918:d286:95c1:bba2]) by smtp.gmail.com with ESMTPSA id z19sm1429801pfn.49.2020.02.12.08.22.16 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Wed, 12 Feb 2020 08:22:16 -0800 (PST) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable From: Andy Lutomirski Mime-Version: 1.0 (1.0) Subject: Re: [PATCH 14/62] x86/boot/compressed/64: Add stage1 #VC handler Date: Wed, 12 Feb 2020 08:22:14 -0800 Message-Id: References: <20200212113840.GB20066@8bytes.org> Cc: Andy Lutomirski , 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 In-Reply-To: <20200212113840.GB20066@8bytes.org> To: Joerg Roedel X-Mailer: iPhone Mail (17D50) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org > On Feb 12, 2020, at 3:38 AM, Joerg Roedel wrote: >=20 > =EF=BB=BFOn 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) >>=20 >> Isn't there a second parameter: unsigned long error_code? >=20 > No, the function gets the error-code from regs->orig_ax. This particular > function only needs to check for error_code =3D=3D SVM_EXIT_CPUID, as that= > is the only one supported when there is no GHCB. >=20 Hmm. It might be nice to use the same signature for early handlers as for no= rmal ones. > Regards, >=20 > Joerg