Received: by 2002:a05:7412:f589:b0:e2:908c:2ebd with SMTP id eh9csp883158rdb; Wed, 1 Nov 2023 05:52:53 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFSQaOWBpauUboYoTEGkaXvcJ2tb9XgGDNYEQXmKkvayPVK6JZCH20BV4nqmd9OmB1h6VTY X-Received: by 2002:a05:6a00:2e29:b0:6bd:71e3:b647 with SMTP id fc41-20020a056a002e2900b006bd71e3b647mr15072768pfb.19.1698843172940; Wed, 01 Nov 2023 05:52:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1698843172; cv=none; d=google.com; s=arc-20160816; b=rsAN5B5coAkAN+mEVODQwvuRlzFbJippY7MtojlUfso1rGvqrIGCn7zZTkvoN7i9Xy R5QOod9N0ri70QLcZlmk9nSgLvJFz6v9WwHWfK9F3MmBKcyk/Yj7k8P1kUtUFezT3uUD bFlzd1zN9ifzVk33uCpWZwMwKZ/nPZiumu/rdvS5TMp078IvPv5iCTPMUDgvcz3aJdBp rbMMkwPO9Vj4IDxiZaGCLCEblFPE05X79vhZIE3+Dh2PmYzfJDiRcDm/bqCyDlm+M6r3 PWaNUNDnrVAHY3FO0OAB3vOz7LMyWSb2JaOa4Br+B3/5alZTsN5rYmUsY49WQEE+k5JH 1W1w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=Y5Xp3E2sNGurYgFgV4DFltI61gPnCGK2ee6FfBRryFI=; fh=IU++XeWNHARdCmzNX1WL+adJi0RuNVWZFmryfnQSNc8=; b=UL+giOqyi4hVpeE1s7EfqRnO5AUG7M+Yxogf4of3G4ElXWeZaigxF0kPy4HP9G6Mmd 895djEN5+RY2qjbrFCzdA5zNtJtM6AasftynzQaqtwxPkKO6+UeC8Mc0QGMs5+A2ocaB /IbnhLZoeW7EBzTpU2O6ecrTwR+xefr21+KiH4POp0YoftEXFnODlaB9sjr+FemVtZeE jxM4bBadfiaRYxV+ky9+S5HG1Luj+Xo05c3z68cvSMK3CsyPkcunPk3eh85AadFDJ41p 3hyP3vOH4C6U2aO8gj4G1zVLKirYxgIKsvrxUrRkrdXCXNq56xr+pyO3rP4opfc408mI 8gFA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sLch8VwW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from snail.vger.email (snail.vger.email. [2620:137:e000::3:7]) by mx.google.com with ESMTPS id g17-20020a056a001a1100b0068ff659af62si1636357pfv.106.2023.11.01.05.52.52 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 01 Nov 2023 05:52:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) client-ip=2620:137:e000::3:7; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=sLch8VwW; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::3:7 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by snail.vger.email (Postfix) with ESMTP id 9F96C804E699; Wed, 1 Nov 2023 05:52:22 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at snail.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1343906AbjKAMwE (ORCPT + 99 others); Wed, 1 Nov 2023 08:52:04 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:38628 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235188AbjKAMwB (ORCPT ); Wed, 1 Nov 2023 08:52:01 -0400 Received: from mail-ed1-x52f.google.com (mail-ed1-x52f.google.com [IPv6:2a00:1450:4864:20::52f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 0EE6210C for ; Wed, 1 Nov 2023 05:51:59 -0700 (PDT) Received: by mail-ed1-x52f.google.com with SMTP id 4fb4d7f45d1cf-53eeb28e8e5so9700a12.1 for ; Wed, 01 Nov 2023 05:51:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1698843117; x=1699447917; darn=vger.kernel.org; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:from:to:cc:subject:date :message-id:reply-to; bh=Y5Xp3E2sNGurYgFgV4DFltI61gPnCGK2ee6FfBRryFI=; b=sLch8VwWZ1zSWfBadZ8y7Hj0W93EptAw+uscEv3zuRfnDoneD/GWEIwccnaJtKnxpf vFsn8hIS1x2CMwzQzmSDZZnmop/xOmlII+340ZCPhU/1KoclJPJ+CSMrAXE7p6DhurSt md6ZiVmounouybPxqU7CeYRNyM0gRKUmtx8+He/5rHhv6f27izWempfoQ0l//9da2DfF gHn1Wo/Xzo8J4mCy5MTm6SjY5owjbQZkJ3tVfBKY6iY010ECa+zX1NpOfb3opKfrOyE3 U47zzgT4vNH4SseHHP85nne4/JEdnvFd2zloEHFvYnlhszAr7KFSqK7P1no+9JnoNNz7 5Scg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1698843117; x=1699447917; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Y5Xp3E2sNGurYgFgV4DFltI61gPnCGK2ee6FfBRryFI=; b=BfMg1sWrf8vrLm4z2fyFyzB0J9MBPCgWESuiWF3OIN0Ds1ySNJ3vn2XeHd9Fp0O9Og yZWR0AQAk2JIXXsRXlt9HGQ9Rnx+p9sxpJIWPJfpghoUXwT8SoZC4QPsL8jZwllJGEmF cf53fhj/WIuFpIHDTv8EwCIYqlNTr5DHNH0LukkNmpen2hOmQJnOhJ7QxHkjSCNzpFp0 3gUybO1F2UQ/MYivSMSxael78JEDUuxpHLpv54N9IgOtARRf1Mm9VGBWYMYTwcxusQho vK/5yCeA+7/wnTZ96i+GrDvQWthMG5F0g0qHIgoD8je+M+gz0GuNJbfkeSS68FXXsMuC Qq4w== X-Gm-Message-State: AOJu0Yx0PIvNzGGh2GsQ966AaN1W1dLjfrqDpUY0McACU+sTNYd702f0 7dFgvyHkBF86IRwmwUtxFOjEe9hBOxun2+2GUJFFJQ== X-Received: by 2002:a05:6402:17da:b0:543:72e1:7f7 with SMTP id s26-20020a05640217da00b0054372e107f7mr210251edy.1.1698843117362; Wed, 01 Nov 2023 05:51:57 -0700 (PDT) MIME-Version: 1.0 References: <20231031092921.2885109-1-dapeng1.mi@linux.intel.com> <20231031092921.2885109-2-dapeng1.mi@linux.intel.com> In-Reply-To: <20231031092921.2885109-2-dapeng1.mi@linux.intel.com> From: Jim Mattson Date: Wed, 1 Nov 2023 05:51:41 -0700 Message-ID: Subject: Re: [kvm-unit-tests Patch v2 1/5] x86: pmu: Remove duplicate code in pmu_init() To: Dapeng Mi Cc: Sean Christopherson , Paolo Bonzini , kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Zhenyu Wang , Zhang Xiong , Mingwei Zhang , Like Xu , Dapeng Mi Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-17.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, ENV_AND_HDR_SPF_MATCH,RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE,USER_IN_DEF_DKIM_WL,USER_IN_DEF_SPF_WL autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (snail.vger.email [0.0.0.0]); Wed, 01 Nov 2023 05:52:22 -0700 (PDT) On Tue, Oct 31, 2023 at 2:21=E2=80=AFAM Dapeng Mi wrote: > > From: Xiong Zhang > > There are totally same code in pmu_init() helper, remove the duplicate > code. > > Signed-off-by: Xiong Zhang > Signed-off-by: Dapeng Mi Reviewed-by: Jim Mattson