From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B3B3830F926 for ; Thu, 28 Aug 2025 12:16:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.133.124 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756383401; cv=none; b=FPbGav/NlcxsIuX/KC+fW3H51JOpZ2EvjPx+eC92vxpGc1xf2YmCHS8DxoHPHJgJdatyuewfoxCTmy62MoZJTUfxN5GiP+oFSoMA91WrkDhNdCk25QnDVxe+r1suxknpzpbNvyyZYy6qLBK2Bp3yn9UfQsly00HCbkm435+QU9s= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1756383401; c=relaxed/simple; bh=mdW2oSADWBbXGiEgktQ7epNSjn+PoivCb/saH/Cs8kw=; h=From:To:Cc:Subject:In-Reply-To:References:Date:Message-ID: MIME-Version:Content-Type; b=k3wGw16BTzoHjsKe+M9LTMr4YrVQLFP5WhX2AbbWQkbOrozwnU8iBZDztPDvG6rPN1iqAfl2cWkSf4XbSl2ew0a2uJu3HKFz2N+dkcaUCZsl7ADFKcXa0K+Wjo2FTDAtz1WQ9dRz9kcJpLEozqGGrwGMtNSNaKqOUISXwnE9m2o= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com; spf=pass smtp.mailfrom=redhat.com; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b=hW0OtPzG; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="hW0OtPzG" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1756383398; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=biyzL+1TO3pX1lKEDhJXK6ipdRuCbCoINQgGjSZT/uA=; b=hW0OtPzGvlUxA6N25jW0IoPfTMoxL1eC5U3FK4WtsAaeCPTdlR02gXo2+w6rxTMzceG4Yy O5DSJc/hTlaFVags0yYFwJATTIsmvIo8LL/6j9FzJIC9QDbsUAfQKfqM3SCky47O+llNg5 bNGY4SWUbPG6zLYzjUuZylA11Q0DzH8= Received: from mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (ec2-35-165-154-97.us-west-2.compute.amazonaws.com [35.165.154.97]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-592-In72s4WbOcu3kiOuKgyB6w-1; Thu, 28 Aug 2025 08:16:34 -0400 X-MC-Unique: In72s4WbOcu3kiOuKgyB6w-1 X-Mimecast-MFC-AGG-ID: In72s4WbOcu3kiOuKgyB6w_1756383393 Received: from mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by mx-prod-mc-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id D924C180028E; Thu, 28 Aug 2025 12:16:32 +0000 (UTC) Received: from localhost (unknown [10.45.224.217]) by mx-prod-int-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 3EA0530001BB; Thu, 28 Aug 2025 12:16:30 +0000 (UTC) From: Cornelia Huck To: Parav Pandit , "Michael S. Tsirkin" Cc: "virtualization@lists.linux.dev" , "jasowang@redhat.com" , "stefanha@redhat.com" , "pbonzini@redhat.com" , "xuanzhuo@linux.alibaba.com" , "stable@vger.kernel.org" , Max Gurtovoy , "NBU-Contact-Li Rongqing (EXTERNAL)" , linux-s390@vger.kernel.org Subject: RE: [PATCH] Revert "virtio_pci: Support surprise removal of virtio pci device" In-Reply-To: Organization: "Red Hat GmbH, Sitz: Werner-von-Siemens-Ring 12, D-85630 Grasbrunn, Handelsregister: Amtsgericht =?utf-8?Q?M=C3=BCnchen=2C?= HRB 153243, =?utf-8?Q?Gesch=C3=A4ftsf=C3=BChrer=3A?= Ryan Barnhart, Charles Cachera, Avril Crosse O'Flaherty" References: <20250822091706.21170-1-parav@nvidia.com> <20250822060839-mutt-send-email-mst@kernel.org> <20250822090249-mutt-send-email-mst@kernel.org> <20250822095225-mutt-send-email-mst@kernel.org> <20250824102947-mutt-send-email-mst@kernel.org> <20250827061537-mutt-send-email-mst@kernel.org> <87frdddmni.fsf@redhat.com> User-Agent: Notmuch/0.38.3 (https://notmuchmail.org) Date: Thu, 28 Aug 2025 14:16:28 +0200 Message-ID: <87cy8fej4z.fsf@redhat.com> Precedence: bulk X-Mailing-List: stable@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.4 On Thu, Aug 28 2025, Parav Pandit wrote: >> From: Cornelia Huck >> Sent: 27 August 2025 05:04 PM >> >> On Wed, Aug 27 2025, "Michael S. Tsirkin" wrote: >> >> > On Tue, Aug 26, 2025 at 06:52:03PM +0000, Parav Pandit wrote: >> >> > What I do not understand, is what good does the revert do. Sorry. >> >> > >> >> Let me explain. >> >> It prevents the issue of vblk requests being stuck due to broken VQ. >> >> It prevents the vnet driver start_xmit() to be not stuck on skb completions. >> > >> > This is the part I don't get. In what scenario, before 43bb40c5b9265 >> > start_xmit is not stuck, but after 43bb40c5b9265 it is stuck? >> > >> > Once the device is gone, it is not using any buffers at all. >> >> What I also don't understand: virtio-ccw does exactly the same thing >> (virtio_break_device(), added in 2014), and it supports surprise removal >> _only_, yet I don't remember seeing bug reports? > > I suspect that stress testing may not have happened for ccw with active vblk Ios and outstanding transmit pkt and cvq commands. > Hard to say as we don't have ccw hw or systems. cc:ing linux-s390 list. I'd be surprised if nobody ever tested surprise removal on a loaded system in the last 11 years.