Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp330950ybv; Fri, 7 Feb 2020 00:00:12 -0800 (PST) X-Google-Smtp-Source: APXvYqy/v0eSk3SNvSgO0Fm/K/xmKWlLHRZNToA9JTCYvhFxE2N5kx0LIbInsJ2QaKUHkByeE42J X-Received: by 2002:a9d:588d:: with SMTP id x13mr1679699otg.6.1581062412353; Fri, 07 Feb 2020 00:00:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1581062412; cv=none; d=google.com; s=arc-20160816; b=WK2pI7z7gmVI9wnKUcIW3L00/M5PTrlU7XffYxzzo+HoGjx5tCIBALyLyk3JxDGQLw mu0NJEyURjk4TkKy88QWTX8isyxE1tZmYr1Aiy0yYXQIhl78BUaKMoIKE/2DerYIEK6g u2UDNVr6AUxfYzTRXFX0XeRdT3uQ/VYzvhxXNfLD4edFr9WSfNwcthfVULhMcUNWglol oL0l/mXXCZBP88b1JX4UmpmCrUQXh81hfoUF8yp5lfeNZxsGwTf4inBOtU6Wk3So8zmq k8pBOOHZihOfWJwwS/clJcJkXZuS12DdoZzg55+vY0slt6iTUCLgryRp8olOqAtREX/J 4UeQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=HenEqyaWD9A3GA5daQn5LKIiUsd/BikWwsStjqnEW1M=; b=z93rnLUHIlEzi1Tcu/nvkvWJFVx27N13H++rLJWlwsWPuH9d4kisajXzvp6ElfOELG c6mOTCKqTQGCMs5Fd5J4ZMNjxYy9x5++0+8wyfBSkIPZv1CW3NJpt73zEadZeqmUQIne 4QbkNxAiCXCFcJSz2vVUB9CG4ultmr5dBPYYOv6X87TqWephWxeKN8HtcZEuaOwiKnYR tTv1mp9sqcFdmtzR8OKZiWEnRVvvh8vNDvC53eulAcu1PAXLoK/eroWJ05a/r1IEjS3K RPPzmC92QdMUXkrsPH5JZAS4ubwJJO6SVfyu3pcO3AMxu2ngUcAdQ1UYHwBaSa/nXyiX EBLQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z4HSOvs6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id 5si1409734otm.88.2020.02.07.00.00.00; Fri, 07 Feb 2020 00:00:12 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=Z4HSOvs6; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727049AbgBGH6m (ORCPT + 99 others); Fri, 7 Feb 2020 02:58:42 -0500 Received: from us-smtp-delivery-1.mimecast.com ([205.139.110.120]:31254 "EHLO us-smtp-1.mimecast.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726936AbgBGH6m (ORCPT ); Fri, 7 Feb 2020 02:58:42 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1581062320; 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=HenEqyaWD9A3GA5daQn5LKIiUsd/BikWwsStjqnEW1M=; b=Z4HSOvs6k7Lqqs3eFoI5RaYZ7lzopGgOsysKNn2w2LPBwCLqtFb3NxaZRIfOdkUKkWIjLd DNa7T0PLRKzJwfrxkqphRhLyMeT2afBc/hq0lTJAjeO+SnfueuZkQIpbzUc0udhkq4MsJ3 12HIoxU710H6zXaB0X9aWuKrvZXEkNI= Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-198-KccekBmvNbKxsXV2vEzJJw-1; Fri, 07 Feb 2020 02:58:38 -0500 X-MC-Unique: KccekBmvNbKxsXV2vEzJJw-1 Received: by mail-qv1-f72.google.com with SMTP id g6so689946qvp.0 for ; Thu, 06 Feb 2020 23:58:38 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=HenEqyaWD9A3GA5daQn5LKIiUsd/BikWwsStjqnEW1M=; b=tTB39SRQ23ZwuWzseK9cEyDmGg7KY5IORD3Vy3upPyTWVyq/zMp6O2Lfwg8GWfiunX /8tnUwZ+bsUHVdc4t7U56Z7VMuW/w3p6VEkVxGCX5mMjPzw0qXpSpNBeFOX7P61cogV3 nM0JXUMCQiSzRVnrUfGFPaEF5Gnh55cR1gpnprN0+jg6EH1YfKv75bUzcssVQIQRO+dA TdGQ/qNapM4w20U2hQ6OiP4c0/htauKyCvECiWUo88IdFXl1WlP8h6EOsvDbFdqNe7r2 xnqIotX7iOeipkY3bJSUbZFcMglqkPcNjBtzoALwL6kLIiq9Yy2n9ti+jWb1afHJrtDu vyKg== X-Gm-Message-State: APjAAAXlPuQR4tUs+CuP9uRY14EfGk5qV5uNrVqe65OiAugAuu2mD3Bx xdcJeaUzUoW8zzYI7tBfsOAgBnfnPLAR6CSHx4ZGxkAGIra0hMI5zv8Uv2tzZdCRJW8UKKv3ciX Dp32RcZ4rwImxhUh9tpvU48gN X-Received: by 2002:aed:34c1:: with SMTP id x59mr6453458qtd.236.1581062318422; Thu, 06 Feb 2020 23:58:38 -0800 (PST) X-Received: by 2002:aed:34c1:: with SMTP id x59mr6453447qtd.236.1581062318154; Thu, 06 Feb 2020 23:58:38 -0800 (PST) Received: from redhat.com (bzq-79-176-41-183.red.bezeqint.net. [79.176.41.183]) by smtp.gmail.com with ESMTPSA id g77sm906726qke.129.2020.02.06.23.58.34 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 06 Feb 2020 23:58:37 -0800 (PST) Date: Fri, 7 Feb 2020 02:58:32 -0500 From: "Michael S. Tsirkin" To: Christian Borntraeger Cc: eperezma@redhat.com, "virtualization@lists.linux-foundation.org" , Stephen Rothwell , Linux Next Mailing List , "linux-kernel@vger.kernel.org" , kvm list , Halil Pasic , Cornelia Huck Subject: Re: vhost changes (batched) in linux-next after 12/13 trigger random crashes in KVM guests after reboot Message-ID: <20200207025806-mutt-send-email-mst@kernel.org> References: <20200107042401-mutt-send-email-mst@kernel.org> <20200107065434-mutt-send-email-mst@kernel.org> <20200120012724-mutt-send-email-mst@kernel.org> <2a63b15f-8cf5-5868-550c-42e2cfd92c60@de.ibm.com> <1ade56b5-083f-bb6f-d3e0-3ddcf78f4d26@de.ibm.com> <20200206171349-mutt-send-email-mst@kernel.org> <5c860fa1-cef5-b389-4ebf-99a62afa0fe8@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <5c860fa1-cef5-b389-4ebf-99a62afa0fe8@de.ibm.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 07, 2020 at 08:47:14AM +0100, Christian Borntraeger wrote: > Also adding Cornelia. > > > On 06.02.20 23:17, Michael S. Tsirkin wrote: > > On Thu, Feb 06, 2020 at 04:12:21PM +0100, Christian Borntraeger wrote: > >> > >> > >> On 06.02.20 15:22, eperezma@redhat.com wrote: > >>> Hi Christian. > >>> > >>> Could you try this patch on top of ("38ced0208491 vhost: use batched version by default")? > >>> > >>> It will not solve your first random crash but it should help with the lost of network connectivity. > >>> > >>> Please let me know how does it goes. > >> > >> > >> 38ced0208491 + this seem to be ok. > >> > >> Not sure if you can make out anything of this (and the previous git bisect log) > > > > Yes it does - that this is just bad split-up of patches, and there's > > still a real bug that caused worse crashes :) > > > > So I just pushed batch-v4. > > I expect that will fail, and bisect to give us > > vhost: batching fetches > > Can you try that please? > > > > yes. > > eccb852f1fe6bede630e2e4f1a121a81e34354ab is the first bad commit > commit eccb852f1fe6bede630e2e4f1a121a81e34354ab > Author: Michael S. Tsirkin > Date: Mon Oct 7 06:11:18 2019 -0400 > > vhost: batching fetches > > With this patch applied, new and old code perform identically. > > Lots of extra optimizations are now possible, e.g. > we can fetch multiple heads with copy_from/to_user now. > We can get rid of maintaining the log array. Etc etc. > > Signed-off-by: Michael S. Tsirkin > > drivers/vhost/test.c | 2 +- > drivers/vhost/vhost.c | 39 ++++++++++++++++++++++++++++++++++----- > drivers/vhost/vhost.h | 4 +++- > 3 files changed, 38 insertions(+), 7 deletions(-) > And the symptom is still the same - random crashes after a bit of traffic, right? > > >