From patchwork Sun Apr 14 08:20:47 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Michael S. Tsirkin" X-Patchwork-Id: 13628929 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.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 BB8E822F03 for ; Sun, 14 Apr 2024 08:20:54 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713082856; cv=none; b=RjHtYa3udGCjMUPDtCZYHuvfUJhiTFRgvtc1pJmtXpJ2eVFjN6rs8DEBDfeto0txIRBHlI/k2aOiFcK7t+Pj6YIPDpevyQwr8vS1oztMDOSW6hvHawgPsI6W3BJbdcohAMWzzGGlwqivVmoi/SpgacadPQOzWe+QYO5s1AbtEH0= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1713082856; c=relaxed/simple; bh=n2KAAD78OMxGo0jZELGn7CmgUzJxWbOTMafuTjmtr8k=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=p98DK0LAoJZtqLMOfIsCCdJwpLP6gPi/a2Dv9+wEHwf4FLU52mYRKADywHJGaEtIrYJ7IFR2pjJDTbO5i7jot0s+Do2FsB1VaqydNUTa9I5gqQYvSbxPYA8ANns3tZiJyGxvJuu/s0sif4jUY1xeQDAAfewGTwKu11yaT9sIe3U= 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=LmRZXQBA; arc=none smtp.client-ip=170.10.129.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 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.b="LmRZXQBA" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1713082853; 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=LmRZXQBAAjQTJFtA5XM5/3gcnwEhkyM8ZhDON19uZVKgs86iTptkbqHem3KXnT7vtRCj9Z w6veZVyjlIx7uCGBVPKclx7oOAU9oTF+B4ol8kNlAEASpvwrvf+FZ7Z2RKyFNHHSZT/Sgg 1TTxm3HwhpjE3j9f50DQ4Ubtieh2izA= 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-637-BjEYly42MyeRqfjv61xu3Q-1; Sun, 14 Apr 2024 04:20:50 -0400 X-MC-Unique: BjEYly42MyeRqfjv61xu3Q-1 Received: by mail-wr1-f70.google.com with SMTP id ffacd0b85a97d-33ec4fb1a83so1301487f8f.2 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=XZxPGjPPaYU9lX2vrP8+6U+EmJZpQvWeoWPVYPzfcbsAxKXM620mnCgKcRK41OtHMC b5dbvY+BZ0ZB6pVgm/0VjGV5ygGOIez9pruJLs8vaReeqUrxMxjoSzakSrl8RKDbbfE4 GGiA+bY9/axY5G2hueEALe53VqEYPRuf6lzBTGHRnUGaAY32Tjsfsw2gCD0trudXa49u 1qlms4GPsZNqyNfyma5UZ5U2xJRQZnLXeb9IH9RJAt9bIm3oAPOBMIr+rTtCWr4ccEyE Oavr9VR8BTybRbZLX9QuID8UL+xhWxykOT+2SOS2hfOgc1yPK1NV8c9jbc3GACOJGtW5 PuoA== X-Forwarded-Encrypted: i=1; AJvYcCV3G9IVQD+0Cl2q8FpVBpsQbAPJ75uqGIcoHmyNlRzoWxClTArRGVhmPo0/0B9zRtFsoe9jnRrKzXza3YPSoUiIeaiKewwv X-Gm-Message-State: AOJu0Yx3pB8V2niM6nscNa5JoG7roPp16NdxIGq/MtEqgLEYp442j76X UkRE6Ig+Jl5pNici+7pcg0jFVEqHb5Fi70nG9heZ04brrRq+p1mr+JEfota3h/htMt3AnmJ6SAj 2ZkLpUXK0veH5ekCr/z/U5AXlADvfHfU5fbCwFzVLVKjPJ3OzgUl2Xw== X-Received: by 2002:a5d:5982:0:b0:343:72d3:8bf9 with SMTP id n2-20020a5d5982000000b0034372d38bf9mr5520284wri.47.1713082848861; Sun, 14 Apr 2024 01:20:48 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGV2guaUDq+KT8qZEYNEDAPvDV9IQkfqcCeSva0EuQiOh6/tEv0M8rQI8Ss1T1bEmXAO0Z4xA== 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: netdev@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 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(-)