From nobody Thu Dec 18 08:28:52 2025 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=none dis=none) header.from=intel.com ARC-Seal: i=1; a=rsa-sha256; t=1747385475; cv=none; d=zohomail.com; s=zohoarc; b=W8XF79TAGN8ONDePTQtURMeJBPOV9MxHiZoc0666PEReFUoti2B9Xqxo74XFds0wu7MJQBjjmxURn+kbfzuTnxLGqj9tE9lKPD6wU2HDqwDms+kw385NDvl29GPLWvKCcO3MeMH31+UsLxLQfa1G5n6mtE4gMCnCXLyqInKzG0M= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1747385475; h=Content-Transfer-Encoding:Cc:Cc:Date:Date:From:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:Subject:To:To:Message-Id:Reply-To; bh=qc5DduI1kMMOzn17WRriUNlN7kkqgIfRQdElLJ5eiv8=; b=RFoCnoaxqUdPvZbj2nps6TeJ5ARXwc2gaElS3/GRxgNnQ4voquW54YDRPEa5i8MP6VVDz2Vqgcn6k31PnOVmSuKN5wxAzmeJ/z5ufO9ZT0NL1jSENKmJEgbNQsWqQmUlSTktJbMgOerzpShV2zDTBBiDm5Jo9brnuERuoMsp6Qw= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass header.i=@intel.com; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=none dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 174738547579638.590579925985026; Fri, 16 May 2025 01:51:15 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1uFqm1-0005X8-UR; Fri, 16 May 2025 04:50:34 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFqm0-0005W7-Pe for qemu-devel@nongnu.org; Fri, 16 May 2025 04:50:32 -0400 Received: from mgamail.intel.com ([198.175.65.17]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1uFqlx-0007At-O9 for qemu-devel@nongnu.org; Fri, 16 May 2025 04:50:32 -0400 Received: from fmviesa002.fm.intel.com ([10.60.135.142]) by orvoesa109.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 16 May 2025 01:50:29 -0700 Received: from liuzhao-optiplex-7080.sh.intel.com ([10.239.160.39]) by fmviesa002.fm.intel.com with ESMTP; 16 May 2025 01:50:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1747385430; x=1778921430; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=25m2XLfyCPE4Th4Ei2uPZUjYwK2mKIo1eCekumE2UQI=; b=j2dByZBcyNSO33CWUxVRYu5Acmdmv2rlDXkp/qoJ62gYhH+nuTcrt4H1 j8VqZmd+/8U0FHgwI0L2ByOesINjugboPTKxu4eVViY0g9je5xbj2PlKZ vNd8R9hca7/HuaZPDKytCrY/40/vgmTaQCmEU/9VE1WSnsfhHcKu+c0/w KFSU0AdReyExBTrn9yvr15tYo230+YZ13EJSw/bM84uboon0Kag74w1zi Eb9HohiPY72Z6UrxSyHl3n8/G1rK9m/ki8Twuqk0ReA/hb2Ozy1yjKHRq cYVJJZXbFvA1YUPaeXsNTlJkROYgrm1KmduTqhQDHqX5RUZpf2Fi45LD2 g==; X-CSE-ConnectionGUID: 4ra7xDgbS6GiEYEO8+4ugw== X-CSE-MsgGUID: bZG1RyN4Qj2t27DZbd4oSw== X-IronPort-AV: E=McAfee;i="6700,10204,11434"; a="49334657" X-IronPort-AV: E=Sophos;i="6.15,293,1739865600"; d="scan'208";a="49334657" X-CSE-ConnectionGUID: xQ/tyx2KTQiEykHOQHQHyQ== X-CSE-MsgGUID: 2Jsz15FnQbuqVvcnkesbWQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.15,293,1739865600"; d="scan'208";a="161939648" From: Zhao Liu To: Markus Armbruster , Eric Blake , Paolo Bonzini Cc: qemu-devel@nongnu.org, Zhao Liu Subject: [PATCH 1/2] qapi/misc-target: Rename SGXEPCSection to SgxEpcSection Date: Fri, 16 May 2025 17:11:29 +0800 Message-Id: <20250516091130.2374221-2-zhao1.liu@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20250516091130.2374221-1-zhao1.liu@intel.com> References: <20250516091130.2374221-1-zhao1.liu@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: pass client-ip=198.175.65.17; envelope-from=zhao1.liu@intel.com; helo=mgamail.intel.com X-Spam_score_int: -60 X-Spam_score: -6.1 X-Spam_bar: ------ X-Spam_report: (-6.1 / 5.0 requ) BAYES_00=-1.9, DKIMWL_WL_HIGH=-1.686, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_MED=-2.3, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: qemu-devel-bounces+importer=patchew.org@nongnu.org X-ZohoMail-DKIM: pass (identity @intel.com) X-ZM-MESSAGEID: 1747385477228116600 Content-Type: text/plain; charset="utf-8" QAPI requires strict PascalCase naming style, i.e., only the first letter of a single word is allowed to be uppercase, which could help with readability. Rename SGXEPCSection to SgxEpcSection. Signed-off-by: Zhao Liu --- hw/i386/sgx.c | 18 +++++++++--------- qapi/misc-target.json | 6 +++--- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/hw/i386/sgx.c b/hw/i386/sgx.c index 5685c4fb802d..3c601689eb72 100644 --- a/hw/i386/sgx.c +++ b/hw/i386/sgx.c @@ -84,10 +84,10 @@ static uint64_t sgx_calc_section_metric(uint64_t low, u= int64_t high) ((high & MAKE_64BIT_MASK(0, 20)) << 32); } =20 -static SGXEPCSectionList *sgx_calc_host_epc_sections(void) +static SgxEpcSectionList *sgx_calc_host_epc_sections(void) { - SGXEPCSectionList *head =3D NULL, **tail =3D &head; - SGXEPCSection *section; + SgxEpcSectionList *head =3D NULL, **tail =3D &head; + SgxEpcSection *section; uint32_t i, type; uint32_t eax, ebx, ecx, edx; uint32_t j =3D 0; @@ -104,7 +104,7 @@ static SGXEPCSectionList *sgx_calc_host_epc_sections(vo= id) break; } =20 - section =3D g_new0(SGXEPCSection, 1); + section =3D g_new0(SgxEpcSection, 1); section->node =3D j++; section->size =3D sgx_calc_section_metric(ecx, edx); QAPI_LIST_APPEND(tail, section); @@ -183,17 +183,17 @@ SGXInfo *qmp_query_sgx_capabilities(Error **errp) return info; } =20 -static SGXEPCSectionList *sgx_get_epc_sections_list(void) +static SgxEpcSectionList *sgx_get_epc_sections_list(void) { GSList *device_list =3D sgx_epc_get_device_list(); - SGXEPCSectionList *head =3D NULL, **tail =3D &head; - SGXEPCSection *section; + SgxEpcSectionList *head =3D NULL, **tail =3D &head; + SgxEpcSection *section; =20 for (; device_list; device_list =3D device_list->next) { DeviceState *dev =3D device_list->data; Object *obj =3D OBJECT(dev); =20 - section =3D g_new0(SGXEPCSection, 1); + section =3D g_new0(SgxEpcSection, 1); section->node =3D object_property_get_uint(obj, SGX_EPC_NUMA_NODE_= PROP, &error_abort); section->size =3D object_property_get_uint(obj, SGX_EPC_SIZE_PROP, @@ -237,7 +237,7 @@ SGXInfo *qmp_query_sgx(Error **errp) void hmp_info_sgx(Monitor *mon, const QDict *qdict) { Error *err =3D NULL; - SGXEPCSectionList *section_list, *section; + SgxEpcSectionList *section_list, *section; g_autoptr(SGXInfo) info =3D qmp_query_sgx(&err); uint64_t size =3D 0; =20 diff --git a/qapi/misc-target.json b/qapi/misc-target.json index 42e4a7417dc6..a1275d3873ab 100644 --- a/qapi/misc-target.json +++ b/qapi/misc-target.json @@ -319,7 +319,7 @@ 'if': 'TARGET_ARM' } =20 ## -# @SGXEPCSection: +# @SgxEpcSection: # # Information about intel SGX EPC section info # @@ -329,7 +329,7 @@ # # Since: 7.0 ## -{ 'struct': 'SGXEPCSection', +{ 'struct': 'SgxEpcSection', 'data': { 'node': 'int', 'size': 'uint64'}} =20 @@ -355,7 +355,7 @@ 'sgx1': 'bool', 'sgx2': 'bool', 'flc': 'bool', - 'sections': ['SGXEPCSection']}, + 'sections': ['SgxEpcSection']}, 'if': 'TARGET_I386' } =20 ## --=20 2.34.1