From nobody Sun Nov 24 18:32:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720438857; cv=pass; d=zohomail.com; s=zohoarc; b=lUQQHSV2GT2QPanM/NWNRteH1W/FIVJ0p5sLCJT+UsHTZpkmER6OKH4sLjxD4mceZyo8W0PX/KLqW4OQElT84E56qA3a/MU9My3JHJV1+y9DC/BY/bbNu4MZKYIOO7N9Yp8yedm/VgaNsayWWWioUrIBJyHCMl9aNvK6FrGH1eU= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720438857; h=Content-ID:Content-Type: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=r6WyKd+WY8Yb8bDrXxdIwpfjKQeRsih/fOFlu4WzvwU=; b=QZ8/71xdW3ys0s1Vr0+Ou0wj1o3lFa7AKKKGpJpcdgSDUefRfcc/O4K4vVXf7eu9OutVEE6nSSAb31jq/UZjVnzd0tIShUqcEECNzKN+16gyp+rkr8nhtzPeB4SOhB6NRhjWlvlUGGbn/t7srQaNia7V799ksLeA/fUes513ZaE= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 172043885740494.3837687194225; Mon, 8 Jul 2024 04:40:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQmj0-0003oo-DD; Mon, 08 Jul 2024 07:40:07 -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 1sQmix-0003nV-EM for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:03 -0400 Received: from smarthost3.eviden.com ([80.78.11.84]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQmit-0007rq-K3 for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:02 -0400 Received: from mail-vi1eur03lp2108.outbound.protection.outlook.com (HELO EUR03-VI1-obe.outbound.protection.outlook.com) ([104.47.30.108]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 13:39:54 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7400.eurprd07.prod.outlook.com (2603:10a6:20b:2a4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18; Mon, 8 Jul 2024 11:39:53 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Mon, 8 Jul 2024 11:39:53 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720438799; x=1751974799; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=r6WyKd+WY8Yb8bDrXxdIwpfjKQeRsih/fOFlu4WzvwU=; b=qbGaApfJ7F2IUdapF/afKdAMAlhjXLPIOUxburs0WE08uRJJxjGOcQMH C0eTt0S6KqvYWR6seBKza7P30exJCSu6pY6/Agl62MWtEGnShvza6Xvnc NKpkfiH8Jsid70zmCImVpJDHdW30E+wInYIeuBEB6dwJ8nyEE7js387BV YSGftpMR4QMy+yTKEliuPovOuY2xV/dhCa0LQEXasU/4+c9Pw6aTSegCq K4nIJEeSC9aVu4+fhAu3mdiE3dBz8l8MM8hvZXFcjIkJQ2eSgOvpTITnR /MK0Tl11jfmDw0ZkHLgnuFpp0mKc+YSvWN9yLTvKinWF9fdLBmZbkSw/C g==; X-IronPort-AV: E=Sophos;i="6.09,191,1716242400"; d="scan'208";a="16087895" X-MGA-submission: =?us-ascii?q?MDHO49zdhKfK930NtW0XntY4bGHTZPIK1dliWY?= =?us-ascii?q?anPiHFXuoQ7p9t9YRdHZ1d9HjeE6RSYDYl2e869Ir6f9t5jLl0bmoTAq?= =?us-ascii?q?nTZzhhaaBdiM43LOdtCmak5QfibcSzpxpwSJk1WcVr6+UJIZtaXDYpsq?= =?us-ascii?q?WICD8V9GtutYcak2EcKM5xSQ=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=b4veTFFRx8snHcZERsc2zU72CsC98NljYB7l5qeAgElVhWu/GBHA3EaGpECW6rhf9OfPOe0ORaH3mM0i4NbRHv/0uavMNSIHfzXs2PaXeWZDHGF3u07PMFcEYmrUBslwIoSefd1aU2UAVorAXxz3Lk16MDpRnv6ObEDYBwpu2V66gdB1XcqVwGfpFrgpRB2LgfxUFaznaXjPykcVf9u7flsmoQnrbCZZ4mnJ6+F0996NO5IVWg/91zM3pLVgiMzlVD8YutED7y/fcClF6oJ/uQzqOnVCvMXX4el3qCk0lqYy4EtGdOqB0rcg5gtfriKMQF9kSEwuhMpPiKzBsB1HBQ== 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=r6WyKd+WY8Yb8bDrXxdIwpfjKQeRsih/fOFlu4WzvwU=; b=C2PFX7v4rRLWAMIrbCidmIe7vWviqW/dnqWCBl7xMSWAzH5qhUNzGs4jqlMXemad9qLEtZ/HZl83XZy4bZrrYu6FTSd8j1Xoij3I7iHdpLOK2FE/lb6/AAldyZGZhCfH4kwrYmjs1uUTdoz0LdiD1w5hkt6XXG7m08Yi/gA43alr8HcBz0Vlom6ZyHESiD/NVClshTyqoxoecu9sc8iJoE0Sg97veYdfbz5OzGjdwA1ssGXMN76PNBDvU8G8Ae3R3h+z7jSmrEoO8Uam5r+yb64ZQrTQm/XWa4NTJKQ79FAf0+TiL1A8TlBzv0ROY3ZPylG7mNdldVxIuYk3YIOl8Q== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=r6WyKd+WY8Yb8bDrXxdIwpfjKQeRsih/fOFlu4WzvwU=; b=Sl/cNpPu5ERGQWyCt/eg+G8itJINTpBchczINaJ6o+BAJC3JJvTaPHm8Nk+RpbTegbzY05mCpnKOrqNR8slO2hxXov9Q+Bx5COCK52Pp36gdNPPUapz4IPyOc+4dyNJ12X5BJ/yDsiKSBjQECpuy2pQZ6B3kM56+Ba7X+LgTv4YRQYcke+fPPvRt/FrKqUOMNmnSPIQ4MBuiqew94Dx6BW7i0HS05IKP/+6dJbLNwyQip7suH4pChV5SC64kJjAGeSUFPxOb8YQ7hZqX6J/nMqHy1MdpddzxcgWvdnilvIpydzgZFK9QmkJ1dcqiCkXDYki9mlCFIEt8LalJXFVKoQ== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF Subject: [PATCH v5 1/4] intel_iommu: fix FRCD construction macro Thread-Topic: [PATCH v5 1/4] intel_iommu: fix FRCD construction macro Thread-Index: AQHa0SuMWtlLXh0D9UKhcXu+XOoyDQ== Date: Mon, 8 Jul 2024 11:39:53 +0000 Message-ID: <20240708113908.19535-2-clement.mathieu--drif@eviden.com> References: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> Accept-Language: en-GB, fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR07MB7602:EE_|AS8PR07MB7400:EE_ x-ms-office365-filtering-correlation-id: b3df6517-c334-43fc-068c-08dc9f42aee5 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?NDlMOHNQUUNwOGhrZnA3YXJIVXlYdTIyRG1zczZjckE0a1BHTzhSSWljdXZE?= =?utf-8?B?NUcvY2NGK2FiaVliQW1lNCs2MmcyVWhpSE5HQ3NVNzZjdWYzMnJOU1B0Rzl2?= =?utf-8?B?VVdrbUZ2ck9aTzFYcjBDRVNBclFucGVGbElDSHkrWGlOL21SMEVzMmdRL05a?= =?utf-8?B?WVlCb1hGdWF3dmxNNk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PM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?emhHYkdSYms3TUE1WWdRRERIWlJ1TUFBR1RxOXNNWjBtUnMrU1dOc09pbHdp?= =?utf-8?B?cmtQY2ZyQlFwbkRPRm5XN3NueTBZTzEwZGVKWU9pRVZuUjdoNmlqa0ZiS01L?= =?utf-8?B?amk2M1drOFpwdm9UcCtSY3RoM3E0cmZWeHNvaXZERHQ0VTFrNUNWWjhVN0Qr?= =?utf-8?B?T0JuK3RyRHdZQzgvU1BFbkZCUFBPWW1iMm01TGkwS1pOcUxrdUJVYUZHR1ZG?= =?utf-8?B?aUt6WVpYbko3WExyMTRXK0hSamR1eEs2bE1FYnBUVFU0eERaM2t5ZjRnS1pS?= =?utf-8?B?RmswZy9ZamEwSzVrc2Vra1ZKdGQ4ZEwzTnZWbFduUjZVb2JMaUlhNDNvTkxn?= =?utf-8?B?aCt3UTRTYk9jV0xrdWJydWdiTXA4S1diaFFUMHczaWFDeFpOL09tay8vZzJR?= =?utf-8?B?Lys1d0hraEd3NkJxYit2aVRhT00vMVVMUjlSQ3BhdVdIaVpGbzkxekMwN2di?= =?utf-8?B?Y3JyVnQ3STFpYldtT0FMSkNsRm1rNmJWeCtEaGV6RzRENTl6aUl3RFdlTmxv?= =?utf-8?B?NHFyZ2RscXVsbEg2YnpudWJ0ZTUwcjlZdGlXY0tsdGZMQXRRTzB3YjBQcWtV?= =?utf-8?B?YUdzQVMvZmRoYjRMVE1tcTBHUjkrU091Q1Rxa1BDUHZjTG96ajFHamppMmRL?= =?utf-8?B?QmVKQkJaTjZGU3VZS2tkcHFuK1pWNFFOMDFPSE10aGpNTnVqU2VKY1pqMTk4?= =?utf-8?B?VmIrTlMrYXU3eDhDWkMxWWFHa3NWTVB1dDA4ZGU2NHI0UG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zYnpRWU9QS2FuTXUzcEVzTWRWdXl5?= =?utf-8?B?Vi9KTS9LOU4rd3hUVTR5cXR4dWI2K2xJL3czS1JqRXQwMGFya1Rma0dBUlBl?= =?utf-8?B?eUd6QzNoWXkrdFNNbk53Tkc1VTM3WHErcjMvcXRvZmdtZ0ttWHBZTWJwZXJS?= =?utf-8?B?c3IwSjFodlNuRnVkMVFxSk9kM2RMamx0WHV0Q0FpVnlIcGRiNXpJbEhKcDFy?= =?utf-8?B?ZWZIM0h4ZkRGb0U0QW1TUEFVVURFTnVXb1YzWlFmUzJVMmxOZ1hqVEFPNlo3?= =?utf-8?B?ZjUzT2hkd0dxejRiRkhvMG84T2F6aFpkMUE1VjUzYjV6L2NzNXBZa1p3dmps?= =?utf-8?B?cisveG9KYnpVdWRYa0o1VWF4UzlFeUo1R3J1clU4bE1UYUZCYi9odGFQemVC?= =?utf-8?B?UVRSdjJLc2g0VVZXbnQzZ0JUUDRnWVhMMlVMWlJMY3RsYW8vWitqRE5Bd28z?= =?utf-8?B?ZGdac3FTRUlzSlBlNFptOUFWN1JFbWcxYUFXQkh3MGxuaGsyOG4wWDM2dFp2?= =?utf-8?Q?kdhevU+nsilrttUjwwI+Hz4=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <162AB7B83577174CA6EF253EDEC4126B@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: eviden.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB7602.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: b3df6517-c334-43fc-068c-08dc9f42aee5 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2024 11:39:53.0448 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7d1c7785-2d8a-437d-b842-1ed5d8fbe00a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: Kyt2hs+Q6PWEp/kvXty1ZlKf4JetkYh8bGmcSgqJ9qIIJxxK4chiH7g7X4lEAWP6C5EYbSYgrwKagKAya8DqTL+1nLgHLVBrTSCGdl7Ppq13deJu/aC8jWITn2qosSWp X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7400 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=80.78.11.84; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost3.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-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 @eviden.com) X-ZM-MESSAGEID: 1720438859485100001 From: Cl=C3=A9ment Mathieu--Drif The constant must be unsigned, otherwise the two's complement overrides the other fields when a PASID is present. Fixes: 1b2b12376c8a ("intel-iommu: PASID support") Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Yi Liu Reviewed-by: Zhenzhong Duan Reviewed-by: Minwoo Im --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index f8cf99bddf..cbc4030031 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -267,7 +267,7 @@ /* For the low 64-bit of 128-bit */ #define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_PV(val) (((val) & 0xffffULL) << 40) -#define VTD_FRCD_PP(val) (((val) & 0x1) << 31) +#define VTD_FRCD_PP(val) (((val) & 0x1ULL) << 31) #define VTD_FRCD_IR_IDX(val) (((val) & 0xffffULL) << 48) =20 /* DMA Remapping Fault Conditions */ --=20 2.45.2 From nobody Sun Nov 24 18:32:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720438861; cv=pass; d=zohomail.com; s=zohoarc; b=AU+RjomGUlKHHw6VXewVj2Xn7wDy6XJC5bFaltj9jSaF44lUlkH6xBm5m74bgKmOSed8ljN3Vdx6vvDXb3goYvkBFnq0xeZe2IiP8LGqNpsncnJanjQvyzEyKeCFmYP93qiy5ZaT54Ic1jPljLDrz5uTZwltMmgDluOTIs8GxAU= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720438861; h=Content-ID:Content-Type: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=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=kQrQcZqURH3Vs4ottmdjBsSQmdIDWTi3tJN7UfDmijsp/eSbX5obM2AMWLH9cbQRqypCKoK8R665/BVmOKENgFr2NT1Nm58b+dLrpgxDbiMc7I8Ja+RnwQwxwwGZdhHJ75WSBlhDYxX8y/TDOViorsB/Zl0OW9tsJSOVkzYIJpA= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720438861785212.82277325452378; Mon, 8 Jul 2024 04:41:01 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQmjN-0004Nu-Uh; Mon, 08 Jul 2024 07:40:30 -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 1sQmjB-000415-Tx for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:18 -0400 Received: from smarthost1.eviden.com ([80.78.11.82]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQmj6-0007rr-5m for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:16 -0400 Received: from mail-vi1eur03lp2110.outbound.protection.outlook.com (HELO EUR03-VI1-obe.outbound.protection.outlook.com) ([104.47.30.110]) by smarthost1.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 13:39:55 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7400.eurprd07.prod.outlook.com (2603:10a6:20b:2a4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18; Mon, 8 Jul 2024 11:39:54 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Mon, 8 Jul 2024 11:39:54 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720438812; x=1751974812; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=u8Hag+pJfDP/S2Ct+sjZKxXA53O7XU+0ATXpcvePhGgbc8eVnV/Flmyw mEhmVbVbm1rXKr+9BFnGWyDRMgvfGUArO3YXYi+SysWDtmJDFzLhiNkvO McTIRDVz2Ef8KbRHYZm8UGjcFf/VLkPkA8VvWso9dleszWn0f7YKf9JbC /T/VlIthuo/qd3opdETTP2tc04uHFdf8SO1ZGYDRlhbYjshD/3VtlFzNB f7YFdHriqFLp7BoxLLRA3Rsi3k6Xgt0UN210LVWuv3/t5rWRqrvqjVzTI G7VZJoshqSV9pk7tz6UXZ6ijhVGQ2l1iTTuoTiZyL500b5ztRs5eQ3JTv Q==; X-IronPort-AV: E=Sophos;i="6.09,191,1716242400"; d="scan'208";a="16077477" X-MGA-submission: =?us-ascii?q?MDEA7u1XtJwC04CN3vh+0fhaLBoa9W7HsmJZpq?= =?us-ascii?q?jvSKGvonBSfTxzN1pe/XEcJ9w9vEJGrzCDPH8ivUC+DIhj9ZZKR9QTis?= =?us-ascii?q?N5uqcbf2neWi0Zgea4BBtcqxSDubcJMBeP+L6tAOTz7N9mC/T5BbiHml?= =?us-ascii?q?wNg2rnT0/qzl1lTyuqNYUqPA=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=diyPNUNr9Iq7gvKYklrjGuqsDcctOVYRU3+SVTgqjrjOWIfVm9XIEdIcvfA6/mPc8rbB4hqts4A8+3KvVWamNwEaE9ApXLQbv6xRsUY4HQUBLaLE59HRnSWA5Fw7+Kwk2grlE3AsLWdb5v77POfeY7tr8xHpLdDY9AS9dK+daOfN2NaEtkrWb8ihcC7QPNyJzluUI/ozpuc0LlJn4aSFNFO0awMoraEvB6Y8B7sNL0aJVyU7O0YD7gOpKXHCWnwzh76JgFoQi7O3Apc1FlbwfmVHrIy3qURiy4G++VRmbfJ0UuyKnKp20w4MmcjjTtIHII9Knu0MP7wQT5vzbHSdvw== 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=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=Vb2COn001I1r8BD1vvM6XWfwtLem1kW76yoZ7uM7R9eVuPexvxSGfw4J0iL+tHp6lcmatDqAzB1jq2YLfP4KyXJCaUWMxNST3oQBaJH326y88R1DKXaolRSSTqTMF2fV6aZDn86PQ6Ux6YQqGw4a5ITfKrGmpAjeH0bJGBhBg2IdrF4W6R3qiHH7VCdtdKTn91/cq8b8bqbSwBTO9CXjsNCXtrZY/9BgFUXADy3eEv2CAPe6FUMoK7eGiHNKn3zirqaY8LwzySq7KHeD8ePnEAs8xzruouQBZ9QolAZjmTQmgnXlB5E+fst+guBpoHn2FL9CyUaYYJMYLXq5aBgLjw== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=xQVM7ylMlGKzxRaBVpQZpqXD9KGA8oCWP93OVr5usyQ=; b=oj7Kbzcz8OnvPnCbTVHZuUXPzTh/P1/j4ZWmhHRSIRoaY+pKL10SxUkmLGBaAl7iIveEwBR28lyKWI4hyWu/Iyj7eOj4Y3hfRukcgcehZDiJw1brdyDzotvaSNECDXB8sGSaElwE3DTNB7sQyFSi0UTzRzCnJx5Z/qHgiFQRv1xrZ8XJmqrMm15iVuoWpCzOkXaTimLY+h2f8kOyLAqxRxXIt4cpIDpm30XDB1UrWWVv2EOuxgQkRAkodh/48p4ef2aRS7+ETxQTXbpmBiFD8V2YYWHcMw3Wm0wQSqGvaXXBUR7SFAMKSjjfw77xPgN0KlC/VI9zdaq4RET3Y4tGeg== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF Subject: [PATCH v5 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Topic: [PATCH v5 2/4] intel_iommu: move VTD_FRCD_PV and VTD_FRCD_PP declarations Thread-Index: AQHa0SuNdXrKd5AlR0+pdFBq0nmsCw== Date: Mon, 8 Jul 2024 11:39:54 +0000 Message-ID: <20240708113908.19535-3-clement.mathieu--drif@eviden.com> References: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> Accept-Language: en-GB, fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR07MB7602:EE_|AS8PR07MB7400:EE_ x-ms-office365-filtering-correlation-id: 1ff73dd2-0028-4898-9c1b-08dc9f42af7d x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?QjVHYmpCWjZ6d1hmdk5YZVdRNE5oN1lGcFF1akRWYVhaSjFkQUEyandHWXBw?= =?utf-8?B?VHV6ZlZuVFdYWk9qOGxvelF6SEFGc1NkZzQxVnZkanRreTJoR1gxK3hBU2Ev?= =?utf-8?B?Z3BZeFdFYUxmZ3hSMmtoVkI4NUZhc0VRWDBXOWRDKzZtY2VyeEowVFVCSWox?= =?utf-8?B?Unc5Tys5QnNScVhzMXZwMWFpQm96ejllcFhKL0hlZktoRFcvQjNNR1hJSlpI?= =?utf-8?B?b0ovOVY5ZVlwV2RZcC9MMzhpbzIzRG1hdHJQaDVHU1FmTHlCeG1mWFdRVHB0?= =?utf-8?B?RThHYkNzQytqZFpibS9BMkVwbVErblh2ZENzS0NrMW5BV01xSWQ5czhRYlgv?= =?utf-8?B?VE9TSU8yRXd0S3lIWXFLWWpTdG56THdPQlBUMDNzNmJOQ1FBcHRlQVhjbG9x?= =?utf-8?B?dEoxOW9BdERGSmVOSmRhSnBxL1Uxc2JIMThLQ0Y2NllVL08vK1BJRTFadCt1?= =?utf-8?B?T0NkdnlZeWs4S2dmNjllajZTd3NlYVZEcW9GaDJNL1FySmJ6b09lT25nVXo2?= =?utf-8?B?N1FsTU5GR3BPTWwwRWJXei81SUMwWHFrU2hHSHVJTnc3Q3FQanFJdDlKQjhq?= =?utf-8?B?amtoNG1qcmE4U2o0N1lNeFAybENrcmVSUzFMdHJNa0NkWmpsSGxuWm9BS01P?= =?utf-8?B?c1AvbXdSa2N6dEUxNmFjZ3JpREdmZlFYYTZab0F1VFI5VTVzSWZFNXR6VVRj?= =?utf-8?B?aWhIVzlVTlpzUnQ4b21ZNkRaK3cxVXU1TllOZHF3R1JuYjFXMUVueU11bmRS?= =?utf-8?B?V2lMdVlxcVNNQVA4MjZSZjd1aGh6ZTJRLy9takZLalpacE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FFRzVGK1J6ZlVDdjJ6bEljQm9QZE5ad21D?= =?utf-8?B?RThvTVJmL0RweGZWWkhqazVudDdRaExTdiszMzFsa0MxbGZvdEJDRGpZbG5o?= =?utf-8?B?ajB0cml2YTNuR1cwVDB0K0RkNmhuVENZRjlzSFQ4VHAxd3ptYytXT2R2TkRx?= =?utf-8?B?SDZCOEFMa2Y3bjRwZDJmL2tXamdJZGNqcms4M2VYbFhkOHc9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?aldDYTRoTHBVdm1aN2ZzOVdNS2VVU3dBNDhCVWlUTFZZQ3A1YkJEdnJmRnpz?= =?utf-8?B?bEU3YjBDNW95RFdWbTEwdHdBbXFCRko0Z2w3V1B2akgrWWtiTzFacUgxUU5Q?= =?utf-8?B?bVNaQUxqWGZMaGhLOVNuMDJ4ajdUMHZaWDEwaXhQeW1aV3RTVCtNVVpDUm9K?= =?utf-8?B?ZE1ZRzFaMDIzRnhhUERPcFk1YVJEdnp3S0NNZEdsdlpyS3dLNmdBaDFLWFVr?= =?utf-8?B?blRrSVE1RlBpZ1o4Z05ERURlaldWOXN1ZjlNNjEybFdaa0dZN3FoUDJla1Fz?= =?utf-8?B?dXpIRXpPYnhycUdvSGs0RzNBQktvR0FLOStTWHdQVHBrSUp6S1daRkZzaUdm?= =?utf-8?B?N3p6S29RRlhwSkdnMHJaMVcvS1BXNnZjN1VWMDBzVWl1WVJ3ek95VCtkWjM3?= =?utf-8?B?Z0ZGWEpJSUIvZGk1NGV1VUlxdlFaYXBqNm9nMS9tajVETEhsZUZGMVRLVStu?= =?utf-8?B?bUczQWtMK0lmbTBtZk5xZ1hQYm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zVQSzdsT2s1UnhUaERBRCtrRGpuT1JWaTNjZlY2OFFUNDR1?= =?utf-8?B?ZExOVHIxdXlMQXVocjhSSWY2R0N1dThDdkZTYnJVSEk0NXdOcnRDSzdBV1Fr?= =?utf-8?B?M042SVh1WkVGYmxtay9EeHkvbUJlRDNDQkdBUnA1OG1qWGxJMjBLdHUwa29x?= =?utf-8?B?NnJjMFZKZTJhSGgybXZqMmRWQWlsbDN5WkU2Vm5DRGRPL2QxYVh6VW1jQ0ZV?= =?utf-8?B?QlROVXFUYWtHbjJFQVloSzFsQW1GUnFXWmpSd1h3djNYakl6amNoeS96Qks5?= =?utf-8?B?ZUJOOWxQamhETHUwb3VFR1FPekgrUWMwaGZXME5PMTEzVWg0TGQ2Wkdua0pj?= =?utf-8?B?SWljMXhySmJYK3d4M1BJTTlzaEV6M2daTDFRSERJa1RZS3JVMkxEdDkrVTZV?= =?utf-8?B?eEQ0cjNRd3JtOHpQVzVJSkw0NjVVa2dnQXdFTk05a2RVa1lIUGRoSk9jUEZm?= =?utf-8?B?ellpYXVJcXZYTnBzOTkwYWVzTkFYRDZXSXNIcm5YTzk3elFJb1FMMkFBTlFF?= =?utf-8?B?by9KQ0M5RUswZlByWVhxazQwSm5xYW9jeVc5aTgrY2g3TTJyRkI5eXdHdklh?= =?utf-8?B?UEhrSEYrN1pwWlpqcDRhMjNkenlyakxqRVh5ekVwbHErRVpJSWc3TTBuYk1N?= =?utf-8?B?QXBjY1NHK1IwaGk2ODZOaHg0VWJLWXdsQjJRUzJRVVRNOUpBbnNPQ1dWbUxy?= =?utf-8?B?VmovNVlOZHRGVWprWlJDQTNQdWpiTVYxMDNOOFkzYWxXd3dHQkR1RDl5VUU3?= =?utf-8?Q?GsDDfmaNSj1f4b4ScyOdJGk=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <3CBBB09A47AF9C4BB29D2F88CE1436F2@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: eviden.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB7602.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 1ff73dd2-0028-4898-9c1b-08dc9f42af7d X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2024 11:39:54.0565 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7d1c7785-2d8a-437d-b842-1ed5d8fbe00a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: ZwgmdMLQ9ypHrY6cf7Cmzxwaeco4/aXiCmPYou2HO5wNJlCfApCgjyaVqstPLgWGZatT0/aDaHX61sFGsGMVa2AW1Q4Fuiz4nTRt+0RlEqmFNdjujV3Q1J+GPVNfyEWp X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7400 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=80.78.11.82; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost1.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-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 @eviden.com) X-ZM-MESSAGEID: 1720438863547100003 From: Cl=C3=A9ment Mathieu--Drif These 2 macros are for high 64-bit of the FRCD registers. Declarations have to be moved accordingly. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im --- hw/i386/intel_iommu_internal.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index cbc4030031..faea23e8d6 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -264,10 +264,10 @@ #define VTD_FRCD_FR(val) (((val) & 0xffULL) << 32) #define VTD_FRCD_SID_MASK 0xffffULL #define VTD_FRCD_SID(val) ((val) & VTD_FRCD_SID_MASK) -/* For the low 64-bit of 128-bit */ -#define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_PV(val) (((val) & 0xffffULL) << 40) #define VTD_FRCD_PP(val) (((val) & 0x1ULL) << 31) +/* For the low 64-bit of 128-bit */ +#define VTD_FRCD_FI(val) ((val) & ~0xfffULL) #define VTD_FRCD_IR_IDX(val) (((val) & 0xffffULL) << 48) =20 /* DMA Remapping Fault Conditions */ --=20 2.45.2 From nobody Sun Nov 24 18:32:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720438907; cv=pass; d=zohomail.com; s=zohoarc; b=EpLYS7r7/1Jl6PDxDPLYSZ4Nu11EOM7q8QqaYumbk6XDhYHSvtVrqpn9+KMgRhRk6XMPo02K5th0EO1uBShGhxNtE7PiyxhrJgVA+hQoTK0QSOJ/0VlAgM75VDakoStIThopP/TAXAOaJ6nDlRNB0VZ8TxUqF+GSDMpBITuW4MI= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720438907; h=Content-ID:Content-Type: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=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=BXdZYApJhiJY+RPHdwI5RmgFe3zhKBMHzfYtZ2AvY+QubwRuNYS7P9+6Zmm1jjXaqy948CaPQx9ofjH2ewABp41lBMbODSRg8t2JRFo2gGEB3xCqrux4ssbKHKBukHYcaEuHMUl3CzAhN1peU7rKyhvkSEUjFmH38ODLbQ3oELg= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720438907877562.4348535230778; Mon, 8 Jul 2024 04:41:47 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQmjO-0004O1-AP; Mon, 08 Jul 2024 07:40:30 -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 1sQmj6-0003x4-UD for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:13 -0400 Received: from smarthost2.eviden.com ([80.78.11.83]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQmiv-0007ru-2R for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:12 -0400 Received: from mail-vi1eur03lp2105.outbound.protection.outlook.com (HELO EUR03-VI1-obe.outbound.protection.outlook.com) ([104.47.30.105]) by smarthost2.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 13:39:56 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7400.eurprd07.prod.outlook.com (2603:10a6:20b:2a4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18; Mon, 8 Jul 2024 11:39:55 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Mon, 8 Jul 2024 11:39:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720438801; x=1751974801; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=TWZkvPXcuqc5p/iVCmIpIpBx+PsSzyctJZAIbTKyZllW0sqXIWwHbdnq TeBq3+n5eDgHB55LI2+w6ozGP3WOAeFS6m8zzWis7aHhlfche13D/6LkG B3C9tRGl+pA8kUW1540NCGcerTE6qraimzAVtSa1CbOnudbFjeOGW6YpE SVVGMA5p1GngaeFJPu4kuYvjlrzRwvSmtWB9h/2mKn7MHyGtK+WJjq+2c nD4UByXeJcm2kwIJ3F3lpo2e6xkuEf/5AQGPbfCDLlX23Kc3rc/IF6NDA Q7FEvkpvSIKEz/o/IBHI4ZGeDTPUDS3+waJ7bG2i2kSWRDYExlaqTKaBT g==; X-IronPort-AV: E=Sophos;i="6.09,191,1716242400"; d="scan'208";a="16088415" X-MGA-submission: =?us-ascii?q?MDFAqD+/7YTWuWa8Ao4O1OoCaN49GNglfsbPir?= =?us-ascii?q?Os6tkaG/U9KBFGAuRK0XcXjLR6Kh7UL2EP3Tp261Dm05SwwxM/zUfwWC?= =?us-ascii?q?sqYXbILs7FW9IhPvVGRSYbTS6OqDK9PtwrxNVOKZH1Ve4burjLtzEa6M?= =?us-ascii?q?nMrRq9vFtjJHBWLthZbrFnKg=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=CFUmfmElNTxIm9dEnaCgZ9LixdOLaGvdmpRuAXaedfTfCBbwHlRKfdhQOwyCt5gPaxDpO9ou1wDsCHqzNaJR7LviAS5LgGbds1ybTP5Z0CVBEg4Yan9RnCDH2LAFBz9Vx1PwssXbfb+Sl718uCuqaZIhRQKKhXmCo6vU8iXr2fp0hgVMbEluJ/EwKJkJPI4h2TmPpLmGAEX0Vt/TV4XRWRbeIB6xiQ7sa2N6xm4QeA6K+XwrSIgvq1rEZRgHR/xm1PL+K0nqTE8QGmLwpCQ2hilseIr618OqPoOAey7W2G8y4mkup0vv2bwdamr7oRGqbdTdG2DV4ESyJCurWMfyDQ== 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=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=k3bfaldWrJUtMHlr/EAGbZe8s207dIOC0nM0Wh5jaAx0Ma2HtleEoxCWIco93OLJsSV06GSa7LUp9hSA5RalSf7KEI/Fu8vCKbM2nW/+PkEhjjxwiHqOz6Cs2pqMYdzKLs+5EXtu3DY6gh1O9tjeWSBRQJ9asI6UV6sff0QErF3M3nhhhLkPp08/MmgYumOVmsmNr1KrYMDEWo9oyT+mc7FqU5ZJOzvMO8++In1Wdk8ayJJqHxoT3TPXo0D1EKc6jbmhWj0IkmsEMq7Wgr5BfyjCMYUbX8WSYPX46YSIq+6pJKr+uv1Ek+jq5ckeoYo/x4coyO2f7S/POYKHiIlZsQ== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=hVh5soF1sbHB0PJ604yENPnseV6Ov4o/X3k1Zl3qdXU=; b=AqR0fxLuLUbZoeSvqyd/ObYWNuIftjX0sHOUgYEPiqfBXL+5MrpTqpt5h4DQz7WM6Dy5180SjQkFn8E4U61P2i76whnSJloOmkkr8kDk4A987c34oqXFQsPlJMs8bo1SiizGv+paGzbFtBAkuo4y5ApZrxkufs/M0P2JXbwcScNBj4QMOtXMuT51+KjCWH5vsiOdqzHpfGDS/7fXpyvuzCYCpDqf+pdvrDhnN6xLagLD6qJhgN2cBAC2WHLuOO7DHBgVPGWSrZ0wLRNmVdZLJqLEfutKVInYDTBHX7PupBOcxgGaGKjsDlS5DfJgorHCDXA7iH0pbLtUWJLpPYhp4g== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF Subject: [PATCH v5 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Topic: [PATCH v5 3/4] intel_iommu: fix type of the mask field in VTDIOTLBPageInvInfo Thread-Index: AQHa0SuNYymPsQHFfky5WnjMRsYUBA== Date: Mon, 8 Jul 2024 11:39:54 +0000 Message-ID: <20240708113908.19535-4-clement.mathieu--drif@eviden.com> References: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> Accept-Language: en-GB, fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR07MB7602:EE_|AS8PR07MB7400:EE_ x-ms-office365-filtering-correlation-id: a59437e5-7193-42b2-b31b-08dc9f42b00c x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?cHFXUkhod2VPbWZWcWphQ1lDSFJ3YXJ5WjRGQWJNRVFqS1J2cDNPV2ptaG93?= =?utf-8?B?ZjAwczNjdGRWYTFhNVZ4SG1vb1M1RTdCdGJEUFArVDFtMDdEOVVETEZ4Ryt6?= =?utf-8?B?WUpzRVhxdmxLZVBVelpjQmJpQ2pFSGwvVktKVDBPSU9TL0phS0syRW5zazNE?= =?utf-8?B?TkdFeVJHR2lSRjE1eU1zV3VBSnAyQU5wdGlwcnRLK0dGMDA0T0I4aklrMWxS?= =?utf-8?B?NHpUUEZMaVhnVk1Ud1N6L0oyMWtKOHdKbVNGaUZ4LzZheWhxQnFhZEJpSzho?= =?utf-8?B?VVBRZDlhQ1ExeTUrd0xETHd0NmRXTDZwczN6NlFrWkVkcDMrLzlLUHJiM09F?= =?utf-8?B?NHZrMXZwd0xwZU1JSkh0ZzZtaHM3UWxhNEN5clpqeThZcVFCOFBjU1QxWVhW?= =?utf-8?B?T05ISlJOVFZjN0tFNDZuQmFVNGdpZVhLWCsvQm1rTFFCRGhqYVpkL3pxWUxk?= =?utf-8?B?OHpHN2dwVE1GMFdRc1pVN2VBQklvRWh2R1pCdzA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NWdoSy9lekgya1ZrYi9PTXVSMlhsN2FPSDdZREE2SXNxOXMxSllabVhG?= =?utf-8?B?Zm0xMDM3YTdIM21KQlRpcWVLWEJBTURicmlpSjBoREowOXEySEhMekw1SHQ4?= =?utf-8?B?Qm9KM01TNTdhMVVLWWoxZDl2N004Q09wN0J1b1pXZS9WLzNKN2F2YXlWUyty?= =?utf-8?B?ZEh3YlM3b3cvMXVacllqaE44MEFXb2VaTmNyQ0ZlSWRBc0dzRktkN2JxTmdI?= =?utf-8?B?MTVyeHg4U09wMi96enJzWTNaSk14TjhBd25HVU9oZ1dyR081eEFkR0ZiMXJZ?= =?utf-8?B?ZDBnSnJ0VEJqa25mVC92MW5JSU0wc1JsYmUyTXlWUVFCSG1vT0xOUE94Wm5O?= =?utf-8?B?Q2NMU2tuZWtzTFdIdmlpUVJEcXRDVE5SYVBZZm5ockhrSW1EN3F5dEQrdWtO?= =?utf-8?B?MWxmVVRML3B3VXBQKzlzSUE0WnExUkhyU1JCMU9rN3VieVNZWlhGTDVkVHpL?= =?utf-8?B?dFRpOTNvbVZzdEFvRnp4R3prRFF4T0F2dDRlTWJTdFV5cWc9PQ==?= x-forefront-antispam-report: CIP:255.255.255.255; CTRY:; LANG:en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?dHpaR2REZktET05oR2ZDQUR0N0lWSHhnV05sZEs2cVcrMEtzR2lCZnZVV0xD?= =?utf-8?B?c1ZZUEhmTjlxYTlnWG5ZeWhJdFl6WGNTZDZSd2ZnMHl4TDVPMkRhaXVvSVFW?= =?utf-8?B?Ujl6U21vd0t4VGp4dEt0RGd1aVJ0SVY4SldybEtpTkRUTXR2dkR5TlhXMmxh?= =?utf-8?B?d3M3aW5oTlN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WGNUcTBQMlhq?= =?utf-8?B?cXVjUDdzZmZtUUN6RFpuT3pZa21lQ2hOOHVQT3JDUE9ETXlOb0RZZjh5ZVE5?= =?utf-8?B?ajBVKzNQSyt2WXA4Z1I3VVROZW5abTljYm1yb0M5OW14U1RpZWM4cnFnL0kw?= =?utf-8?B?d2tsSWF6K01FR1ZlUE5TTEVXeTNaRkhETzNzZlU5TTl0akg5RHFuTVQ4eTlu?= =?utf-8?Q?5BWdhZg9r0QsyIi4ncNvSYE=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <335F543A0BD124458A581B97CC6CBA0B@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: eviden.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB7602.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: a59437e5-7193-42b2-b31b-08dc9f42b00c X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2024 11:39:54.9477 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7d1c7785-2d8a-437d-b842-1ed5d8fbe00a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: 3lxipbX/oFtypJYJU3vQGThxZYW/naPd/r5tN+PkJqzZ9u4cQAWISZw14G4Q7agHIPuduSWCQJytOKOQH/6hxqsxiuacwj5WRGmy+fVRJbXVxX+HK5HaLUon2ZchEkRW X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7400 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=80.78.11.83; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost2.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_PASS=-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 @eviden.com) X-ZM-MESSAGEID: 1720438909817100003 From: Cl=C3=A9ment Mathieu--Drif The mask we are trying to store into VTDIOTLBPageInvInfo.mask might not fit in an uint8_t. Use uint64_t to avoid overflows. Per the below code, it can overflow as am can be larger than 8 according to the CH 6.5.2.3 IOTLB Invalidate. And you may want a fix tag as well. info.mask =3D ~((1 << am) - 1); CH 6.5.2.3 IOTLB Invalidate Address Mask (AM): For page-selective-within-domain invalidations, the Address Mask specifies the number of low order bits of the ADDR field that must be masked for the invalidation operation. This field enables software to request invalidation of contiguous mappings for size-aligned regions. Refer to Table 19 for encodings of this field. When invalidating a large-page translation, software must use the appropriate Address Mask value (0 for 4KByte page, 9 for 2-MByte page, and 18 for 1-GByte page). Hardware implementations report the maximum supported address mask value through the Capability register. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Minwoo Im --- hw/i386/intel_iommu_internal.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu_internal.h b/hw/i386/intel_iommu_internal.h index faea23e8d6..5f32c36943 100644 --- a/hw/i386/intel_iommu_internal.h +++ b/hw/i386/intel_iommu_internal.h @@ -436,7 +436,7 @@ struct VTDIOTLBPageInvInfo { uint16_t domain_id; uint32_t pasid; uint64_t addr; - uint8_t mask; + uint64_t mask; }; typedef struct VTDIOTLBPageInvInfo VTDIOTLBPageInvInfo; =20 --=20 2.45.2 From nobody Sun Nov 24 18:32:53 2024 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass(p=reject dis=none) header.from=eviden.com ARC-Seal: i=2; a=rsa-sha256; t=1720438857; cv=pass; d=zohomail.com; s=zohoarc; b=b5ETaJiFirVOXh67hHgYVju3Ylpa/jLPIAByccstVyUALeQ8feoPGl0AsvIAP0HNcdXDGshxDx6/bUH4OAdhK642UyDMip8cjgk30aJsN4PxjuI5zGdSAP9bOzJ5wYOdtX+yToF4Fl4KbQk8oe4UWA6n76p2+E55W+wKALC1rhA= ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1720438857; h=Content-ID:Content-Type: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=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=mEv8rh1oAl+6iQfKq0beLbfIC2y0vuzcwBZ6Q5IqJs+RjLHg9VZcaJmbn4Q+GCMy6phrkrNTM11LPy8CJh3o5L/FgZE1Wehg8s+lZIY6Ys+hN2tM9nEG/qO1ERkxGOSDuwG9DlWa9c4jRVbBrsw0fkbBGfc1/EQTNLQXVMIBfkU= ARC-Authentication-Results: i=2; mx.zohomail.com; dkim=pass header.i=@eviden.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; arc=pass (i=1 dmarc=pass fromdomain=eviden.com); dmarc=pass header.from= (p=reject dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1720438857394652.1451560743076; Mon, 8 Jul 2024 04:40:57 -0700 (PDT) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1sQmj8-0003xq-4B; Mon, 08 Jul 2024 07:40:14 -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 1sQmiy-0003o4-Py for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:04 -0400 Received: from smarthost4.eviden.com ([80.78.11.85]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1sQmit-0007s0-L3 for qemu-devel@nongnu.org; Mon, 08 Jul 2024 07:40:04 -0400 Received: from mail-vi1eur03lp2109.outbound.protection.outlook.com (HELO EUR03-VI1-obe.outbound.protection.outlook.com) ([104.47.30.109]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 08 Jul 2024 13:39:57 +0200 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by AS8PR07MB7400.eurprd07.prod.outlook.com (2603:10a6:20b:2a4::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.18; Mon, 8 Jul 2024 11:39:55 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%4]) with mapi id 15.20.7762.016; Mon, 8 Jul 2024 11:39:55 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720438800; x=1751974800; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=T6KvGj3TxAFbywoEmYhS0j7j853W4cShUvu39047MthFVx+/jyl84yN0 FbpywVZK54SM3+z/YAqf6m8L5J/oBiV1XzEvU/RCJNXEmaB4r8bNPLOte Uwtvtv2PMrKXeyY5fauvcnCQxvjDm6MxVKSPHZDZmuE2dJPKVnqu4icaL x2Ck3fv9aLQfGlLiV9GQGcSAGsciikFoe0HW9aOF7K8LzuMtGjEP6gb9d 8hEPNTfXh0qmL1+q9z4Z0nsxiY2tik68vkQ2smGGnZZKqB4x7w+j2hWfs oEKpTvTiq+hSyj2fTG0NjVRZAY+zMJMbl3WVRlAnZbNuBGnp1uLILLfoM A==; X-IronPort-AV: E=Sophos;i="6.09,191,1716242400"; d="scan'208";a="16192496" X-MGA-submission: =?us-ascii?q?MDE9xd9uTUWmHiN7aWnKyofv+/EfU5l1GT2n1y?= =?us-ascii?q?RzwB/e/6YnwfwGVB+yWSORsoa+c0U62h0prL0amYIaaJHaOS2nLwq84t?= =?us-ascii?q?Rgpx5rwlDqw6nY6RQ2WJ/uW3gn9xNW+dy67NTivPN2WNuVXJaOet2FEm?= =?us-ascii?q?sF1yekdewnIuxAg9bb63tz/w=3D=3D?= ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=k7Kla+nNF/f46vNEiFUQDvOm68hTMGOo+5/AEtTo9faqofYlbyI+P8+wq+FAt+UBQH9BKPt5d5eFUpcRL3iYfIzWY1bvRXrLaUaUWOTHdyTrryuKMlRGYA6AAlLfe0aMbH9/yAbucZF1JNGP8AthPeR/u4BNlBCUq2XhlMIpsTIlAjqGjZ56RnzgeOhmsHCJoBg6Sq2jefS2eyIlAYTVNqkfSUgHMnd15eBga0yhdMp1JdW8RwzyNGv0vwqNgX0gpB4UadLkHsXQ3m2wHR4tt5MVXw+Z9XGZL95zq5lAMPx4bZUYZjhw2/+Cjz1oY2MHnLJdVxW9bGXnrCMkv+BInw== 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=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=UScYjwVMItxfY+L79p8u7YUaDHb4PYXbXNxtMeiOmcoWvWVzdLyMzBZPGmhF7D9noZXuvLJ5eHqQ2LC7jLq9TrMpuG90fZoNHHc2TsV3GIlf/WmJ+gKuWD7qJzWer4CVW4GHhw8V2GfSCFULJ+aXJ+sOTuWK5RSnD1KGt0Wb9LpCGdaoiSIogt26RfqKwCNDCdGnP5/Y/X9qyKREF48WjYT+0T0R4xXaoaXi6kc9jcGu33Ux2VP50HCJhOMUqIZbCYLA0UAJscCyxzVgxqGlWW7JegW14pEE1B+NPmUEyf0jzAJuQ48Yn4wUkUzJ1y3pvU8oGmfvZnUgroa02b3kBg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=eviden.com; dmarc=pass action=none header.from=eviden.com; dkim=pass header.d=eviden.com; arc=none DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=Eviden.com; s=selector1; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=la8b6EsER2myyyqfK0mnc02PBu9H7RQtt1F+MmsewQc=; b=bv5WYFmFDfrDsx3mtcXq+iJgM5ywqlsHegyI0ytxXLgWtsW4nZEbq675LQKLZ7YUKa+o2KTLb9oL2wF0Mp7YxTWOnuVYNILC5FvbkPVEG8amYbyjLRsTAHbBYlEDZ6f3td5E0qFAYZDjYau16lT9dEMWsODkokdUThakqO3kE5bh2Q10CUR6YDJGlOREuoTcTeuoRU7KuKp23gBiRI03IIzG5QPjx4g5/S16savCBK7XWGSJbjNGBA0gKOIJHoRMNRIXvdfDMyjPAlcuQoc9mJxM5KitJcq6AAUajQAc1Eco4GwXibkAgh+ZstvgIXVb+/R7A+6kGEatFbHxjAbaEQ== From: CLEMENT MATHIEU--DRIF To: "qemu-devel@nongnu.org" CC: "jasowang@redhat.com" , "zhenzhong.duan@intel.com" , "kevin.tian@intel.com" , "yi.l.liu@intel.com" , "joao.m.martins@oracle.com" , "peterx@redhat.com" , "mst@redhat.com" , CLEMENT MATHIEU--DRIF Subject: [PATCH v5 4/4] intel_iommu: make type match Thread-Topic: [PATCH v5 4/4] intel_iommu: make type match Thread-Index: AQHa0SuOE0rt69ReTEOYvhH3NMq2QQ== Date: Mon, 8 Jul 2024 11:39:55 +0000 Message-ID: <20240708113908.19535-5-clement.mathieu--drif@eviden.com> References: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240708113908.19535-1-clement.mathieu--drif@eviden.com> Accept-Language: en-GB, fr-FR, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=eviden.com; x-ms-publictraffictype: Email x-ms-traffictypediagnostic: AM8PR07MB7602:EE_|AS8PR07MB7400:EE_ x-ms-office365-filtering-correlation-id: 87fce5cb-fd61-46b8-300c-08dc9f42b092 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|1800799024|376014|38070700018; x-microsoft-antispam-message-info: =?utf-8?B?RGs0SVFERTk1OG5tZkhOc1lMVm1nZVdscVdWSm5Dd2kwQ2VMd3pSL1ZOTGFK?= =?utf-8?B?cnlMSWw1OVFsYzEvUmdmaXdSWnN6cmZvZ0xuMndkUWlIbXhReXB2SlhZSVVN?= =?utf-8?B?bHhGeGtvSU1LbEltS3ptOEVydTNFRXh4VHJBSllKN0JlTm5DVngwWEZYRXEz?=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en; SCL:1; SRV:; IPV:NLI; SFV:NSPM; H:AM8PR07MB7602.eurprd07.prod.outlook.com; PTR:; CAT:NONE; SFS:(13230040)(366016)(1800799024)(376014)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?B?eGJZbDJVWXRUaXMrajdlcURtTXlJOXp3K21NRWVlN2k0QzVLSEFTV01CbldJ?= =?utf-8?B?RTUwOU82OUh4MnRGejRlZEFhRFB5ZU95TStHeG5UMVRmVFZXV01FcVpGdG5B?= =?utf-8?B?Y0YzQVRwM2pOcTF0TktjRHEvcW9UN25KaE9oRFFpSU1JMTN4NHM5S2NmYnpX?= =?utf-8?B?a2VWYVZHUmlxOXlsY0Z3NXJUSWtKOHRaamkrY0dXb3hIejJ0ODFRUzhWV0hQ?= =?utf-8?B?VGZZOGtzbU9LVXB4VGlLcmpPWVc1QzhhMDBES3g5d3FjeUJ2NExTYk5QeldL?= =?utf-8?B?SHEwT0dVcW5DVkFkZjVVcWJJNHJKMGhpc3RXdFFGLzhwSlovMVZrUVk5RlVX?= =?utf-8?B?VGhhcTNMRU9Lbmtyb0tkK1Y4SzU1VHZnbHl5VHZDQXFOcGJJMk8zdVRmZTJS?= =?utf-8?B?STZtT0czSlA1V0dnaFo1ZERuRktLaDRhSVIwQVVGTUJwSGx4VHQyODhZQ283?= =?utf-8?B?Ykd6RmhkRjAyeml5YTIyNEF6S2lURHFQdldNZXZnUkhCZ2lVdGhFOVlZa0Yr?= =?utf-8?B?bVlBWG9wN0xGS1c2YzU1TGYxcXZkeEFUbThKQU9EVkZTeXloOTNXcXI4SUIw?= =?utf-8?B?aVFkOXpXeEVML0tWWEMzSWxLblRXQ3Mzd0dQaTY3eWh5NnBLQ2FjT1hvOUlN?= =?utf-8?B?NndTSFRuaUEwMHoySHZCVWdGTy9ZTE15bzZTOWdtZE1RblIzNEVUT01IRnA0?= =?utf-8?B?a0lNcjRmZHJkelNzVDJjR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V1TmRpSTZLMGlka0NvVTN2UlZuZmdnd1BKc09j?= =?utf-8?B?RXpJQnZKVFg3d29XSzRNV2U3YUptUjRiUHZWazF5NWUvbW1CcHpwMXV2VTY2?= =?utf-8?B?MFdmYzBld0srQ0JRUllBWmE1VzV3ZDJWTFhXc1o5czY5ZVZOM0pDbk9aLzh1?= =?utf-8?B?N0FsV2d0eGdhVlN2RWppYVd6aGtyVmhmbVpGakNTTnZRb2tXMWlIZVBrMGhP?= =?utf-8?B?Y3NaWHVhZXVndkhaREg2WFpneDJCR3Zob1JQdzFCUEtjaWY5WUFMbnphd0Vn?= =?utf-8?B?cWd3U2s0UnNMWTk3MEZvMEFOd01qd0g1ZmtWRmdlcHhFd0NRQm9wb1haZWQv?= =?utf-8?B?WDZGTnZkSk9tVm5USVB5eUxlOVhlMkdFODBzMGdSNVpRbGZWTUlqR3Y4Yzdq?= =?utf-8?B?Y3pHV0VFNzllVWRzV1FlbEM2bkVGQm5SdElzM2ZIN3NCVGNXa3hGcm9GeHhp?= =?utf-8?B?b1RHZjJMR3FTZVp6WmFhYy95WGFmMGFlRW1UZGRQMjgwRVRBejMyUklob29C?= =?utf-8?Q?9HllXAUk55ZVnewpxIZL7pY=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <996E3B806C931749B7E7ED207FC690B2@eurprd07.prod.outlook.com> Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: eviden.com X-MS-Exchange-CrossTenant-AuthAs: Internal X-MS-Exchange-CrossTenant-AuthSource: AM8PR07MB7602.eurprd07.prod.outlook.com X-MS-Exchange-CrossTenant-Network-Message-Id: 87fce5cb-fd61-46b8-300c-08dc9f42b092 X-MS-Exchange-CrossTenant-originalarrivaltime: 08 Jul 2024 11:39:55.8248 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 7d1c7785-2d8a-437d-b842-1ed5d8fbe00a X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-CrossTenant-userprincipalname: am5unmpkSXmuVdbUvfFApVxu0w+DMXyDrcN047idqMfuqpTw46P3FCyJ/RBJa63V76LPHRrv1nxVEpJgrqKiV3+pT4fZmQuh/txMUoOfFLflkdTOyqM3ijQr26g3+8l4 X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS8PR07MB7400 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=80.78.11.85; envelope-from=clement.mathieu--drif@eviden.com; helo=smarthost4.eviden.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_MSPIKE_H2=-0.001, SPF_HELO_PASS=-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 @eviden.com) X-ZM-MESSAGEID: 1720438859572100003 From: Cl=C3=A9ment Mathieu--Drif The 'level' field in vtd_iotlb_key is an unsigned integer. We don't need to store level as an int in vtd_lookup_iotlb. This is not an issue by itself, but using unsigned here seems cleaner. Signed-off-by: Cl=C3=A9ment Mathieu--Drif Reviewed-by: Yi Liu --- hw/i386/intel_iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 37c21a0aec..be0cb39b5c 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -358,7 +358,7 @@ static VTDIOTLBEntry *vtd_lookup_iotlb(IntelIOMMUState = *s, uint16_t source_id, { struct vtd_iotlb_key key; VTDIOTLBEntry *entry; - int level; + unsigned level; =20 for (level =3D VTD_SL_PT_LEVEL; level < VTD_SL_PML4_LEVEL; level++) { key.gfn =3D vtd_get_iotlb_gfn(addr, level); --=20 2.45.2