Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp432692rdb; Tue, 5 Dec 2023 09:13:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IFMOLQU/0mitXAzjo6wm9aoWaWE2G9LhQ8VnGW1jbelj2OZw9sTkCtkto1ZeBImfNCA6lHn X-Received: by 2002:a17:903:2788:b0:1d0:5567:5c75 with SMTP id jw8-20020a170903278800b001d055675c75mr2677636plb.66.1701796412691; Tue, 05 Dec 2023 09:13:32 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701796412; cv=none; d=google.com; s=arc-20160816; b=vhl+D40P7adJCnU3ryd2UvPZzuXRquqp30WE+A0/1qUfanLIYo2EDO+gXX+sj6vwKc TRuMtUMNUgXdoguzWu8oYCKMLffSFMKz4Vaex7bZ/aek1kXTim6bFvBpXrhrjWxP048p OFg43dDytSC2fBTpNHm+ixoIIvwQzlB3aYhrm0b7gR5rQsQlLUwSG83RJe95YFFqo5RY 9uy57atYPuWrrb+eSMjFzoQdolzMfzccQCp3bbu23+QP0NbTc/4V3/E/RnFuySjEI8np FuRkEGREyEY90y4qefRrk3j+xmVvLQmptKnNVXxhBoZEFRkJA1kYib6V9/v4Cn4Vv+7B WMjQ== 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=edIFnCVhxGK5/9pL2mOrY590WI4x7laPfgXKmZl0TKM=; fh=7KIzhTYbwjPhK116iekTaeE3kbG4VjmW0BftxvBurxg=; b=i8kg+opGHsez8i+KFESMYe28ijie5MA7QlgbK5MXWtKc+Fdabav5kQkqgTt3tmVpBy IzDqmLMvCYaqC0XNQzwQDlURlAxpBcSGAGM62CsiafdQ5S4LZbXHJce33qTY8iU5sqzi RHmka25wvEAiRxZKOLchEYTaQ09mHtt1zhv6+T2jwXJIi1FUYvxDApdLcKoVX63cGHLW hH5wXfeXlbcBFgAz1Kk3sLa/4V2EMeEQ/rH17SvPjJLlSDgUSBiujsV9X++3pyeR5yqA f84/wSjMhsFph+9vgz7IJB6j7Kxhv4NpdAIU6j2+E63SIUhQe0hPXKOXDCvrUDal++KR pQtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=awnL+6yp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from pete.vger.email (pete.vger.email. [2620:137:e000::3:6]) by mx.google.com with ESMTPS id 20-20020a170902c25400b001cfc2cfe858si8973252plg.489.2023.12.05.09.13.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 09:13:32 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) client-ip=2620:137:e000::3:6; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=awnL+6yp; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:6 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 7DE33816823A; Tue, 5 Dec 2023 09:13:27 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229710AbjLERNF (ORCPT + 99 others); Tue, 5 Dec 2023 12:13:05 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36204 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235113AbjLERNC (ORCPT ); Tue, 5 Dec 2023 12:13:02 -0500 Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.120]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFDFCD40 for ; Tue, 5 Dec 2023 09:13:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701796388; x=1733332388; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=otnfoBc57OvqhhtqAYhwvSuKbkHkWyjyW5HalnsZ3mg=; b=awnL+6ypbYQIQEB7VH2sF+VH/bg7amFkkyG+fdD42YY54BJv7nTcQzog bTjzZXW/Ok0JLq3rWNyJEiwGuNAETwDOw3xjze7JkibUgnMcNsZsnKcQg Tp499d7SklOenKhcp9EWbkLHpZ0HSeaEJZC+09gRKWlG1x+aehFActMCX oSLQQeZRqNP6egYzRBlc9rYPT2aGsGDmIhYC9S2HouQDmbbnm/hU+g4/7 U5yeGtkuGQJ0u+rMlV58KK8OKcIQzyPtdblj0DRXIdNy9iwnbPTcrFeaN sBh/IF/MjsD5DZ0RWmCHWJwYlrSO1mMA3rpsXMZI+H8qDuihtG3drR7m9 g==; X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="392792641" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="392792641" Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 09:13:08 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="889010409" X-IronPort-AV: E=Sophos;i="6.04,252,1695711600"; d="scan'208";a="889010409" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by fmsmga002.fm.intel.com with ESMTP; 05 Dec 2023 09:13:05 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rAYyl-0009Qg-1j; Tue, 05 Dec 2023 17:13:03 +0000 Date: Wed, 6 Dec 2023 01:12:24 +0800 From: kernel test robot To: "Kirill A. Shutemov" , Tom Lendacky , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen Cc: oe-kbuild-all@lists.linux.dev, "H. Peter Anvin" , x86@kernel.org, linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, "Kirill A. Shutemov" Subject: Re: [PATCH] x86/coco, x86/sev: Use cpu_feature_enabled() to detect SEV guest flavor Message-ID: <202312060103.ttERzald-lkp@intel.com> References: <20231205143738.2875-1-kirill.shutemov@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231205143738.2875-1-kirill.shutemov@linux.intel.com> X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Tue, 05 Dec 2023 09:13:27 -0800 (PST) Hi Kirill, kernel test robot noticed the following build errors: [auto build test ERROR on next-20231205] [also build test ERROR on v6.7-rc4] [cannot apply to tip/x86/core tip/x86/mm kvm/queue linus/master kvm/linux-next v6.7-rc4 v6.7-rc3 v6.7-rc2] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Kirill-A-Shutemov/x86-coco-x86-sev-Use-cpu_feature_enabled-to-detect-SEV-guest-flavor/20231205-223950 base: next-20231205 patch link: https://lore.kernel.org/r/20231205143738.2875-1-kirill.shutemov%40linux.intel.com patch subject: [PATCH] x86/coco, x86/sev: Use cpu_feature_enabled() to detect SEV guest flavor config: i386-buildonly-randconfig-001-20231205 (https://download.01.org/0day-ci/archive/20231206/202312060103.ttERzald-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312060103.ttERzald-lkp@intel.com/reproduce) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot | Closes: https://lore.kernel.org/oe-kbuild-all/202312060103.ttERzald-lkp@intel.com/ All errors (new ones prefixed by >>): arch/x86/realmode/init.c: In function 'sme_sev_setup_real_mode': >> arch/x86/realmode/init.c:73:19: error: 'struct trampoline_header' has no member named 'flags' 73 | th->flags |= TH_FLAGS_SME_ACTIVE; | ^~ >> arch/x86/realmode/init.c:80:35: error: 'secondary_startup_64_no_verify' undeclared (first use in this function) 80 | th->start = (u64) secondary_startup_64_no_verify; | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ arch/x86/realmode/init.c:80:35: note: each undeclared identifier is reported only once for each function it appears in vim +73 arch/x86/realmode/init.c 4f7b92263ad68c Yinghai Lu 2013-01-24 69 75d359ec4141b0 Michael Roth 2022-04-22 70 static void __init sme_sev_setup_real_mode(struct trampoline_header *th) 8940ac9ced8bc1 Tom Lendacky 2020-09-07 71 { 32cb4d02fb02ca Tom Lendacky 2021-09-08 72 if (cc_platform_has(CC_ATTR_HOST_MEM_ENCRYPT)) 8940ac9ced8bc1 Tom Lendacky 2020-09-07 @73 th->flags |= TH_FLAGS_SME_ACTIVE; 8940ac9ced8bc1 Tom Lendacky 2020-09-07 74 653ce82f92271f Kirill A. Shutemov 2023-12-05 75 if (cpu_feature_enabled(X86_FEATURE_SEV_ES_GUEST)) { 3ecacdbd23956a Joerg Roedel 2020-09-07 76 /* 3ecacdbd23956a Joerg Roedel 2020-09-07 77 * Skip the call to verify_cpu() in secondary_startup_64 as it 3ecacdbd23956a Joerg Roedel 2020-09-07 78 * will cause #VC exceptions when the AP can't handle them yet. 3ecacdbd23956a Joerg Roedel 2020-09-07 79 */ 3ecacdbd23956a Joerg Roedel 2020-09-07 @80 th->start = (u64) secondary_startup_64_no_verify; 3ecacdbd23956a Joerg Roedel 2020-09-07 81 8940ac9ced8bc1 Tom Lendacky 2020-09-07 82 if (sev_es_setup_ap_jump_table(real_mode_header)) 8940ac9ced8bc1 Tom Lendacky 2020-09-07 83 panic("Failed to get/update SEV-ES AP Jump Table"); 8940ac9ced8bc1 Tom Lendacky 2020-09-07 84 } 8940ac9ced8bc1 Tom Lendacky 2020-09-07 85 } 8940ac9ced8bc1 Tom Lendacky 2020-09-07 86 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki