Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 1E9C6C433FE for ; Mon, 15 Nov 2021 16:32:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 00F2C6121F for ; Mon, 15 Nov 2021 16:32:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229798AbhKOQfl (ORCPT ); Mon, 15 Nov 2021 11:35:41 -0500 Received: from us-smtp-delivery-124.mimecast.com ([170.10.133.124]:59460 "EHLO us-smtp-delivery-124.mimecast.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229909AbhKOQfk (ORCPT ); Mon, 15 Nov 2021 11:35:40 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1636993964; 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:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=G+1QitFYBWiDQVxeYMxt+2T1PiW/Z24o7Opt5Dq5eOk=; b=cvRjN1uJ9zbz3EANIy5jj/ZKg/0m07rjndIurtSVMBe60e68Lk71lvMN8eN9TkeWZDIQ9W CTKqkM149rNdFv+MqnZqd+puodY049Iqf7NSC0GCmSKxr4y42BBjRxrFyyAsi493eKQemb cp6g/9HbYJPcEddJZ7kPSDoDZfUJSw4= Received: from mail-wr1-f71.google.com (mail-wr1-f71.google.com [209.85.221.71]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-564-j23sGn5HNTq1qhCoDxVyrw-1; Mon, 15 Nov 2021 11:32:43 -0500 X-MC-Unique: j23sGn5HNTq1qhCoDxVyrw-1 Received: by mail-wr1-f71.google.com with SMTP id h13-20020adfa4cd000000b001883fd029e8so3784469wrb.11 for ; Mon, 15 Nov 2021 08:32:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=G+1QitFYBWiDQVxeYMxt+2T1PiW/Z24o7Opt5Dq5eOk=; b=rNHkjEI9GQ3S/mXvogeiIypT6ivfmYKHpoxnMkFOddw1MZBpTx/i8n2/64DLRUBXXe vYlxdu0K+dBSoZ50zO15TOHD1Rl2k8Iu+PBReYezEHrlsjCbbZued0qljOVQAdyFayJS pg0mhQiLWXbhzLu8wh/5IlQ1YT77B9Pu4PAFoUMdUFnfy5kRoY0SMNps19YLR1VUdmIQ 6aXh5FF2m26wCSqcCNaVhZrb7DvXt1IUqu22AQBrZj8rymNzbx8mvbTpxcCj4w+ZRc+V X0OaPKA+eaGIJNYKTLCNtNivRhMb8m1qpETR4tes9SIrYnfwye1UN2nOl4NfYhGkBJWL aBWw== X-Gm-Message-State: AOAM5332TJeaawlDcTAlHACos47mK9a4dL8gMWDVRCorfAAvqsDHP20f KmwnKwQhNhTKs8CRxKV6llZGOj0l9bS3ngS80BFJTK/aJUeH00VdtZm5WcM22/fllWo8t1i13zY SUjcP1392vEl6O9NENx+Od5rN X-Received: by 2002:adf:ce0e:: with SMTP id p14mr268300wrn.423.1636993962263; Mon, 15 Nov 2021 08:32:42 -0800 (PST) X-Google-Smtp-Source: ABdhPJx1Ph4EnhC6A/4jYgelMQQLzwEg0cJbYa/8ZINUY3M4co7BZtJigqVuYd26TD4y155eMrBXqQ== X-Received: by 2002:adf:ce0e:: with SMTP id p14mr268261wrn.423.1636993962082; Mon, 15 Nov 2021 08:32:42 -0800 (PST) Received: from work-vm (cpc109025-salf6-2-0-cust480.10-2.cable.virginm.net. [82.30.61.225]) by smtp.gmail.com with ESMTPSA id c79sm14527579wme.43.2021.11.15.08.32.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 15 Nov 2021 08:32:41 -0800 (PST) Date: Mon, 15 Nov 2021 16:32:38 +0000 From: "Dr. David Alan Gilbert" To: Joerg Roedel Cc: Sean Christopherson , Borislav Petkov , Dave Hansen , Peter Gonda , Brijesh Singh , x86@kernel.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-mm@kvack.org, linux-crypto@vger.kernel.org, Thomas Gleixner , Ingo Molnar , Tom Lendacky , "H. Peter Anvin" , Ard Biesheuvel , Paolo Bonzini , Vitaly Kuznetsov , Wanpeng Li , Jim Mattson , Andy Lutomirski , Dave Hansen , Sergio Lopez , Peter Zijlstra , Srinivas Pandruvada , David Rientjes , Dov Murik , Tobin Feldman-Fitzthum , Michael Roth , Vlastimil Babka , "Kirill A . Shutemov" , Andi Kleen , tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com Subject: Re: [PATCH Part2 v5 00/45] Add AMD Secure Nested Paging (SEV-SNP) Hypervisor Support Message-ID: References: <20210820155918.7518-1-brijesh.singh@amd.com> <061ccd49-3b9f-d603-bafd-61a067c3f6fa@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/2.0.7 (2021-05-04) Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org * Joerg Roedel (jroedel@suse.de) wrote: > On Mon, Nov 15, 2021 at 03:33:03PM +0000, Dr. David Alan Gilbert wrote: > > How would you debug an unexpected access by the host kernel using a > > guests kdump? > > The host needs to log the access in some way (trace-event, pr_err) with > relevant information. Yeh OK that makes sense if the host-owner could then enable some type of debugging based on that event for the unfortunate guest owner. > And with the guest-side kdump you can rule out that it was a guest bug > which triggered the access. And you learn what the guest was trying to > do when it triggered the access. This also helps finding the issue on > the host side (if it is a host-side issue). > > (Guest and host owner need to work together for debugging, of course). Yeh. Dave > Regards, > > -- > J?rg R?del > jroedel@suse.de > > SUSE Software Solutions Germany GmbH > Maxfeldstr. 5 > 90409 N?rnberg > Germany > > (HRB 36809, AG N?rnberg) > Gesch?ftsf?hrer: Ivo Totev > -- Dr. David Alan Gilbert / dgilbert@redhat.com / Manchester, UK