From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) (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 27EAB38E8A3 for ; Fri, 11 Sep 2026 13:20:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.210.198 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789132859; cv=none; b=MErN28wHTun8D1oDDTWf6jHMR5RjvpnQviVtDB0D7hAWh8UWhKl97KLGGL/SJSJcS737WiwdOmNfibmMoYO5hIjWZqGSK9mQfrspBwEdJgCQI71dgAbu48yZokFkHfq9MMkv4NM6SA+Oc9FL1g3i7RJe2uLAQ8otFc/2DDe6X7Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789132859; c=relaxed/simple; bh=EolGcyXZdQB+WJQ/fbAT/ovCeKnyMlJRoovdxLhAScI=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=A1lgiVPDU719eYnqSMBSRQn9tXmIDRYoE6Aa6LZS4n3dcyty0y0gzctyv+MpRmkbVRNg8qN1MHLh/Lq9JZs2PZnjwWhlwa6UKeaIqb5BERdsdSbONRrj5gCuIDGKmYff+xyeGOFZvGAMZMXjSMIzLPikyonOSIaPI8EosiE8oLI= 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=JhWuBsjX; arc=none smtp.client-ip=209.85.210.198 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="JhWuBsjX" Received: by mail-pf1-f198.google.com with SMTP id d2e1a72fcca58-869c40637faso943131b3a.0 for ; Fri, 11 Sep 2026 06:20:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20251104; t=1789132857; x=1789737657; darn=vger.kernel.org; h=content-type:cc:to:from:subject:message-id:references:mime-version :in-reply-to:date:from:to:cc:subject:date:message-id:reply-to :content-type; bh=G6E03lEoHjRnSy/KkF9YUurNW1tkrhzCisRbnf6MQso=; b=JhWuBsjXKa/j2xC4TWzqQDqGpN1vHZydGvEuR7ZlNNx+eE3dFNstaCQI8H8Vby0lc8 By2hVTiaeIiQ5+ng8Cw24ZqBl6meSDOJlF/pgf+vev7XiTla4WEez/EaD/JaZ2cPMZBr Rak3KpMdOUFDf0qD8nBOpqHJSO7wTyn8KK3iRPvnicl8fHPeQhWXqRKr3CbKCRL6xJeW t+iwL0VhWlzhHU/v7hrGqOxwY3Xacg1IkfPGhfYjCmOeGF4/MGMfPvhlsLWHnaAh5xPO tAyT4YxpueHloR+rke5kFjTPSDy74AdyrXtcM6idmrzY/CAUZWw+p+IrOwH5iBpkDvx/ MWIw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1789132857; x=1789737657; h=content-type: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:content-type; bh=G6E03lEoHjRnSy/KkF9YUurNW1tkrhzCisRbnf6MQso=; b=q2R18FYfJ1NqTTFbfZEjfna/4vtnlt7C7T6vg1oYMOpEiNhH65n3Vuu3Sm1GNFZx2m R6RdC7SNJ1wYoWjHQ+DnqRmxw+nWqxb2A2iAEODmYetGxCm7pnDvviOPze9dQVdaaF8k 5TdEW0e/fKB0Pxhtt0sEv7fFTUz+cN5ksIMdLJ/0Ey04iQabOm6Et7Z3UlYz7pqgYUeX /sYMrSWbgyJaqHTh4ixIQrH421QXyRkpTtev/rBsl8Ph9uqVLz5f5G5800004AP+J2Bw MjBVKTs8iyRFBqPW2v4wfzPNYjpLv0AYYelxdeCOan5NHQa/m6snXhGd3fyWcxPN9wG2 sGTA== X-Forwarded-Encrypted: i=1; AKwUvBw3sG50bQf36Pit9vQMTXbuliz4AjaozQ0MPZC7K0NHXvZZTYJEjvNRC9TqillEdZCAADfEM/Pl9DgKEcg=@vger.kernel.org X-Gm-Message-State: AFuF++lk82VtvtslvjxPxmJ7REOgfB2FhZ0p66hVv9W5teRShPFrH2W0 CyDF9rnpu1VQWlSNJSlQ6LJP/10+HGxL+Ef9dkAIqzZKpXFyGhA/Qytui2dGiY7WQRFyVZZZ+tA 6ZhegWg== X-Received: from pgfd7-n1.prod.google.com ([2002:a05:6a02:6547:10b0:cc4:56ea:7ae7]) (user=seanjc job=prod-delivery.src-stubby-dispatcher) by 2002:a05:6a20:6a26:b0:3da:5eda:d167 with SMTP id adf61e73a8af0-3daed1515e3mr7900074637.5.1789132857186; Fri, 11 Sep 2026 06:20:57 -0700 (PDT) Date: Fri, 11 Sep 2026 06:20:55 -0700 In-Reply-To: <20260911074530.3140830-14-jgross@suse.com> Precedence: bulk X-Mailing-List: linux-hyperv@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20260911074530.3140830-1-jgross@suse.com> <20260911074530.3140830-14-jgross@suse.com> Message-ID: Subject: Re: [PATCH v3 13/13] x86/msr: Simplify some rdmsrq() use cases From: Sean Christopherson To: Juergen Gross Cc: linux-kernel@vger.kernel.org, x86@kernel.org, linux-perf-users@vger.kernel.org, linux-hyperv@vger.kernel.org, kvm@vger.kernel.org, linux-coco@lists.linux.dev, Peter Zijlstra , Ingo Molnar , Arnaldo Carvalho de Melo , Namhyung Kim , Mark Rutland , Alexander Shishkin , Jiri Olsa , Ian Rogers , Adrian Hunter , James Clark , Thomas Gleixner , Borislav Petkov , Dave Hansen , "H. Peter Anvin" , "K. Y. Srinivasan" , Haiyang Zhang , Wei Liu , Dexuan Cui , Long Li , Paolo Bonzini , Kiryl Shutsemau , Rick Edgecombe , Michael Kelley Content-Type: text/plain; charset="us-ascii" On Fri, Sep 11, 2026, Juergen Gross wrote: > After the conversion of rdmsrq() to an inline function some use cases > can be simplified by dropping an intermediate variable or by > eliminating the inline function completely. > > Signed-off-by: Juergen Gross > Reviewed-by: Michael Kelley # Hyper-V > --- > V3: > - eliminate KVM's read_msr() (Sean Christopherson) Thank you! Acked-by: Sean Christopherson