From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pj1-f74.google.com (mail-pj1-f74.google.com [209.85.216.74]) (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 4645E14264C for ; Mon, 24 Jun 2024 15:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.216.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719243141; cv=none; b=arOnnAOzLDzuPOws0sBPbVtf9ogwW0mqEDxC4mFHmYIyoEZ/VhL5GTSMFsmXg9yK5Ahi3jITcf6J6JXaaoC8fIIgEne4KnsNJ/PyE+fgJiyVj5zwT/R+Pv9LgGzhVw0N47FejA94s4l77XUWL5SipynHFYyBd1mbjXzPKG76vAk= 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=TvMM90c1; arc=none smtp.client-ip=209.85.216.74 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="TvMM90c1" Received: by mail-pj1-f74.google.com with SMTP id 98e67ed59e1d1-2c7d2380cb8so3818676a91.0 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=1719243139; x=1719847939; 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=TvMM90c1T3lspcTvhf+MQif0P69AkOpxsXtHy7HTSgIH9maV1MPeh2YDFFuA4PJlHN ai4xDI1jKy71w3xqzwfzOSAgQ+Bvx6pq8iZxwvaZGSIGqI/TblQ9UuNskTMk+XzvP7lr uHV+N5nrSunIhubTM5DbLeYy4uMARSZFPbpgjfKQWaj8VL2b2z8weLOszTdM5rT+B16j iEuvsBXCLFDx+bPinW3LPVC8V1KSf3aryN2vmDCja/TrIqkfMxYwW5rPauEKSqbLso1T eSe98bnDQPcI41ZN5p28m2Pa4rzIZm2EtzqinMFi1Xt1RJDjbyXhAug66LPZnMjmBNDb +7wg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1719243139; x=1719847939; 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=CFkGIme1j7xKfstsHv6wgtg4f8EFQ4Djh7hET41hycGCbYmCz26wc6qIcqsdpH/mPd jjINwPpNE2UPRbzfHNt5uhWu8ETUVytKEckyhczGtgllNpFqXWylHPg8vnYziusendhT rgkCFutGhv5SEuOe7RAvVFIfk6+BGm3j2LgK1ZOvudJ/EJxA4UgzdXdpguawSxjR5Y5c rRELtvwJuXSa9KD0MU8RSUJsxWGvKyK+wlfcs7dg2wbUW2p8OtBMwPAGealn5osbWQ61 O6wwErKdtAICD5HdQ4BH28vSn/qDjJz4C61oi77oWQshWoaB2foeEaeQVM+OwwW598Jm z08w== X-Forwarded-Encrypted: i=1; AJvYcCWZRS6cL49LCWe+u2dOreo1Qb2t3gJN2WuAU7FdStYZ/ZUECYlgOUstUzXYQCrbfy1NLl3q/4Wu/o8S15ljHTYjMyLax6ff1XLTAz7jYlKDHw== X-Gm-Message-State: AOJu0YxO246k8+l1h+eCuDTbVO4Z8ZwtCWOQagBtSadmMpZRXQv+YGaE hkF5ULpuEHzstMH6ak/WcN7+iY+FdiBY3364MbeDuwWZGQpLq5DiFFF/ZkXRl+78aL8GnoUDrK/ nag== 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-perf-users@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