Received: by 2002:a05:6512:3d0e:0:0:0:0 with SMTP id d14csp20996lfv; Tue, 12 Apr 2022 15:33:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy65ypR9BA5dupKbQEDezVEeAgfKH3AGQQU0Mm1XVGJyEavA4XZw0YezhdnOBKiEMEVUx64 X-Received: by 2002:a17:902:f68e:b0:156:b531:60cb with SMTP id l14-20020a170902f68e00b00156b53160cbmr39416375plg.49.1649802815946; Tue, 12 Apr 2022 15:33:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1649802815; cv=none; d=google.com; s=arc-20160816; b=UnPN884o+PQtEA8w4ramDNnthR/2v0xpJeiDEvgnsBbrhy2SxTISaptoPlfLf/t15s bmIPXFC3kdr7sbsd2EPlwXggCsi6IP3JcXkWGIN9D6g8stShTBXkN6LKmPeWEwD3vxGm LsrinPthpW1AulS3tdLn7t1SwQFntKcWwXdI7tXwLRz6w9tRKoE1nAOSZYxUKLqi2z3f ks+5cux4qhzKXlHwX2UDeb+1J0QB3Hory2TZL0uz6MJVpyb7UjRIGwSH5LcTUZj4zPfm wmx0uDpUMyDvF7mbrKYJwzhQu/RJrWWvKcqrWksV23SihSQ1MYnT+RGl5nu0FW5EmWs7 PY7g== 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=1y9k9BF/11Tgebze8Cu7hBybPrnkPeApW3AHQccJqdY=; b=qXtGOz0PMgAqj32/qlKYPQdYry+ZJBojc0B6uwlRQnuyCbmViHN7I2kw4Dxkzhl+Qt GX7roY6mBb+yvW7fU1//4gD4osWdzUoHAqQuZGTcrcRqYxpFauZ+s8vAOHyBp71QMDNZ kKDTon9IR7i0ICCnTUo+gWy9K7jtIKWFxiCgg2wIUh7/yHthuE8F9ceCQ/1ny7xHTqll UDBAjow0ItYSNJfNpaXQnz7tKFafgQo6C3muJXjg2gy1glDiZme/J905CYSMZVy4Ady9 BDVB7jbQccxiPyJ5bZ5Ywk888Cl85l1nPJtG28AaTPMvz7ekj9ljk2r8BScYoc22C9Yx 5OPg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BGVNu+bd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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 lindbergh.monkeyblade.net (lindbergh.monkeyblade.net. [2620:137:e000::1:18]) by mx.google.com with ESMTPS id p10-20020a63f44a000000b0038212d5c721si3859561pgk.542.2022.04.12.15.33.35 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 12 Apr 2022 15:33:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:18 as permitted sender) client-ip=2620:137:e000::1:18; Authentication-Results: mx.google.com; dkim=pass header.i=@alien8.de header.s=dkim header.b=BGVNu+bd; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1: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: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 8A138194788; Tue, 12 Apr 2022 14:09:59 -0700 (PDT) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S245551AbiDLLgI (ORCPT + 99 others); Tue, 12 Apr 2022 07:36:08 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45146 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1352812AbiDLLfX (ORCPT ); Tue, 12 Apr 2022 07:35:23 -0400 Received: from mail.skyhub.de (mail.skyhub.de [IPv6:2a01:4f8:190:11c2::b:1457]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF0BB120BD; Tue, 12 Apr 2022 03:14:26 -0700 (PDT) Received: from zn.tnic (p200300ea97156149329c23fffea6a903.dip0.t-ipconnect.de [IPv6:2003:ea:9715:6149:329c:23ff:fea6:a903]) (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 CBE411EC04EC; Tue, 12 Apr 2022 12:14:20 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1649758460; 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=1y9k9BF/11Tgebze8Cu7hBybPrnkPeApW3AHQccJqdY=; b=BGVNu+bdg3YBBTmhOrP/jEStGZ9QQO4lJhXGz9Ir1o0Hyt4oK9hZnBZXee09pHXKyNTnG1 lanog3mSb+1cuJdREvfDV5wXhvJrCVoHGiOKch5R7C8I57+v57+eivVn21mQ4Bg1xpvjdb pI6zQ+IQJA46ne78ACtQwcx+giC/Lcg= Date: Tue, 12 Apr 2022 12:14:24 +0200 From: Borislav Petkov To: Vasant Karasulli Cc: linux-kernel@vger.kernel.org, jroedel@suse.de, kvm@vger.kernel.org, x86@kernel.org, thomas.lendacky@amd.com, varad.gautam@suse.com Subject: Re: [PATCH v6 2/4] x86/tests: Add tests for AMD SEV-ES #VC handling Message-ID: References: <20220318104646.8313-1-vkarasulli@suse.de> <20220318104646.8313-3-vkarasulli@suse.de> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20220318104646.8313-3-vkarasulli@suse.de> X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RDNS_NONE,SPF_HELO_NONE,T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Mar 18, 2022 at 11:46:44AM +0100, Vasant Karasulli wrote: > Add KUnit based tests to validate Linux's > VC handling for instructions cpuid and wbinvd. This looks like a commit message title to me. Also, please write x86 instructions in all caps: CPUID and WBINVD. > These tests: > 1. install a kretprobe on the #VC handler (sev_es_ghcb_hv_call, to > access GHCB before/after the resulting VMGEXIT). > 2. trigger an NAE by executing either cpuid or wbinvd. > 3. check that the kretprobe was hit with the right exit_code > available in GHCB. Yes, I'd appreciate a short step-by-step thing how to run them or a pointer to the docs. Thx. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette