From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: <010701a1edc972b4-aceaf194-d65e-4f7f-82e0-7590fe881f63-000000@eu-central-1.amazonses.com> Received: from AM0PR02CU008.outbound.protection.outlook.com (mail-westeuropeazon11023110.outbound.protection.outlook.com [52.101.72.110]) by lore.virtuozzo.com (Postfix) with ESMTPS id DB3E98017D for ; Wed, 18 Nov 2026 08:32:48 +0000 (UTC) ARC-Seal: i=1; a=rsa-sha256; s=arcselector10001; d=microsoft.com; cv=none; b=sM98luawnfqdrIHdLNE/bl0kQaEuw+1aN6AiPQA2Yu+Yo3VaT3hn/wa2QFy65+s43l8sHtVPAjOdTnlpWp5wCNsMNO4YwfMxjHq+nFZ/RPKJEwgI48C8a4irH2aio9FLioAuTERlFwaOH53RfvqAzEi3C5pS8LmDV4ye9FHCNnWGbzHMwhr0Ni3KlRttAxTbE5l+zMubsxfDfxAud09lAERMwEJj2CO58DOI3HK1UBaCNEWgnRqQ0nC67kS7E+5aRCTfO8x0C9iA18GazYgudXxivvMugbHIEKUl3aVTFvTd2RNfhBYVrUWRYeCMaTd3ljq43ybT01fL8bm2BekAOA== 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=4pXBL/aAlBIqorF3CJtNvf8whVkBFzlVv6ojSy/8Cd0=; b=AU+VdFIFUNNAnD/aknUzNEZpgcgtrSpqd19Xa7o6TY9h/7TuMPFoL6ehIyaLhv+OYlZnlcaEtEnNbWsKBXhTPA0lH8EQg4dAh4wa5ZUnqrOeKWIRSaDNVNjNG/hUJrY4OC7MKRd3yxysYy1F9Q83J7CgcnGORpsUSUOVw3Z15WXQIlkk50NzT0d5E7K4hJ84yX43CXv95NPNFyQYusgJVxgODX+5gQpC3nqCfkstsQqwpBM/qPt9eNs4vwOLoxkDsW+L7lazwBCCCJbfWtT6DF0SbWcrrgamde+Da9nJb10gekVBzNjPOZ9nx9jVGW7nhTYJ/xjWhjv1JanUx64dTw== 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=4pXBL/aAlBIqorF3CJtNvf8whVkBFzlVv6ojSy/8Cd0=; b=OpRW4tUGVEOZci5T3noYIJM968YjOEtiY5BBk6MLEq4ZjG/hi+kTS38gjamx9DUK91VcZcSoj+tZi+zsnI7w5t3hqwX5SoFBIlr8jj/X4HRxQeLQTBk2Fo8u9rQWY5A+r+c3O2/fX6EnXhjjHvjJd767fAatmj3qh9yiWDISGHQ= Received: from AS4P190CA0037.EURP190.PROD.OUTLOOK.COM (2603:10a6:20b:5d1::18) by AS2PR08MB8504.eurprd08.prod.outlook.com (2603:10a6:20b:55f::6) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.21.615.14; Wed, 18 Nov 2026 08:32:45 +0000 Received: from AM2PEPF00070CF6.eurprd02.prod.outlook.com (2603:10a6:20b:5d1:cafe::31) by AS4P190CA0037.outlook.office365.com (2603:10a6:20b:5d1::18) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.14 via Frontend Transport; Wed, 18 Nov 2026 08:32:45 +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 AM2PEPF00070CF6.mail.protection.outlook.com (10.167.242.8) with Microsoft SMTP Server (version=TLS1_3, cipher=TLS_AES_256_GCM_SHA384) id 15.21.615.4 via Frontend Transport; Wed, 18 Nov 2026 08:32:45 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=23yjbh4k34hwzfubhuiim7m4inbd3ick; d=sashiko.virtuozzo.com; t=1794990764; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date; bh=xQ2LRkiaYERSIaNRxPt8UOzt8h8O1W2kKe0bMh6K9k8=; b=sKHWo7eMn5ugtCJr/o0kyugjoNkZvyoFQTRWtvr19Fd8hDXXoLOyZxIDdJ3dTtMC 5xvL0/v1neR7JrfvLYtRSQ8+yBezUYLcQ9XhQWsT65ObTOupPQWPeWmwYgA99e4d3dD RxPaiyvfEdQPT44wQcQRCCohkbT4AkC/vZ5Er90QKHYsyOlVIsZOWrYZG2KGAgPXC9w ScYQNAa/f2QWTWeePGRVfbETbfO0Qs+7NBiXfNenb+oUrn24LnyfQpiWTRCGllCXngN dVuCm3nw5KYE/tO2/jq0S/nrHB1IOg1iiPky/42CHV0aAFtjovRxT60pR0jTgNVdHeW QoW+W0MOOQ== DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/simple; s=qftdzk2dqsatjnlrq4r5brjbihpfcrsh; d=amazonses.com; t=1794990764; h=Message-ID:From:Subject:To:Cc:In-Reply-To:References:Content-Type:Content-Transfer-Encoding:Date:Feedback-ID; bh=xQ2LRkiaYERSIaNRxPt8UOzt8h8O1W2kKe0bMh6K9k8=; b=m07fkvtFPueXMQmCKgdcbMN+dqKlK5xxWErotSRCCTEyoOE7scmGSRAgsZLwNsSm XRbaH+t2evKcU5Y+JVsqOtWZhssJJh9bXFj7OyjCeAZhzBvNcAe9l1BSuGW00FXiWgb XfoawyNOYuSCIyWIvGmHhj9wvhDhX/tlQVfvWj5o= Message-ID: <010701a1edc972b4-aceaf194-d65e-4f7f-82e0-7590fe881f63-000000@eu-central-1.amazonses.com> From: no-reply@sashiko.virtuozzo.com Subject: Re: [PATCH hci-8.2 v2 2/2] vhost-blk: pause the VM on an IO_ERROR uevent from dm-qcow2 #VSTOR-152175 To: Alexander Ivanov , andrey.zhadchenko@virtuozzo.com Cc: andrey.drobyshev@virtuozzo.com, svt-core@virtuozzo.com In-Reply-To: <20261118082826.3259784-3-alexander.ivanov@virtuozzo.com> References: <20261118082826.3259784-1-alexander.ivanov@virtuozzo.com> <20261118082826.3259784-3-alexander.ivanov@virtuozzo.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Date: Wed, 18 Nov 2026 08:32:44 +0000 Feedback-ID: ::1.eu-central-1.2wRQJBpg9g1fGRYexx3dUuYGS25Bux+2TEOx72/m6U4=:AmazonSES X-SES-Outgoing: 2026.11.18-69.169.224.5 X-EOPAttributedMessage: 0 X-EOPTenantAttributedMessage: 0bc7f26d-0264-416e-a6fc-8352af79c58f:0 X-MS-PublicTrafficType: Email X-MS-TrafficTypeDiagnostic: AM2PEPF00070CF6:EE_|AS2PR08MB8504:EE_ MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 4555a68d-0c45-41a4-dc0d-08df454e850e 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|61400799027|48200799018|376014|6133799003|22082099003|16102099003|18002099003|5113699003|4113699003|55112099003|13003099007|261009223027099003|5063699009|56012099006|4143699003|261026140227099003|261102123227099003|261028144727099003|261022075727099003|261026121527099003|261021121427099003|261022105027099003|10067099003; X-Microsoft-Antispam-Message-Info: =?utf-8?B?ZTlUTmRhWkxDQURBMXZyRm5QYkYyU1NYdGw0akhKemxMMi82cTlIZ2Y3bzlT?= =?utf-8?B?UmlEWnN0WDQzc3BzSjM2aU81eWRJeCt1bUtBbStpaXNueDREc2N6dC9XZFBk?= =?utf-8?B?UEs2MGg5bUlpSWhpMUFwZUFqKzRzVDRMN0lTamptYXBvblBReGpUSGRwTnVB?= =?utf-8?B?VEdsZ042dVhrTWd1N2ZGTytaTmFubmRUMEx4cHBFczlXWlljNm8ybGVhendW?= =?utf-8?B?U1JlZlRFRGtMS2dsTXdMUEZ6RzJyTGhRaXptVzg3UC9pRnlUQjN4WW5Nb2Zq?= =?utf-8?B?T2NLSTVCMUVVVUgzYWNvN2U0YlVYY0I1WWlVd3BMR21Ea29WYm5wNWZ3T1or?= =?utf-8?B?UTIzSGVGcDlVR0IyS3lpM0RhYjdUR1M3Nk94NUExZ0U4VmJDRi9VY0NBLzAv?= =?utf-8?B?ZlUrSVFpN3pONnhWSmRXNThWcldXSERRYzBMVzFyM1paWWRpUnBxRGUyOWJp?= =?utf-8?B?ZURqTTJ5SVRtOG91YU0zemZyQWtPL0tKS00wQy9WaWp5eW5Qa0gzQVI0MTBG?= =?utf-8?B?c2szMjltNEQ4UzdJTXBtaEhjZW1nUTNRSzFMcWZOUDVhWDUzNGZTeFBIN0RO?= =?utf-8?B?YUZwNUdJZzgxdHhyVmFIUFZVMENNcDQ4UmZCVmtHcWdvWXZOVEZwcGkyUHFC?= =?utf-8?B?aDJMNkpEdFcza0VnbzVXTmtqbVRWMDVZWm5RYWdld09lQWYzK1I2YTVEWG83?= =?utf-8?B?NlhPMFBEMi96UjF3T2g0RGpxNkQ2M3JUL3A4NWhiQWYzWTFQZitTbWxPMk5m?= =?utf-8?B?ZzhqM093YW81ZVNaTnVZVmxTdVEyekpid2h1bVF1N0s5Uk1pYll6MWdIeXYr?= =?utf-8?B?REwyTTVEeDJvdEpESnJ4LzhmclBLaHpGVGg5b0FQQ05QeXZBcmtER1RqdXVB?= =?utf-8?B?b3BqQllBUEpiZTIvRlJNQzZKRWFXWStlaWNHS3pUNUdqV2lrZzd1aVg1c1pJ?= =?utf-8?B?akd5WlhtZjdlaTVTRUt2REViTjlJa3lQdU0vY1lnSE5CZ0Urd3lUc2VYRlpp?= =?utf-8?B?U0RONXpLM3ozeDNiQ3ZCNTZUUkUyaFAyK0kyc1dzTU0wZmZUU2VsbWxTbjNQ?= =?utf-8?B?VjUwa205c1dGNlNyWEc0MWh3cXRtSEI5YThMeWhPVWltbnAxVzkvN0xRS25D?= =?utf-8?B?K05YOVpnZnYwS1AxN2pEWXJPbWNqeXpnRFB0bi9uVG9HN0tuRWE2THE3WFdM?= =?utf-8?B?YzdNVFVRQnBTZU91NDFTMHhubllxRU9ENXpiRHhyVVVTSitzNHQ2R1RHQnFP?= =?utf-8?B?MVV4dmJwUkd4cFBjUktjcG1rZ2FJZlg1YWlONG44RXBoMkNwSE50SkQzTjAx?= =?utf-8?Q?dqt7Y1mJ2gVs0=3D?= 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)(9140799003)(32142699015)(61400799027)(48200799018)(376014)(6133799003)(22082099003)(16102099003)(18002099003)(5113699003)(4113699003)(55112099003)(13003099007)(261009223027099003)(5063699009)(56012099006)(4143699003)(261026140227099003)(261102123227099003)(261028144727099003)(261022075727099003)(261026121527099003)(261021121427099003)(261022105027099003)(10067099003);DIR:OUT;SFP:1102; X-MS-Exchange-AntiSpam-MessageData-ChunkCount: 1 X-MS-Exchange-AntiSpam-MessageData-0: eVDRZamjHiPoIaj2/i5vEfyT6DlmTI2dsKAk0rSQu6iF1VqbvPJptFEPCGKrAjV1yIF65Zk7oT+e56wXCZBdgDlz6smZIkudVb/7m/Pxbhlx0Iihnxqy7L4TOrYREig1fIiFxEX0qaxA6tbB/WrYRvpBNnqkRrzQfKxatDNxM7A4HigiT2c2kjrI/cNL8zzdbUDzX1JH9fKTLu/FuuieLMLjnS6reLVJD0L8AjZqd07IAGCoBcwvSe7I4MVSMMXhF02cNIuPTVKj7AFnq6o405tHExKF8Pjd/tRePiboRn7arwkgJFsxJ8TjvMwsN3bZcItEEuc/zeRxZ4lPiPoH5YZqzbEI/aOlML7L2EfewZqxz96Y03kj0MXxIz2tUCf4aNDJrjAH0CGrADTcHHrGipDZE1/k7DfImM9z7GNZ5M2Ia2RkdqF5o66sOa3jDVK6 X-ExternalRecipientOutboundConnectors: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-OriginatorOrg: virtuozzo.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 18 Nov 2026 08:32:45.1399 (UTC) X-MS-Exchange-CrossTenant-Network-Message-Id: 4555a68d-0c45-41a4-dc0d-08df454e850e X-MS-Exchange-CrossTenant-Id: 0bc7f26d-0264-416e-a6fc-8352af79c58f X-MS-Exchange-CrossTenant-AuthSource: AM2PEPF00070CF6.eurprd02.prod.outlook.com X-MS-Exchange-CrossTenant-AuthAs: Anonymous X-MS-Exchange-CrossTenant-FromEntityHeader: Internet X-MS-Exchange-Transport-CrossTenantHeadersStamped: AS2PR08MB8504 Thank you for your contribution! Sashiko AI review found 1 potential issue to consider: - [Low] vhost-blk: ENOBUFS in uevent_read() cannot recover a dropped IO_ERROR event -- commit c81b48de82c56f0c6b470db39c0b62c9613d02cf Author: Alexander Ivanov vhost-blk: pause the VM on an IO_ERROR uevent from dm-qcow2 This parses the IO_ERROR change uevent that dm-qcow2 sends for a held reque= st. It stops the VM with the io-error reason and emits BLOCK_IO_ERROR. It a= lso blocks migration while the request is held. The stop policy is now reje= cted when the ueventfd property is not set. > diff --git a/hw/block/vhost-blk.c b/hw/block/vhost-blk.c > index 3e9653fb28c8..51b40d85089e 100644 > --- a/hw/block/vhost-blk.c > +++ b/hw/block/vhost-blk.c [ ... ] > @@ -293,6 +298,55 @@ static void vhost_blk_block_cpr(VHostBlk *s) > } > } > > +static void vhost_blk_io_error(VHostBlk *s, bool is_read, int error) > +{ [ ... ] > + /* dm-qcow2 repeats the event on every failed retry of a held reques= t */ > + if (s->io_error_held || !s->vhost_started || > + runstate_check(RUN_STATE_SUSPENDED)) { > + return; > + } [Severity: Low] Can a dropped IO_ERROR uevent leave the guest running with a held request? If the socket overruns and the only IO_ERROR event for a request is lost, v= host_blk_uevent_read() hits the ENOBUFS branch. That branch only calls qemu= _bh_schedule(s->resize_bh), which re-reads the capacity. It cannot detect a= held request, so vhost_blk_io_error() is never called. The VM is not stopp= ed, no BLOCK_IO_ERROR is emitted and no migration blocker is added. The req= uest stays held in dm-qcow2 and the guest I/O hangs. The repeat described in this comment does not seem to cover that case. A re= try happens only after libvirt resubmits, and libvirt resubmits only after = the VM has stopped. A lost first event therefore removes the trigger for an= y repeat. I could not check dm-qcow2 from this tree, so the claim in the co= mment is unverified. --=20 Sashiko AI review =C2=B7 https://sashiko.vzint.dev/#/patchset/2026111808282= 6.3259784-1-alexander.ivanov@virtuozzo.com?part=3D2