From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 20390C77B78 for ; Thu, 4 May 2023 15:36:36 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230054AbjEDPge (ORCPT ); Thu, 4 May 2023 11:36:34 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50422 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229905AbjEDPgc (ORCPT ); Thu, 4 May 2023 11:36:32 -0400 Received: from mail-pj1-x1049.google.com (mail-pj1-x1049.google.com [IPv6:2607:f8b0:4864:20::1049]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 01646E46 for ; Thu, 4 May 2023 08:36:31 -0700 (PDT) Received: by mail-pj1-x1049.google.com with SMTP id 98e67ed59e1d1-24dfc3c668dso359375a91.1 for ; Thu, 04 May 2023 08:36:31 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1683214591; x=1685806591; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=PfH0LfzYsSkyftiuS7LtmnoOFhshkGAj7CR6MffFUlU=; b=wpfX+Pl85BSzJcy91iW7WjgQSGPJ50qSyfQ5CI0bchuqHTQ+dT12Qwc3JdTbl4cWD/ o/oGasRenULdteXv7O4W6uMRR6uMMntZhOpJX9wUKPJ7F+NdLgDOA9nPw6FOMuFszmv8 PYeYkYdq8CY+OXx9Fql7bJC+OGN3BHN+cif4lEFsoMhT3dnYTbEiQwL/NLGqslSY8Qsr 1G16I30EriX3/E0vF8CBhJjUAVWwDbDkDacAMfVnygNg0XrWS7jq7ecRgz8709zVEbOR JEEWi1lXEQ0QS5j708yuHU+eAudY9fv24pos8HEBYpmLqcA6gXzEJ9Zmph8GUd8Dp2gc Eweg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1683214591; x=1685806591; 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=PfH0LfzYsSkyftiuS7LtmnoOFhshkGAj7CR6MffFUlU=; b=l3idIjlNxdC2KUxOPGcRXWmlRU8pTuQNG8YBQs4zX6ameNQNFK4OSJ11kH4bLm0j/T Tb5+VGwMIEMPRocqhhmDktYFtmjWRalHAGmrw2OZ4jHQ3hdPG2Lro2rUaDFI3dfdNM4E PIpgCKpzEuWiq01qtIE70Q9pvBU9M0SglzfNR8fLwbC+I5g0AiyjtFX8QzMW0lDpyYbl +x1bP+hdIExXsp/B7QfYu/dzUmL97sIe1xIXWXykzD19iEAknC9DAM0zRLmM3NAbcw88 EDmRdFYkCgcjNpAr4EwrZ9Y8TzeAIAqA8lpMMZrT98JgBkELVd71B2E4FQXXAjwUHY5C R+2A== X-Gm-Message-State: AC+VfDyWl21e2toMX8ZToo/fHcXRLYRIdxnTy1tezvG4xs0LEUkDHH5b J1GEmNzwqls5DsXyvTxzhqQyrdwXAa0= X-Google-Smtp-Source: ACHHUZ6rb91kq7rkad7fXsuCX8Q4St6b080DC8uARN/d3dqaCkveOW3+9FP6eGedWb9B219kb1WJd53SZec= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a17:90a:d147:b0:24d:e392:75ce with SMTP id t7-20020a17090ad14700b0024de39275cemr726066pjw.2.1683214591542; Thu, 04 May 2023 08:36:31 -0700 (PDT) Date: Thu, 4 May 2023 08:36:29 -0700 In-Reply-To: Mime-Version: 1.0 References: <20230503182852.3431281-1-seanjc@google.com> <20230503182852.3431281-4-seanjc@google.com> Message-ID: Subject: Re: [PATCH 3/5] KVM: x86: Use MTRR macros to define possible MTRR MSR ranges From: Sean Christopherson To: Yan Zhao Cc: Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Wenyao Hai , Ke Guo Content-Type: text/plain; charset="us-ascii" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, May 04, 2023, Yan Zhao wrote: > On Wed, May 03, 2023 at 11:28:50AM -0700, Sean Christopherson wrote: > > Use the MTRR macros to identify the ranges of possible MTRR MSRs instead > > What about using MTRR macros to replace other 0x200 in mtrr.c too? Ugh, yes, I 'll convert all of those in v2 (wow, there are a lot of them). Ooh, and I missed that once the SVM usage of kvm_mtrr_valid() goes away, that thing can be made a static function. There's quite a bit of cleanup that can be done in the mtrr.c code, I'll see if there's any other low hanging fruit that can be picked for this series.