From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pl1-f201.google.com (mail-pl1-f201.google.com [209.85.214.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 634D2381AEC for ; Fri, 5 Jun 2026 20:36:09 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.214.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780691771; cv=none; b=kA72MpjZ7mHCJHAoYS4LHYUff7BgwCWzigKFJqRLqejRUxnk9PEBsaMwjGsB3eddyolm40MIinFjgqI6tlZV7VjleCCz+CQho0UssxqgLgGLiIEJtzZ45mJyy7Avh2b9cjw5FXc1aUfUafHIYPIHTG1aiQPO156GQMH3QqkPeOA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1780691771; c=relaxed/simple; bh=LRXPOlIF1u0N+TP2apYKoNdo9UrvURThL2zIrUenu9Y=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=q97onVpiPO/VoJkeAYTQWIz1r+h3vTo/39HlQZPOLXPvKnkYNugAfPJ6NhD62vOvRkz+INsTSDmn2Me9tqEcecICztaIzawkIrmeNYKsue6Bwi9okfxQzuxDDiXbrohP9XMPhxWuSGalOxBAME1KxB8vuVftltXJreSa7CLLXT0= 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=ekZNWBFZ; arc=none smtp.client-ip=209.85.214.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="ekZNWBFZ" Received: by mail-pl1-f201.google.com with SMTP id d9443c01a7336-2bf335549b8so35101325ad.1 for ; Fri, 05 Jun 2026 13:36:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1780691768; x=1781296568; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=hHafPAGDe/eWeaCKzfKDatL5cxrvc2D5TLAN5e2FWVM=; b=ekZNWBFZV+xBL/phRrUAW859Bx4Pk//rW5QNMaq5qLUHPWrcQzKW0K9Mj7U3vSDbD0 stBEFcci+f8bddnEws04irIoKkEAoth+ccajhMvs0jj6AaX8unHKjq1rMI7VvgnNR3pt e6EZoLdwXJyra2NifFy/c5wRMCslNxn3Dvnj4l/EzLVckHF19prhV21PB+7xow/yXgyQ HChAN/jwN6HnVAO8n+IOT77DLfHIGVdjc36h7JKp9U4VfZUsaC/na7X9990FjMMEySXH FEtfdD6iNVC9pRZqqi/ybUCoxxjX5z1IqPrli/E1vVkPxQ/uimqj6KPgKaZAIFoaXB2f O2Bw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1780691768; x=1781296568; h=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=hHafPAGDe/eWeaCKzfKDatL5cxrvc2D5TLAN5e2FWVM=; b=OhUx3ukMXs+fOfBGZXaa4tON83u27oymYwe6KN6tyM0VG+thY3BY/zD3BKxIaGjZ0t Ho76Bg+EUOvq3PvvnlNey0g08YKbjBRthJb8xNzbkZlkR3EwC4nkFGbf2HInHJCxo/Nq Q7EP34GVzCojVxcfVTlY5/59qw6u4rWSwrzngNu8Gs53t/MTL5LQFE4B7YvBPC3exJ+n ElVqV+fjTGFPMg2uCuWZk6lXnEK+mX8GCseD0Vefp57vdw9aPuHH0eURkQmhsSZ69Yk8 S2L6fSpXzwUBYwRBYcBa1RPp6W9agxWu1/CeXjgNqydykwy2XiS7IV1+BFiulhakGVhu 9png== X-Forwarded-Encrypted: i=1; AFNElJ83ReE11gaD7qskOawlqZWJB35H5a5Oq7eZtGt1m+HDzOvWAPjTaLNl8CV8xvKuX83fVSyu8/x+jKWCQuo=@vger.kernel.org X-Gm-Message-State: AOJu0Yy5Rij8A7vG+NB1OXUyknl5l+I4RNuKUHJCmBdKHQ3qtzR5102h /uGywQ7E/PkD6TCqfKJeu5hSATvEWKSllCkg6ZZiXljsrc9P3IDP1mOVpm1vkdTggDt+i25TI7c DSGEdJg== X-Received: from plbml16.prod.google.com ([2002:a17:903:34d0:b0:2bf:13ad:1b7a]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a17:902:ce8f:b0:2c1:f262:4962 with SMTP id d9443c01a7336-2c1f2624b85mr42401185ad.20.1780691768313; Fri, 05 Jun 2026 13:36:08 -0700 (PDT) Date: Fri, 5 Jun 2026 13:36:07 -0700 In-Reply-To: Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260529222223.870923-1-seanjc@google.com> <20260529222223.870923-31-seanjc@google.com> Message-ID: Subject: Re: [PATCH v3 30/40] KVM: x86: Move MSR helper declarations from kvm_host.h => msrs.h From: Sean Christopherson To: Kai Huang Cc: "pbonzini@redhat.com" , "vkuznets@redhat.com" , "dwmw2@infradead.org" , "paul@xen.org" , "kvm@vger.kernel.org" , "dwmw@amazon.co.uk" , "linux-kernel@vger.kernel.org" , "yosry@kernel.org" , "binbin.wu@linux.intel.com" Content-Type: text/plain; charset="us-ascii" On Fri, Jun 05, 2026, Kai Huang wrote: > On Fri, 2026-05-29 at 15:22 -0700, Sean Christopherson wrote: > > Relocate declarations of MSR helpers (and kvm_nr_uret_msrs) from x86's > > x86's kvm_host.h to msrs, to continue trimming down kvm_host.h. > > Double x86's > > > > > Deliberately leave the funky read_msr() where it is, as it will hopefully > > be removed entirely as part of a broader kernel-API cleanup. > > > > No functional change intended. > > > > Signed-off-by: Sean Christopherson > > Reviewed-by: Kai Huang > > Btw, not sure whether you like: > > We can also move the body of 'struct msr_bitmap_range' and 'struct > kvm_x86_msr_filter' to "msrs.h" too, if we put one > > struct kvm_x86_msr_filter; > > to before 'struct kvm_arch'. Even better, we can move it all the way to msrs.c. Same with the PMU event filter, it can be moved to pmu.c. I'll do those in separate patches. Thanks!