Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp875675pxf; Wed, 7 Apr 2021 13:54:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJx4ihHBmUUufil5AHt1sLJJXMBVaxC0ryBkmaq/zAU4Tn9MmBc8MbMT/aNFprN3qYg5YcAr X-Received: by 2002:a05:6e02:1306:: with SMTP id g6mr4267548ilr.97.1617828877749; Wed, 07 Apr 2021 13:54:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617828877; cv=none; d=google.com; s=arc-20160816; b=tlNF+m18xALQqEX0C1xntMDJFuCDrVm9DSIb164LqvYbxSV+wvyT9UmaI6SQynBQ21 bacu1eXG6Es88R1zd06bf/jUFLZkv5UQ3ZZeX+lhiCirwduppbOA0r+jRnbnH3E3l4NJ so4pptF6OL5qvRKa26U2dbEZG+d5m1G3ooUrj+IvL6oPk+asVlGWm8sT0ZqH+NSMmZNv l3F5tELjeIpLPRV3teyhECjYRqfR+tqPbC2Z01DBH4iE5x0pGln+RVip5syT7qjbr2If q3d9TVtT+eOre27g0QvYalqLGFfBD9Z1GNfW6wVYTxkH7EWRH5rSjiqofNR6hBx+JxNz E9Ng== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=X16VaWChjl8MmKdShkWfeaVAAiA4jnoapC94RAmEKRM=; b=N7rsXd1B/lwGWHz6ZQazuanAwhBVljE4YdaUf4f6FwgrSawGd+xz54sAHZMuZe/1x3 y4ji8oTVvMFvWopun82W/3T2aT8rHkG6E8HI9fYII9zbSyMa4doWwhZFgJhVgSe2gQjN thIiBhl7xKctqvCeaV9by0v8+C3rfdh4ogDPZAl5QW6BU6Z1QOhbWytqSIUJC8ce3KdC peiXvZCUX/gXHL17l9QVmwSd2UBVE9qD0xUZLyBadO14QJEp37Cae52X8aCIaA14hFrV hB4vcSat68jOlBG4iNgHGIN2MgvNvroWCKHCE9cFBHRPRpDa0w+EOxisSvyLf0qRtiZc CeNA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=Roxw176g; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h4si22152486jav.44.2021.04.07.13.54.25; Wed, 07 Apr 2021 13:54:37 -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; dkim=pass header.i=@alien8.de header.s=dkim header.b=Roxw176g; 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=pass (p=NONE sp=NONE dis=NONE) header.from=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S242947AbhDGL0D (ORCPT + 99 others); Wed, 7 Apr 2021 07:26:03 -0400 Received: from mail.skyhub.de ([5.9.137.197]:35856 "EHLO mail.skyhub.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234598AbhDGL0C (ORCPT ); Wed, 7 Apr 2021 07:26:02 -0400 Received: from zn.tnic (p200300ec2f08fb002f59ec04e5c6bba4.dip0.t-ipconnect.de [IPv6:2003:ec:2f08:fb00:2f59:ec04:e5c6:bba4]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.skyhub.de (SuperMail on ZX Spectrum 128k) with ESMTPSA id A9ECD1EC027D; Wed, 7 Apr 2021 13:25:51 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1617794751; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:in-reply-to:in-reply-to: references:references; bh=X16VaWChjl8MmKdShkWfeaVAAiA4jnoapC94RAmEKRM=; b=Roxw176gMH3NIQzB4XAV88p3i5EIDcEM7rUTimjRgUad23TNWW0lw/JmPMknSbakFUQU8B WUyUbdAsvWNeVwz94+2UiQdf86lp+c/UWBmUUdjjr+KJ5gIw01VoJAa/X4anH8CqHUs5BZ 3EppUkgojBUlnyAoDOOWepE/0SM40sQ= Date: Wed, 7 Apr 2021 13:25:55 +0200 From: Borislav Petkov To: Tom Lendacky Cc: Brijesh Singh , linux-kernel@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, ak@linux.intel.com, Thomas Gleixner , Ingo Molnar , Joerg Roedel , "H. Peter Anvin" , Tony Luck , Dave Hansen , "Peter Zijlstra (Intel)" , Paolo Bonzini , David Rientjes , Sean Christopherson Subject: Re: [RFC Part1 PATCH 06/13] x86/compressed: rescinds and validate the memory used for the GHCB Message-ID: <20210407112555.GB25319@zn.tnic> References: <20210324164424.28124-1-brijesh.singh@amd.com> <20210324164424.28124-7-brijesh.singh@amd.com> <20210406103358.GL17806@zn.tnic> <67f92f5c-780c-a4c6-241a-6771558e81a3@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <67f92f5c-780c-a4c6-241a-6771558e81a3@amd.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Apr 06, 2021 at 02:42:43PM -0500, Tom Lendacky wrote: > The GHCB spec only defines the "0" reason code set. We could provide Linux > it's own reason code set with some more specific reason codes for > failures, if that is needed. Why Linux only? Don't we want to have a generalized set of error codes which say what has happened so that people can debug? Let's take the above case Brijesh explains: guest tries a page state change, HV cannot manage for whatever reason and guest terminates with a "general request". Wouldn't you want to at least have a *hint* as to why the guest terminated instead of just "guest terminated"? I.e., none of those: https://duckduckgo.com/?q=dumb+error+messages&iax=images&ia=images :-) -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette