From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <010701a110dd1919-b8a0eef9-6cff-4fe7-979a-34410bffb881-000000@eu-central-1.amazonses.com> Received: from MRWPR03CU001.outbound.protection.outlook.com (mail-francesouthazon11021083.outbound.protection.outlook.com [40.107.130.83]) by lore.virtuozzo.com (Postfix) with ESMTPS id 11B76802A5 for ; Tue, 6 Oct 2026 10:58:13 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=Xx8+Y5AIfW1Z6Ti5dEKGiMTtOik+kR1veEYupIvOyz6cv0U9SZukkvZJBUlYuQ5YwPDDH6psfC5gGCRVYGtVqpT1zva3i3lczsnW6wcNYS6sSwd7qe3n73M9HgJ3YvSZf3r3Q/spaRX8djPk5MawAeEZfoFTn8keWVTjq5TL2S6I7WpqW3Hfv9yha4n/aFyWdw1ujM9x0DMjhwJ8XZFOq7q8EDRAL8b0KcSVL+wKICQJOSyggWC8RfrboMowrwshlDQ6/w2NgGh3UGbDaL8kjlz70HvLhcNkr1RjLN7ri7UYPC1WkLb3SA79RakJ+EwfwJI+JLbDhk4ZkvRQvQkZgg== 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=c/8+P1ur5quTqp+Lcxv+JgMnlr8C8EIq2FNVDnMTADw=; b=XDkzVk3+LWV7OUg+2qbte0nkm7MDJqK/9Pmx/lFq7KSk6V2AcGnUl9s2nOmjkJdPdxVIUbseTHql6Rm5iqJ0TArwGE7pkR17sf0Ee97kOIaz3Pv7h18bemUV8i+56Q2DubmpicRc9uXiQ1iK8tCoNqfD6ApmuH8GIJsTFW8c/rQM0teccIdQi6rWWPRyZbfl3PhcsF9Xcsnz6Le3SSWntuaL7yezwbgT43fnNNXRtC/wJaXGo1w1BuaXf8XrEjKCcGcEaaMDG4JTKUgY5w+/2ii+6aiOFfIdlkD8xPqbeRiVZX9+Rvef4OgKj85tVZdKgbEdsOOPKo7TbYxWEVcdmA== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 69.169.224.6) smtp.rcpttodomain=virtuozzo.com smtp.mailfrom=eu-central-1.amazonses.com; dmarc=pass (p=quarantine sp=quarantine pct=100) action=none header.from=sashiko.virtuozzo.com; dkim=pass (signature was verified) header.d=sashiko.virtuozzo.com; dkim=pass (signature was verified) header.d=amazonses.com; arc=none (0) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=virtuozzo.onmicrosoft.com; s=selector2-virtuozzo-onmicrosoft-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=c/8+P1ur5quTqp+Lcxv+JgMnlr8C8EIq2FNVDnMTADw=; b=m8Q7cmbdKkiLroFYTeNuBJiIi2R7hk6JOEe1DcXYxFNBPUfXXmZMzqr4mm6fXB46vr4mdj1LL9CVXg+8V4OoTiAxt44Agq2f9E4yldcxBS+asQY6MBh2mtb/pWcbDNqOxTfoARIGovptIRcs32lLvxShh4UPCP5Zw9f+1z73Svs= Received: from AM8P251CA0021.EURP251.PROD.OUTLOOK.COM (2603:10a6:20b:21b::26) by PA4PR08MB6256.eurprd08.prod.outlook.com (2603:10a6:102:e6::20) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.496.15; Tue, 6 Oct 2026 10:58:08 +0000 Received: from AMS1EPF00000091.eurprd05.prod.outlook.com (2603:10a6:20b:21b:cafe::4a) by AM8P251CA0021.outlook.office365.com (2603:10a6:20b:21b::26) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.472.20 via Frontend Transport; Tue, 6 Oct 2026 10:58:08 +0000 Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 69.169.224.6) smtp.mailfrom=eu-central-1.amazonses.com; dkim=pass (signature was verified) header.d=sashiko.virtuozzo.com;dkim=pass (signature was verified) header.d=amazonses.com;dmarc=pass action=none header.from=sashiko.virtuozzo.com; Received-SPF: Pass (protection.outlook.com: domain of eu-central-1.amazonses.com designates 69.169.224.6 as permitted sender) receiver=protection.outlook.com; client-ip=69.169.224.6; helo=b224-6.smtp-out.eu-central-1.amazonses.com; pr=C Received: from b224-6.smtp-out.eu-central-1.amazonses.com (69.169.224.6) by AMS1EPF00000091.mail.protection.outlook.com (10.167.242.88) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.496.14 via Frontend Transport; Tue, 6 Oct 2026 10:58:08 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=23yjbh4k34hwzfubhuiim7m4inbd3ick; d=sashiko.virtuozzo.com; t=1791284287; h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Message-ID; bh=5LXhzfCrFfwtGMJtAu8/jAtyCuRiM52xjaB5r2ChGuU=; b=hz06RtTYVTwjPW1R17FWyjWufs3KtWoUpuvhYN8RoySZK2RRe5kkk7X8Em2Bn2Ai OBsesvU8JhjyhfJBnw2Px0YDHn+wDuCKJg7+2+JIdZ+Puc6tBJ/7MkGvaM8NCT6nD72 uc/Oou3UnM0YOfRoUMyNMgxD+OuwOf4c6VK8bxH1KCbcxPuhS+wAbfS+nzE4sFRN6FS TijUcH4Mix1G7JFnGNW7Jf1Qlolqyk/eiqGZY9xC2llhMOowy6Ds6XPDE/n0bXKyXtS /jORCwRXIbUJvwo4JhW2RlgC7lsVqMkA6jOZpAcB62BNEfmd51lNdZMFvB9SRycLneL a0H5cda90g== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=sokbgaaqhfgd6qjht2wmdajpuuanpimv; d=amazonses.com; t=1791284287; h=From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Message-ID:Feedback-ID; bh=5LXhzfCrFfwtGMJtAu8/jAtyCuRiM52xjaB5r2ChGuU=; b=SoUSHlO3Hg/R5aH05LeZmjIOEdvkPCgj8XnsAoVHKJL3nBrSlPr5GmLaNeqRx+bm W46RO2rt+BVC6REYYQe0WSIOtfBVt9Wz8UzRX6ZVcBQ2q5kUjqzfQVRluwHgqPPSsfh NuG+XMJu825Xx8kslGc9JijLSIMxGL98ohePExvI= From: no-reply@sashiko.virtuozzo.com Subject: Re: [PATCH QEMU HCI-8.0 v6 12/12] usb-host: make CPR migration blocker conditional #VSTOR-137800 To: Andrey Drobyshev , svt-core@virtuozzo.com Cc: den@openvz.org, andrey.drobyshev@virtuozzo.com In-Reply-To: <20261006-usb-host_v3-v6-12-8688ec9576d1@virtuozzo.com> References: <20261006-usb-host_v3-v6-0-8688ec9576d1@virtuozzo.com> <20261006-usb-host_v3-v6-12-8688ec9576d1@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 6 Oct 2026 10:58:07 +0000 Message-ID: <010701a110dd1919-b8a0eef9-6cff-4fe7-979a-34410bffb881-000000@eu-central-1.amazonses.com> Feedback-ID: ::1.eu-central-1.2wRQJBpg9g1fGRYexx3dUuYGS25Bux+2TEOx72/m6U4=:AmazonSES X-SES-Outgoing: 2026.10.06-69.169.224.6 X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AMS1EPF00000091:EE_|PA4PR08MB6256:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 20fface7-86a0-4e11-cfce-08df2398b4a6 X-LD-Processed: 0bc7f26d-0264-416e-a6fc-8352af79c58f,ExtAddr X-MS-Exchange-AtpMessageProperties: SA List-Id: svt-core@virtuozzo.com X-MS-Exchange-Transport-Rules-Loop: 1 X-MS-Exchange-SenderADCheck: 1 X-MS-Exchange-AntiSpam-Relay: 0 X-Microsoft-Antispam: BCL:0;ARA:13230040|9140799003|32142699015|376014|48200799018|61400799027|6133799003|5113699003|4113699003|22082099003|16102099003|55112099003|18002099003|10067099003|13003099007|4143699003|56012099006|5063699009; X-Microsoft-Antispam-Message-Info: 3hNx9ExjDFxSflVhKZuEFdID8kTAM5lDdZWhKnBmfVr7jXBmcCofTOFyYnTaPQEzDn2ROVProTEoupeomo8JJVk+vPTlLgAtabXX5Bplsskfq9OqN6W26EFWphN4SqDtp9PEJmMdgRO26mu38RtT9a9LytJ0NoiqEbZpGv2a7N7axOCHxEl4hkZFg3nB67FRjzPId0fbZCivVZ2xtBsKepCnq1qOmbpnIwy0ClDQz4/NnxL3ebj84BOVfgc17B3jR0tlKgMg3YFYVT+1NJwsFjtl+pbiMok3O70LBmXMvETMYWfO6veOLzCrmgHZQGko8wqABJ+yv5UZpj3dOT2x72K4HHl4yJTrW31noguquFROzobXI8oN6aTPjecuFVRnuJawA56m+QwFBfVd2PTHwwli90YTmviouQRuS9xq+BrN/+Iv6X6bhwEnOkOcqPsMiYeAPsgd7yvZemAdIpWBMaR2SOmqmMSdF05nNUvJ3HZstgAGgd5ewcHyHwleRpgviO8pdAmrIOLGs5qxxHQPjpZ+llnH0KJpxFLwDXnZYEFr6KQdTxQNzsYVA5G9ZXyBuBiAsqrTkfacS6b54SphrTu/Jj3OUZhx4JUA37xH+TTbthBrt9l+NPuVcyiqfZawrV/oUL3JyU5xheZUEWgTdy2PqU/ATFLKG623c5rtVorGlWs7CZmJftzisoUuaHc9oqU6Z4JnprtWV+PI2JQNZDVd4nuzmy5FyorLpi9J4Nd9FDa3cJlU1h6usrZ+hPP3FTaxR0nuIO49nJJ23MBOd6XrRzeV+YmZaK3CkqFdQjcsPjcfnSOLolYc7lYO7hk38qEFAA6kk6EzwqZ+t5QZiz7RFV8RLibPw4718l2XNqUHYEvT5MnJrpaHeBWkQ5oGqaGV46ojQramWpzqK2yPXjHmQqdE+Ey9rsyvs0cgVgI= X-Forefront-Antispam-Report: CIP:69.169.224.6;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:b224-6.smtp-out.eu-central-1.amazonses.com;PTR:b224-6.smtp-out.eu-central-1.amazonses.com;CAT:NONE;SFS:(13230040)(9140799003)(32142699015)(376014)(48200799018)(61400799027)(6133799003)(5113699003)(4113699003)(22082099003)(16102099003)(55112099003)(18002099003)(10067099003)(13003099007)(4143699003)(56012099006)(5063699009);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: ANn8Ezr7rRR3Rp75emPWeuyRisapVa1A4y0mxBpomRbdeVVoj0ySl/zGfLTqoShOyYSUj7VY7GYlqSdU5ypiYIrcEIi5m8h7rtAe+XbOSafH89+jWIIpgAW+EgH34LBXrhVfaRfDEkmI7ZDyaPfw9k0V4pwH22bOp3FL6glDjYe6iNDhCKUn1dtdWSHZM0PdShFtH0IMXkp0+Cc1ANhd9yjz/DmJchJYtwpHa6VGx69lBR8muwIdtRGboN3qwXpyD3Yjf0XBFmb6Em+AHjvqdvArxkg+XHNC8ehFkemRZnb3KH0uWmPr8iLnINkYs7/5W57XM10R4cTpjayGQ4TyVUCZF2iYeKc0tlYjbip6OD3PTs22f03eITOMhrQ62BDfbzlbS5SIsZPqgQZvc2pKdSsdYPLuPj+SxuSAqa6dngQUj8pQV65uqPYa7LbHyF8D X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 06 Oct 2026 10:58:08.1964 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 20fface7-86a0-4e11-cfce-08df2398b4a6 X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: AMS1EPF00000091.eurprd05.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: PA4PR08MB6256 > A previous commit added an unconditional blocker for CPR migrations. > That is to refuse CPR gracefully instead of crashing and for the previous > commits to remain bisectable. >=20 > Now the restore path is complete: the FD is preserved, in-flight URBs > are drained and replayed, the device is handed off across cpr-transfer, > and the endpoints and isochronous streams are reconstructed on the > target. So let's lift the CPR blocker for the devices which satisfy the > preconditions. >=20 > Still, the remaining preconditions for CPR to work are: >=20 > * We must open host device FD ourselves, so that libusb owns the FD. > This way we're able to preserve the FD during CPR; > * Device ID must be provided as a unique stable key for CPR FD registry. >=20 > Use them to guard the blocker addition. Apart from that, prohibit CPR on > WIN32 platform and on hosts with older libusb versions. >=20 > Signed-off-by: Andrey Drobyshev Sashiko has reviewed this patch and found no issues. It looks great! --=20 Sashiko AI review =C2=B7 https://sashiko.vzint.dev/#/patchset/20261006-usb-= host_v3-v6-0-8688ec9576d1@virtuozzo.com?part=3D12