From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f73.google.com (mail-pj1-f73.google.com [209.85.216.73]) (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 44B6F1EB48 for ; Mon, 24 Jun 2024 15:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.73 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719243141; cv=none; b=NFgQyNreWqrhUwfB1cq+VYQa/lSHqOKjFJp9U3k06/UAgkJ1QHtWS8/avzF2KFNYxbPC2Fh6/5bdV4Wo4YwOlTwQwQVqdsqfx54h41sWQzemCvhfy5nvBlie63tdWtJBsnhhUzUpPIsFdyqe/WBk4AYJyqpF0Wxu4T+2SrpnFnY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719243141; c=relaxed/simple; bh=WawAVsLJ2wrVp06E1yLAnPzm2a05JueYQ9ExxNigc3k=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=Ogl3zIZu4G8khwkYMZcjZfpORzx8DlsaizXnm+uXglf6q2pf0yFUOD2LDUDTtTWXuqqM84qvZpUBYcCURK7dZ0DV0s7G+WZlY+ij9gb2O8AUULjC4mU5JewMfl1HdgIuWCZb+inxFClPUcs+P/Am0BO77V8K8YMBGcS8vIkqgoc= 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=VNJO/mQk; arc=none smtp.client-ip=209.85.216.73 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="VNJO/mQk" Received: by mail-pj1-f73.google.com with SMTP id 98e67ed59e1d1-2c8066074b5so2847275a91.1 for ; Mon, 24 Jun 2024 08:32:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1719243140; x=1719847940; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:from:subject:message-id:references :mime-version:in-reply-to:date:from:to:cc:subject:date:message-id :reply-to; bh=WawAVsLJ2wrVp06E1yLAnPzm2a05JueYQ9ExxNigc3k=; b=VNJO/mQk+GxT8wD6aDQAXS8zflMK9Ro6iIcPDqtNmNju/Uve6L8KxkevvPePWzhIKh Tw6zdF5TkfVl61LpzJNykotarPm3UBBUnbhjVrg7G9mLOvQLmerbGW5lBtqUTiQ5EAyI Cx4geUZXKTYDAQUWcRdMZxaimKeNiGM2Pnoo+TwnDzDIyzuRp0aWLQfnyHli7sA+9kIT GKlJGys/i1FtUoo5zSkW63wND6PNQiq1V7EJWxrPLkvfeDGvnxVfaCTdNoqFEBKAt95w GubCAPj58lvBOJPkRb2SFuxzqnhfIqd3CJ/bKd5vk6vnPTFTTOvGFRK2CkJHetjdAUY7 ox3Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719243140; x=1719847940; h=content-transfer-encoding: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; bh=WawAVsLJ2wrVp06E1yLAnPzm2a05JueYQ9ExxNigc3k=; b=T0p/fX3T+FGrN7cXem8VrBKPzHScB7dzSf3i+MNMG5Ny13A6SztdwiMiMJXVT2cpNF 3vLaaSuIple/iVoqEyZNpMy621s5Afw+x+uF+ek/tiMCxS8CKxTtTQVWBdTYkgGz9TYF EQbwb9yio4ZVACQaWkTs8syuE41RznUDF+nNRKTGQJgvpbrmWBUpdNOjtZoxeTWnj2Vq t1mnOH19ojs9y7DO8hsnx2sjWmls9sm4JlQ2cg15z+w8Zw7fn21+2u3SZnukXI8g0LFW zpp4CfCtS9PQ/vwkO5Jui61D918rxFyZcyvM5J7cnwykr3LjobqKzFkrVv23BUlsw11q GPcA== X-Forwarded-Encrypted: i=1; AJvYcCX4ryU09Tzd6KSMX5bUS8iV24t9AbAyk9r7TGcqX7wbau6HYGbYFE6ENJ40G97EHevJKwhpQ0BQmst54Ak835hLfuWIM4F49Ia/SQ== X-Gm-Message-State: AOJu0YzmfDEcJmeTwtXrXoQBt4yVXnvR5TLSDOqupDFEjC7X+AD/Fo0I +UliL6L2+QfCzPRxW/59gSp1QjUc6AZOU7U6WvB/kgfdP3YW/IVjOytmudL45nYvRWCGhq26Bnq pzA== X-Google-Smtp-Source: AGHT+IEtazAEW7Z9YwGGcKXL++Dckd0kAEwC6pBQKn1v/nxqOqzOdwWoLb56caKLmrQdFmUesETPkh89cIs= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:2ecc:b0:2c6:d13f:3f9e with SMTP id 98e67ed59e1d1-2c8489b9ed7mr123696a91.1.1719243139430; Mon, 24 Jun 2024 08:32:19 -0700 (PDT) Date: Mon, 24 Jun 2024 08:32:18 -0700 In-Reply-To: <504fa0a7264d4762afda2f13c3525ce5@huawei.com> Precedence: bulk X-Mailing-List: linux-s390@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20230916003118.2540661-1-seanjc@google.com> <504fa0a7264d4762afda2f13c3525ce5@huawei.com> Message-ID: Subject: Re: [PATCH 00/26] KVM: vfio: Hide KVM internals from others From: Sean Christopherson To: Shameerali Kolothum Thodi Cc: Catalin Marinas , Will Deacon , Marc Zyngier , Oliver Upton , Huacai Chen , Michael Ellerman , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Heiko Carstens , Vasily Gorbik , Alexander Gordeev , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , Thomas Gleixner , Ingo Molnar , Borislav Petkov , Dave Hansen , "x86@kernel.org" , Peter Zijlstra , Arnaldo Carvalho de Melo , Paolo Bonzini , Tony Krowiak , Halil Pasic , Jason Herne , Harald Freudenberger , Alex Williamson , Andy Lutomirski , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.linux.dev" , "linux-mips@vger.kernel.org" , "kvm@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "kvm-riscv@lists.infradead.org" , "linux-riscv@lists.infradead.org" , "linux-s390@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linux-perf-users@vger.kernel.org" , Anish Ghulati , Venkatesh Srinivas , Andrew Thornton Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable On Thu, Jun 20, 2024, Shameerali Kolothum Thodi wrote: > > This is a borderline RFC series to hide KVM's internals from the rest o= f > > the kernel, where "internals" means data structures, enums, #defines, > > APIs, etc. that are intended to be KVM-only, but are exposed everywhere > > due to kvm_host.h (and other headers) living in the global include path= s. > > Hi Sean, >=20 > Just thought of checking with you on this series. Do you have plans to re= vive this > series? Yep! > The reason I am asking is, on ARM64/KVM side we do have a requirement > to share the KVM VMID with SMMUV3. Please see the RFC I sent out earlier = this > year[1]. The series basically provides a way for KVM to pin a VMID and al= so > associates an iommufd ctx with a struct kvm * to retrieve that VMID.=20 >=20 > As mentioned above, some of the patches in this series(especially 1-4 & 6= ) that > does the VFIO cleanups and dropping CONFIG_KVM_VFIO looks very straightfo= rward > and useful. I am thinking of including those when I re-spin my RFC series= , if > that=E2=80=99s ok. Please don't include them, as the patch they build towards (patch 5) is bug= gy[*], and I am fairly certain that at least some of the patches will change signi= ficantly. I expect to re-start working on the series in ~2 weeks, and am planning on = actively pushing the series (i.e. not ignoring it for months on end). [*] https://lore.kernel.org/all/ZWp_q1w01NCZi8KX@google.com > Please let me know your thoughts. > > [1]. https://lore.kernel.org/linux-iommu/20240209115824.GA2922446@myrica= =20