Received: by 2002:ab2:69cc:0:b0:1f4:be93:e15a with SMTP id n12csp832415lqp; Sun, 14 Apr 2024 01:21:19 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCXQFO6fRJcWLwbAVqQPq6dUapm00xUZSwVhNimJTVA4tJ0HLUeedj+qtfAwBErKJKoAsjWPEtB2Xyy0/9BfhJF/zzDNo1syn43b6Dch/A== X-Google-Smtp-Source: AGHT+IHw/N0eBYp57iQjNvsZyuXYiJ9G8393oCkRpL83UkRlLnWKHY/bQJvCbIzXUhqNgtf5F5F9 X-Received: by 2002:a17:90a:d243:b0:2a5:cf58:ad03 with SMTP id o3-20020a17090ad24300b002a5cf58ad03mr6860923pjw.37.1713082879534; Sun, 14 Apr 2024 01:21:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1713082879; cv=pass; d=google.com; s=arc-20160816; b=mu/ZG/B2bKnjhwN66CzNQu3UX7VnVILUT0VWj7lJNelwS8JEnNm2gTqmLEXE9onnd7 atMMWuEZerhMPdiISl75g2g25XC/P+Pq2/de0q2I6oydQZvhwmavyGOzDCkxEfO93BiM dPBaEOjl337RFlV+u9O1nrApwj9RHx3yEiyoVY+1W1q0+EKClppfG1VTZfWNDCXcEdf6 CNBAzfcOrMKTjZ0QzT/U1qnEaPjEizOO7UW6Z+djnfphhDUT9Tv2kcnqH0F4x/yST5c5 VgI4PGKAlipkN4yJKfb5Rehw75SLPQcTGI+INxRIY9BtJk2eu19pNh3NofPr9Bh5Cvty zLZQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-disposition:mime-version:list-unsubscribe:list-subscribe :list-id:precedence:message-id:subject:cc:to:from:date :dkim-signature; bh=scFFEffqql5VQw/Qv/aXLLxw/eS8TS+7oq2PNwfkz2I=; fh=FQ5TRZ1+G5uryI0q2Io3f9Ervin9R+8Q2gfdsI5tubs=; b=x3xSY8J5e2ds8/X9PZkPZmly4rlvO+raqzOv9u5Vf7L5p8hrb3Ztlf35+WDsuvPPYT atH+qq9QVQrPJESIMRBrWd38TDhG3zjq3uAmaJR1JQW/U8Wb7GHQ3O45hqYuQoUotY7D wW7GXytp84qeI2EYCX7TjggmRAdf/4mHJ2vpiptJigzlPCeah6XY9LizWytn90lkQI0Q uq1edyfwA1RxDtdLM+G9/kDnnJCfE0spFE+Id71q1depWu7ObfmeSgxQTwuZuATGXmtZ IBIvLle5nsH5DQeWrPhHww69ohrjOuED7w0QYRNPp1voI2Z4nBWNUOKlGmPXJ5iMj1sw kY2Q==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LkCO+Gnx; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-144042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144042-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id e22-20020a17090a119600b002a2950bb99csi8314833pja.84.2024.04.14.01.21.18 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 01:21:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-144042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=LkCO+Gnx; arc=pass (i=1 spf=pass spfdomain=redhat.com dkim=pass dkdomain=redhat.com dmarc=pass fromdomain=redhat.com); spf=pass (google.com: domain of linux-kernel+bounces-144042-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-144042-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 6514AB218F6 for ; Sun, 14 Apr 2024 08:21:16 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C14C023769; Sun, 14 Apr 2024 08:20:55 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LkCO+Gnx" 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 50F0C2263E for ; Sun, 14 Apr 2024 08:20:53 +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=1713082854; cv=none; b=Yy9HTGQLTw3w2NigiAWsL6PONuFYdnKxyxHwLrW4wfUs0GN/aJJ5dXpSkVO862Vp3E4g6xAfuuwiHy/hJotRz0Ir3kWMAT6OK8zqa7Zk7DAzPOCmmAnaPOVPcJbBFHsX62iAD5s8CBZjbEy0+Q35DtgUEW6QoGUG3GdsZJDIOWQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713082854; c=relaxed/simple; bh=n2KAAD78OMxGo0jZELGn7CmgUzJxWbOTMafuTjmtr8k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=h58DfJfLvQ3jSY9f0TVPU17B0KhLhanJmFzk81XLSp6F8/9NCfjnXxauMKtgAl/r5f/xiPdj7EpoIEbkss0f+GcjkFEZ4SQ5PDOO57QzTu7ouuMzYoFbh0+gFg2bho/eMzx28T4HxgBVHpoN/KhO38uaoeC97BQVLpcNaphIHdQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none 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=LkCO+Gnx; arc=none smtp.client-ip=170.10.133.124 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713082852; 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; bh=scFFEffqql5VQw/Qv/aXLLxw/eS8TS+7oq2PNwfkz2I=; b=LkCO+GnxhD/lBfTHmSvgQwbFTBOnJ+qZ+bFSI2yN1hlCrcDBgq8XTtSlMnSP+F43n+vuvI P57J+eZZf1SzUho+kO9WpA8ZqVyzPJ5SvCWDEzr9qRUPbbJAKIT/ycRL4ArRv2vfGr35SF 4y16rCA2eBqzohWbUu6FcwP/2Sb4pNk= Received: from mail-wr1-f70.google.com (mail-wr1-f70.google.com [209.85.221.70]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-252-N4ZEFc8uPHWx_IzmPfURJQ-1; Sun, 14 Apr 2024 04:20:50 -0400 X-MC-Unique: N4ZEFc8uPHWx_IzmPfURJQ-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-343d02b62ddso1512369f8f.1 for ; Sun, 14 Apr 2024 01:20:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1713082849; x=1713687649; h=content-disposition:mime-version:message-id:subject:cc:to:from:date :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=scFFEffqql5VQw/Qv/aXLLxw/eS8TS+7oq2PNwfkz2I=; b=JV8TpRBMUnZLpPvhJbRcwGa0TsJKIEVUqnPM1ugE20fDLaRLYqIaHbELE0QY0K+ygZ PoHon7AbB1q95PXSiU1tSk3XFf0SlFHY0WeiGeGfxEH+yyDvfQErPKd6NFcFOdjH3cy3 OCVYdTYz7qZ+b4keqdVC/czHCxy0vSw7goGOkwIT9336gqMtiDe4m/4A9VDR/4+h+P3A VrtLxBQv/O5ViKUQA8UKdfSp9cLL9L7GMNV4x2KbUDu3OiJ035z1A8CkhG21y4+Knre+ 1VRA40UE4AYcuLwG87R7Om/qZfCkvCa4Xhh4bpcOTqj3DMjHBfHF4DHLRirK/Yq1sL8o xbLg== X-Forwarded-Encrypted: i=1; AJvYcCUVMBx2KJE8uDq3pWEoXqxRudl/dt0Gdo/yeTNPWRDaP32cGRRO7jYNdAdfocFygA+8e/REevZGgXumBMz5rdXEmRBF5Sa4tY7+MNzt X-Gm-Message-State: AOJu0Ywd7MjY9tQGLxC76BNaI9H2IH3BGnIhGcVOygZRN8IOLFTxK6Wd ImyF0ZrFAgcINzRCUDsQEhMiH5fW9J4eCFiY1emRKIYMs5Y1Dq9fAkSWFqr+px0SLsypx3wSFVF V6kzA5FlvdyURN+dkuxZie3ikkfldj4k5iaR/wECR+JaWmAxQzTD2+Rr0IVdbnQ== X-Received: by 2002:a5d:5982:0:b0:343:72d3:8bf9 with SMTP id n2-20020a5d5982000000b0034372d38bf9mr5520276wri.47.1713082848857; Sun, 14 Apr 2024 01:20:48 -0700 (PDT) X-Received: by 2002:a5d:5982:0:b0:343:72d3:8bf9 with SMTP id n2-20020a5d5982000000b0034372d38bf9mr5520260wri.47.1713082848235; Sun, 14 Apr 2024 01:20:48 -0700 (PDT) Received: from redhat.com ([31.187.78.68]) by smtp.gmail.com with ESMTPSA id g13-20020a5d488d000000b00347321735a6sm4416572wrq.66.2024.04.14.01.20.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 14 Apr 2024 01:20:47 -0700 (PDT) Date: Sun, 14 Apr 2024 04:20:47 -0400 From: "Michael S. Tsirkin" To: Linus Torvalds Cc: kvm@vger.kernel.org, virtualization@lists.linux-foundation.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, acme@kernel.org, gshan@redhat.com, jasowang@redhat.com, jie.deng@intel.com, krzysztof.kozlowski@linaro.org, lingshan.zhu@intel.com, mst@redhat.com, namhyung@kernel.org, stable@kernel.org, xianting.tian@linux.alibaba.com, yihyu@redhat.com Subject: [GIT PULL] virtio: bugfixes Message-ID: <20240414042047-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline X-Mutt-Fcc: =sent The following changes since commit fec50db7033ea478773b159e0e2efb135270e3b7: Linux 6.9-rc3 (2024-04-07 13:22:46 -0700) are available in the Git repository at: https://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost.git tags/for_linus for you to fetch changes up to 76f408535aab39c33e0a1dcada9fba5631c65595: vhost: correct misleading printing information (2024-04-08 04:11:04 -0400) ---------------------------------------------------------------- virtio: bugfixes Some small, obvious (in hindsight) bugfixes: - new ioctl in vhost-vdpa has a wrong # - not too late to fix - vhost has apparently been lacking an smp_rmb() - due to code duplication :( The duplication will be fixed in the next merge cycle, this is a minimal fix. - an error message in vhost talks about guest moving used index - which of course never happens, guest only ever moves the available index. - i2c-virtio didn't set the driver owner so it did not get refcounted correctly. Signed-off-by: Michael S. Tsirkin ---------------------------------------------------------------- Gavin Shan (2): vhost: Add smp_rmb() in vhost_vq_avail_empty() vhost: Add smp_rmb() in vhost_enable_notify() Krzysztof Kozlowski (1): virtio: store owner from modules with register_virtio_driver() Michael S. Tsirkin (1): vhost-vdpa: change ioctl # for VDPA_GET_VRING_SIZE Xianting Tian (1): vhost: correct misleading printing information .../driver-api/virtio/writing_virtio_drivers.rst | 1 - drivers/vhost/vhost.c | 30 ++++++++++++++++++---- drivers/virtio/virtio.c | 6 +++-- include/linux/virtio.h | 7 +++-- include/uapi/linux/vhost.h | 15 ++++++----- 5 files changed, 42 insertions(+), 17 deletions(-)