Received: by 2002:ac0:da4c:0:0:0:0:0 with SMTP id a12csp2639726imi; Mon, 25 Jul 2022 04:21:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1vRTgEe44kMCghdPUECh7Yk5kajLpKwAQ2hAhc90YbaV1CUIbYAQGsiGwwh2CgqqytjlzYw X-Received: by 2002:a17:90b:33c5:b0:1f2:cc6a:4fdc with SMTP id lk5-20020a17090b33c500b001f2cc6a4fdcmr1838572pjb.61.1658748080605; Mon, 25 Jul 2022 04:21:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1658748080; cv=none; d=google.com; s=arc-20160816; b=EfaYCD/rVWDU7QOxI2d2fLAUR5sb7N55fjGw0+RaIphMqIrOi35uVoH1lLzunYn5Ai VVYDNG2zFpkBhxf9xUkgmi822DIy5Py66VgEgiVJ83a578ukLYUFChEcGstWdi04EsGX BARiOZBL8sULMJdAuxvulgBfb8xGaz4Y+kYnRrT+Sng/N+rckIc9KSSvLkMrEg3CIacZ Qw6g3JrSqKYjNb5A878kv0bBKnd8t6ySWQ2NKAGfqphkxyIqT5XzoBcLph1zhvZZAAcQ Obr6YFPqLJKhbsBye5hQRYhF3ZqGYhft3O838JE6rrDLiKN3TCUzieFNsLZQY6IuFhbE tqHg== 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:dkim-signature:dkim-signature; bh=fsGXEvpXgpa8MJd9I5kGhBSqRiO/o6Xz4MHAqkV7RDk=; b=ftis6TeJ4I5fMYCBUE2ln3/T1e5InwsStWMmoYm52D6+jCpRX2EV5NI/nRF5zjZ+Ea MuOtRFdrgK/H2bzD/SSTEKgQUfUKXcYFtQXgvLM+4mTqWLrtUBm98M9j/AwGf2rqtqmm x+/+a77iB52CmrUMUtwx36kcKs3oKraqveE8q7u/qHrA7beHEGnu0x/Mb89cFdX5TiUR IzLtxm5YPEFHb9z4OhpyJkGy/JsyHI9YeZcHl/t/1id/VHcfxICehrF7iuGkPHOB2fOT 1G0m9ApsuWKnkHQi1EguBy+S7F/gwg+saHKdtH/4ZzkdF8FAGPPAAEUMnPRr2SQx4gpQ 8yOw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@suse.cz header.s=susede2_rsa header.b=Gz71EENs; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=6rKjRPkY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id x13-20020a170902ec8d00b0016bf943aeafsi4838179plg.28.2022.07.25.04.20.59; Mon, 25 Jul 2022 04:21:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-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=@suse.cz header.s=susede2_rsa header.b=Gz71EENs; dkim=neutral (no key) header.i=@suse.cz header.s=susede2_ed25519 header.b=6rKjRPkY; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233967AbiGYLTa (ORCPT + 99 others); Mon, 25 Jul 2022 07:19:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54434 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229614AbiGYLTa (ORCPT ); Mon, 25 Jul 2022 07:19:30 -0400 Received: from smtp-out1.suse.de (smtp-out1.suse.de [195.135.220.28]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 4FE3C15802; Mon, 25 Jul 2022 04:19:29 -0700 (PDT) Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by smtp-out1.suse.de (Postfix) with ESMTPS id C9DD237784; Mon, 25 Jul 2022 11:19:27 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_rsa; t=1658747967; h=from:from:reply-to: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=fsGXEvpXgpa8MJd9I5kGhBSqRiO/o6Xz4MHAqkV7RDk=; b=Gz71EENsDg6dNC88X0BdB9GDBrjspBCS9qbzDEOQ/iWz0SiagzJivwYHMaMeD41PQ+dlI+ VHsHpr0zFlH6d8P8n6f1sU2dUl9yslL+1EaJe+/Sh+n1ohih6dj7woa2MyYq86/ACCNjDA 5KAODZQYHvrt8J14qJDocRHImGDT9do= DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=suse.cz; s=susede2_ed25519; t=1658747967; h=from:from:reply-to: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=fsGXEvpXgpa8MJd9I5kGhBSqRiO/o6Xz4MHAqkV7RDk=; b=6rKjRPkY2Y/kcUjOc6t9q/asPWGv1DEJ7cIAFX4WwWDU5cWaY9XiR/3aYOhnWbAtwNH/Rk /FythNPbFou+dkBQ== Received: from imap2.suse-dmz.suse.de (imap2.suse-dmz.suse.de [192.168.254.74]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-521) server-digest SHA512) (No client certificate requested) by imap2.suse-dmz.suse.de (Postfix) with ESMTPS id 5997D13ABB; Mon, 25 Jul 2022 11:19:27 +0000 (UTC) Received: from dovecot-director2.suse.de ([192.168.254.65]) by imap2.suse-dmz.suse.de with ESMTPSA id t8RXFT983mLUQgAAMHmgww (envelope-from ); Mon, 25 Jul 2022 11:19:27 +0000 Message-ID: Date: Mon, 25 Jul 2022 13:19:27 +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 Part2 v6 33/49] KVM: x86: Update page-fault trace to log full 64-bit error code Content-Language: en-US To: Ashish Kalra , 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 Cc: tglx@linutronix.de, mingo@redhat.com, jroedel@suse.de, thomas.lendacky@amd.com, hpa@zytor.com, ardb@kernel.org, pbonzini@redhat.com, seanjc@google.com, vkuznets@redhat.com, jmattson@google.com, luto@kernel.org, dave.hansen@linux.intel.com, slp@redhat.com, pgonda@google.com, peterz@infradead.org, srinivas.pandruvada@linux.intel.com, rientjes@google.com, dovmurik@linux.ibm.com, tobin@ibm.com, bp@alien8.de, michael.roth@amd.com, kirill@shutemov.name, ak@linux.intel.com, tony.luck@intel.com, marcorr@google.com, sathyanarayanan.kuppuswamy@linux.intel.com, alpergun@google.com, dgilbert@redhat.com, jarkko@kernel.org References: From: Vlastimil Babka In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS autolearn=ham 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-crypto@vger.kernel.org On 6/21/22 01:10, Ashish Kalra wrote: > From: Brijesh Singh > > The #NPT error code is a 64-bit value but the trace prints only the > lower 32-bits. Some of the fault error code (e.g PFERR_GUEST_FINAL_MASK) > are available in the upper 32-bits. > > Cc: Why stable? > Signed-off-by: Brijesh Singh > --- > arch/x86/kvm/trace.h | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > > diff --git a/arch/x86/kvm/trace.h b/arch/x86/kvm/trace.h > index e3a24b8f04be..9b9bc5468103 100644 > --- a/arch/x86/kvm/trace.h > +++ b/arch/x86/kvm/trace.h > @@ -383,12 +383,12 @@ TRACE_EVENT(kvm_inj_exception, > * Tracepoint for page fault. > */ > TRACE_EVENT(kvm_page_fault, > - TP_PROTO(unsigned long fault_address, unsigned int error_code), > + TP_PROTO(unsigned long fault_address, u64 error_code), > TP_ARGS(fault_address, error_code), > > TP_STRUCT__entry( > __field( unsigned long, fault_address ) > - __field( unsigned int, error_code ) > + __field( u64, error_code ) > ), > > TP_fast_assign( > @@ -396,7 +396,7 @@ TRACE_EVENT(kvm_page_fault, > __entry->error_code = error_code; > ), > > - TP_printk("address %lx error_code %x", > + TP_printk("address %lx error_code %llx", > __entry->fault_address, __entry->error_code) > ); >