From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-qk2-f12.google.com (mail-qk2-f12.google.com [74.125.230.204]) (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 B6124501F3E for ; Fri, 18 Sep 2026 15:38:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=74.125.230.204 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789745896; cv=none; b=FIwscLjwcdMXPWgdEGiLIsU7vg3ibEKky9eD1/IYQhtyoKkJP/3PZzcwVi6uHutrLVEBt1c3MzrmsyxkxX0GwbAVEVHG7b/8HxejHfhEqvxDGaUMCMKOfMh09Ld1cS2Vqvtv/SJezu6LuqWtm9348/VTICybpFbjGpsNXkrNc0k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789745896; c=relaxed/simple; bh=NKTBErfeYAFwMh88Ax3YpWdTdtUhF2krkTjr82UCsCY=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ppjq/JRm8nP8UbK9Cn1Y2t192hFhOwpEXlmQMKZBkI/bB54uVA5/+OxahqZvqIWBPPZ0uoqoawwwN+zxz8cjDVurLDFBsLxzr/f/fBoxhpHr6XqHFrQ4e2LTog31tz0wuIaR49FSVcRJOOSzvYZ6f5VSWz5heZ7dfmbToZtJnUA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca; spf=pass smtp.mailfrom=ziepe.ca; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b=HvIftuR2; arc=none smtp.client-ip=74.125.230.204 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ziepe.ca Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=ziepe.ca header.i=@ziepe.ca header.b="HvIftuR2" Received: by mail-qk2-f12.google.com with SMTP id af79cd13be357-93910a0cefaso79917485a.2 for ; Fri, 18 Sep 2026 08:38:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ziepe.ca; s=google; t=1789745893; x=1790350693; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=ZPX/IExiJfHeeEYWclzoLImRY6MfSvptPhsoDuS3euk=; b=HvIftuR2XxPVL+HIMJMjzbSSZ6wm21P8hdfAYgWfIAQphUpppET0T6JkIHTWYROW9W 0FBMEofz4OsHm/fR7flABm2uZr1RTBShlUypswwdOV8L2W/77dY2fr52y4jL+hxLX19E Bly42yJbRGsO6T1gsUT3KqM2oYnLMu+ddlCGrKKtOUtD7frXwNHl7+e0kpsttLEfYJJd M8nxxjKn01U7qrBCHanOn6MGdwm+6RRnaF/BKrmzgTnf5O1R3Lt+NanpG/0tvZfwvJI1 WQysTrpfYLsjfayHWIdLQDljz26GLI4s+usmTThAhxKvBbc8Z2QlHqWJ6nqvZV+x4Mus FEGw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1789745893; x=1790350693; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=ZPX/IExiJfHeeEYWclzoLImRY6MfSvptPhsoDuS3euk=; b=PPyNLwrgJxmEXk/6r11/dtiIwf3mpoU+y1Gm00XrcjRFtZ4d8ajyFCM+I0VCVECfea M28d9wVJB16ENugbF917s7tQ0U/ALVOKkCi6KBCHZ8m1vVKnRJoS0ENgHlwgGpS+fYqm 18+xOIZou/3oV0oNhJaficapYviv+tLqB0DGeXfTR4Oato0GweAlHTJ8x//iWh1lZoU2 /v7PejgvJ4/7CIBfCbnjcQhVZMqCXpWl7b5DMkuv4ptXjVKIAyuF2TyW2SBHJwW7dJlP RELvmVGzLIZkhWn8v4mavDH/bco+EC+qCjWZgbYSzZpnYweUyZjs6M4kyVl3tCIeWb4r 2f7g== X-Forwarded-Encrypted: i=1; AKwUvByJpTP6P9phckLXqNdd94qd4mVxZwGaOrfv1kYAICT+8TsPw1K/ENBlOwnf81RBHzkFMn5iIYI62EJ1@vger.kernel.org X-Gm-Message-State: AFuF++nrVlsqEBuMGMXKMqhmKyT9Gskepc5A4Q+0eCKh3o8h5sifsV7s QcV8W+sbJesZA7mbmAuEEh/wtrlOpViQWbbxozyhqfGNFiOZTsvmkB1nnFvr1YC1X+A= X-Gm-Gg: AYBFou365vpjXjS0M3SNl0auRNWl7fmk5uP+0IEbo6174XkTuuKZ4XNmXiOx0f1brgf qab+Q7us1fVGpI2SQ0H1eVrar8mXDFefnOUJ3LubleVvpasS6cBHRMHSBIwBx3YrKGiBawUcoTA fAUg56rn1wmV/QIy7LLxfUPNzC0dt/l6Dw5DJ177Z6MzeiiLUuIrzKrCyQPV1R3oV7fe2YJIb4i vG3KjEoZhN0I1tZoUaheuuNKd0MyVJmfpkgU+DZG8ENJrCZGKrCTSRPlhf13KasC935Z+nPE4M/ lSHDDN0oO2MV3A/eY58foWnsuUGyJc9ue6MXDeajiupSWJQD/dm5EwyNtukOKyd/pW1HJD7+fN5 zbtKNA4YYjsd6jk74FpOvfWZb5obkhmajRO8zQOoKpE1Y2PKruD2LfViH7+8JflxNPEgISKof89 5kbtNfjAD713EX2AAG7xosOKplUtmPwd5P5+6A7T5patGxcQfm0hE0GTe8Gpu/w/g10/kGqpAbn 3aNw0NxO/UEhHdmtMmkYlutvHwpeXb0hCii75XUOsm2FsIaOddYbSsiPVdUH8S4+zc= X-Received: by 2002:a05:620a:6493:b0:93b:d7a2:83d3 with SMTP id af79cd13be357-93bdca2333amr399972385a.66.1789745893495; Fri, 18 Sep 2026 08:38:13 -0700 (PDT) Received: from ziepe.ca (hlfxns010zw-159-2-239-150.pppoe-dynamic.high-speed.ns.bellaliant.net. [159.2.239.150]) by smtp.gmail.com with ESMTPSA id af79cd13be357-93be0e508a2sm165680285a.11.2026.09.18.08.38.12 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Sep 2026 08:38:12 -0700 (PDT) Received: from jgg by wakko with local (Exim 4.97) (envelope-from ) id 1x7afD-00000001ssc-3a8b; Fri, 18 Sep 2026 12:38:11 -0300 Date: Fri, 18 Sep 2026 12:38:11 -0300 From: Jason Gunthorpe To: Steffen Eiden Cc: Sean Christopherson , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-s390@vger.kernel.org, x86@kernel.org, Alex Williamson , Alexander Gordeev , Andreas Grapentin , Borislav Petkov , Christian Borntraeger , Claudio Imbrenda , Dave Hansen , Eric Farman , Farhan Ali , "H. Peter Anvin" , Halil Pasic , Harald Freudenberger , Heiko Carstens , Holger Dengler , Ingo Molnar , Janosch Frank , Jason Herne , Matthew Rosato , Paolo Bonzini , Sven Schnelle , Thomas Gleixner , Tony Krowiak , Vasily Gorbik Subject: Re: [PATCH v2] vfio: Use file-based reference counting for KVM Message-ID: <20260918153811.GE11599@ziepe.ca> References: <20260903-vfio-v2-1-ef4cd4190ae7@linux.ibm.com> <20260918134543.84754-B-seiden@linux.ibm.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20260918134543.84754-B-seiden@linux.ibm.com> On Fri, Sep 18, 2026 at 03:45:43PM +0200, Steffen Eiden wrote: > I sent the changes incorporated in the main series[1] in 5 patches: > > KVM: Introduce file_to_kvm_() infrastructure - adds the macros > KVM: Add file back-pointer to struct kvm - adds the file field > KVM: x86: Use file_to_kvm_x86() in SEV > KVM/vfio: Use file-based reference counting for KVM - the swotch in one go > KVM: Restrict kvm_get_kvm/kvm_put_kvm export to internal KVM modules > > I needed to do the switch in one go (i.e. merge 5->3) otherwhise > there would be conflicts. It seems to me many people want this vfio conversion, can it try to go this cycle? IDK if it can meet that linked to the s390 stuff? Jason