Received: by 2002:a05:6358:700f:b0:131:369:b2a3 with SMTP id 15csp1226853rwo; Wed, 2 Aug 2023 10:30:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEaBZQgDw41vgsQh72Y7yEgJoQPDzVe1mmhyUI+npxHyeRN/4mSvJHC4w3n4Rks4IUYGx1/ X-Received: by 2002:a05:6a00:c8f:b0:680:98c:c593 with SMTP id a15-20020a056a000c8f00b00680098cc593mr20087470pfv.7.1690997424575; Wed, 02 Aug 2023 10:30:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690997424; cv=none; d=google.com; s=arc-20160816; b=ABN/H+rzb+U+6QpbQQwL+OSWPo3DA+p56HCe2eppxLK9Noft7C0eMUf/FVwDGNcH5a 6S3ZC3segeQOHEL95ehLL0bjGvSeTAWJxHM5gkdpQ52DIJbgW09erFyeXp0Ud1+iSud4 Iq62HVlisdBqmeoF+VGVBjPYRay4793r5FuK/+7eEoiWEyhVU3Wyl57zV2uXYF5QSbHS y9BAPSweAmUgyCaOBbzfdLCMFWoHX1Z3vrWZemcUuUfhHh238jda/a0vF0/UUD7sh1Yp DG8tlA/LmIqZ7iwS+SrkdeAQrbzCWqeIr+VeFHeSnf/26eWYZmAZCcMqfdZT9Jw28EeH 5JKA== 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:references :mime-version:in-reply-to:date:dkim-signature; bh=PzbCDXFnk3w2SSf45TXB2yxLMTvmATReUsA4zCcZwws=; fh=zucpp8MTujBKF102SNBmrZrEcggo7osgWjpgKV7+jnE=; b=rYILsO3okKQ/m04DE2mJUzJvNtWPcsZ03fAY5f/dSAcKvYf2SS8UNh96mdaqVymfZw SbNa0s1eXkQceBhdcfM+2mfJm/6+N6Fbz13d8Li7T5gi3GoPatQQeTzDThPIc1CMFCaJ be61gOovPJds8FhMPVpne26M8vLfxcqbuSYTQ8FznnS/jSPfp18gLLL49vfLBn81g3zv lYB9Q9YSJke58oG6YUR1CI+Lr+DVYWFQfyhOeb0+YkHoI4UY86VV5GJzv15FSAh200q8 MdBmK8cupr91hFIRmzsv3gkdk8WoFeQwr5B/cIxhnqC98qF9tnS1+vwDATjT1aabL7kP gT8w== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20221208 header.b=lyoh2SBz; 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 l19-20020a056a0016d300b00686e01db946si3437604pfc.64.2023.08.02.10.30.00; Wed, 02 Aug 2023 10:30:24 -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=20221208 header.b=lyoh2SBz; 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 S230010AbjHBQ6X (ORCPT + 99 others); Wed, 2 Aug 2023 12:58:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54976 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233764AbjHBQ6T (ORCPT ); Wed, 2 Aug 2023 12:58:19 -0400 Received: from mail-yb1-xb49.google.com (mail-yb1-xb49.google.com [IPv6:2607:f8b0:4864:20::b49]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 824A51705 for ; Wed, 2 Aug 2023 09:58:18 -0700 (PDT) Received: by mail-yb1-xb49.google.com with SMTP id 3f1490d57ef6-c6dd0e46a52so12667276.2 for ; Wed, 02 Aug 2023 09:58:18 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20221208; t=1690995498; x=1691600298; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=PzbCDXFnk3w2SSf45TXB2yxLMTvmATReUsA4zCcZwws=; b=lyoh2SBz23Xi/1oythXCvD4eYT/mDAOe1c1NCuMnLDbp/ZF1fVWTZSS7U8LfcMunzP jkvpro9VFgWnjS2rIuQKBJORICyNhyf5NOWNBck6eMYluV3+8yr9OmHJ345iUgzR1c0R tRd6tvQUb71r2RPXSvUWe2DEcA4tQcmDlsNvbWIQUYfsb6stBllbtNrWVjJy6HEnXGoJ zZat4XSMBiInPICo94A+caZSdOnVvOcAzZvymmXkKrO3bOSubnDyPyZ+k50A3aT/BK3z AucwqqUgcTPSCT8zRp6TNveYxdxmpZNU2X3TsgfbiaSFvqUqk0vEnyCDp0KIvCrp74RX u5EA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690995498; x=1691600298; 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=PzbCDXFnk3w2SSf45TXB2yxLMTvmATReUsA4zCcZwws=; b=HS6vrTN3KeovoHdOsyGMMFKe0E9BVoVqfqI8WRiXGx9KQGWLgkx9/B6/R9qRx3kovB alh6IGQdUAQlzfoPfQxqccOO2IyDmPQtp9+B/L1TZfip5xKow5S1YsOqvkqOchJIUc3T NmA0h6fG3GawmAkghhgkwWjy/2jwCSWFc2St0OCUku/dLaC8Q2ou+Gq/+Y5ArZzF6YZr n71eEiHCYSsv2iUTzJwHrc9xAYz2rO+0MbogC4PzAQIpaD1ceBDaQEK3/4G1fKbIiAMu SIZfBi//puK4MEh2qpevT4zFIGkRAWKYNg8tI7gfcVg62MqwX/xAfu+jWQmD6EoziIks 8JIA== X-Gm-Message-State: ABy/qLaz7Hkw5Wl0uJ8N00uCIQ2Q2qQn1jNL25D15cTJkiRNzVjZDa+D 5cwh5kxWnoo4MzZq7WNGqpctNwBwpqk= X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a25:4109:0:b0:d10:c94a:be7e with SMTP id o9-20020a254109000000b00d10c94abe7emr109911yba.8.1690995497821; Wed, 02 Aug 2023 09:58:17 -0700 (PDT) Date: Wed, 2 Aug 2023 09:58:16 -0700 In-Reply-To: <20230801020206.1957986-1-zhaotianrui@loongson.cn> Mime-Version: 1.0 References: <20230801020206.1957986-1-zhaotianrui@loongson.cn> Message-ID: Subject: Re: [PATCH v1 0/4] selftests: kvm: Add LoongArch support From: Sean Christopherson To: Tianrui Zhao Cc: Shuah Khan , Paolo Bonzini , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Vishal Annapurve , Huacai Chen , WANG Xuerui , loongarch@lists.linux.dev, Peter Xu , Vipin Sharma , maobibo@loongson.cn Content-Type: text/plain; charset="us-ascii" 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,T_SCC_BODY_TEXT_LINE,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 Please use "KVM: selftests:" for the scope. There's no "official" requirement, but I've been heavily pushing "KVM: selftests:" and no one has objected or suggested an alternative, and I'd really like all of KVM selftests to use a consistent scope. On Tue, Aug 01, 2023, Tianrui Zhao wrote: > This patch series base on the Linux LoongArch KVM patch: > Based-on: <20230720062813.4126751-1-zhaotianrui@loongson.cn> Is there an actual dependency? I ask because I'm shepherding along a series[*] that will silently conflict with the ucall support, and in a way with the Makefile changes. If there's no hard dependency, one option would be take this series through kvm-x86/selftests (my topic branch for KVM selftests changes) along with the guest printf series, e.g. so that we don't end up with a mess in linux-next and/or come the 6.6 merge window. https://lore.kernel.org/all/20230731203026.1192091-1-seanjc@google.com > tools/testing/selftests/kvm/Makefile | 11 + > .../selftests/kvm/include/kvm_util_base.h | 5 + > .../kvm/include/loongarch/processor.h | 28 ++ > .../selftests/kvm/include/loongarch/sysreg.h | 89 +++++ > .../selftests/kvm/lib/loongarch/exception.S | 27 ++ > .../selftests/kvm/lib/loongarch/processor.c | 367 ++++++++++++++++++ > .../selftests/kvm/lib/loongarch/ucall.c | 44 +++ > 7 files changed, 571 insertions(+) > create mode 100644 tools/testing/selftests/kvm/include/loongarch/processor.h > create mode 100644 tools/testing/selftests/kvm/include/loongarch/sysreg.h > create mode 100644 tools/testing/selftests/kvm/lib/loongarch/exception.S > create mode 100644 tools/testing/selftests/kvm/lib/loongarch/processor.c > create mode 100644 tools/testing/selftests/kvm/lib/loongarch/ucall.c > > -- > 2.39.1 >