Received: by 2002:ac0:e34a:0:0:0:0:0 with SMTP id g10csp551830imn; Thu, 28 Jul 2022 08:40:16 -0700 (PDT) X-Google-Smtp-Source: AGRyM1teur8AODBid+k8WsgkVsnzwibXJzw8XyidKItJ1j57pV37sjwQsi7UTbjW0szVxlYhbHJ9 X-Received: by 2002:a17:906:cc5d:b0:72b:1313:cd09 with SMTP id mm29-20020a170906cc5d00b0072b1313cd09mr21222542ejb.482.1659022816494; Thu, 28 Jul 2022 08:40:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1659022816; cv=none; d=google.com; s=arc-20160816; b=wRyJTvUWcY84AkkbdTTtgu6XyIX2h2Jed2ufFhUtsk5O5f/N+/9OtOkCKTvdxEZYnT TlA0M6DtMjQM/Vg0tAfoZQqY5gJcMzKIUql8OVt79DCUs3/xz+X1GdTRk0nnN1qEspjN VQEdKdNOrn9owZQMWj/2pDgM+eH+LSK7nwEkwoUax3n+BCKMgKV4lXNCds0mPBvyLkJk MsLVZMLCc48O7f6mh28pge/CqjN7CtDgw30HlXisu6rqSNHMkUaK9MgKGfzrr3ENhhGO kOPxIYZUnE/v3DaxA0QyooJMdvwYN4Q3EKKf12fkCtn2/CxNi2ggMAKSrKop1eDHHTpF wFRw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id:sender:dkim-signature; bh=f3YBoHwrtP3HFypeBuasmlOKhF1f/UhmYbErWI6N/fc=; b=GzbX+ZsASqINst+by0YB5KbdPeNcbH6+DwZEowju5Rt3+Hbl97zMXTVqA+tXEhjyU+ NXuZqP0TmNHa3GZlF5Hr2AUxi2rYIX9TsTDeZes0PRSM3qQP9ewfrXSdyKYxPiOGFdLr rz0cj0g+9RiE/YcW0NKm1Y2y+UsiZVPn46ARMeoJQ3FQprgLpKLxUweOhGPycx3dCtYS /qZsvF5JyfsgKNXIE8L+5BzlRP3J/J0kHucvCiAElSNFUpX492a5/jmKnI4o0Og6zvM8 0dFHemqNv2/cbSBWPXJ8UbSdjSQP48AKEX0k+yg6z5gsDF76mZ/PTiCpqiZEJ7e1memO KpVQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WYTWn1Di; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id kd26-20020a17090798da00b00722f396c33esi895769ejc.415.2022.07.28.08.39.50; Thu, 28 Jul 2022 08:40:16 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=WYTWn1Di; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230248AbiG1PPv (ORCPT + 99 others); Thu, 28 Jul 2022 11:15:51 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57760 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229508AbiG1PPt (ORCPT ); Thu, 28 Jul 2022 11:15:49 -0400 Received: from mail-ed1-x530.google.com (mail-ed1-x530.google.com [IPv6:2a00:1450:4864:20::530]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C2B7F42AC0; Thu, 28 Jul 2022 08:15:47 -0700 (PDT) Received: by mail-ed1-x530.google.com with SMTP id s9so2578666edd.8; Thu, 28 Jul 2022 08:15:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=sender:message-id:date:mime-version:user-agent:subject :content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=f3YBoHwrtP3HFypeBuasmlOKhF1f/UhmYbErWI6N/fc=; b=WYTWn1DiXpYspI+NywPkxEe/ysA2nR9YEuRV068M+fak5tujvSlmFE9T5dSKzerkQz rhu7x5SE6J0xVi1FqVo0IWVop9EeaMZJOIHdx52Pkm7R3AKI2Q8iu47IDy5ZmTnl9Oaj s3Ry5fueSsyEZfrcNurGvvl/KiGSqaIt7FIcifZdvBKihliIb4HtyqUa55K+n007HqAV P74SlSfMnhxWlyRTwZYBHO0/JRFJuChu7bMcwneYZ4CwPRVKkU9WT9c6QRdh3sqO3sDF +Ohpypizx27sFtCLIY0bdShtnvKYve3fEcZLclpnDasLj9QK/y+Qq3c0g08g1Q0IIwJH JCkw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:sender:message-id:date:mime-version:user-agent :subject:content-language:to:cc:references:from:in-reply-to :content-transfer-encoding; bh=f3YBoHwrtP3HFypeBuasmlOKhF1f/UhmYbErWI6N/fc=; b=iqumtjwaDXFC7SfE9OUjV1ltNYhRapkVeGNYFcwnoiSUZi4WKmYCpi9mSb/552KaPx QesOuWMdy/QeI0uMK4dOaWssexCQF+A7sadsLeF8/dIzzNk9eu34b+YC385zqc8dSjLg eVWcATpPGkP/bY5Rlic/Ht2F305IRbzKujIT2QUEaMGXLwYGVXxTH7s3LKZlN2+EfVjn JrhOAm8iYQfk41fPaUmNLbXi0kicG+mkkkGq61t6T2wZAHcncSt8oQu/cV0kUoRIl275 7SRyQC71fqjwlOwQLJSByfGXTAvh9LPNcAuupw7IXiJGuf/EOqFB1FXF90QVdw/MO+tR +rvg== X-Gm-Message-State: AJIora8BcnUKG2GeRfhLqypWdEb+WoJrYfqbRBGWO/CIrtPCUOsXQ+sD 8aekaZPooujUCOFQilXTuXQUUXBUCcqImA== X-Received: by 2002:a05:6402:51ce:b0:43c:4326:26d3 with SMTP id r14-20020a05640251ce00b0043c432626d3mr14301428edd.411.1659021345521; Thu, 28 Jul 2022 08:15:45 -0700 (PDT) Received: from ?IPV6:2001:b07:6468:f312:9af8:e5f5:7516:fa89? ([2001:b07:6468:f312:9af8:e5f5:7516:fa89]) by smtp.googlemail.com with ESMTPSA id w1-20020aa7da41000000b0043a4de1d421sm830746eds.84.2022.07.28.08.15.44 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 28 Jul 2022 08:15:44 -0700 (PDT) Sender: Paolo Bonzini Message-ID: Date: Thu, 28 Jul 2022 17:15:43 +0200 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:91.0) Gecko/20100101 Thunderbird/91.11.0 Subject: Re: [PATCH] KVM: SVM: Dump Virtual Machine Save Area (VMSA) to klog Content-Language: en-US To: Jarkko Sakkinen Cc: Jarkko Sakkinen , Harald Hoyer , Sean Christopherson , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , "H. Peter Anvin" , "open list:KERNEL VIRTUAL MACHINE FOR X86 (KVM/x86)" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" References: <20220728050919.24113-1-jarkko@profian.com> From: Paolo Bonzini In-Reply-To: <20220728050919.24113-1-jarkko@profian.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.5 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_EF,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,NICE_REPLY_A,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS 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 7/28/22 07:09, Jarkko Sakkinen wrote: > As Virtual Machine Save Area (VMSA) is essential in troubleshooting > attestation, dump it to the klog with the KERN_DEBUG level of priority. > > Cc: Jarkko Sakkinen > Suggested-by: Harald Hoyer > Signed-off-by: Jarkko Sakkinen > --- > arch/x86/kvm/svm/sev.c | 3 +++ > 1 file changed, 3 insertions(+) > > diff --git a/arch/x86/kvm/svm/sev.c b/arch/x86/kvm/svm/sev.c > index 0c240ed04f96..6d44aaba321a 100644 > --- a/arch/x86/kvm/svm/sev.c > +++ b/arch/x86/kvm/svm/sev.c > @@ -603,6 +603,9 @@ static int sev_es_sync_vmsa(struct vcpu_svm *svm) > save->xss = svm->vcpu.arch.ia32_xss; > save->dr6 = svm->vcpu.arch.dr6; > > + pr_debug("Virtual Machine Save Area (VMSA):\n"); > + print_hex_dump(KERN_CONT, "", DUMP_PREFIX_NONE, 16, 1, save, sizeof(*save), false); > + > return 0; > } > Queued, thanks. Paolo