Message ID | 20240603055917.18735-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 9B879C25B76 for <qemu-devel@archiver.kernel.org>; Mon, 3 Jun 2024 06:02:20 +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 1sE0jf-0006hF-34; Mon, 03 Jun 2024 01:59:59 -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 1sE0je-0006gC-6o for qemu-devel@nongnu.org; Mon, 03 Jun 2024 01:59:58 -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 <clement.mathieu--drif@eviden.com>) id 1sE0jW-00070x-Ck for qemu-devel@nongnu.org; Mon, 03 Jun 2024 01:59:57 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=eviden.com; i=@eviden.com; q=dns/txt; s=mail; t=1717394390; x=1748930390; h=from:to:cc:subject:date:message-id:references: in-reply-to:content-id:content-transfer-encoding: mime-version; bh=9V+ITKOwivB3WpSM4vWz06iTWbCEdI4Pz9nZEsLjbws=; b=fQyUQHs6lHUEv6MAlu7eA3GtqLvBzOu0ul5NTTJreL2DMCq9wkO1vCb8 RVFcTKgIkst14uvL9HHwYcbf6AmvQ/ngXCB5+WeyrGQpSPF2oOOXcBqld dlG5mXP9k4ShSe5JttdWOFx7wTvTNWVCldT6Q0eR0qEYOw7c8pbFLD24y YCzSXn8dRxS/m6QCJPJIY4bKzxWcUQzfu/DnbOt/N89fZ7uaHckj5N5Mp KCH4uYquaCEusHbDvCKSCTDSNbrtXoGAtSMohUzWTh7tdWamilfjshgxD +6JFEVTJGIjCu8Sdd6kyVtPQbII0bI+ZNNqOLwNBEDe8rL0jzd2wOxA1a Q==; X-IronPort-AV: E=Sophos;i="6.08,210,1712613600"; d="scan'208";a="13815874" X-MGA-submission: MDELUMXNaR2qJvNM0/e37gNaiSptRUUWZN0GwVCrHdFUcuzEt0oR83a8u63WxHV7QipxBHPBGxaBiy6dSDD3gmIgj0TdP2IBzZqWV8MmA7PGUg8/AF1tHlpjIEPiOBkgcmuEH21RjX9MgL65q1vCCGZrCmzsGXxUs73LCOOXxzodXA== Received: from mail-he1eur01lp2050.outbound.protection.outlook.com (HELO EUR01-HE1-obe.outbound.protection.outlook.com) ([104.47.0.50]) by smarthost4.eviden.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Jun 2024 07:59:46 +0200 ARC-Seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=giQ5aXmPZbSAoSVQrSL5TVHWLBVWW6fw55foRzab4T/jABOCFCkIpQCokSXNwq+LB3P1nezsKyNIrgD+RGIkArM8rtW3qDCu9PLr2kEQO/DGnHoom+aUQHDKVrMSgXiglqnAZWxmzBpVtKDT9IKZVd6uuq2mqdh+lnqgGqtWrIMFY/qPXAGQXeFvBTvpy1/ZAfbsL6BBsXdSbirdn9AFu23qHdM3sYThF2cmbyVTzw8m3dZxUgD0HwVBaCBVrTZCC/v1aYkxF9LiG/JAmeBH7l59OZu8b6vVPrFMO3QRxcWRhDP1qEPVDqVHVNbsfGhVF+FucJlBjgC1pAX5f17J+Q== 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=9V+ITKOwivB3WpSM4vWz06iTWbCEdI4Pz9nZEsLjbws=; b=MrVqWE52W6ZZx11tEuNsUcc3SIk+mIquKqoSZXsX+BmoCIb26ESnjQDffxStIEh33CG42/+FhZctaIWvAxidifjb7R9N0/dd53w3eXPp1eO7T+IM7j5t7tqcga2HO43A9Q5F9ayPx2ZJUAtVKI77OyWEtEaXzSZVDqgLnxTIdNm2QVGyQRauvBENDbJxtx41B3wQ/UEodYGCMykPJke3yNjKqgh0HoLogjU2b0o8v1gjyaJQcWcN+S9MBOAEA9aHvN9ZAoQcu9cM/3v94+m/PvlJVRWub6Zjnj37Ldsn9HPKFtUSaHORhtd04TpDF2FprlnETzmDELtKoSDD9uRQ+Q== 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=9V+ITKOwivB3WpSM4vWz06iTWbCEdI4Pz9nZEsLjbws=; b=FfZQrfF6M20UpTIoWpeKY7Eif9AeRxWiX2TM9mrv5n3ODp8TEjOI17DOq+1YjcdPPxiO9QHmiuP2Jq+tJmZB7q5NeYWBeR9Wk9haeSe0C/+6ipksLESsMTOiEg4ArRcC0uknW+w3Kfkt3W6xQk4Wzc3jLucuZSGoSpgSJZ+IQPeZ4btMtpmDd53f72YtTay1qcznJsU/jsOVzCof87DEehfnjcvDkLl/6uxfpjuqDXsikYPEs39o97NApJjalFBsmaex/czB4qwt22mAjiBw/WfgP413tiM+R2gbiZ6nQQyF+9Ss/NaCHyF0BXJYOF4hR7NvLdAF8kAg+3vMzgaAsA== Received: from AM8PR07MB7602.eurprd07.prod.outlook.com (2603:10a6:20b:24b::7) by VI1PR07MB6238.eurprd07.prod.outlook.com (2603:10a6:800:136::13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.7633.21; Mon, 3 Jun 2024 05:59:43 +0000 Received: from AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d]) by AM8PR07MB7602.eurprd07.prod.outlook.com ([fe80::fbd7:ca71:b636:6f9d%5]) with mapi id 15.20.7633.021; Mon, 3 Jun 2024 05:59:43 +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 ats_vtd v5 04/22] intel_iommu: do not consider wait_desc as an invalid descriptor Thread-Topic: [PATCH ats_vtd v5 04/22] intel_iommu: do not consider wait_desc as an invalid descriptor Thread-Index: AQHatXs6STwkuNSoKUS08HQc0nMsEw== Date: Mon, 3 Jun 2024 05:59:42 +0000 Message-ID: <20240603055917.18735-5-clement.mathieu--drif@eviden.com> References: <20240603055917.18735-1-clement.mathieu--drif@eviden.com> In-Reply-To: <20240603055917.18735-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_|VI1PR07MB6238:EE_ x-ms-office365-filtering-correlation-id: 9d9d7125-07c9-4199-9b58-08dc83925d14 x-ms-exchange-senderadcheck: 1 x-ms-exchange-antispam-relay: 0 x-microsoft-antispam: BCL:0; ARA:13230031|376005|366007|1800799015|38070700009; x-microsoft-antispam-message-info: =?utf-8?q?TlNPEOlFKJFM+8vkoDuMa2xbu9VAsmS?= =?utf-8?q?MEi2YM67E1zREIHG0zOunurQjeDTK8EJHFUsc1JXIZnXznaUwl41M5yzTT9MgC5qb?= =?utf-8?q?ZKp+Rc8tOd2WhQgtgeW2vrqNeyc0FNppTGcmB4UildkGY2Ji1KfymeM4+L1Cc/jhy?= =?utf-8?q?qn9XT14wzR9/cxbqMoDZ74x66P5y4tO4jX9DxB68gEpUeFbs2R2E9D+Mb1yprSxkk?= =?utf-8?q?D5dIcyKJk54UXdgO+gz4BFrA8mxS8Uwcy37A60w6Zbe3sBwAGtQo4Psc9LWZpQ0Ic?= =?utf-8?q?oYtMjFxiiGlOgZFDz1Clq00CT59buSwGFozgKM/wdZA8QoN5EkTcAfvzNleS9UkwT?= =?utf-8?q?KF2Vh/NFftvVh2sgEunirQdpDQSRiG6MgedBkP+ubeD/Q8JmRUXtF5z6Oda/UYnpI?= =?utf-8?q?uWh3YM2OdmfkoJSCqxLHlT0HED/2jvq+G7yHK2GGmQeXVvXQvB8Acb6QcSTp4BVNW?= =?utf-8?q?SjeHz+lBpnpgPf3vmiHnMdNZ27rODDeuEug3PwAHx91x6mw07S35BPCMSQxXNPsli?= =?utf-8?q?g5DCnww78iPis3SDFObyQ11yUETFsog2N4GcYddFRv5f1mgajlR/aZBuLeGFjd0P2?= =?utf-8?q?eDZB+9V1TKjpGo7TG/zSP+lcgCDQSKNZAuckhnC6ir2sjvYXJ7HcLe8SYJeNhUTrB?= =?utf-8?q?gfBY6dTSCX214Uh9pS3UG6bQLxz/nGchudNHQTeLg3Ok2r1CjGXWBUnIDWPLTdzl6?= =?utf-8?q?EsVyABHuAhTZ/v8dIedn6Qo6cVgUZlDs/vZ+IKAIWhtnHD6YBRHIIsUY4VcbEBvFU?= =?utf-8?q?QFyoYZ6O0Ac5qx1EJ6tYFK7QLSK6YZJwvatLnzWwxIxPeta7CBx5mxLSntS96s63g?= =?utf-8?q?VNtuxlda0wXDq8ooFHkoKExd7rWwErf9drR0+dYrjgu8jdib8ZBD5DONowYXZfDRr?= =?utf-8?q?GTq+iV83/m4yZRNPJgUW7AXUnDcW4NMtfUnmYADcZCG50/GffRrP2i/z7CCE9l7pp?= =?utf-8?q?vaqz9nm0i3jEPaF6xwosR63UacKIHM+s5Zz08NRtO9S07r/cQ88eyQMrHsI7idxB5?= =?utf-8?q?J+slV1vj2Jrm0O0t2qM2efYqgn3QGHYUkMD8RfnG+AdhmDUzQB5hIM6bWA1VfV/Le?= =?utf-8?q?6bHT7vasUDBmYYlSgYflzylPvzZxArXQA5mub+6jnltX3IcsAJv6GCwZliqP0y1F5?= =?utf-8?q?tmxpXfzWCfK/v5Tvt/LrGykPmCYwx9YGPqrMSc0R61KzZwljtjSS0aXsuPQDLmDOm?= =?utf-8?q?pZ2U+OQ44j757slXI4EjwINr2MJpURIh133biCCzby14yz1p6pnobS+OquzSjYg6b?= =?utf-8?q?GguH4VIC6fqkE?= 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:(13230031)(376005)(366007)(1800799015)(38070700009); DIR:OUT; SFP:1101; x-ms-exchange-antispam-messagedata-chunkcount: 1 x-ms-exchange-antispam-messagedata-0: =?utf-8?q?NSvUO2TFDfNqkwC8aq5O/Cgti4vK?= =?utf-8?q?1rws4l6kNGWl5Fs+dQiKt15Tzn/gdfOvsCzeRw3/S1E+JrU2NS1QC8oqVbIA34i2Z?= =?utf-8?q?0KxT84gM4ZeCWz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DO3yWajfoyoif0Z2JG+v4moHDZJWlX2X/KVdhot3mplg?= =?utf-8?q?j7/jCnHKiye/qw2t86D7VORzlMuQTt8h7kipd/+kJwXI+fBrEZ1shjWLV5RY2ePV0?= =?utf-8?q?k6vFXiKUT3UGsbisAA0wn43G9V0JPbOmBAtG0EpTU+F+JCFlGw7vFBHpuw8ZReZrt?= =?utf-8?q?bnKDr3ahbITtfXoJedH2tIVuaIdh1WBjV5PM3lWB7hx0cmE3AfTpXbE0YJ74Eqg6Z?= =?utf-8?q?moFbyOirBwLrfCD0WesuV6W9mNJI5PYfZNpmNMQwQ5UFaN8yryQUt7OWRimHxJRKo?= =?utf-8?q?W6IOsB8cUM8ZF+oHOfdVKpWnRYXsFu3Gq8EkgosWNAzN5+sQk1i5R+ECCcZ2bTf8T?= =?utf-8?q?OHahfmoekLmbB+KLvO3qbxIDwaAGky3JiezqeCGDpx38XVAZRE8bGM3PmNXhscHgk?= =?utf-8?q?6nI8P5mBUX+e4xB/M8uUEpk4vbpaVkSHbMvetuyGntPmFCVJ49Qr3kHGuvsC3ivse?= =?utf-8?q?CK6qXVTiRZBlkbWJnNg7ROgXnq+5GUEwjmZRGcy8ZLtLHMzAzqbOLM8UK13T4VVrq?= =?utf-8?q?xCCNQJM8pTKP003hFqA+LWISkvGwCNC9XSBAIT7a61HHCrYKuGj+vLU=3D?= Content-Type: text/plain; charset="utf-8" Content-ID: <769C54D3776AE84C8A333583ACA9E0FF@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: 9d9d7125-07c9-4199-9b58-08dc83925d14 X-MS-Exchange-CrossTenant-originalarrivaltime: 03 Jun 2024 05:59:42.9674 (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: 4iEgP0XEJorF9sd5+TCKOKmVE1BN6QdfOQVChRXZe6Jq2pLsRqPVpaUEhPGQaCqqzBhxnmKhuzUoZcd4jGP/B4ln2jZOFWB8SYSaeIjfC0h8BbXwGktlFdgZzlLmwtfV X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR07MB6238 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, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 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 |
ATS support for VT-d
|
expand
|
diff --git a/hw/i386/intel_iommu.c b/hw/i386/intel_iommu.c index 772b1cea88..7b0c22fc07 100644 --- a/hw/i386/intel_iommu.c +++ b/hw/i386/intel_iommu.c @@ -3476,6 +3476,11 @@ static bool vtd_process_wait_desc(IntelIOMMUState *s, VTDInvDesc *inv_desc) } else if (inv_desc->lo & VTD_INV_DESC_WAIT_IF) { /* Interrupt flag */ vtd_generate_completion_event(s); + } else if (inv_desc->lo & VTD_INV_DESC_WAIT_FN) { + /* + * SW = 0, IF = 0, FN = 1 + * Nothing to do as we process the events sequentially + */ } else { error_report_once("%s: invalid wait desc: hi=%"PRIx64", lo=%"PRIx64 " (unknown type)", __func__, inv_desc->hi,