From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f201.google.com (mail-pg1-f201.google.com [209.85.215.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 7C45A3F5BE7 for ; Mon, 6 Jul 2026 21:12:56 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783372378; cv=none; b=hSfFwOP+Q1yp+Bfe4Epas6M6M9LKZXhgwUGntls0RYU41vT7H42VPnIEKfmAQGYz0Qb79EhWthUfY8bQu6ldGfq8x1k2i6lhmCO6kEjCqBw8JGWrq0rLr4BlYO+iNbwpq2vgzIFugP5s0PTXu89v2jsSfXBvpVW0SpyEEi6bwAA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1783372378; c=relaxed/simple; bh=pmu2Ns+u7j3MrvpRzE4vBrZuDK2pA+O79byFKdV4S24=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=a9kWnp5mvmRYgPY2fjKs3h6GXIaVcK9Glfl+6Z3gyjyoO0t2GRJeuNxqChpIBW98eJjYZHXgTWT3aaFrSCGx7XRouDEkMjxORUl9QBxkvbw8oB5VNKThqo9kmrjwFTS/kLB0Gz1ESXkEe3zgnzGfKv0bMjnmKrag2jpuYJzQ8y4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=bw+WRFlM; arc=none smtp.client-ip=209.85.215.201 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="bw+WRFlM" Received: by mail-pg1-f201.google.com with SMTP id 41be03b00d2f7-c88e0d11a3fso2408913a12.0 for ; Mon, 06 Jul 2026 14:12:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1783372376; x=1783977176; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=7eGtWkkyAP+CX1fJ/+ZRWJr9u4Vfu7xwsEfOdR5rCGU=; b=bw+WRFlML1p3conawCJBm4Dl2JMJnF6Z9vLRy3QgwBv5ufs/IDLb+GH/cCnutkiSb0 RFknGWJMl/lzn83Xw5yYHre1009HlOPgurdZsE1QADiuGoy+IvldLGtjR5iIr2PIH3c/ h6rv2LyaqAu497ELhogixb2VSKBosMLAtkvswOyBYWVr7bG1LaCAUIWB0Z6MKhJNIo18 OZ86fh9TvsA57LWng1eeT6pxlViETs0rkXZfwEMx1RmbTjJVfd7EvJLoRHaR9uq9GRU0 gcUmrAHdZxtH/NSxjPQjkOB4dWkAOiPMW9xzF+sag/gJWfqVe+Twaw2xLQw4UcfLyfNy Zzmw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1783372376; x=1783977176; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to:content-type; bh=7eGtWkkyAP+CX1fJ/+ZRWJr9u4Vfu7xwsEfOdR5rCGU=; b=DA9EaibKfjCciKP/MicSwCEfIPgw48N+tX1gM+gQxQfL3T2UqvJpz6/i9AhFJ7gMin hGPq+Z1VBak56OHDZ3frFvB5uIDzUu8vm/LhdRAU6m/etmN57NWHILo/e1b91WISqexk oFNpUIg3fIO7r3wV6dZ9C6pKAMf0w50XEt0nezym9xLVvb8/oN1rG+HH803mv9MNGwaX MFcTuP+c5G+E3VeVzVaj1SXS2gNYUkCOBJGdClxDg+l7OduIRQBa044uW7bo7OyeIeAS tLTitpTMW7kG1dr+TnxiVJQ10xGhozukZodNd8f/OTA6BdJeE5ReHQ7nynAtClcRJBUI Xk4g== X-Forwarded-Encrypted: i=1; AHgh+RoXEjIC4erj+rbgr1kyq/ozdP2thrTYG7Z2u9rhVdYpB7t19CvfR7GViap3O1e+ejALgZjyZxfWaufTJVk=@vger.kernel.org X-Gm-Message-State: AOJu0YxRv+mwm6Zd7sDF7LVOMRXQpgEMmvWUkrozV231rk4uh0AE3frc 5wFhiDm6lsMV9Qg6BapD5kUK3cplsyUaenBZ5hBm0HKDtDC4z7lflu4iX+afUe8iBy7h08OkpCw C3S5l4w== X-Received: from plth5.prod.google.com ([2002:a17:902:7045:b0:2c8:903:9ae7]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:903:19cf:b0:2ca:bf8e:35fe with SMTP id d9443c01a7336-2ccbe611af8mr26055545ad.16.1783372375629; Mon, 06 Jul 2026 14:12:55 -0700 (PDT) Date: Mon, 6 Jul 2026 14:12:55 -0700 In-Reply-To: <20260706195313.GE118978@ziepe.ca> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260706085229.979525-1-seiden@linux.ibm.com> <20260706085229.979525-2-seiden@linux.ibm.com> <20260706195313.GE118978@ziepe.ca> Message-ID: Subject: Re: [PATCH v4 01/27] VFIO: take reference to the KVM module From: Sean Christopherson To: Jason Gunthorpe Cc: Steffen Eiden , kvm@vger.kernel.org, kvmarm@lists.linux.dev, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, Alexander Gordeev , Andreas Grapentin , Arnd Bergmann , Catalin Marinas , Christian Borntraeger , Claudio Imbrenda , David Hildenbrand , Friedrich Welter , Gautam Gala , Hariharan Mari , Heiko Carstens , Hendrik Brueckner , Ilya Leoshkevich , Janosch Frank , Joey Gouly , Marc Zyngier , Nico Boehr , Nina Schoetterl-Glausch , Oliver Upton , Paolo Bonzini , Suzuki K Poulose , Sven Schnelle , Ulrich Weigand , Vasily Gorbik , Will Deacon , Zenghui Yu Content-Type: text/plain; charset="us-ascii" On Mon, Jul 06, 2026, Jason Gunthorpe wrote: > On Mon, Jul 06, 2026 at 10:52:01AM +0200, Steffen Eiden wrote: > > From: Paolo Bonzini > > > > VFIO is implicitly taking a reference to the KVM module between > > vfio_device_get_kvm_safe and vfio_device_put_kvm, thanks to > > symbol_get and symbol_put. > > I thought we weren't doing this approach? Use the struct file as the > kvm handle. I thought I saw patches doing that already? +1, my joking-but-serious NAK stands. https://lore.kernel.org/all/adf29Rn7q9Db0hxc@google.com