Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp529622rdb; Tue, 5 Dec 2023 11:58:16 -0800 (PST) X-Google-Smtp-Source: AGHT+IE76SMQJW1pubd6a6yOX+wEOnqfTerF4Q1K9zh3bNnf1G+S5Soc7mcVPp0HxiE0YMwwja7I X-Received: by 2002:a05:6a20:a114:b0:18f:97c:975a with SMTP id q20-20020a056a20a11400b0018f097c975amr8125520pzk.66.1701806294853; Tue, 05 Dec 2023 11:58:14 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701806294; cv=none; d=google.com; s=arc-20160816; b=xgU0X+gbmJYpR+t5PJkUIL1pBVGrzodvyOGjk9QjU7CqIl4kv27sb10BKzYXxUK3km a+n3RJBOdmOFPQwpbO/BdAGJzw4ubl+pAZGGyVs+ywTV87HCYd+xXVbnEpFRTsiVMAeA aU2xGGlgvf3z3X/ih97r2lUDQJKF6jjVJQf2jcV8pwZ3aU4VoBYo+0wYavvjKpxDEaYl dLTvjH3IgOwAda2jRSm9VrOCEahLse+QN/nl4m8IU61tGoQ4Gq91c4kW/g4wTboPUcwG /Hzw4jkSMvpOiLVTZmvt0PUFWnks+M9gBgY1PTieT5YxzfoaPQewCo5FfhMICvZDORIg AFdA== 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=aNaTIF25hquzd/eobt021pCPhMHg7AiggTD5VlfL9iU=; fh=6u+mtvylVSTF1aSbV15SDdqBlP5TJd06ZRYnd6kf/sY=; b=baQSbFCRepB83YtyQS7s48p/pRxHsyU/MHznci+cNVY96xhOTBF7WmiKhjQ4QVQdVz wgf+0VFUI1KKPj5Y+yuBmKz5lbs8v9AbkKOBmNsosnGapWCJWTeHYqGUGRujReerZOLz +4qktKVPncldNzkN44TOyV7NUhSb4kTrH5YuXyn7I2uQ6slQ5gxVgjMyx/Nmoj/Zuh6o RS91aUT1cv8HI6ICenXYNcMB/YoDXCyD8yEIFjQb1BNkuYR471+YOSL3u6Qhn2lTszry cWJfbYL/haIzERqY7f0vmaLIHkvEnofEnDFZyXJq0+fsFXmba7qEzNl3C0mDKgap4CCR k7mg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KEWneIBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id x31-20020a63171f000000b005c666162406si5672723pgl.565.2023.12.05.11.58.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Dec 2023 11:58:14 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; dkim=pass header.i=@intel.com header.s=Intel header.b=KEWneIBa; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 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 agentk.vger.email (Postfix) with ESMTP id 050AA8090E8E; Tue, 5 Dec 2023 11:58:10 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235102AbjLET5v (ORCPT + 99 others); Tue, 5 Dec 2023 14:57:51 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55900 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231821AbjLET5u (ORCPT ); Tue, 5 Dec 2023 14:57:50 -0500 Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.126]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EFBB2D41; Tue, 5 Dec 2023 11:57:54 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1701806275; x=1733342275; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=8+xl7o993QHoQJuM8EvkCoX7M+DgfwFuc3rXwdvt3a8=; b=KEWneIBaf/JGo6gvgH/k6NYWz9INqKH/ElepsXUayuRGSH32iotlgkIu 8yHpvyD9h1E4edE2QY/r1yhIVFW86lVuYWhO3fz9F5doLlvwuxE3UiZLN Vd42zfVI4urTPbf5KLeGqmFYcvcY8ZTmzY4pplwFqFd88A6uE5hnk9zey ZiOOK9lBydNrnj+L04EUb0BpfrjmUZbqNUUWQ41euXCrD4dj2HZymgJh6 rcSCU/FPYSu+CxJQna3IXh/YKzdQvnkV0kPJnvlPToc6ApYrCaCj5to5F zg7yy7CT3yZoCcWlnKrV15oorsYYaa+HPMLLkgJkZAzx5/Pdyns+uM+gf w==; X-IronPort-AV: E=McAfee;i="6600,9927,10915"; a="378973721" X-IronPort-AV: E=Sophos;i="6.04,253,1695711600"; d="scan'208";a="378973721" Received: from orviesa002.jf.intel.com ([10.64.159.142]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 05 Dec 2023 11:57:53 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.04,253,1695711600"; d="scan'208";a="12449683" Received: from lkp-server02.sh.intel.com (HELO b07ab15da5fe) ([10.239.97.151]) by orviesa002.jf.intel.com with ESMTP; 05 Dec 2023 11:57:47 -0800 Received: from kbuild by b07ab15da5fe with local (Exim 4.96) (envelope-from ) id 1rAbY8-0009eY-2M; Tue, 05 Dec 2023 19:57:44 +0000 Date: Wed, 6 Dec 2023 03:57:38 +0800 From: kernel test robot To: Alexey Makhalov , linux-kernel@vger.kernel.org, virtualization@lists.linux.dev, hpa@zytor.com, dave.hansen@linux.intel.co, bp@alien8.d, mingo@redhat.com, tglx@linutronix.de Cc: oe-kbuild-all@lists.linux.dev, x86@kernel.org, netdev@vger.kernel.org, richardcochran@gmail.com, linux-input@vger.kernel.org, dmitry.torokhov@gmail.com, zackr@vmware.com, linux-graphics-maintainer@vmware.com, pv-drivers@vmware.com, namit@vmware.com, timothym@vmware.com, akaher@vmware.com, jsipek@vmware.com, dri-devel@lists.freedesktop.org, daniel@ffwll.ch, airlied@gmail.com, tzimmermann@suse.de, mripard@kernel.org, maarten.lankhorst@linux.intel.com, horms@kernel.org Subject: Re: [PATCH v2 6/6] x86/vmware: Add TDX hypercall support Message-ID: <202312060350.Paq0JYin-lkp@intel.com> References: <20231201232452.220355-7-amakhalov@vmware.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20231201232452.220355-7-amakhalov@vmware.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 agentk.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 (agentk.vger.email [0.0.0.0]); Tue, 05 Dec 2023 11:58:10 -0800 (PST) Hi Alexey, kernel test robot noticed the following build errors: [auto build test ERROR on drm-misc/drm-misc-next] [also build test ERROR on dtor-input/next dtor-input/for-linus linus/master v6.7-rc4 next-20231205] [cannot apply to tip/x86/vmware] [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/Alexey-Makhalov/x86-vmware-Move-common-macros-to-vmware-h/20231202-072821 base: git://anongit.freedesktop.org/drm/drm-misc drm-misc-next patch link: https://lore.kernel.org/r/20231201232452.220355-7-amakhalov%40vmware.com patch subject: [PATCH v2 6/6] x86/vmware: Add TDX hypercall support config: x86_64-buildonly-randconfig-003-20231203 (https://download.01.org/0day-ci/archive/20231206/202312060350.Paq0JYin-lkp@intel.com/config) compiler: gcc-9 (Debian 9.3.0-22) 9.3.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20231206/202312060350.Paq0JYin-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/202312060350.Paq0JYin-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from drivers/gpu/drm/vmwgfx/vmwgfx_msg_x86.h:38, from drivers/gpu/drm/vmwgfx/vmwgfx_msg.c:37: >> arch/x86/include/asm/vmware.h:46:46: warning: 'struct tdx_module_args' declared inside parameter list will not be visible outside of this definition or declaration 46 | extern void vmware_tdx_hypercall_args(struct tdx_module_args *args); | ^~~~~~~~~~~~~~~ arch/x86/include/asm/vmware.h: In function 'vmware_tdx_hypercall': >> arch/x86/include/asm/vmware.h:61:9: error: variable 'args' has initializer but incomplete type 61 | struct tdx_module_args args = { | ^~~~~~~~~~~~~~~ >> arch/x86/include/asm/vmware.h:62:4: error: 'struct tdx_module_args' has no member named 'r10' 62 | .r10 = VMWARE_TDX_VENDOR_LEAF, | ^~~ >> arch/x86/include/asm/vmware.h:43:32: warning: excess elements in struct initializer 43 | #define VMWARE_TDX_VENDOR_LEAF 0x1AF7E4909ULL | ^~~~~~~~~~~~~~ arch/x86/include/asm/vmware.h:62:10: note: in expansion of macro 'VMWARE_TDX_VENDOR_LEAF' 62 | .r10 = VMWARE_TDX_VENDOR_LEAF, | ^~~~~~~~~~~~~~~~~~~~~~ arch/x86/include/asm/vmware.h:43:32: note: (near initialization for 'args') 43 | #define VMWARE_TDX_VENDOR_LEAF 0x1AF7E4909ULL | ^~~~~~~~~~~~~~ arch/x86/include/asm/vmware.h:62:10: note: in expansion of macro 'VMWARE_TDX_VENDOR_LEAF' 62 | .r10 = VMWARE_TDX_VENDOR_LEAF, | ^~~~~~~~~~~~~~~~~~~~~~ >> arch/x86/include/asm/vmware.h:63:4: error: 'struct tdx_module_args' has no member named 'r11' 63 | .r11 = VMWARE_TDX_HCALL_FUNC, | ^~~ arch/x86/include/asm/vmware.h:44:32: warning: excess elements in struct initializer 44 | #define VMWARE_TDX_HCALL_FUNC 1 | ^ arch/x86/include/asm/vmware.h:63:10: note: in expansion of macro 'VMWARE_TDX_HCALL_FUNC' 63 | .r11 = VMWARE_TDX_HCALL_FUNC, | ^~~~~~~~~~~~~~~~~~~~~ arch/x86/include/asm/vmware.h:44:32: note: (near initialization for 'args') 44 | #define VMWARE_TDX_HCALL_FUNC 1 | ^ arch/x86/include/asm/vmware.h:63:10: note: in expansion of macro 'VMWARE_TDX_HCALL_FUNC' 63 | .r11 = VMWARE_TDX_HCALL_FUNC, | ^~~~~~~~~~~~~~~~~~~~~ >> arch/x86/include/asm/vmware.h:64:4: error: 'struct tdx_module_args' has no member named 'r12' 64 | .r12 = VMWARE_HYPERVISOR_MAGIC, | ^~~ arch/x86/include/asm/vmware.h:31:34: warning: excess elements in struct initializer 31 | #define VMWARE_HYPERVISOR_MAGIC 0x564D5868U | ^~~~~~~~~~~ arch/x86/include/asm/vmware.h:64:10: note: in expansion of macro 'VMWARE_HYPERVISOR_MAGIC' 64 | .r12 = VMWARE_HYPERVISOR_MAGIC, | ^~~~~~~~~~~~~~~~~~~~~~~ arch/x86/include/asm/vmware.h:31:34: note: (near initialization for 'args') 31 | #define VMWARE_HYPERVISOR_MAGIC 0x564D5868U | ^~~~~~~~~~~ arch/x86/include/asm/vmware.h:64:10: note: in expansion of macro 'VMWARE_HYPERVISOR_MAGIC' 64 | .r12 = VMWARE_HYPERVISOR_MAGIC, | ^~~~~~~~~~~~~~~~~~~~~~~ >> arch/x86/include/asm/vmware.h:65:4: error: 'struct tdx_module_args' has no member named 'r13' 65 | .r13 = cmd, | ^~~ arch/x86/include/asm/vmware.h:65:10: warning: excess elements in struct initializer 65 | .r13 = cmd, | ^~~ arch/x86/include/asm/vmware.h:65:10: note: (near initialization for 'args') >> arch/x86/include/asm/vmware.h:66:4: error: 'struct tdx_module_args' has no member named 'rbx' 66 | .rbx = in1, | ^~~ arch/x86/include/asm/vmware.h:66:10: warning: excess elements in struct initializer 66 | .rbx = in1, | ^~~ arch/x86/include/asm/vmware.h:66:10: note: (near initialization for 'args') >> arch/x86/include/asm/vmware.h:67:4: error: 'struct tdx_module_args' has no member named 'rdx' 67 | .rdx = in3, | ^~~ arch/x86/include/asm/vmware.h:67:10: warning: excess elements in struct initializer 67 | .rdx = in3, | ^~~ arch/x86/include/asm/vmware.h:67:10: note: (near initialization for 'args') >> arch/x86/include/asm/vmware.h:68:4: error: 'struct tdx_module_args' has no member named 'rsi' 68 | .rsi = in4, | ^~~ arch/x86/include/asm/vmware.h:68:10: warning: excess elements in struct initializer 68 | .rsi = in4, | ^~~ arch/x86/include/asm/vmware.h:68:10: note: (near initialization for 'args') >> arch/x86/include/asm/vmware.h:69:4: error: 'struct tdx_module_args' has no member named 'rdi' 69 | .rdi = in5, | ^~~ arch/x86/include/asm/vmware.h:69:10: warning: excess elements in struct initializer 69 | .rdi = in5, | ^~~ arch/x86/include/asm/vmware.h:69:10: note: (near initialization for 'args') >> arch/x86/include/asm/vmware.h:70:4: error: 'struct tdx_module_args' has no member named 'r14' 70 | .r14 = in6, | ^~~ arch/x86/include/asm/vmware.h:70:10: warning: excess elements in struct initializer 70 | .r14 = in6, | ^~~ arch/x86/include/asm/vmware.h:70:10: note: (near initialization for 'args') >> arch/x86/include/asm/vmware.h:61:25: error: storage size of 'args' isn't known 61 | struct tdx_module_args args = { | ^~~~ >> arch/x86/include/asm/vmware.h:61:25: warning: unused variable 'args' [-Wunused-variable] vim +/args +61 arch/x86/include/asm/vmware.h 42 > 43 #define VMWARE_TDX_VENDOR_LEAF 0x1AF7E4909ULL 44 #define VMWARE_TDX_HCALL_FUNC 1 45 > 46 extern void vmware_tdx_hypercall_args(struct tdx_module_args *args); 47 48 /* 49 * TDCALL[TDG.VP.VMCALL] uses rax (arg0) and rcx (arg2), while the use of 50 * rbp (arg6) is discouraged by the TDX specification. Therefore, we 51 * remap those registers to r12, r13 and r14, respectively. 52 */ 53 static inline 54 unsigned long vmware_tdx_hypercall(unsigned long cmd, unsigned long in1, 55 unsigned long in3, unsigned long in4, 56 unsigned long in5, unsigned long in6, 57 uint32_t *out1, uint32_t *out2, 58 uint32_t *out3, uint32_t *out4, 59 uint32_t *out5, uint32_t *out6) 60 { > 61 struct tdx_module_args args = { > 62 .r10 = VMWARE_TDX_VENDOR_LEAF, > 63 .r11 = VMWARE_TDX_HCALL_FUNC, > 64 .r12 = VMWARE_HYPERVISOR_MAGIC, > 65 .r13 = cmd, > 66 .rbx = in1, > 67 .rdx = in3, > 68 .rsi = in4, > 69 .rdi = in5, > 70 .r14 = in6, 71 }; 72 73 vmware_tdx_hypercall_args(&args); 74 75 if (out1) 76 *out1 = args.rbx; 77 if (out2) 78 *out2 = args.r13; 79 if (out3) 80 *out3 = args.rdx; 81 if (out4) 82 *out4 = args.rsi; 83 if (out5) 84 *out5 = args.rdi; 85 if (out6) 86 *out6 = args.r14; 87 88 return args.r12; 89 } 90 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki