From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <010701a230eb7f84-4170878c-29ba-4790-bd5a-eb15531ec418-000000@eu-central-1.amazonses.com> Received: from MRWPR03CU001.outbound.protection.outlook.com (mail-francesouthazon11021140.outbound.protection.outlook.com [40.107.130.140]) by lore.virtuozzo.com (Postfix) with ESMTPS id 0161C80031 for ; Tue, 1 Dec 2026 09:24:36 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=OLp2f3US75RObVOJrOWCy7Scalapyg8k7pk6IPpGNzmnSd8jQQ6gukdd14YHB0BaMrXb7u/U23PcSIe3dw8FTJVriKVaR5eFP/GcHVx93UD5wJ/qbjiS9B4/WgoNiiZbg/shvJkDn5ZNv/SaSAXiUnTxOYNWtiebJWVoeN0/8U9GL5D0HIpyfTz/I8fho7pIxEwQ6JjXeXISF5B8k+CBjOpggVp1umMFrmkMzEXlYeuEMYaGIaqsl6J8HB+1pLi2YiWIM9qNmlFxDXc4wc3GbPlMkNrjsrzOTQ3ZkCYWx1mlENBTVQ+uQ6CDVP6mCnnJBAxo9bEhL4AJyiQSkMDNoQ== 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=Ne78fYDzYFtO0KOSn/UGNTtPsQ9gJa/mYXifFwbpnlA=; b=VyG4F85oR8Nl4TsbSefWcBQLgUllLcOFbjbv/g7RbgdAjh1tOvKHWxde9uE3tL46HRJsyoNHQHSMpA/pJCazJgAhLdyiPr9bEWiNayLS0+HZZXBOjnUei0V9awGR6ObLioeFPcwCztsGKqSmyRCz00g6YyNHjFt9QR9+KRAx9TIdAmCaB2o+rFZtcwGN8Od+pzjFf3NX/ZyJXwfhyDBcSdBYUhYI8OPI2Ydl3lF74bWE94tsaWS+JhWN+dWoywqFKVth3HM8QnUmuSPsNvq1QysAFy+9DIVv+qagf5rwWZyHfNyDPk0t/yy1Ku6ICXlFvWalGgdVt1AI1mglz4tCJg== ARC-Authentication-Results: i=1; mx.microsoft.com 1; spf=pass (sender ip is 69.169.224.5) 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=Ne78fYDzYFtO0KOSn/UGNTtPsQ9gJa/mYXifFwbpnlA=; b=RhEGc/vAmVPlR4oWmrXUtin2NZ8JFYmvlzrr8kDc5oau13NIC+uGXopvA4nxwVNbrtcaaN6OL4rKe9JAbrjzVhK0mQkb/ctMxVD84tYOM5e8x9nIso1BY0Z261/06k8znAFv0P/4HNxDhj4CbCKNkZpepJ16yAH/jOJMiisqsoA= Received: from DU7P191CA0017.EURP191.PROD.OUTLOOK.COM (2603:10a6:10:54e::25) by GV2PR08MB9157.eurprd08.prod.outlook.com (2603:10a6:150:db::16) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.662.12; Tue, 1 Dec 2026 09:24:30 +0000 Received: from DB1PEPF000509F0.eurprd03.prod.outlook.com (2603:10a6:10:54e:cafe::8d) by DU7P191CA0017.outlook.office365.com (2603:10a6:10:54e::25) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.10 via Frontend Transport; Tue, 1 Dec 2026 09:24:30 +0000 Authentication-Results: mx.microsoft.com 1; spf=pass (sender IP is 69.169.224.5) 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.5 as permitted sender) receiver=protection.outlook.com; client-ip=69.169.224.5; helo=b224-5.smtp-out.eu-central-1.amazonses.com; pr=C Received: from b224-5.smtp-out.eu-central-1.amazonses.com (69.169.224.5) by DB1PEPF000509F0.mail.protection.outlook.com (10.167.242.74) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.688.5 via Frontend Transport; Tue, 1 Dec 2026 09:24:30 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=23yjbh4k34hwzfubhuiim7m4inbd3ick; d=sashiko.virtuozzo.com; t=1796117069; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=Ne78fYDzYFtO0KOSn/UGNTtPsQ9gJa/mYXifFwbpnlA=; b=TLRTy1sqbm4znllsRO0pLL5aBWrk2M1WCuSX3+FIhrTMYBRARquKok7GNdjFnyHb Yp9JZkOnYCRdLXGslkxvUVhuQ9hfX1h0sIwg9n23Eh+Z/lX/DP7Zk8mpBdi++xkJeqm hji0LNagJAwMy3S4puzKJhIg2IdhTeks35XW2TtpCWLCJYGKc4yf9DlVu4L1eifXPJY rhKDvHOq+jTfwtDU6WsMvpy08JYjtU9mJUJGw1ngHvUA1fhaQrtH8GgfXWA1tw8T5YO lqhzsnQwQi9LkhW26mTJ/OLihieHhxOl5COh91LPvBdiQ5JQ56JBfxFhU9223eRowbt k7tewIlPqQ== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=qftdzk2dqsatjnlrq4r5brjbihpfcrsh; d=amazonses.com; t=1796117069; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Feedback-ID; bh=Ne78fYDzYFtO0KOSn/UGNTtPsQ9gJa/mYXifFwbpnlA=; b=BXs8IrdyBjkQdtVOkaTz485Rtb8tlEKP3SfS4oNNmKufzR3TbRAGUeV64rIwwKEO wYEuH7C4gJ2fesPD6HSTy1ZMV3evBJ2uqLFM48jIHvOLFwEY9CrcD37LXerxRnBTkHv IEP+DlTtEkQvrIH9Qt9cXvolhfATk1234clvgkV0= Message-ID: <010701a230eb7f84-4170878c-29ba-4790-bd5a-eb15531ec418-000000@eu-central-1.amazonses.com> From: no-reply@sashiko.virtuozzo.com Subject: Re: [PATCH hci-8.2 v4 3/5] vhost-blk: stop vhost on every VM stop #VSTOR-152175 To: Alexander Ivanov , andrey.zhadchenko@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, svt-core@virtuozzo.com In-Reply-To: <20261201091818.1894308-4-alexander.ivanov@virtuozzo.com> References: <20261201091818.1894308-1-alexander.ivanov@virtuozzo.com> <20261201091818.1894308-4-alexander.ivanov@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Tue, 1 Dec 2026 09:24:29 +0000 Feedback-ID: ::1.eu-central-1.2wRQJBpg9g1fGRYexx3dUuYGS25Bux+2TEOx72/m6U4=:AmazonSES X-SES-Outgoing: 2026.12.01-69.169.224.5 X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: DB1PEPF000509F0:EE_|GV2PR08MB9157:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 4841f6f9-8039-4bc2-c2f6-08df4f8ce72e 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|704161211799003|9140799003|48200799018|61400799027|32142699015|376014|56012099006|10067099003|5063699009|261026140227099003|261022105027099003|261026121527099003|261028144727099003|261021135927099003|261021121427099003|261102123227099003|261009223027099003|18002099003|16102099003|22082099003|55112099003|4143699003|5113699003|4113699003|13003099007; X-Microsoft-Antispam-Message-Info: UK/iEDkB8o3VdOSq+lDL+6UUG/+DAiOnhvf0JNzGK5g01Be6TOsB8kGHKhUBvOt5X+XEvj8bOpEjOtJfFGXaUtBiypoRGndjdo85rpnkFTskrF4SUaBudl5zTeonhloo7SVx5KL7sHz5japRPCAOgryEd4zdH+L50L6jHa7i69N3XIzLeWyEYFbRxRz4g15QX0AskoNlq4R+a1oubwQjLydO+4aeRWgd8sDHSGjnGrFW3P6HhjvXCXMCcf+W2751zhboAq4jSR8BA92x1nCD88WBPw6Vby1gOt1/wnMWYhOBlRfRZeu5Xc/05K6zQ/Ge720U4VwX8wzQXijl38UgBj1xw6kEnATnKgTgTbHsvpPzI9YOh6jNMBfsT3ntPtWUNvqcR15MwHNOtwts7n28oVlh8fuU6mzzmfJCa2wQhqCywxpIF0ek4QFH02Di1tXBVlu0GHyW1+RmRX7CLFf9f19GW/ysDb4smhERqX3TCtqFaTEz5px4c/HHy5vwsvqf0HKHBOn/jcueB+ziL+qRYVdDctgk80h9NG03MnCbzLgpFyRP/F9chlw5mn4DA8kN8rUwSBCHWFY13Y191yuafCkZ62G/ABzzoXIHlZ65qnbk02q3mCQogn1H1MoVrJoIh7E+H9LGhHJWoxvdLujyqc4J3ff576r2G1PPT47g4xCOVz8clWI1/uflMWMUBs6/9wD7FHj6EdH2k7wYi0G0+iC97QV9vAr0wd6P3ieKEGH81RjJs/LcsypF7FJKMekg7Yc6SoZgR9OQf8k6Va3SVsFs69n/1tp/Ok5fJaCZm8Ch5wdJAWdzqN9A8WQTFcNfM3Mn/ziB7jGU/6fYrE8tuSImGLHfKrIidD6WfZakufDYYdi1lJJna+4EmqdpG3rM X-Forefront-Antispam-Report: CIP:69.169.224.5;CTRY:US;LANG:en;SCL:1;SRV:;IPV:NLI;SFV:NSPM;H:b224-5.smtp-out.eu-central-1.amazonses.com;PTR:b224-5.smtp-out.eu-central-1.amazonses.com;CAT:NONE;SFS:(13230040)(704161211799003)(9140799003)(48200799018)(61400799027)(32142699015)(376014)(56012099006)(10067099003)(5063699009)(261026140227099003)(261022105027099003)(261026121527099003)(261028144727099003)(261021135927099003)(261021121427099003)(261102123227099003)(261009223027099003)(18002099003)(16102099003)(22082099003)(55112099003)(4143699003)(5113699003)(4113699003)(13003099007);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: r1WAycK9mNvTav02zFVZC2DnzWJr1FeK3YDQ+NaLZlNtHCIkThb1SS7NDViAdwR3HbgNuM0cqqBEbwR59BWFYqVbe+trszB/06S/fqk4XGH0YpdIiV16He7VDN3n+YewsvgfjnGg5hBMY5HiKDfcIqJTY1d42bWvHbZM6tGvsQklIM+e692+mLLqBtib/n6YLsEUF7WAqHgjKsFPQeMr7pgr7olxed+ayT3zznSq8v4UVZ9qQxMfoTld99BUhwWszreMa/QIvVlWqQ2lZ51jDCKlMzQCoFy7bl1Hn6IRIJ/rbw6+d+3kkwU268X7D/PNjOAK5VCMxffdC+3bZ72nRdOdrASWHZsCy3mSJT7uKQCCavbNO/AbTvoFFtcMdT6O/C/sveNiJTmpLYuh0B5M+YyqKgnqp/kvm8A+N5fAWz6hXlJzt242T/5pY7Od+1ZM X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 01 Dec 2026 09:24:30.1628 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4841f6f9-8039-4bc2-c2f6-08df4f8ce72e X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: DB1PEPF000509F0.eurprd03.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: GV2PR08MB9157 > vhost is stopped only on pause and at the end of a migration. In any > other stopped state it keeps running in the kernel, so the device > state saved there is stale: vhost_dev_stop(), which fetches the vring > indexes from the kernel, has not run. >=20 > This affects savevm, which stops the VM with the save-vm reason, and > a migration of a VM stopped for debug, shutdown, a guest panic or a > watchdog: the VM is not live, so the migration does not run the state > handlers again. The destination then processes anew the requests the > source completed after the indexes were last fetched. >=20 > Stop vhost whenever the VM stops and start it whenever the VM runs. >=20 > https://virtuozzo.atlassian.net/browse/VSTOR-152175 >=20 > Fixes: d31b67263a21 ("hw/block/vhost-blk: support migration #PSBM-152243") > Signed-off-by: Alexander Ivanov Sashiko has reviewed this patch and found no issues. Carry the trailer below into the next revision and Sashiko will not review = this patch again. Reviewed-by: Sashiko --=20 Sashiko AI review =C2=B7 https://sashiko.vzint.dev/#/patchset/2026120109181= 8.1894308-1-alexander.ivanov@virtuozzo.com?part=3D3