From patchwork Tue Jan 10 18:58:19 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Mingwei Zhang X-Patchwork-Id: 3822 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:4e01:0:0:0:0:0 with SMTP id p1csp2918677wrt; Tue, 10 Jan 2023 11:03:32 -0800 (PST) X-Google-Smtp-Source: AMrXdXt+0kKZR96BqU/qe/y3gCn/vynWiHUZjLLTuZ/K5rTEh0khJ/fal8l1H5ALbUs1zeURJr6J X-Received: by 2002:a05:6a20:6f87:b0:b5:46fa:24e8 with SMTP id gv7-20020a056a206f8700b000b546fa24e8mr23188045pzb.38.1673377411958; Tue, 10 Jan 2023 11:03:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1673377411; cv=none; d=google.com; s=arc-20160816; b=PPc25knbJ8bOltNJRxqTbesaQHbgt5yZh8kb8hj0TgTDzJKUunHex7AvIprAyfN5om sQbA9/jm507heADTTMUQu5O9pLgMuoMYA48jnjWlxVJmKH5UEp3eBy3bQ6LRF/rzf2nY np0DvSUoRKLq/RCsgj99Jkhd4kPqMuLxtxdjii7PDZyqxr7fPWjQcVJ1WIgTvkSkzSKM GF1OSEJ3+jAcMZiLIjlU9/xeexTeR3k0BgFqOYYU7D/d4bmmgNRSk2mZJYgGWjJ+Qd15 UEGaCuJgnmnYE/BdhrUANRurDYm6YiJ/7kGIh5hyPU/sopVDdCvwGM1zFMwxCQH1RWmR QFbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:from:subject:message-id:mime-version:date :reply-to:dkim-signature; bh=QkDHaL3LaMHWtJtBt02a3dk6dVQ22Akc4nPiBV7pqqM=; b=TGIbQ/TCsvWVOsXUAZxHmdlbbd7t0qNN2D0AWDDeJ6svge1Sv8aOVEnNOshlYqdojC rXsxj28VOxIVmgZlaXVtGX2C5rfpe6XGqiC+AirNelH7pTjdUaUKrXKjZsoyGsZsHMhV i8jrAWh61kEqOEu7SPCmkm3ar9jwmkrNJP+O2+G3+PnLtBPJGENFr+53ozZXfHZ4EQfy i0ThOPp7+Gi0q7VjT6gSKFVwa8Si7YAJ0uGiQgHEE9IOcMgX2wB9rDWxlOrWqctDskok 9xpd+5ktRtSKzHAyq0tUvbkm6hWEPdxnGjvbrRTbx4xDQv3nlBRtnWPwu4TyqVwjZRkq 2x/A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20210112 header.b=JDdFGY6A; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 25-20020a630a19000000b0046ecbfda052si12241344pgk.389.2023.01.10.11.03.19; Tue, 10 Jan 2023 11:03:31 -0800 (PST) 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=JDdFGY6A; 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 S239598AbjAJS7T (ORCPT + 99 others); Tue, 10 Jan 2023 13:59:19 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:42676 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239774AbjAJS6f (ORCPT ); Tue, 10 Jan 2023 13:58:35 -0500 Received: from mail-pf1-x44a.google.com (mail-pf1-x44a.google.com [IPv6:2607:f8b0:4864:20::44a]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 04DFE2033 for ; Tue, 10 Jan 2023 10:58:26 -0800 (PST) Received: by mail-pf1-x44a.google.com with SMTP id k20-20020aa792d4000000b0058347d2f5e3so5610357pfa.15 for ; Tue, 10 Jan 2023 10:58:26 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:reply-to:from:to:cc :subject:date:message-id:reply-to; bh=QkDHaL3LaMHWtJtBt02a3dk6dVQ22Akc4nPiBV7pqqM=; b=JDdFGY6AvPVG7FpYMmZ9o2qqrL+RkBPaZNi2CN4Mn+4LitAaiDH2PwmJaVBaZeUtun UZYp8ezN8wbUU8c8qepaC64M6NjziL3/EMqIHInjzCXtEXcEw0yCZtLRil3+at7TUo1q Etxg0LEhEM0gS7HU8d8zzPpg1BcRIaG/KC1g/ZnktbvtYbR1nlqgAGAD4mf+TNCyvMz/ /C4cueQlQKXqKhEgrkixrEu2zsiNnYO2JxcEbZTrc6RjkROmhcNoxF856n6qdIjL55r+ aZ6IpTpJ0c9v2ybbJae+MRzqN5mSKfT3aDIeWhbDM4PNDQSk3/T3ElcyBw5U0wIttBga FMPQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:from:subject:message-id:mime-version:date:reply-to :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=QkDHaL3LaMHWtJtBt02a3dk6dVQ22Akc4nPiBV7pqqM=; b=neX1T8zrz8rc1CNrUJ21/BHuF7OJt6Pw5xHeA92DO4dG27WqZ+g1suM8IiUy07GnCs V4HakwUIf2qrwQXrDcXRI8ISY20fqUM1Os+qQAPrZ0IgHUupr2F6KBPE0OYoRFI5xPJw Sana5eqjvLWArbtkY/Nn3GHeuAbBcj/D4gmhoI6/k0ju/zMXqvtqu5OEtOVIQRiPfVld WSFQKR7BA8B5l0UpMtRCyQ8F5PwmfOcVwpRPkpJxN2HJCdrwJGxnlUNjAAVptXrOBYMu DFQ+DtD/UZQVVfxnDvKHFMXhzmMp5vcoFmJ4HFsd9lzLsw4SsDKFSoizlPI8n7I7Kqeh JM7Q== X-Gm-Message-State: AFqh2kqW/D8d9l1iJwIaf8QCDv7Y/WZ/ehSJNDHYlhLRnJY2R+6RMtPF 6fzKeLKYUrTZSJFavMRYhQuIspB2h79f X-Received: from mizhang-super.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:1071]) (user=mizhang job=sendgmr) by 2002:aa7:8051:0:b0:582:e939:183d with SMTP id y17-20020aa78051000000b00582e939183dmr2492635pfm.63.1673377106539; Tue, 10 Jan 2023 10:58:26 -0800 (PST) Reply-To: Mingwei Zhang Date: Tue, 10 Jan 2023 18:58:19 +0000 Mime-Version: 1.0 X-Mailer: git-send-email 2.39.0.314.g84b9a713c41-goog Message-ID: <20230110185823.1856951-1-mizhang@google.com> Subject: [PATCH 0/4] Add extra checkings to amx_test From: Mingwei Zhang To: kvm@vger.kernel.org Cc: linux-kselftest@vger.kernel.org, linux-kernel@vger.kernel.org, Jim Mattson , Venkatesh Srinivas , Aaron Lewis , Mingwei Zhang X-Spam-Status: No, score=-9.6 required=5.0 tests=BAYES_00,DKIMWL_WL_MED, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,USER_IN_DEF_DKIM_WL autolearn=ham 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-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1754663392966386155?= X-GMAIL-MSGID: =?utf-8?q?1754663392966386155?= AMX architecture involves several entities such as xstate, XCR0, IA32_XFD. This series add several missing checks on top of the existing amx_test. In particular, the 1st commit just fixes a typo in comment. The 2nd and 4th commit focus on the properties of IA32_XFD/IA32_XFD_ERR when interating with xsavec and #NM, while the 3rd commit adds the checking of xcomp_bv in xstate. Mingwei Zhang (4): KVM: selftests: x86: Fix an error in comment of amx_test KVM: selftests: x86: Add check of IA32_XFD in amx_test KVM: selftests: x86: Enable checking on xcomp_bv in amx_test KVM: selftests: x86: Repeat the checking of xheader when IA32_XFD[18] is set in amx_test tools/testing/selftests/kvm/x86_64/amx_test.c | 43 +++++++++++++++++-- 1 file changed, 40 insertions(+), 3 deletions(-)