Received: by 2002:a05:6358:3188:b0:123:57c1:9b43 with SMTP id q8csp7369079rwd; Tue, 6 Jun 2023 09:43:55 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ48dyi39X6YSR3EcVK0Z8tdHMdR+9o1BQySHD4P6cmNgFcRftYd96ZCJtB8tOTP5cd2wuVM X-Received: by 2002:a05:620a:3acb:b0:75d:8731:4e94 with SMTP id ss11-20020a05620a3acb00b0075d87314e94mr264409qkn.30.1686069835050; Tue, 06 Jun 2023 09:43:55 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1686069835; cv=none; d=google.com; s=arc-20160816; b=HFSWMRp4pyKyjeB7XH0xYDOG/OSKB/+LH9J0tW7Q5qFcnYs88mSyj64pHNo8X+k7hq Tlz3vlr3BUkElZjA/xLA9ddLv7MnXMWpkVmOZZU24Am2j34hYiyvTrmRcjsNKOsKrGEe ihO+h9RAOnfFyV72nsO2AjILPFlxsz2edFU43KipdnFqABY19vnxWMUc4Ec05c14ABZH E3REdOEaN/ih2HbcFoUTOi6ztsAe6SOwDU0AX9xPllCyfdh59dKZnj28FUoQfIxJ6nZ1 OMK/Tt1wa22nUl1pdcLPtt7iA7oA+Sfh4xNp0iXrtPOZtGXInUwPxyIoqsgn4kEVrrl8 Mxcw== 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-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=EzBNPsFl2Dhg5+mFLreu4S8+80Y4hLppeh74KxkxTV0=; b=qb4GKwNsL4wrJfXgqgPWtnheSQfe22ArvXpmfv5Y1rXCWeT2lcbWjIXwV7htHzfq/f 8CRIsQe9HCseBpdbHULEzYGH9hOYi/B6cmVEDCeY7vyyv1N+mUA2E9v+RoUuPxGpQHi5 nyoNwhMM681BgYr1+Jv9fbZP7FXDjgx1PhJCStbtJ/y/Wk0aOG3iKK2dE90VQvLVLXVi Z18BLUcTL68b5LTg2VIU+RYVL44+5VWRl86PgWA0XhqFyTsz2HyaJVthYW3Om9mKeqAa klK7yAqZEqo0Adck7I7u1lc6R+DYz7JNH3FUd3fZPGoyJxVkxBo6DjKsiTHYxXcF7urM xuLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=kL9MUkQi; 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=alien8.de Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id u13-20020a05622a14cd00b003ec4856970dsi6666502qtx.111.2023.06.06.09.43.30; Tue, 06 Jun 2023 09:43:55 -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=temperror (no key for signature) header.i=@alien8.de header.s=dkim header.b=kL9MUkQi; 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=alien8.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S238410AbjFFQRJ (ORCPT + 99 others); Tue, 6 Jun 2023 12:17:09 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52404 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237598AbjFFQRE (ORCPT ); Tue, 6 Jun 2023 12:17:04 -0400 Received: from mail.skyhub.de (mail.skyhub.de [5.9.137.197]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 537CF198D; Tue, 6 Jun 2023 09:16:47 -0700 (PDT) Received: from zn.tnic (pd9530d32.dip0.t-ipconnect.de [217.83.13.50]) (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 C7CFA1EC064A; Tue, 6 Jun 2023 18:16:10 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=alien8.de; s=dkim; t=1686068170; 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=EzBNPsFl2Dhg5+mFLreu4S8+80Y4hLppeh74KxkxTV0=; b=kL9MUkQiC0UGBSPHskdsYSS8Sun5ZP40wjnMuRf4XqVC/ucpHdpbaETCgZabPrrU+59aBo IL6BwpRYVz4LW5nsrG15WxB3B4g9sY3o2A1RUIHqcQTmMN3NpnTO7tP8nJE8PLdeezhCcd Mj5M018TevNsx4gJequl4dGcYnpPqys= Date: Tue, 6 Jun 2023 18:16:06 +0200 From: Borislav Petkov To: "Kirill A. Shutemov" Cc: Andy Lutomirski , Dave Hansen , Sean Christopherson , Andrew Morton , Joerg Roedel , Ard Biesheuvel , Andi Kleen , Kuppuswamy Sathyanarayanan , David Rientjes , Vlastimil Babka , Tom Lendacky , Thomas Gleixner , Peter Zijlstra , Paolo Bonzini , Ingo Molnar , Dario Faggioli , Mike Rapoport , David Hildenbrand , Mel Gorman , marcelo.cerri@canonical.com, tim.gardner@canonical.com, khalid.elmously@canonical.com, philip.cox@canonical.com, aarcange@redhat.com, peterx@redhat.com, x86@kernel.org, linux-mm@kvack.org, linux-coco@lists.linux.dev, linux-efi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCHv14 0/9] mm, x86/cc, efi: Implement support for unaccepted memory Message-ID: <20230606161606.GDZH9bxhrGnFkaLl2A@fat_crate.local> References: <20230606142637.5171-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230606142637.5171-1-kirill.shutemov@linux.intel.com> X-Spam-Status: No, score=-1.7 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 Tue, Jun 06, 2023 at 05:26:28PM +0300, Kirill A. Shutemov wrote: > v14: > - Fix error handling in arch_accept_memory() (Tom); > - Address Borislav's feedback: > + code restructure; > + added/adjusted comments; In file included from arch/x86/coco/tdx/tdx-shared.c:1: ./arch/x86/include/asm/tdx.h: In function ‘tdx_kvm_hypercall’: ./arch/x86/include/asm/tdx.h:70:17: error: ‘ENODEV’ undeclared (first use in this function) 70 | return -ENODEV; | ^~~~~~ ./arch/x86/include/asm/tdx.h:70:17: note: each undeclared identifier is reported only once for each function it appears in make[4]: *** [scripts/Makefile.build:252: arch/x86/coco/tdx/tdx-shared.o] Error 1 make[3]: *** [scripts/Makefile.build:494: arch/x86/coco/tdx] Error 2 make[2]: *** [scripts/Makefile.build:494: arch/x86/coco] Error 2 make[2]: *** Waiting for unfinished jobs.... make[1]: *** [scripts/Makefile.build:494: arch/x86] Error 2 make[1]: *** Waiting for unfinished jobs.... make: *** [Makefile:2026: .] Error 2 Not enough build tests ran? $ grep INTEL_TDX_GUEST .config CONFIG_INTEL_TDX_GUEST=y $ grep KVM_GUEST .config $ Why does that tdx_kvm_hypercall() thing even depend on CONFIG_KVM_GUEST? -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette