Message ID | 20240709061756.56347-5-clement.mathieu--drif@eviden.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show
Return-Path: <qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org> 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.gnu.org (lists.gnu.org [209.51.188.17]) (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 AB1C3C3DA41 for <qemu-devel@archiver.kernel.org>; Tue, 9 Jul 2024 06:19:43 +0000 (UTC) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1sR4BL-0001Je-BZ; Tue, 09 Jul 2024 02:18:31 -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 <clement.mathieu--drif@eviden.com>) id 1sR4BG-00012v-Tg for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:26 -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 <clement.mathieu--drif@eviden.com>) id 1sR4BF-00080Y-4a for qemu-devel@nongnu.org; Tue, 09 Jul 2024 02:18:26 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1720505903; x=1752041903; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=A3BCthzvdCG/mtTL7uANeJ6zQF59Z1kvbEhkW21BjgqqfYtZ2CAig3f+ SZhT34fvlu6dyrooK4YvTY3DJ0dqT7ScWWhujYsJBhqDuaKr2hEtax8+G 6j3Cfk/HxMhAcSd2z7+l44Op5/Ja+OcNVdAnbtxj+H76ZEfmNCAQKNZcI UbDZHq1fQsEvonqu5QQQKMfcAVwiakOSBSyB39WdD7QKLouZ6HuytQQRd aoewIzry36AH8rnu18LCZ3xGuCevfnaQO7gezPXHvPohjLmPeWTUU2RIQ wGwheL03igXWvqfWaomLQljZhrEddaMxvTX/i7KkEjdp8awOxk+nsUhc7 A==; X-IronPort-AV: E=Sophos;i="6.09,194,1716242400"; d="scan'208";a="16131809" X-MGA-submission: MDFPZS5j2/q+i0Z6tBPGe6dM047gGEYsauk+J7SOTqw/NvwQbwUNzdyFOIYyhLWf1gP0slLarfvlG6e2nZxAJm/kiTRs2gQ99JW78/X8EjQf9Vl7csZj6Yv6PxDzHqhCLvfxT+1Ai2lbxSI28HMFn375z0HI1tsWNdSsUP+QZICWug== Received: from mail-am6eur05lp2111.outbound.protection.outlook.com (HELO EUR05-AM6-obe.outbound.protection.outlook.com) ([104.47.18.111]) by smarthost3.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Jul 2024 08:18:10 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=XoaAnCsJAc1ijvhu0vedsf6bnw8M1WeMx8Ny1odvho+FnklAfqjKUUY89wU/TnMWUDkXm+7uZwRyeGM2KudVufpDMX9EXGiL5RRLbgqTn4vqso5fl0PfgO2DC3Zq/bev9udrdT8yZNSjR67mc89cwN7uxafzv2TP3iO3a2kUkY5t0XGzksGeLskUU2YCmRw6u7CwumJPLtfsrWhMMm+n5gI8VkTlfxyJunvx7IF8CNhFvcugNG3iM9Zsb/7M1xH3NrSXZvVRyw2JkeZVy16HBIsEDrEV0lxlHZSiEjkN8rEydi11bqmn2ua9aJ+jAy0E6DUsRfkH52G2/cXV4LiMDQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector10001; 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=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=CQRAwL7BErkAgM1Val4m7HlAVwfwEJ+O6DVXegGpUD+dVcyuAQsrS94IV0fKEhaP2NUgXCw8iQbQ50xxfMcJ3DiaxqmpptQLnSBrVcnfDPLrq13fcL2nnB5d3XElCOo5D2K1y2ua/Oa5X8Ztc95Ld4bqdbGSI+ZYymE1eBeYFJdzJ6w79Zo+iR+y8K/oh8vgQZSG9I+ja0uYsemreuFzUwS1OcZznLD87X3FWwDzYYXAUTp0MjrdLHPPD9CAxb+JbQPAvfxlVdiSbsR1o1XkiJI7J7EBafyyOuSHk65undO8tmog8EyQ0i4TAUA/TjVNoOIY+DGHFVX854hnHRc4Mg== 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=HE1nSNC+fM1pwokpWi9++/4rNMhNj9V1sCadInCpIzU=; b=Zq7z9rHYulOPP1zJVJxfq7l4JqhmgBnH+M6iPgJ3ptsdHy/JpyCo+1Fb26GR2scEGIsOXMMyOYQoOSDFqAULeWAvrhPHftOSTiPSgfn+wyLu15mKfmd8spJlnXn45jSY2WGPAY47vwd8xG88/8CGXZlpiomWwqS/n7ESw1fY5k9mt6TgBgXluXvEF84atXHEtksFQItPVOrcIrzdyWVgA+Zvo1UjVbl4/XrzprmkS2bJ9+CHk3ZZ/Kc8yGg5UnxdiYIgidpA8wlcYu7wQV6shPMX1UwTxrB4pOVPFhsTuDoChTknqv240lpBZ95ru6znKemKlMBm/64AZUbh/vKiXw== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by DU0PR07MB9289.eurprd07.prod.outlook.com (2603:10a6:10:44f::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7762.19; Tue, 9 Jul 2024 06:18:10 +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; Tue, 9 Jul 2024 06:18:10 +0000 From: CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> To: "qemu-devel@nongnu.org" <qemu-devel@nongnu.org> CC: "jasowang@redhat.com" <jasowang@redhat.com>, "zhenzhong.duan@intel.com" <zhenzhong.duan@intel.com>, "kevin.tian@intel.com" <kevin.tian@intel.com>, "yi.l.liu@intel.com" <yi.l.liu@intel.com>, "joao.m.martins@oracle.com" <joao.m.martins@oracle.com>, "peterx@redhat.com" <peterx@redhat.com>, "mst@redhat.com" <mst@redhat.com>, CLEMENT MATHIEU--DRIF <clement.mathieu--drif@eviden.com> Subject: [PATCH v6 4/4] intel_iommu: make type match Thread-Topic: [PATCH v6 4/4] intel_iommu: make type match Thread-Index: AQHa0cfF5MXBfjhIO0OC3hgSPePY0A== Date: Tue, 9 Jul 2024 06:18:10 +0000 Message-ID: <20240709061756.56347-5-clement.mathieu--drif@eviden.com> References: <20240709061756.56347-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240709061756.56347-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_|DU0PR07MB9289:EE_ x-ms-office365-filtering-correlation-id: 27cd22fb-811e-4793-cad5-08dc9fdee7d7 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230040|366016|376014|1800799024|38070700018; x-microsoft-antispam-message-info: =?utf-8?q?Bd1X//S1xmPGBBLR3Z5tOYumLfXAOUn?= =?utf-8?q?yCw0vIJzFcvnpaDETkWzGJVvk0Te9/JyDAT7V4rDwpnYHiCPTmYjyWbUpEIHYjjFf?= =?utf-8?q?22TTYsi+CzZmyhFiSKKVBeMZSysBeYKw7r4UPWgwIuaYCLOFeLxkxwRa73WLHBej8?= =?utf-8?q?ZYthgX85tNLjXTvl8q7EHVS9xKZTtxwA2dDAY/RjXbidZA1qLehIv2D8OHRy6Hkwb?= =?utf-8?q?TJDGxPPth6n2VnobksT8E6eexSJT4F9Bf7w19lUZDIhkBtSJSGFeCJLL+MZl2Hk8k?= =?utf-8?q?4Gg/g23Geh2ZLuAbHYENpNsu3t+I7094Uy3tanZmrul/sI6MD77HA9zAUySN5UlPH?= =?utf-8?q?jqNV4xNV9RgZAgc3k6y2JQ4gX17XmxE8t4HRADswt+2vsCquJbciP6cBMxZd8ou31?= =?utf-8?q?sftdWd5lHLvCPwQS4IXWUA++gveZNnzFi6E9agz6TMFJW9mY4rD68eiREJHb6H8S0?= =?utf-8?q?8gaMo6oTEU/BYbVjdb6jpKyQlDSlWsGTkBDlER4474ey/QhFkrSi+MsFfuD1IwJ0d?= =?utf-8?q?FfugMlBuw2XbP+PM9zd/E/yVTz0D56zZMCyCWUnL8AxIBzTeomG0q4wC5oTloq6Pw?= =?utf-8?q?JiZk1dpowY1fvTEjgtERfaN8lljZylg/nQzle7EZlSkzsaTanGA5WOghoYy8Krk0O?= =?utf-8?q?AHqqkSOmlXQWtybD72e+pRfRs/pVBUtEwm0K1KEC2C4IlI24eqrMPueX0AMJPkNlu?= =?utf-8?q?9Or+mTFWGovX3CBZQI+9DZ4RdhfvzJ+Hh+FJRNLvb/Rhx8lgsKQPjAEU6nGd77yx3?= =?utf-8?q?25x2yaRBq+JkDP9Ncn0Z84tyoblKLWDWPTjQJ+3+fHqaL4cJE7XraOqX5dkIBFeZU?= =?utf-8?q?tr9FJ1/e/Cxd7iCSHHnGnj/T8Ds5CMizfoE9Mi+v/FZKSHDi/c60WYWnc4D8hPXBa?= =?utf-8?q?QeJ11rPX8bkeJuUmN6lFyV+zy9jj9SW8RxGeB34W8VdUEpF/U3U+DL2/J2AdnsmJH?= =?utf-8?q?ienvO3ZOAeUMJBBMQcWXR8jOYG2mcBfKuY9TC4/Y3xrsh0tifecXG5EdZYKDini0g?= =?utf-8?q?tlcG3s4+nXov3mMRa7ZK3ua9ZT0VWTg4NdZCvFGZAQ5Dayj59huMdl6Tx2AH8cm78?= =?utf-8?q?/z1h3BEFMdMyWA8xGGYanoBSnCJjQJtXRKY1TPOrNagK53z77f0AIechn0We0i7XO?= =?utf-8?q?KZT9CRtwj1lbSORTKaELWOKbFXQNBKaEUyNFkwNDcZdd2cfHFguUzEJgnU8gTBc7c?= =?utf-8?q?ciUDKepNNGDEj1NqqTEmK/GWiRRkFG3OgtQS6UO7sQJti5JpS1kFrqEjrQ296wKy5?= =?utf-8?q?B82bCTMSqKbgqBwWV75+oRYEwRSq3UNBG9cFi776PdaxQ5E8Fd3j+EGX5CLA5p7EQ?= =?utf-8?q?F6ne4jdCsBWBJmU1HcBF4kDbXcTiLhecwA=3D=3D?= 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)(376014)(1800799024)(38070700018); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?zVyGXTtv4EH+vt0O9FMoAw0bwyvq?= =?utf-8?q?+b80PpNyi8Jw7SQ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8rKkYqx51LnaR8/ONWFOtx3Z6dbRM38Vt71DDapoVq86o4wgCObEQ2VxcZO?= =?utf-8?q?mJG7d6yRaOEIBl2RHZc7gR8XjGI10MKz553P8twvaCQJH99f/HOooCBMNEaNLkRVG?= =?utf-8?q?60yzTKC7ftx+9PR2BjjZOs/XoO+dZe5iQGyXNC1xTyaxzI8/9jUoUelufgIKR2vay?= =?utf-8?q?xnuyNUDk7uze/ypbJa94+tUEacCI7S8LfgWI16/tBUV0pVkK/lRdCjnMoazJuBjkt?= =?utf-8?q?s/XhwpOzWFnKPXBNm5RjO5hUwuwALYbk9UXMW/6QkwLscY+Bc8cON2P4TAIxWMcLD?= =?utf-8?q?yBq88TcDmKAIeGiCq/plxByF8UbE3aQNaof9LTi5D9vMg4pcTfAFgEA7l5onIlGrj?= =?utf-8?q?ESPnylFjZqniS7ddmJUnbE+n+8TlDFC+GSy8aCZRhTCTddr2ZnMY/S85LQAi24jlp?= =?utf-8?q?Y7g13i/hv0M3tYsakSIaHJ+O5Ef5jBgG1OODc6fdbA4l500m+roce1KkQfBf1nwf0?= =?utf-8?q?s2XHZnxdyw3IDrzNjPc69mzl4gPrWkMp7w9ZlxsIK6lmmkDoT5I88MfIw3P36ezSU?= =?utf-8?q?ksxtrDtd1moG49+zywHJVIOgmJEo87z/J6KxXx/PWrLPdE0mnbt4ck30nJTIkMG+S?= =?utf-8?q?XNzZcz5kvpbu5W0J0bLwWKkCsaUwQ80ygE5NpsrQylNgAK52DaXpznU=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <B5FCB4A853F2414B986CC273FC744977@eurprd07.prod.outlook.com> Content-Transfer-Encoding: base64 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: 27cd22fb-811e-4793-cad5-08dc9fdee7d7 X-MS-Exchange-CrossTenant-originalarrivaltime: 09 Jul 2024 06:18:10.0764 (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: dPcv0/PFd4XEMh0678dBJwmGAT7kEkY9M2WPek0roMrINYT85jjAPA2clr9Ed8Oe48BfYI2HIMvBECgIERh5Go/qt0U4SBkOYgqwMDcZHlybQmZ3enco7mK121Vd4auH X-MS-Exchange-Transport-CrossTenantHeadersStamped: DU0PR07MB9289 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: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org Sender: qemu-devel-bounces+qemu-devel=archiver.kernel.org@nongnu.org |
Series | VT-d minor fixes | expand |
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; for (level = VTD_SL_PT_LEVEL; level < VTD_SL_PML4_LEVEL; level++) { key.gfn = vtd_get_iotlb_gfn(addr, level);