From patchwork Fri Oct 6 09:13:52 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 13411192 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 5CCFFE92FF9 for ; Fri, 6 Oct 2023 09:17:02 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.613401.953869 (Exim 4.92) (envelope-from ) id 1qogwv-0005Sw-04; Fri, 06 Oct 2023 09:16:45 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 613401.953869; Fri, 06 Oct 2023 09:16:44 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qogwu-0005So-Su; Fri, 06 Oct 2023 09:16:44 +0000 Received: by outflank-mailman (input) for mailman id 613401; Fri, 06 Oct 2023 09:16:44 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qogwu-0005Di-7G for xen-devel@lists.xenproject.org; Fri, 06 Oct 2023 09:16:44 +0000 Received: from esa3.hc3370-68.iphmx.com (esa3.hc3370-68.iphmx.com [216.71.145.155]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 108df6ae-6429-11ee-98d3-6d05b1d4d9a1; Fri, 06 Oct 2023 11:16:43 +0200 (CEST) Received: from mail-dm6nam12lp2176.outbound.protection.outlook.com (HELO NAM12-DM6-obe.outbound.protection.outlook.com) ([104.47.59.176]) by ob1.hc3370-68.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Oct 2023 05:16:42 -0400 Received: from SJ0PR03MB6423.namprd03.prod.outlook.com (2603:10b6:a03:38d::21) by DS7PR03MB5623.namprd03.prod.outlook.com (2603:10b6:5:2cf::14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.37; Fri, 6 Oct 2023 09:16:39 +0000 Received: from SJ0PR03MB6423.namprd03.prod.outlook.com ([fe80::66ca:3a42:baeb:9ecf]) by SJ0PR03MB6423.namprd03.prod.outlook.com ([fe80::66ca:3a42:baeb:9ecf%6]) with mapi id 15.20.6838.030; Fri, 6 Oct 2023 09:16:39 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 108df6ae-6429-11ee-98d3-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1696583803; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=by+BUmNhmGnnCbOFBuCL5RU3RPGty3C69SJ4rAoXWmo=; b=OTwQfGwdeRqbL++2LAYS8yR2N7nhOul7Tj0WjXGfw35mgLuBLWEia5+f l9Y3A1iY5R/CeQVzUOR8zt4EN3yCIhWcHSBWFUafd7pFVgVbhhFzlDS5m XJgn311+gD+J4whmLcAJgwssxVjIkxPVyJXjdvdDjQcZvtxE9gtcQmhSp 0=; X-CSE-ConnectionGUID: oqp3VEXXSw6EqkefGNzfbQ== X-CSE-MsgGUID: IA5OIaX3QeaDk+Oci6dwhQ== X-IronPort-RemoteIP: 104.47.59.176 X-IronPort-MID: 124813169 X-IronPort-Reputation: None X-IronPort-Listener: OutboundMail X-IronPort-SenderGroup: RELAY_O365 X-IronPort-MailFlowPolicy: $RELAYED X-ThreatScanner-Verdict: Negative IronPort-Data: A9a23:TDwIZ6816Q72K+M01ySfDrUDWn+TJUtcMsCJ2f8bNWPcYEJGY0x3y jYbWGCPa/yLNGfze4x2Otuxox4Av5TVxtY1SwVqq3g8E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjVAOK6UKidYnwZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ird7ks01BjOkGlA5AdnPagW5AW2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDklJ7 ORDFh09Xiuc2c+vw7+1Zc9+iM4aeZyD0IM34hmMzBn/JNN/G9XvZvuP4tVVmjAtmspJAPDSI dIDbiZiZwjBZBsJPUoLDJU5n6GjgXyXnz9w8QrJ4/ZopTWCilUujtABM/KMEjCObd9SkUuC4 HrP4kzyAw0ANczZwj2Amp6prraVwXOiA9tMRdVU8NZLqQC052UjUyQbXHe44t6yixCyRNJmf hl8Fi0G6PJaGFaQZsnwWVi0rWCJujYYWsFMCKsq5QeV0K3W7g2FQG8eQVZpSNEgrt5wejUs2 XeAhdavDjtq2JWXQ3+A8rafrRupJDMYa2QFYEcsTxYB4tTliJE+iFTIVNkLOLWuktT/FDX0w jaLhCsznbMeiYgMzarT1U/DqyKhoN7OVAFd2+nMdmes7wc8aIv7YYWtsALf9awZc9jfSUSdt n8ZncTY9PoJEZyGiC2KRqMKAa2t4PGGdjbbhDaDAqUcythkwFb7Fag43d20DB4B3hosEdMxX HLuhA== IronPort-HdrOrdr: A9a23:yFQfraxM2lXHoQPCVmo3KrPw6L1zdoMgy1knxilNoHxuH/Bw9v re+cjzsCWftN9/Yh4dcLy7VpVoIkmsl6Kdg7NwAV7KZmCP1FdARLsI0WKI+UyCJ8SRzI9gPa cLSdkFNDXzZ2IK8PoTNmODYqodKNrsytHWuQ/HpU0dKT2D88tbnn9E4gDwKDwQeCB2QaAXOb C7/cR9qz+paR0sH7+G7ilsZZmkmzXT/qiWGCI7Ow== X-Talos-CUID: 9a23:GAWj0WxxrdN5qq03RpOcBgUTA9h+TFDt/EzPfWKhCmtnZ5uHR1WprfY= X-Talos-MUID: 9a23:3XG6wQRqz2pTJrsPRXTNrWxFFc5YuJ2jAWwO0rINupeIKixJbmI= X-IronPort-AV: E=Sophos;i="6.03,203,1694750400"; d="scan'208";a="124813169" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=FIpLkRX6814F2bBC3AidxvrNa6RtfyTlgtlFIm6WDIKnTo6ASrfADfTg1GAb2OsCygAAUhQ7R1xTe1SH8jCwJpkBkQdgTooVYlMc9K+xNiW3K6gwKhsddn8m8oCdJcRcNOOB/S76kr3OzyobGZ03FJKkw/ZH8SeYl3TPlKxZLH5597WqCdFprLrXyafK7wA0t8eOycTa56cqdxa3lJCbN9Cf0pePrB+GmO7PAMuZ3z0Zfi4Hfed45YY9Yk888Forb1y33DOnPKGDHqfZWCMAAbYegyHdX0DW3p8TQHQeD6/JPoiLvjhB4mBF2pIAXF3Bc0aRVAABhxFXfltC+N7GNw== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=PE02m+AHltxS0HWO+8PEn0CoBID2FzB2Ut853VBtHnw=; b=e9l6bJ/Rthon0E42ILP/PuF/piP0U/qOhrMQrjpaQMOQf0D7qLncQOjbJy6JsTQ2X6RGoofvZqpLzSo4b/NuXu30TregbiHuq9nrcGI27AX6xE0fhGRrsSD19a9LaBaaEE5yk6otpXmnbbL31aQJoXIKm3cikcpevYed5zjIYIiDXitIMA0mYKiCIzqNQVxoNwDoMDsIoawajCAri0yWGwmY/0ldFouwgI/0XFnmEGI/EPQX1WLi10BBAudkWQuvjhz6hwOoxFypqwq3IGnz/yIrOjZ1qgB9/gcXvAFNDTn1SzCNMmr42JpY8X/PKpiv/bfjaaLTDSdTDokLXrH/jA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=PE02m+AHltxS0HWO+8PEn0CoBID2FzB2Ut853VBtHnw=; b=FQ+df9mcJoaQxYrmdntge+V0kAXiVPyxmnKontNbOSxaynfRuFeCOmfk7Fbq8+GgTPZhA6YQ+mCd4Lbh0Z/VCKRL4cf+pPfeb9+UR8+uBrzGl3bp5a0dCLpEmldI1UiZcHgk+P342P89Y5vB9wgtJNL0fgoG7SbUG9X3zCUcO9g= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com; From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Henry Wang , Roger Pau Monne , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 1/2] domain: fix misaligned unmap address in unmap_guest_area() Date: Fri, 6 Oct 2023 11:13:52 +0200 Message-ID: <20231006091353.96367-2-roger.pau@citrix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231006091353.96367-1-roger.pau@citrix.com> References: <20231006091353.96367-1-roger.pau@citrix.com> X-ClientProxiedBy: LO4P123CA0640.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:296::21) To SJ0PR03MB6423.namprd03.prod.outlook.com (2603:10b6:a03:38d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR03MB6423:EE_|DS7PR03MB5623:EE_ X-MS-Office365-Filtering-Correlation-Id: a7d046ab-2cea-456c-dac4-08dbc64cf283 X-LD-Processed: 335836de-42ef-43a2-b145-348c2ee9ca5b,ExtAddr,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: c0HQG4bvudPaVFvnMpI1Zzhy7SmgwwWI6kCCFm5RVslavlTbL231rV/s6BDfNMyBSFmMA8grSCWcwaptlfQwOSdfcSMAafb3YEwkfo2GMK37Sqymr+Pu6xCgI9c0aFhlEHBHkPHr8zptm+fMLH/FWcbzMKlgcRbrWKnlaeYIpWwqWlxA4FItWrA5urnxzDPycxKs0uw83ZoVrJE+QTIcohKzxBiY/IX7aiIO3bHVPM7ZirAGjG5cPvjR8GfLvnjlqUxCxFR2xZM8K5TwzmZP/r9InecHl/2zIP2v61QW9ZZUk1Y3MAZIFGlq9yB84ERO0ykVMhy+hJLQBjJUPXsobEnnToGoanjsW3xML+ntM/KZdoGPfJx+xu72tU1npAVSVudZBtW0cZ3PDUaLJ2GkyyEIW7Dqyc5vVHGCfRxl+ZF1vwdzqxZ2vfkgQVrP/8H5JnN6NxJkUj2jgzSuU5AFEcug3dFmnRvJK0zMbvXKKzIrySSBTw96Z5b1i0XIpEMIpCEo5laK6bVtXsaUnmC6ynTAs1pWiuXQgletoiM0+ptf4mykmdlSx0m3QnvoR5Yf X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR03MB6423.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(376002)(346002)(39860400002)(136003)(366004)(396003)(230922051799003)(451199024)(64100799003)(186009)(1800799009)(478600001)(6512007)(6506007)(6666004)(6486002)(26005)(1076003)(2616005)(83380400001)(2906002)(6916009)(5660300002)(4326008)(8676002)(41300700001)(8936002)(66476007)(316002)(66556008)(66946007)(36756003)(54906003)(38100700002)(86362001)(82960400001);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?npHPJxtdyZ1HMucaKVd+9dKBqfQl?= =?utf-8?q?mAHaP+lYmwHx7FHW6t+pAOQuyUScv5P2dZyNx+DWwVnv1xXGFvhM7SSFUPTGyfI7c?= =?utf-8?q?UXvzrViF8Mosyu6w7JdRhyOxdi7xuodz+glrUZTLPoy5tjFMsDHZy0HoT2Iww4JG6?= =?utf-8?q?ST2UGjco3DyCpoo9+7ViXvhnSUsDRvAMruYk+n3WKrSNT1V74ocVwdofYcJneUx8I?= =?utf-8?q?qZ2Hziw6vpF733wKPFOLFtjrv5NDMg8PG+IflJP7w86JckzWx6DqaISZAvOZmwcXL?= =?utf-8?q?uJa3jyw8zlG18wd6PTPBTTZ+hm7VI3kOkYm3Lw3Kh1vuhSyqKQUbx5UueZnr92GCj?= =?utf-8?q?SPhqMa7OrpasD84G1U8DQK0CbmKkJVVb+/qUMYZJnhHq3roMWEWvWM2xLET8de5TZ?= =?utf-8?q?n9c13eWaofLYU3iL8zZhcAJFtmYl1rVDUSoZQw+aRDQUmZ1fMWRMqtRnsDHJK1vi1?= =?utf-8?q?OndLQu+99eWqKmsP1d61knJPJZipG4KghF4nm+ZY0sFH5HTijZwDYrbfUYNa6Lj0b?= =?utf-8?q?pj57IOrn3FQlPanZu3VSkPjyJg3Pj9UW3fM9RWnPhc8l7bgbDJg21DeHNs7uRBHGF?= =?utf-8?q?Q0zS6Wwx5hxayJ98uvB2yo7wFgOjpj7LxiTnJRJqCsKpHIVBQD3riJbYS4Xuh6nKW?= =?utf-8?q?rkR7GBHjjkfOK2urq6ZUNT8nafE8PbTKwheqcHZirklwtn2Pw/BFix6trd5j039Qd?= =?utf-8?q?r2sdmWviRnD4LpGVsJqZyhLxL1GHvt/mDBND3mbql/4kXSbCZf4EUCp7S2so3cggq?= =?utf-8?q?fxiNZvi950Nf0mgNL/LmPOdOV/J2WlD4u76Ls428ViITY4V2QLB5lQTh9Ix4q4jh7?= =?utf-8?q?EHA4vCcQIuF0U/1ff2LFQBE9k1Fu84AJs66D44idGxD82WfkyEWGZ3qKAzoMZKqOQ?= =?utf-8?q?ilTCse1oExHPuXT0POQDxAU+UnYo5rIwY8+Rt7I99UZ6yGR8ZSGwJX3oTwpku/8eO?= =?utf-8?q?nV9YktnoMrFkEe7VSneL+0xugGAnFRzHVNV4oVqw6dGuazDXR/REOIkr+0b0/H8PB?= =?utf-8?q?zMgRayYGXTlD2MuZjVrUwNnjRwu6h2e+87vA9Z+lOc4KxylW/1OjM5Wexox/XcH6j?= =?utf-8?q?e/0t2HIgle586mhUcxVxWLeicn91iZ1NDaxmt3li7C0b3wu04In2hBDpRYYUSoKCO?= =?utf-8?q?d/lNHYtcTEp4YvNa6xETqBqYeWaqJW3mR9zfXxJ9WxNTkkh07A4xLhJnVYbB4aV0n?= =?utf-8?q?GDTB36t2AbJ29LqjyH22rW4euMT8QN36LAOvQZQevnrECOm8yyb8lKFVs1M4nNunc?= =?utf-8?q?ll3rZhlALWlMwf457BTlzpvH2sd0jxuuWP104N+VJoq8RRskj5mhsm1WrYqSGnfjr?= =?utf-8?q?17IK7rei/US5ZdTZDGKyjKz5rGSq7KSZwAJHdzgwz6DuSP+CTV7n/bxjNEWeYsjWB?= =?utf-8?q?pU3phhlefNqLm70uKS/xWL9ozQdtn0sQGvWhz4vDtIGSgYKQTATTPRINw5j7V4EXs?= =?utf-8?q?FhAord1JyomaNv2b3jZqOTC7YlXq7BaWMAYex4jWTKgwZD0ej2+n6fFu4ZSExnk3X?= =?utf-8?q?mgY+I2ATYhVR?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: x/EqUypPEY/onntB/hLn/E2N04B6UmouigscL4eV08Plhm38vwvk7oVzHS0SkhZH9Q5s6WvVwFcP8oTO/pyeewSzOz9l0VrioFDepMj0ctMHlBPmOjRAOSksK7/HafMHPLzGbNWq+ShnwSCfQNo9DFS464jBQUBJyuskzd1NvrzbqJO2qnzkLZpvP1TdqFLNn1BOSuZMjpJMiwMBBwZJns0a2wJbrvoa6bVvz6IhB1oP6AtT/T3OIt0f5PNN1LqsOHHIQva3+kA0qAUCJRwdaO147wPhEhN0tE66k0wNyztwLXDJTNyjIyyn0lkoijAW8bpbM0Qv3T34nQXdEdL9Dbn+4lvMhn8O0/UNE1xaGrFl7s3fYvO09N0l3uqz0Y1zlK8PT95Bvz+EodaAsSud6yTcPY5uFQ2Ngo3/PKX44uvkZJv2QhdPSf3YWHq9mmB0lq5r8h2NY+2SG06ifI6hF/E+B7zFq6R2sMPvOSvXhYG7xmkGvxOMVNhjvW2a5dF7XXt6TCMPZOIu+ftlq5KqDKy95YtKTLbZrFonTOL4QAUTIahyNaQf01xc/t2+meLLTSJmSok481jTQiX+QkIJsRDJE3xy8CP1arzZZRl7S0zIcS7Ba0sa7Af6JY80b5G+R/bTGJx47y954W9dBJyF7pBZtkqiCL1F3OjkuM8mirqinPCFpLjXhGx742RO924MGYQ6r8Rlbmd2obEMZDCOT+2maa//375i1kXxnEcIM5F66hotIalw9ALwBNQdL6yeFVSlOtVBUDI6sINjpzvCQAIuqiue1xxC4pNNzFHLCR630ZmFC4CX0+KBL+L42St19wE6K4ZOUrWxT4Whl1XnG9T1+1Yi44YbNYz6mUjEMqO4X8sb2eLyQAySS7/8MuJ3 X-OriginatorOrg: citrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: a7d046ab-2cea-456c-dac4-08dbc64cf283 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB6423.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2023 09:16:39.4251 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: zGXhV/gKF3E+OHAvF66pv9nLls8n5OXGNxZ3XQXIA3tgmPZpBhkQOBe84fvJCpS7pQ7epYLHs4rlYz0riZ5cVA== X-MS-Exchange-Transport-CrossTenantHeadersStamped: DS7PR03MB5623 unmap_domain_page_global() expects the provided address to be page aligned, or else some of the called functions will trigger assertions, like modify_xen_mappings() on x86 or destroy_xen_mappings() on Arm. The following assert has been reported by osstest arm 32bit tests: (XEN) Assertion 'IS_ALIGNED(s, PAGE_SIZE)' failed at arch/arm/mm.c:1243 (XEN) ----[ Xen-4.18-rc arm32 debug=y Not tainted ]---- (XEN) CPU: 0 (XEN) PC: 00271a38 destroy_xen_mappings+0x50/0x5c [...] (XEN) Xen call trace: (XEN) [<00271a38>] destroy_xen_mappings+0x50/0x5c (PC) (XEN) [<00235aa8>] vunmap+0x30/0x1a0 (LR) (XEN) [<0026ad88>] unmap_domain_page_global+0x10/0x20 (XEN) [<00208e38>] unmap_guest_area+0x90/0xec (XEN) [<00208f98>] domain_kill+0x104/0x180 (XEN) [<00239e3c>] do_domctl+0x8ac/0x14fc (XEN) [<0027ae34>] do_trap_guest_sync+0x570/0x66c (XEN) [<002019f0>] arch/arm/arm32/entry.o#return_from_trap+0/0x4 Fixes: eadc288cbb0d ('domain: map/unmap GADDR based shared guest areas') Signed-off-by: Roger Pau Monné --- unmap_domain_page_global() and vunmap() should likely have the same alignment asserts, as not all paths lead to detecting the misalignment of the provided linear address. Will do a separate patch. --- xen/common/domain.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/common/domain.c b/xen/common/domain.c index b8281d7cff9d..2dcc64e659cc 100644 --- a/xen/common/domain.c +++ b/xen/common/domain.c @@ -1634,7 +1634,7 @@ void unmap_guest_area(struct vcpu *v, struct guest_area *area) if ( pg ) { - unmap_domain_page_global(map); + unmap_domain_page_global((void *)((unsigned long)map & PAGE_MASK)); put_page_and_type(pg); } } From patchwork Fri Oct 6 09:13:53 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Roger_Pau_Monn=C3=A9?= X-Patchwork-Id: 13411193 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id AAD24E92FFB for ; Fri, 6 Oct 2023 09:17:04 +0000 (UTC) Received: from list by lists.xenproject.org with outflank-mailman.613403.953889 (Exim 4.92) (envelope-from ) id 1qogx4-00062W-H6; Fri, 06 Oct 2023 09:16:54 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 613403.953889; Fri, 06 Oct 2023 09:16:54 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qogx4-00062N-DT; Fri, 06 Oct 2023 09:16:54 +0000 Received: by outflank-mailman (input) for mailman id 613403; Fri, 06 Oct 2023 09:16:53 +0000 Received: from se1-gles-sth1-in.inumbo.com ([159.253.27.254] helo=se1-gles-sth1.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1qogx3-0005Di-1b for xen-devel@lists.xenproject.org; Fri, 06 Oct 2023 09:16:53 +0000 Received: from esa3.hc3370-68.iphmx.com (esa3.hc3370-68.iphmx.com [216.71.145.155]) by se1-gles-sth1.inumbo.com (Halon) with ESMTPS id 153f46da-6429-11ee-98d3-6d05b1d4d9a1; Fri, 06 Oct 2023 11:16:52 +0200 (CEST) Received: from mail-mw2nam12lp2044.outbound.protection.outlook.com (HELO NAM12-MW2-obe.outbound.protection.outlook.com) ([104.47.66.44]) by ob1.hc3370-68.iphmx.com with ESMTP/TLS/ECDHE-RSA-AES128-GCM-SHA256; 06 Oct 2023 05:16:49 -0400 Received: from SJ0PR03MB6423.namprd03.prod.outlook.com (2603:10b6:a03:38d::21) by SA0PR03MB5401.namprd03.prod.outlook.com (2603:10b6:806:b5::12) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.6838.28; Fri, 6 Oct 2023 09:16:46 +0000 Received: from SJ0PR03MB6423.namprd03.prod.outlook.com ([fe80::66ca:3a42:baeb:9ecf]) by SJ0PR03MB6423.namprd03.prod.outlook.com ([fe80::66ca:3a42:baeb:9ecf%6]) with mapi id 15.20.6838.030; Fri, 6 Oct 2023 09:16:45 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 153f46da-6429-11ee-98d3-6d05b1d4d9a1 DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=citrix.com; s=securemail; t=1696583812; h=from:to:cc:subject:date:message-id:in-reply-to: references:content-transfer-encoding:mime-version; bh=Wu/ZdnSYxegPtPcc4d57NlKogRpCDfPyNBeOoxXdSEw=; b=L4hc54uZDk+IqnG4arTIhtBK35R56NfA7bvZIBXcROTAjR63RqEAcD9w ICF4V+rRRzfsqpAaDh/QfNeatof7w03Fhi6QLRlCVSGkSY6FHzDAzoJqq pn9drUowuUc9RDf8tvAffwvQl9UKZWGDEqGIgqrF1UV/3SgmIvf01COr4 U=; X-CSE-ConnectionGUID: d8yi2wWLQ2a9evLoFthYdg== X-CSE-MsgGUID: ZOSQh5d0Qka9fC9WNYRzuw== X-IronPort-RemoteIP: 104.47.66.44 X-IronPort-MID: 124813179 X-IronPort-Reputation: None X-IronPort-Listener: OutboundMail X-IronPort-SenderGroup: RELAY_O365 X-IronPort-MailFlowPolicy: $RELAYED X-ThreatScanner-Verdict: Negative IronPort-Data: A9a23:+a95b6/i60d5YxzSHQzmDrUDBX+TJUtcMsCJ2f8bNWPcYEJGY0x3z mEZWTzUaanba2Tyft12OdvlpkNX6JbWytFiTFZsr388E34SpcT7XtnIdU2Y0wF+jCHgZBk+s 5hBMImowOQcFCK0SsKFa+C5xZVE/fjVAOK6UKidYnwZqTZMEE8JkQhkl/MynrlmiN24BxLlk d7pqojUNUTNNwRcawr40Ird7ks01BjOkGlA5AdnPagW5AW2e0Q9V/rzG4ngdxMUfaEMdgKKb 76r5K20+Grf4yAsBruN+losWhRXKlJ6FVHmZkt+A8BOsDAbzsAB+v9T2M4nQVVWk120c+VZk 72hg3ASpTABZcUgkMxFO/VR/roX0aduoNcrKlDn2SCfItGvn9IBDJyCAWlvVbD09NqbDklCp e0Zci8ySinZjrO73pa8ZPVst8gseZyD0IM34hmMzBn/JNN/G9XmfP+P4tVVmjAtmspJAPDSI dIDbiZiZwjBZBsJPUoLDJU5n6GjgXyXnz9w8QrJ4/ZopTaNilAtuFTuGIO9ltiiX8Jak1zev mvb12/4HgsbJJqUzj/tHneE37WTzXqgAd1DfFG+3sxNu2STm2BLMR4fBFWQ8Mafu3SsRs0Kf iT4/QJr98De7neDXtT7GhG1vnOAlhodQMZLVf037hmXzajZ6BrfAXILJhZhZdo8pYkJTDol/ laTmpXiAjkHmLaSTHeA8LaIvHW3MC4cImIYTT8JSxMf5Nvuq511iQjAJv5hGqOoitz+GRnr3 iuH6iM5gt07j9MP1qi91UDKhXSrvJehZhUu+gzdU2ah7wV4TI2ofYql7R7c9/koBJmdZkmMu j4Dgcf20QwVJZSElSjIRfpXGrisvqyBKGeE3QIpGIQ9/TOw/XLlZZpX/Dx1OEZuNIADZCPtZ 0jQ/whW4fe/IUeXUEO+WKrpY+xC8EQqPY2Nuiz8BjaWXqVMSQ== IronPort-HdrOrdr: A9a23:s6s6IqqhOkAfC2rmX8GpiWgaV5oveYIsimQD101hICG9E/b1qy nKpp8mPHDP5wr5NEtPpTnjAsm9qALnlKKdiLN5Vd3OYOCMghrKEGgN1/qH/xTQXwH46+5Bxe NBXsFFebrN5IFB/KTHCd+DYrMd/OU= X-Talos-CUID: 9a23:F1yfLG+JI3btes4gS1eVv0JEC8F/bUL59S3ZckKmLWFHVL2kRVDFrQ== X-Talos-MUID: 9a23:95xrTAjAnSAp4csv4D4fi8MpBuBT2qTzBBg0kpxXteLVCgpBASWAk2Hi X-IronPort-AV: E=Sophos;i="6.03,203,1694750400"; d="scan'208";a="124813179" ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CxsELX/mbbY06IdYhaWxO6GkT6Rjyg/MjhQjX9Mj2pxO5DGOCBC/SeoGzO70xXFthLvGWzSdzeMI3K3FoGTuxE++0yxvzV79AP3Mn5L7WNHLj7y2rVxKYJ+54bTfCzO/cBc1HsB/Y+dZmU0Y6X7yo4QZAvfiGfTbC03nkHgfsUpi54wT58q0WobU6nhDmZvQt0lEi5E9TDMzTfyysujort5yhs31rK9lr3ub7TEQBo7KATTCvE7KumTGj5qjrFW0P9oJumXXDA/f8gRs735qU2m8GZZEl/PP1ZfIBqbkAuC4JjUqryPD2rsJmsmE4aDF6ZVflf86HtSI3KKppyNscg== 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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=/wBw3P531UdIworjl4KUQAryt4UZ2mV/Y4S37gkcCvs=; b=C2FNMmKFvxwHI73WkeQ5j7Rr11hwRJCPoNin3QheyUzyBbpCXM4r7x9JoCDWPDL+K6II8BK8HQ2mQrzvXUkI4SrsKx0coY23HvdHbHl85tY8Rmw4Bz73KNBcgqxtJbsVVcGCdG21RF9VGRchTpCAg1RRnC7I2g5jbdb/uwh1BMPWo39JTBMETulx8hFgcwxwagiooKxP/ayZjy+FWk0Gf17wLB4mDh/Ch5PnOoeXEmSLSnAY3ebUDKoHhgFThdy9OkBwNxP7tp+ZlrjjJwtUrNuZfUYaCTVwITZTr9ZEicd1QcNMlNrDnu3gyrdWswcp//HDbXhHCN3NNoq4XEKZFQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=citrix.onmicrosoft.com; s=selector2-citrix-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=/wBw3P531UdIworjl4KUQAryt4UZ2mV/Y4S37gkcCvs=; b=UOeoCHbqdIIu4xHPtKJDyGB0FvWMaTVXi2YSv/+yUFuoyvYmGSrJQstUPm6OkZWBZ2nh3Vl7Lt6Obh6uDEMO4pIYNI7TP5LzedcukevEJWVHWby+eKVnwRMj65q7c5jNHCabiSWkZpeTDNE/CNvaoN75jepeVuvErQghYzdCZrg= Authentication-Results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=citrix.com; From: Roger Pau Monne To: xen-devel@lists.xenproject.org Cc: Henry Wang , Roger Pau Monne , Community Manager , Andrew Cooper , George Dunlap , Jan Beulich , Julien Grall , Stefano Stabellini , Wei Liu Subject: [PATCH 2/2] domain: expose newly introduced hypercalls as XENFEAT Date: Fri, 6 Oct 2023 11:13:53 +0200 Message-ID: <20231006091353.96367-3-roger.pau@citrix.com> X-Mailer: git-send-email 2.42.0 In-Reply-To: <20231006091353.96367-1-roger.pau@citrix.com> References: <20231006091353.96367-1-roger.pau@citrix.com> X-ClientProxiedBy: LO4P123CA0613.GBRP123.PROD.OUTLOOK.COM (2603:10a6:600:314::19) To SJ0PR03MB6423.namprd03.prod.outlook.com (2603:10b6:a03:38d::21) MIME-Version: 1.0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: SJ0PR03MB6423:EE_|SA0PR03MB5401:EE_ X-MS-Office365-Filtering-Correlation-Id: 55c66f95-fe43-4f23-e3ec-08dbc64cf646 X-LD-Processed: 335836de-42ef-43a2-b145-348c2ee9ca5b,ExtAddr,ExtFwd X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0; X-Microsoft-Antispam-Message-Info: Mtok19tBtj5UJDOm4wdyBNX94NwXz3jki3vp50dygpQhvoYa59UdNFJkPfACz61SacEpD7wrwSale9eoFedrseiOZ6KoCGknExIx0xjVliyWlkJZrfH5Dr+f1t48xICCocpNTmwM/HDgdZT6FjjupPja05uUzTwyxnbjG1spybMXVcgqAbD1JXfyqiBs/U/ZJlH2tl/ZTmJi2hYTObZGKYBxNbwAup5GGkKfPoVj3XYCUv0qq3OdUyaJNXYdM3D+fADQ4A8jWczIkBewQ9bmufcyGkiBVL+uFGNS7TiIOKLel5LiMArZeKgqMDtbLTi04wn7u+EUgkwwksaevS4SqU+9vluF0EQ9wx1Zay0AqwuAx/MzVN/2ZulzwqBYrtME0iJUa3dF9CUejAHSBTrsUVBwWRpJtpQGxYkr35S47kQ69cFU6U+YEbKvVWf9aVai1MC47lijQlvnvDcEV0eD3/HMOlkk438MOaVu3oG8FaMuBmj2GnWqZ9wC6j/niHf9XTiI67AOHOYxIVydu6G9CQtYWpeUV4JllnmH7PXixAo= X-Forefront-Antispam-Report: CIP:255.255.255.255;CTRY:;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:SJ0PR03MB6423.namprd03.prod.outlook.com;PTR:;CAT:NONE;SFS:(13230031)(136003)(376002)(39860400002)(346002)(366004)(396003)(230922051799003)(64100799003)(186009)(1800799009)(451199024)(6512007)(6486002)(478600001)(6666004)(6506007)(2906002)(36756003)(41300700001)(66946007)(316002)(83380400001)(2616005)(1076003)(26005)(86362001)(6916009)(54906003)(8936002)(4326008)(8676002)(66556008)(5660300002)(66476007)(82960400001)(7416002)(38100700002);DIR:OUT;SFP:1101; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: =?utf-8?q?rM3qExyjB/O+cVdddtza3mifK098?= =?utf-8?q?IXRO3J/9EHa5mmPql0L+J2jIpSwqtW0zoMkhE2mrRRy0XGBo7YhUzmxjKVThlWtrp?= =?utf-8?q?sX45RpF8Mgq23/qmuRSbo/6dvqYlxcVNZGh5HHn/nwVfZ/ziyAU2TPz1kM140yIc1?= =?utf-8?q?lswAUW8wj6yqjHvzjyKftSG/sQ2p1LRojEVudSYFnhrHsIdiDSV3CHk6vA8DPt11j?= =?utf-8?q?AjVcDePlaydpXnUauHpIc3R9jOpPSNWRufHRCCkluRq/p9C8MdubOYVv0rEeqDDb6?= =?utf-8?q?EFJWY8iS+SGz5vm32UvYp7scSmW0WLmZMnYSlC89BxewHWkLUTx0Sle5IEQdgfIOn?= =?utf-8?q?BxVWw+YvFE+xfb7vR64VUKP5+3twYR1yqv8aRD+flBFXESUODIRUNJWCfxaz8o1vK?= =?utf-8?q?+siFe085S4ovSTWhJyPKbu7rtQuVQDOFO8mAn0jpr0jqJfdDCKSgIIFtu+4LTqbgv?= =?utf-8?q?8IYMLgEO0Hlx0N09VcBYYfbrDMHXWoGI6vRF1+3rZsaCztJAlhmWsVhBJG8aTogTG?= =?utf-8?q?0YFaIUeJFCNsnielbFS+UDOSxTY42rrkvpbH4HA8T8wAiVR33Zgr7YEGw6ATcgEyd?= =?utf-8?q?zRRVSt32h32MHi3gMBEF9Jjm/AGGaJEwvd4cIlZWVbZO9QzYGSjiEFm0k90I3Dd+7?= =?utf-8?q?5j9YrDtUea/kGkotnol2ndGMRFGFskHAXOhswNYhB+aFIHNhVPpVjPhQ1c9mT/eOo?= =?utf-8?q?BHXYZusf5bMs8ztupRA25yBSboIzsyMf+eSmZBjY69wACLJVd2FrPhRN//Qxcdnlc?= =?utf-8?q?diJ1Mvd4VwPF0alVREiQcp6/6S6k/P7BP2YYOEyPVDPWZJNkIhEiLXVs9Ew3Hfdhd?= =?utf-8?q?+so0kshWewd9G6a5geySrvpmFjGH/lTtaoj0B0V3DdzOjQB4cHvcymzSujYOWIFE7?= =?utf-8?q?80nklZVhmzc7w/G2Ev53DxlrgCrQf2iFLeiON9cOP49EDWKOp1gUmd0dekjQjacd3?= =?utf-8?q?yDH/7gNysb0fi37IrguJfSgg72Ivy3PChpmGd2JsLfVuhDY1mlpPqIlIz6I0xI8UG?= =?utf-8?q?RW4ntQzxv9sQp1EYWkmc0tZtlHELiBSUfkZWx9szHKKSfBC+l2JlYiWoijHRfQ0lT?= =?utf-8?q?XWxF8TNiQnpQ5Xxg58PPiBsceeAbc8T3CZ3XrpIi4QueAfM/+V8WoNmT2DGnvbDSB?= =?utf-8?q?8FXhfluKt4nkDHAhuPKR2UtxGd78QhoRaZncNWXG4Gd4iBQSH8k1jXUHJqN00ZOmD?= =?utf-8?q?KtQV7oOrN7yn2LFQ6ZeNto21XqndVrcZ+Wy74uQOUYYZJUJSMikZcHDQ5Zt9amONp?= =?utf-8?q?Q3FqIOxobqDoYlu0yCKvCJFvSf6KQwC4dZiORxdOughhEBRcMc1v1gbdhKt/7E8KE?= =?utf-8?q?fWcfZF/uctcN6r7pg3whJjRMByO1xt27VUWZ7IYs9Os3P28hKtPpAwR+HzJw8+ocT?= =?utf-8?q?IBasYS6VoYSpOdiGxCmPKYy9CFueO5V8fz0hZFq7alYD7gDu08o/0YAnzxqG6oU6E?= =?utf-8?q?qJ12NJycKajdfZpuYNKkcgfQqckfwpEvRa+sgx4CmCwByeXrAazYB8GI3czye0go4?= =?utf-8?q?k9t0L2OEHO2k?= X-MS-Exchange-AntiSpam-ExternalHop-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-ExternalHop-MessageData-0: vV4zUFDjOTx15IXYiktHCJQK5J8ggbbYkw+jUW5QhGaKJfotdqMJdSgSndAKBUcHL3DRB+7i3Y12f1dQp1T1mNhiMB9Fwa40LqUROI1UV1IpXeTvoxhQBWi8s6L6RaVRRwUpeC3qKgWduJQ1KntBrmfgMnbVhNoNB6prR1GqbFfniFzvJgHlIP4NY1LQxvdaNOt1FoY9BHit+8nOn5GYsnKhPMhMZA98Gz+MSVGppzjGv65S8iFVTDb45C6XaGdyxfMcmwnCtyHfzTxARq0Pic++nPkWMgWIYkGF5VujSvwIePhd6Jr5zuc1WDQNAu5m9w2Z0/XfqQDif8RwpP3jggEpzqlKG9rayRkht9stwtL1wZ8i2PY1Q6tJGdGIzsFhcqSWLQMjOpbVtdy5ndLcj8itwqeC6o5gyidHP1uZ4f3hHy8XPh0Fm7a1Bj5aWKTOOMbDKKNgiT/eCBLzDjfPRU0FKds20ZlQBt+EYLNiDzI4DbJqziYiiS4yh/NgLE2M30oT+Z6m7zPF/TAMcBL4+oXdlKiy9Zr4B+lr39Dk1MjETlxYI91O81d3wt9g8RQdJHphhgYOXhmg2RCBVa2SgR6VD2FgGrvubUOOi4roXuEsxp20cZTgW7cmSfZh/KYSaoHJ5FFHVGYAkDodcKXeaUoR9E/sWZg8RgyOEmCrPIFweR0pILmrtq6ZqkWZ85CjcO2NuvVfX6RwTHjwmeRWJSbUT5bTIRA9UNVApv8zGC1wqn17EP0jxV6yw0jzJ51j8iX4Oa4ksSyVpbqI2rR+PvaRawhA6Gx2XAcZTPU+VAXbIIQGtdyn6sE2R4g5mtdfUt6NbEKtv4nD0lFbR2rIkqststf0ulQLTQ0WlFvMZtF8EH7MCVThxZTXMIFuuAQi758wHhJ5ovwHy/5tSVD8Frt2xXDieLUp9ZMXtu0+qok= X-OriginatorOrg: citrix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 55c66f95-fe43-4f23-e3ec-08dbc64cf646 X-MS-Exchange-CrossTenant-AuthSource: SJ0PR03MB6423.namprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2023 09:16:45.7085 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 335836de-42ef-43a2-b145-348c2ee9ca5b X-MS-Exchange-CrossTenant-MailboxType: HOSTED X-MS-Exchange-CrossTenant-UserPrincipalName: 9to65XCyDm/ZIyr0VRuWrGB2FOFw/HF2/janGL55MBnZxnWmQnfKwUuDEIeQs36exyHBJ0sjyaXJX3aDsYBDww== X-MS-Exchange-Transport-CrossTenantHeadersStamped: SA0PR03MB5401 XENFEAT_runstate_phys_area is exposed to all architectures, while XENFEAT_vcpu_time_phys_area is currnelty only implemented for x86, and hence the feature flag is also only exposed on x86. Signed-off-by: Roger Pau Monné --- CHANGELOG.md | 2 ++ xen/common/kernel.c | 6 +++++- xen/include/public/features.h | 9 +++++++++ 3 files changed, 16 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e33cf4e1b113..41da710426f6 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -31,6 +31,8 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/) - Add Intel Hardware P-States (HWP) cpufreq driver. - On Arm, experimental support for dynamic addition/removal of Xen device tree nodes using a device tree overlay binary (.dtbo). + - Introduce two new hypercalls to map the vCPU runstate and time areas by + physical rather than linear addresses. ### Removed - On x86, the "pku" command line option has been removed. It has never diff --git a/xen/common/kernel.c b/xen/common/kernel.c index 52aa28762782..b6302e44b34e 100644 --- a/xen/common/kernel.c +++ b/xen/common/kernel.c @@ -607,7 +607,11 @@ long do_xen_version(int cmd, XEN_GUEST_HANDLE_PARAM(void) arg) switch ( fi.submap_idx ) { case 0: - fi.submap = (1U << XENFEAT_memory_op_vnode_supported); + fi.submap = (1U << XENFEAT_memory_op_vnode_supported) | +#ifdef CONFIG_X86 + (1U << XENFEAT_vcpu_time_phys_area) | +#endif + (1U << XENFEAT_runstate_phys_area); if ( VM_ASSIST(d, pae_extended_cr3) ) fi.submap |= (1U << XENFEAT_pae_pgdir_above_4gb); if ( paging_mode_translate(d) ) diff --git a/xen/include/public/features.h b/xen/include/public/features.h index d2a9175aae67..cffb2f14a562 100644 --- a/xen/include/public/features.h +++ b/xen/include/public/features.h @@ -111,6 +111,15 @@ #define XENFEAT_not_direct_mapped 16 #define XENFEAT_direct_mapped 17 +/* + * Signal whether the hypervisor implements the following hypercalls: + * + * VCPUOP_register_runstate_phys_area + * VCPUOP_register_vcpu_time_phys_area + */ +#define XENFEAT_runstate_phys_area 18 +#define XENFEAT_vcpu_time_phys_area 19 + #define XENFEAT_NR_SUBMAPS 1 #endif /* __XEN_PUBLIC_FEATURES_H__ */