Received: by 2002:a05:6359:c8b:b0:c7:702f:21d4 with SMTP id go11csp180271rwb; Mon, 26 Sep 2022 16:56:32 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4nQoNTbUKy8UAr+vIFbQOYQ29MacHPKU43co8tFS2LIxoV6b1N2mswO6vM/sUfbPXa1fZn X-Received: by 2002:a17:902:da83:b0:177:f919:9260 with SMTP id j3-20020a170902da8300b00177f9199260mr24862387plx.105.1664236591817; Mon, 26 Sep 2022 16:56:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1664236591; cv=none; d=google.com; s=arc-20160816; b=QLKdnv24IgfoUbXyUxxzNmxa0SmO/yRyLMUCraAZ10Fj0V0IVzTPETcPUITjHfdQ3P ZHRtUQldJXKuEchSy+Qoza/V/O9rxBdTYVvKgdgeNn9Vg51Cl9vppaHJv8LBOJMSGIs9 o2R3rGJd7RQK37EnZnylzKUrYoxNoMSBW3tGmmId3K52EHcj7YqCz+Gam58hK474MqY7 cwio5pF6DF2bAGgdK3Pp6y9BCD9HwDfQEftyQ1okSqZafn+ulYx2z4WmMCfd0Cj1bYMJ AhFDL2ARh2/YjUMpnCjlnhqsVC2F3Qtxkn46Tz8x2bSnaH8QL1ZKMs2pLYkjHqePP7/k cr6A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=CV/mbcKH4qX6MXHBANtxht73WgG6wuL82GOFfkKV6Oo=; b=kp5nCg5QTl+3RGQfqoxAdqvsMAydf2DbJnc4cLQUM9ZsIxVx8neiXsbfMLpDow8Rvi EzHutd5kD8D4BB1iwfz3OJlVgOPelp9epdqUX+ZKv2IoVsNtUBJOZizM3zSUKKYYIUuT G78JBzRBcdukQw9tvyInwKvF3OtNOdtmuMsQv5fr+OlxzAgCGU5KePQX6OsA85lASbWB XaQn8n+ISaPMDWF2jPKzX5czH//JcPjtysPEKXC8YUJR6wUN0IaOWcGn2btQAm3C5t2x 7u+M4UEk4k0KxV/fhAqov/2N+Zs1Ui6JV/ggh6GT2QYzAxrV6HmE2OFUctyI+fNKcWJZ 8/SQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cmO1i0bX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 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 out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id ng15-20020a17090b1a8f00b0020265d5b786si62073pjb.164.2022.09.26.16.56.19; Mon, 26 Sep 2022 16:56:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=cmO1i0bX; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229959AbiIZXkT (ORCPT + 99 others); Mon, 26 Sep 2022 19:40:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57228 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231334AbiIZXkN (ORCPT ); Mon, 26 Sep 2022 19:40:13 -0400 Received: from mail-pg1-x532.google.com (mail-pg1-x532.google.com [IPv6:2607:f8b0:4864:20::532]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7B1894E850 for ; Mon, 26 Sep 2022 16:40:11 -0700 (PDT) Received: by mail-pg1-x532.google.com with SMTP id bh13so7925406pgb.4 for ; Mon, 26 Sep 2022 16:40:11 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=CV/mbcKH4qX6MXHBANtxht73WgG6wuL82GOFfkKV6Oo=; b=cmO1i0bXpBONGQenXSWE8SHA6yaryyoYYkT4mkxsgUgf2jcvBRBzouBtr8+1SuVzDl ZY47sAAs3gvxgKC1x32NpztbrLAT2LfGnkJO40OM3nZ37b7ae8o1e28YV0bc0F1boL1N UqM3VvJv4OlPuyWDhqUqlNiZxKdqLbB0uMYUt8XEAkuMyOMfWCI4ppGRwbWK6lt0zAMq Rrkoly+Y38TnboaGdX0KA+yEioPFhtTfPQhVPRHzgUkHptSX/LAGjx5w0BzqQrZ6vvpu rlEyykxv5IaVtXCKdOynNY4KHOOE8mJzTOtYatR60tU+yvDqeZ1HBPokPqHlQPh13LpC imng== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=CV/mbcKH4qX6MXHBANtxht73WgG6wuL82GOFfkKV6Oo=; b=TD/XlULe5u8kHiB0/td+uQrwJotmP0HJITK7KfN14Hb/axDjts+4P+z952rsShmRel bbQq0fWWVOakU4gUr/+QMEHmIILDkY5Dz6fAWWZduIVtUU6sEFUuSs3r/9jKVZYC6EB6 zOcpI3m5Fuv8rUxP8o+idHwUDQGJY5PmfkOjFt98Rn3no+z7aiLz5o1r/pXAL2SzluRb M44PKzcXvGMxJrQlYbsoWfmDYP82s7H5c2TwTSvdx0/ejkfvrwleyyOk1Bk+bFbP/E71 1r9SyZnyDTuBlxIy9Xgp4wz24Yfge4YpE6uuRqx4ppz1F1YMh52/BQm6Q/zDQZz4C8HP UFSw== X-Gm-Message-State: ACrzQf1pguE/apRbFjvRaTKOom3vQ1Q4FRpJmaHsUVYTYABCjI60S/V7 qTKj3UAenHf4Lz/fooOQYXtJSOmB8N2w7mKQPjyrWw== X-Received: by 2002:a63:1a51:0:b0:43b:e496:f2f4 with SMTP id a17-20020a631a51000000b0043be496f2f4mr22554894pgm.99.1664235610798; Mon, 26 Sep 2022 16:40:10 -0700 (PDT) MIME-Version: 1.0 References: <20220915000448.1674802-1-vannapurve@google.com> <20220915000448.1674802-5-vannapurve@google.com> In-Reply-To: From: Vishal Annapurve Date: Mon, 26 Sep 2022 16:40:00 -0700 Message-ID: Subject: Re: [V2 PATCH 4/8] KVM: selftests: x86: Precompute the result for is_{intel,amd}_cpu() To: David Matlack Cc: x86 , kvm list , LKML , Linuxkselftest , Paolo Bonzini , shuah , Ben Gardon , Sean Christopherson , Oliver Upton , Peter Xu , Vitaly Kuznetsov Content-Type: text/plain; charset="UTF-8" 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_NONE,SPF_HELO_NONE,SPF_PASS, 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 On Mon, Sep 26, 2022 at 4:34 PM David Matlack wrote: > > On Mon, Sep 26, 2022 at 4:27 PM Vishal Annapurve wrote: > > > > On Wed, Sep 21, 2022 at 2:19 PM David Matlack wrote: > > > ... > > > > is_amd_cpu is used by guest code within fix_hypercall_test.c, just > > caching the result will break the guest code execution. I have clubbed > > these two changes together in order to ensure that is_amd_cpu works > > fine for both host userspace and guest vm logic. > > Ah, so the sync_global_to_guest() part needs to go in the patch that > adds caching to is_amd_cpu(). > > But the point still stands that adding AMD support to kvm_hypercall() > is a logically independent change. > I see what you mean. Will split this change into two in the next series. > > ... > > > > -- > > > > 2.37.2.789.g6183377224-goog > > > >