From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (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 735B819B5A7 for ; Mon, 24 Jun 2024 15:32:20 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1719243141; cv=none; b=EffggqM7T8XdIhPra/ssHV3Chr3k6K0TM2NjMyWavrA/BpA7NuCDqSKmFy+NNUc91RhIxCeSDe3FtzKCGW/ZW968pY/qNy0KzQP5bH8d318t+jUNjnX5RJeC6WHEgzN7NASLtTm06pqEHh2zAvS+LmHj+YvBDLaxxtJF3t4Xr6k= 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.215.202 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-pg1-f202.google.com with SMTP id 41be03b00d2f7-6e35e34f9b7so3710510a12.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=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=FfWgHvRkK98Y9YEYbTLBSJnCCZ9mzq7nzlEAPnrFZmAljpo7CHoXb1EngRZpNckHz5 88f5PgqdKTw4H4uFapYoRWMLBDRUOrWb+O8CnbIxyPup8t/64+QwxkGM3x6uZZC7PXjn cV4X6t3zSmJHY/0JHbTAWKgg4oxino1hMU4FF9/W6WWdSv8JdA0yDYOPxjoIOMOIMLMv oPGlJ0UGRd+Q8wEnkZAqX/Prgwl+wRdxB0lgXlRKV1oe5XwmJCytDWtf355VCgX6mzud qG40FX48yek380d0b5HU6Eh+PyQwWe0f5tt4xA7csAiA0tvUHUcDL+ntBYPF1Ot6g+e6 Z5YA== X-Forwarded-Encrypted: i=1; AJvYcCWrONMyF2cT/PP4uRHj0i8UrHyt3bknTb0UlpE4qEN7YS53wvN5/y+Ih4Xfhiox9rfA8pEZmBAFdogQorKWoSYc0Q8QG3L3c76j8A== X-Gm-Message-State: AOJu0YwHNP8zPbQ3N82pOu7AAvY6m9bmVvx7WjVpz+5kb2oxYnA2KIrg oePmdQrf9wzHO9rKUSuPDcd7xD4ERYBnp70Ck4OEmtGf+niFu+zCViWTM6yzffrZjqF4bZU+Ule 7LQ== 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-mips@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