Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp1091777pxv; Thu, 22 Jul 2021 22:29:28 -0700 (PDT) X-Google-Smtp-Source: ABdhPJydpMgVZZ5F7rcqahCAespQSziGQ5UkuPYkjiOVxDQtNVfTHpyK39gn5WLr9+QELGq2S7W7 X-Received: by 2002:a17:906:c08e:: with SMTP id f14mr3084030ejz.380.1627018167989; Thu, 22 Jul 2021 22:29:27 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1627018167; cv=pass; d=google.com; s=arc-20160816; b=CiBIQ5KKMFUTg8BjGRKhIqAb93XWNiQEY7Rubfgy7D/7oRIuL/QrjO5fKTOzdjBVJ/ sFAoqQMSh3ZoHO3Y6rULsd0QUGSqukQ1lGt67eun4ITjrwNyDaxVkqweztrWkJv0/9wd pcv46NgoXyRUqGRFTF4ZJhWUh782Z+Ezd43P0ppu/1B1PyinxTlVhZaxW5qV654ovL+N wOLkU41ROuL9hPYDM5Vngk7AYkXQ1VBDJ7aGKjn4BGTJ5+zqk55UecfFELPmnvtMdCwF cD1zlGeHtfTg/8VDD+kUzAyX6jW/BewdaK9Uv45T5JRasQKuf4ojDY9VuOxDQ0KOlFpm +Qxw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:original-authentication-results:mime-version :content-transfer-encoding:nodisclaimer :authentication-results-original:content-language:accept-language :in-reply-to:references:message-id:date:thread-index:thread-topic :subject:cc:to:from:dkim-signature:dkim-signature; bh=h8c58wkxU80oVDJsmu8MOu5pNkz9PxJYsYtN0vqXfDY=; b=PX6ZwKEy/dLa4lwx8vpMXxoybpBwPj9NVT43t63wvVKG44z6apIfR/3Fg1+uBdh9wf FZYE1gAz//gFAWkJZ+3DFrhehy03T43l+If9Y2PuEMfPYXLt4J2gTL32Exh8gbyX2VOO UGFQKywa99ZgPYiSHTJdsD5dN/03YhZg0vc4P6iHkdcD4HEVPyC5vBFPpy5Q50sMfUue IM+DbZyJhdKyD2M9oGH/xOTUVl8o+BuYmFBOc6Lr+dPXExeB0MGALe5OO5dvCcEzwX5e yyQ7kzIM0LDA5fsEJUzkpjfb0VpYzVneniUKVg8a/B7z5HU8iZvir2HVNEapMYRQrTAx DAmQ== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=CWvEkLSw; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=CWvEkLSw; arc=pass (i=1 spf=pass spfdomain=arm.com dkim=pass dkdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id h13si21104464ejs.401.2021.07.22.22.29.03; Thu, 22 Jul 2021 22:29:27 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=CWvEkLSw; dkim=pass header.i=@armh.onmicrosoft.com header.s=selector2-armh-onmicrosoft-com header.b=CWvEkLSw; arc=pass (i=1 spf=pass spfdomain=arm.com dkim=pass dkdomain=arm.com dmarc=pass fromdomain=arm.com); spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233628AbhGWErA (ORCPT + 99 others); Fri, 23 Jul 2021 00:47:00 -0400 Received: from mail-eopbgr00073.outbound.protection.outlook.com ([40.107.0.73]:22248 "EHLO EUR02-AM5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S229616AbhGWEq6 (ORCPT ); Fri, 23 Jul 2021 00:46:58 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h8c58wkxU80oVDJsmu8MOu5pNkz9PxJYsYtN0vqXfDY=; b=CWvEkLSwGTJz0rwnZcq6JkJJu6OjSGhZW5wkKYQxDiULLEJiIvwWJN8+UJ5/piWyi8ChIGDDpUnLm2jaYnh0uKIaNiILiJE262N8+BezQGBpBmUiDU6ioRr+XhlWGMpm1S66Hqi0IsqdoxGRCpRlsDrohSlv+fBXVMREP9YUa8Y= Received: from AM5PR0701CA0059.eurprd07.prod.outlook.com (2603:10a6:203:2::21) by HE1PR0802MB2539.eurprd08.prod.outlook.com (2603:10a6:3:da::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4331.29; Fri, 23 Jul 2021 05:27:28 +0000 Received: from AM5EUR03FT062.eop-EUR03.prod.protection.outlook.com (2603:10a6:203:2:cafe::c6) by AM5PR0701CA0059.outlook.office365.com (2603:10a6:203:2::21) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4373.9 via Frontend Transport; Fri, 23 Jul 2021 05:27:28 +0000 X-MS-Exchange-Authentication-Results: spf=pass (sender IP is 63.35.35.123) smtp.mailfrom=arm.com; vger.kernel.org; dkim=pass (signature was verified) header.d=armh.onmicrosoft.com;vger.kernel.org; dmarc=pass action=none header.from=arm.com; Received-SPF: Pass (protection.outlook.com: domain of arm.com designates 63.35.35.123 as permitted sender) receiver=protection.outlook.com; client-ip=63.35.35.123; helo=64aa7808-outbound-1.mta.getcheckrecipient.com; Received: from 64aa7808-outbound-1.mta.getcheckrecipient.com (63.35.35.123) by AM5EUR03FT062.mail.protection.outlook.com (10.152.17.120) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.24 via Frontend Transport; Fri, 23 Jul 2021 05:27:28 +0000 Received: ("Tessian outbound ef2da60907d5:v99"); Fri, 23 Jul 2021 05:27:27 +0000 X-CR-MTA-TID: 64aa7808 Received: from e68d2352d1ee.2 by 64aa7808-outbound-1.mta.getcheckrecipient.com id B97919CB-DBE1-4279-8DD4-C450B95AAD7B.1; Fri, 23 Jul 2021 05:27:17 +0000 Received: from EUR04-VI1-obe.outbound.protection.outlook.com by 64aa7808-outbound-1.mta.getcheckrecipient.com with ESMTPS id e68d2352d1ee.2 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384); Fri, 23 Jul 2021 05:27:17 +0000 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=gj/4jCbYljjwIO0wcoCapfpo1VZ7fsUpReVgPCkMyToRSpQvniz1upcREieBL5fVFd1ZnAJMdHdmjDw9mJahQZgcb/2BsHRBlwCMfUYm2z6yVmSqaKBrjaPAr9O34XNbVT4+Ik8utCBPIoDjHMU5rQmWkCqDxkDt4OnGcpjNj9t/kQEytYrN75ZjuLvHsdfVC4yRIhc1lR6RCNp7Qw6y9+2w+ARQrpn2xrnv/tFqYIMlDSN2k87zC/6TLbF5evRw4yjXvcvSlah4GjEyMVx/CrCuZaScZdXo2HwtX2RkwkyIgZEJ1oWkqi7RDxtGg9gOXQy4+PVBCaD3nJnF+BndTQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h8c58wkxU80oVDJsmu8MOu5pNkz9PxJYsYtN0vqXfDY=; b=fzHFoumGFlr4I1kva2xWcEySkWNfZQ8MstTew8pTdoyzFElIw804TI5muDhtdOy454D8UZOPxf/ZtryLZwZGfnNZfGduW31QqHeLbTETH7uxn+5IgazP+YER6DmYZg7Ll4NGuVa2wKAdughtpSjpHcf7QxZ1IoaCxxBkhz3txH7MZd1Oqsb0nR2LhjEfNxcsLeZwPxvjsP7yrn5puF9ZvlDAnHoMO61UGPkoDJMiTyloQFeBs6u7Jd9tmlg/jyVa9eDz80/TimscoyqvfI6TqqK8BWMpeBKpnW6F/d9OAJ98U6Luyquea+2yiw0uju2aCVuH233HIdPZT5vEY8ZgKA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=armh.onmicrosoft.com; s=selector2-armh-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=h8c58wkxU80oVDJsmu8MOu5pNkz9PxJYsYtN0vqXfDY=; b=CWvEkLSwGTJz0rwnZcq6JkJJu6OjSGhZW5wkKYQxDiULLEJiIvwWJN8+UJ5/piWyi8ChIGDDpUnLm2jaYnh0uKIaNiILiJE262N8+BezQGBpBmUiDU6ioRr+XhlWGMpm1S66Hqi0IsqdoxGRCpRlsDrohSlv+fBXVMREP9YUa8Y= Received: from AM9PR08MB7276.eurprd08.prod.outlook.com (2603:10a6:20b:437::11) by AM9PR08MB7276.eurprd08.prod.outlook.com (2603:10a6:20b:437::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.4352.28; Fri, 23 Jul 2021 05:27:15 +0000 Received: from AM9PR08MB7276.eurprd08.prod.outlook.com ([fe80::418f:7877:8c88:5b6e]) by AM9PR08MB7276.eurprd08.prod.outlook.com ([fe80::418f:7877:8c88:5b6e%7]) with mapi id 15.20.4352.028; Fri, 23 Jul 2021 05:27:13 +0000 From: Jianyong Wu To: Marc Zyngier CC: James Morse , Andre Przywara , "lushenming@huawei.com" , "kvm@vger.kernel.org" , "kvmarm@lists.cs.columbia.edu" , "linux-doc@vger.kernel.org" , "linux-kernel@vger.kernel.org" , Justin He Subject: RE: [PATCH] doc/arm: take care restore order of GICR_* in ITS restore Thread-Topic: [PATCH] doc/arm: take care restore order of GICR_* in ITS restore Thread-Index: AQHXfhHId+GcJ7DQt0CbtBH7VL2wwqtNMGmAgAETNNCAAGJ4AIABY9DA Date: Fri, 23 Jul 2021 05:27:13 +0000 Message-ID: References: <20210721092019.144088-1-jianyong.wu@arm.com> <87czrc2dsu.wl-maz@kernel.org> <875yx23h0p.wl-maz@kernel.org> In-Reply-To: <875yx23h0p.wl-maz@kernel.org> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-ts-tracking-id: D22A5EBE8FD70347A2F96F11E7CFEA45.0 x-checkrecipientchecked: true Authentication-Results-Original: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com; x-ms-publictraffictype: Email X-MS-Office365-Filtering-Correlation-Id: 5cdf645f-86f9-47a0-46bd-08d94d9a8fc8 x-ms-traffictypediagnostic: AM9PR08MB7276:|HE1PR0802MB2539: x-ms-exchange-transport-forked: True X-Microsoft-Antispam-PRVS: x-checkrecipientrouted: true nodisclaimer: true x-ms-oob-tlc-oobclassifiers: OLM:2887;OLM:5236; X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam-Untrusted: BCL:0; X-Microsoft-Antispam-Message-Info-Original: Qqh028PQOzY8bwxbLec4NcFjT7lsfW8+0tC7ZahsWeAjEsq0hQ0lD9jWVeV31TLszHDD9QFIbE7+wymCLCo5SBL/KrAGhD5WIZ5lmoLjxjbZiddI+v0JblHPi6mZ/W4FElnxnrA+V2VtAsVXVgFcc0DIk1hjMNZYlgJ391TJeEci/suRw+xYLl0tY+2/rUXxC9bbnuLPnV+3zrNIM6gcniFoC5d4zYPztgkQGkkzXiM5OTJ9ZPYdB95zpMkm/3HEuxvNGF61O1YG9oFfQ0+CxT81WK50bpsbVfRM511K0XMSPqBwVN6nujtmEH0Gpyv5SdpIcASsT3R/sKWTAPgZu229h6Lsyko7my1OJOlvrQPbG7VPAOMbbPwtUdZ+uWOD9uxRx6x5/XyCx6tihf+1qOnCaSm3eEIxwxFrhtIPbXtY6v90bF8hLtRBi2a1l0YL1oC4H+IYNAI3QhJGX/378V4bq7byUbImQO6DIVISm+zQ14WSy+wtUtLaUMlHzJdGcGPzBGk8P/g1ICsn/tmscPtBbKNMioiSmj0xWDq5SAwosnJ1D/+3bNK4NpnCRQIN3BNmXbuEds3rOy7kjzf5WBiOBfbGeJy6sRU679J3YnFBRdFJGwhPKbC1JkJ+RsdGiH9Mgvy/T3vfw/iNHeiDToc3QubFmXYMx5GEQhyGENktVPw+5mccgwGda/8mOYnb6H4ofA4tFcpgUaj98eM147BfF3xfp7o6vYDg4/35wxk= X-Forefront-Antispam-Report-Untrusted: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:AM9PR08MB7276.eurprd08.prod.outlook.com;PTR:;CAT:NONE;SFS:(4636009)(396003)(346002)(39850400004)(136003)(376002)(366004)(76116006)(316002)(7696005)(5660300002)(66556008)(64756008)(66476007)(53546011)(52536014)(9686003)(66446008)(54906003)(2906002)(186003)(71200400001)(33656002)(8936002)(6916009)(83380400001)(8676002)(55016002)(6506007)(66946007)(478600001)(122000001)(4326008)(38100700002)(86362001)(90184004)(38070700004);DIR:OUT;SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?us-ascii?Q?l1PYbqMpifL2B6+qQkmckpoK0CXNIdJq7v6PV4bRTXWMemSS7M+T3d8hlse6?= =?us-ascii?Q?jgookrTYsU601j2ZbPJ800CTTfeYvtlZV5uZ3ymkuHs116S3OvXJB4CorShI?= =?us-ascii?Q?acDhggPPBVM/QMX24qDWyzfX5qvgSrJr16Bvocm4OdmXVfMGqYYHAYZ+hMfN?= =?us-ascii?Q?3uhYQO9eKv/fWd5X9ktq0IDFbj/nNn/fESIr+8A/VmFGNuox+kCR3W7WaPf1?= =?us-ascii?Q?eFX6WxoQeD9Tec3ksw7i6WVCzcvBiX4+ADacEjhVM5+VePz6GDz3G/d5aPCs?= =?us-ascii?Q?+ffJkF1KTtT46XAWheEMquyYSISdkn4yO73in1m88miTyVTaNNRFy5Sf7YMV?= =?us-ascii?Q?dN/Ccrg9cCAVi0ZXMDYzHT4lVb0zJKZi1DWOExJL4EVkQ1PyqbPrAiDIjDLR?= =?us-ascii?Q?bgEIIoAEzBuKdjp4+LkfLkRTXUtrpBWHvSuGAoqLu+oSPI76oZgDKXxI+6Ww?= =?us-ascii?Q?QtUZ28UYjh6RrKfFmkkln8fALqCIIJuxvEx82m/Gzml6tOQDe9ZRG+UGpPB/?= =?us-ascii?Q?58o0XcGhL2LYlEUuj/ZBc9xHy/S74I+jR0gA3QRkU3oSZpe3uT6qsbuOjsNv?= =?us-ascii?Q?R5XP2gfSl6nWj2PFexWi6RM+bJgmMg0fMgTbmMgLgiLBKienpSdYpVfUInvV?= =?us-ascii?Q?MMzr4BZO608LIrHnJ3wRVZBRMhRPcPqTQzP4hbz2uYY1ttYdICheMwDygKnZ?= =?us-ascii?Q?u+nrq9++YerwRZ9q8Nc0Do4RmpdRM1ueJVMF7FNL5gKDi136CtLrrH8zBUdf?= =?us-ascii?Q?vDH0YBqpdfUVbX+fquqkEgFPQR31M8hqh3+mbgp3uO/2uhTftbrQp8Wjy8ON?= =?us-ascii?Q?6Dv/5YlJElJjkOyKWrFADrmCrmbnF62b8bMD+vIy6WbD7KE+pEEP1d40s9CK?= =?us-ascii?Q?xkxiYUr17cFzookcFwzV3ZJtvwp6x2JcI+zb9sNuW+kqdTZULwDDQseDG8vN?= =?us-ascii?Q?wl5syZ2lreP8NirKV7zZygmFUxhNBULP5pyHbtOoFr7Jx1Nv2Mb2+QOwOXnY?= =?us-ascii?Q?RZ0YKCrN3GIEtFDxMh5qkH7QhvuIOhERJyll7K0zelEf14aBqz5mO7AO3YG/?= =?us-ascii?Q?XBdmFzY7BCBI29QT9mOxYbiF+JxMIcAfzep5R/dQNIeLJsmeLpBXg2iFJqCC?= =?us-ascii?Q?30E/lxEDESPpGTobhoLi59s3tQ2b/0d4osYprs9CqP8CM7l2hH5usIlThT4D?= =?us-ascii?Q?dokpWCJixeQqIHpMRZE8k2gheiufV7IlJE1h+keYp+sXqCJAilxkV3fAbqMy?= =?us-ascii?Q?14T130amJb5C224RlAGzQkv4/Egz7SdF7Byn4MMTGY6nfPwBPZSaxJYZ26KO?= =?us-ascii?Q?Wr3mnCZksqIX3hX7/FwCBali4HYjoszbczbK5/ZRPDxRs4GDmyhh1RPYX+cn?= =?us-ascii?Q?H6vMQqsDMaIsQ4/K7zwvvEvS6Yyc?= Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AM9PR08MB7276 Original-Authentication-Results: kernel.org; dkim=none (message not signed) header.d=none;kernel.org; dmarc=none action=none header.from=arm.com; X-EOPAttributedMessage: 0 X-MS-Exchange-Transport-CrossTenantHeadersStripped: AM5EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Office365-Filtering-Correlation-Id-Prvs: ab70076a-2b33-445c-f0f4-08d94d9a875b X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: iGK3E5SP+lsVKSbhL4f6YZc7SM9xmCLchLl7SAygZ1f7VK1MnpH1MoPgUh+RsubbZ8nIfxw/Yh3/hZgL+DXWxtLBV+iW91T486+zrbavazTIeGcJK02NnDhFJvdj9EcGMTC18/2aqTZN+iQ66byUWxaEz3ykUVome+COCb7NoxnnS8XacFLGErGJNdR2cvFHpXsnFiLhxM8vOBUaiJSWAoTc61JYlFlGhB1ixaQxAFZlZPYXfVfghxDdH0cgyFz4RP/ejlaMbXY5akg67nyggObRqTu0mnIx/U6EZYbQLqHyFxWjkAynQCCnqip94cUzbmogoHYtHxeh+gS9eZndrZaJmKzeg3u4GoR70BjULlJ/lqqXqg9xTyjKeFLivOocVG2yBTlRvnc64T7pUV/rp9T9JCj7lblmc/Z6rfdUlvIZQS/5KWoHwIzyUpJmdGK1wM2LbgTyrLMmdZ6Pc2eh+PWxDvrpSsFc2iVTFoL5AUv6kC2lj7q5SHrrdfbSS4cDhauKMFJ9Qfsy8eEj5RQI1n/CsXgiYRKk7tKpSFGj0tRSrdQpYdn2Yoz4bp5HF4t2TNf6vXLme9gbserLlmLlx27Sslzs8EHuV3Wa5SRbSmZ6r6JajfaeE2/TOPKe5AdOqkoxqxO7MgRtaC24byy4Y+IyYCZHRS/hxOziWs6HE1hcNUL/6zwiA5/Cw5lepmKNcaQVODvgaVcvR+ZpSHx1Rxo4GlSO8cFC/IvdKaWKirI= X-Forefront-Antispam-Report: CIP:63.35.35.123;CTRY:IE;LANG:en;SCL:1;SRV:;IPV:CAL;SFV:NSPM;H:64aa7808-outbound-1.mta.getcheckrecipient.com;PTR:ec2-63-35-35-123.eu-west-1.compute.amazonaws.com;CAT:NONE;SFS:(4636009)(39850400004)(136003)(376002)(346002)(396003)(36840700001)(46966006)(356005)(8676002)(81166007)(7696005)(33656002)(450100002)(52536014)(70206006)(2906002)(8936002)(83380400001)(9686003)(316002)(55016002)(478600001)(5660300002)(47076005)(82310400003)(86362001)(54906003)(336012)(70586007)(36860700001)(4326008)(82740400003)(26005)(6506007)(186003)(53546011)(6862004)(90184004);DIR:OUT;SFP:1101; X-OriginatorOrg: arm.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 23 Jul 2021 05:27:28.1235 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 5cdf645f-86f9-47a0-46bd-08d94d9a8fc8 X-MS-Exchange-CrossTenant-Id: f34e5979-57d9-4aaa-ad4d-b122a662184d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=f34e5979-57d9-4aaa-ad4d-b122a662184d;Ip=[63.35.35.123];Helo=[64aa7808-outbound-1.mta.getcheckrecipient.com] X-MS-Exchange-CrossTenant-AuthSource: AM5EUR03FT062.eop-EUR03.prod.protection.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR0802MB2539 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Marc, Get it! Thanks for your explanation. Thanks Jianyong > -----Original Message----- > From: Marc Zyngier > Sent: Thursday, July 22, 2021 4:11 PM > To: Jianyong Wu > Cc: James Morse ; Andre Przywara > ; lushenming@huawei.com; > kvm@vger.kernel.org; kvmarm@lists.cs.columbia.edu; linux- > doc@vger.kernel.org; linux-kernel@vger.kernel.org; Justin He > > Subject: Re: [PATCH] doc/arm: take care restore order of GICR_* in ITS > restore > > On Thu, 22 Jul 2021 03:49:52 +0100, > Jianyong Wu wrote: > > > > Hello Marc, > > > > > -----Original Message----- > > > From: Marc Zyngier > > > Sent: Wednesday, July 21, 2021 5:54 PM > > > To: Jianyong Wu > > > Cc: James Morse ; Andre Przywara > > > ; lushenming@huawei.com; > > > kvm@vger.kernel.org; kvmarm@lists.cs.columbia.edu; linux- > > > doc@vger.kernel.org; linux-kernel@vger.kernel.org; Justin He > > > > > > Subject: Re: [PATCH] doc/arm: take care restore order of GICR_* in > > > ITS restore > > > > > > On Wed, 21 Jul 2021 10:20:19 +0100, > > > Jianyong Wu wrote: > > > > > > > > When restore GIC/ITS, GICR_CTLR must be restored after > > > > GICR_PROPBASER and GICR_PENDBASER. That is important, as both of > > > > GICR_PROPBASER and GICR_PENDBASER will fail to be loaded when lpi > > > > has enabled yet in GICR_CTLR. Keep the restore order above will avo= id > that issue. > > > > Shout it out at the doc is very helpful that may avoid lots of debu= g work. > > > > > > But that's something that is already mandated by the architecture, is= n't it? > > > See "5.1 LPIs" in the architecture spec: > > > > > > > > > > > > If GICR_PROPBASER is updated when GICR_CTLR.EnableLPIs =3D=3D 1, the > > > effects are UNPREDICTABLE. > > > > > > [...] > > > > > > If GICR_PENDBASER is updated when GICR_CTLR.EnableLPIs =3D=3D 1, the > > > effects are UNPREDICTABLE. > > > > > > > I think this "UNPREDICTABLE" related with the "physical machine". Am I > > right? > > No, you are unfortunately wrong. The architecture applies to *any* > implementation, and makes no distinction between a HW implementation of > a SW version. This is why we call it an architecture, and not an > implementation. > > > In virtualization environment, kernel gives the definite answer that > > we should not enable GICR_CTLR.EnableLPIs before restoring > > GICR_PROPBASER(GICR_PENDBASER either) when restore GIC ITS in VMM, > see > > [1]. Thus, should we consider the virtualization environment as a > > special case? > > Absolutely not. If you start special casing things, then we end-up havin= g > stupidly designed SW that tries to do stupid things based on the supposed > properties of an implementation. > > We follow the architecture, all the architecture, nothing but the archite= cture. > The architecture is the only barrier between insanity and pure madness! ;= -) > > > > > [1] linux/arch/arm64/kvm/vgic/vgic-mmio-v3.c > > static void vgic_mmio_write_propbase(struct kvm_vcpu *vcpu, > > gpa_t addr, unsigned int len, > > unsigned long val) { > > struct vgic_dist *dist =3D &vcpu->kvm->arch.vgic; > > struct vgic_cpu *vgic_cpu =3D &vcpu->arch.vgic_cpu; > > u64 old_propbaser, propbaser; > > > > /* Storing a value with LPIs already enabled is undefined */ > > if (vgic_cpu->lpis_enabled) > > return; > > ... > > } > > Do you see how the kernel does exactly what the architecture says we can = do? > Ignoring the write is a perfectly valid implementation of UNPREDICTABLE. > > So what we do is completely in line with the architecture. As such, no ne= ed to > document it any further, everything is already where it should be. If > someone tries to write code dealing with the GIC without understanding th= e > architecture, no amount of additional documentation will help. > > Thanks, > > M. > > -- > Without deviation from the norm, progress is not possible. IMPORTANT NOTICE: The contents of this email and any attachments are confid= ential and may also be privileged. If you are not the intended recipient, p= lease notify the sender immediately and do not disclose the contents to any= other person, use it for any purpose, or store or copy the information in = any medium. Thank you.