Received: by 2002:a05:7412:3290:b0:fa:6e18:a558 with SMTP id ev16csp847452rdb; Fri, 26 Jan 2024 12:32:33 -0800 (PST) X-Google-Smtp-Source: AGHT+IGXIAhEjsYv/E/39j7vPax3ACVmJctYz7T/lIiCcSWjSP3utyVXDsV9NsjH+MlHYFuEUgdG X-Received: by 2002:ae9:e513:0:b0:783:25ef:818e with SMTP id w19-20020ae9e513000000b0078325ef818emr324356qkf.116.1706301153322; Fri, 26 Jan 2024 12:32:33 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706301153; cv=pass; d=google.com; s=arc-20160816; b=nPyzAWP65n27ghL3t5uEJEgDcoWKlgNLABVCNU2LbGLTciJHAV+ShVONAekz8K98Bb pYyZ3YolMPBD5navPTjEvzXXUC4/6QrUciJKS/a6dUgXC08wyud+aXlv4oAsj18J9+0S Ve1zluaTXcBWh9cZhX2xs8slONfugBuywqFfLlKZJUgjM8afHmAR8Yl0HULLqBKfSiMw CWSmeRFMmtUYls4bE9qaydjZgFMyl+29y5keKLidGQnrUK1feVyAPH4MY5b95JLZofkh BOqIyFpadxVPsGvZ/i8z7UF6L+i4S0MmnixOY4QvOjMr04eAdjcj2FwWdcm7eIAbaaTB Ik7Q== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=khTRnTM9rQ9XNgg2MeAsdPMur24bOv6XznsHlkn8x0g=; fh=cActycSHYrolgYO47rP0WnGeLFqbn7t1YKQopHApyKM=; b=OPmjQwqaAb7SSdPCUqz4fUiORg92eC2r/4/lj/Ff3IVf1SntNOtt7uW4r19iO/ba5W SvphqeQfW3OTlE2rtz9Zo49LOkvndmZ4Fd/rdRGk4fRW5wj3eTPFsL1nSlb8sOPnSUPA IgUFFF+ZF2FjQ0BhGLTnHm8vDzpC3Q5AACLDnDMN/rShmBaFTCEbsf0sOjA8K7J7Fwk0 DW4UA+4WtPUQpzwHylvMfGT2/A1WRF/zIFaYjLyDKYYzw0KxshzWqL7hF982S0wW2JXL qq5nhUVkeKEkT1tIZGV2FiM5F5tXTbh+SBTClgik51alah4NNXsQ0oellw2mDVgtH8DE Z+XA== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LmguHJry; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-40629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id c20-20020a37e114000000b007838bad2e39si1999278qkm.199.2024.01.26.12.32.33 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 26 Jan 2024 12:32:33 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-40629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=LmguHJry; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-40629-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-40629-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 19A1D1C214BD for ; Fri, 26 Jan 2024 20:32:33 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 615DB24205; Fri, 26 Jan 2024 20:32:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="LmguHJry" Received: from mail-pg1-f202.google.com (mail-pg1-f202.google.com [209.85.215.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F26A225DE for ; Fri, 26 Jan 2024 20:32:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706301142; cv=none; b=apgrtuWcYHjCqoQcKIiCw58SBSvkgSFBs7XPjpxzRBlDhwdcoyabrQ4tmfRAzDegrNj4K1YeDm45zv6hOOJuNTtTiUT7qJ/0uyeiZeYe2OQ/UtKSG11wqLIv15KAin9TQ7/F/KiY9DeDN8E9jCmQ1yVNTBDdUa0sC9zuoJjkPUI= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706301142; c=relaxed/simple; bh=SFib0KiekjrLD8wcJY8L7d4ExRDyCFVGTi65Fe3iBQo=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=mbZ9CM1wveQF/tDTCsEYAL/fyHCLFQom3RHJBUHUAPQeR7g1WrBSPhQrYTuFErHFc/45jnBhpdIm8pWiudSlQs8t1u/iFm9aT/oSeBwMXhaU12vkMtsfXe7Ipd2QH/ILm6f6uUaNoWqWsaaaSk7Wd+HQq2/0LDZ0mLUCpBYTxaY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=LmguHJry; arc=none smtp.client-ip=209.85.215.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-pg1-f202.google.com with SMTP id 41be03b00d2f7-5c66a69ec8eso706469a12.3 for ; Fri, 26 Jan 2024 12:32:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706301140; x=1706905940; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=khTRnTM9rQ9XNgg2MeAsdPMur24bOv6XznsHlkn8x0g=; b=LmguHJrykGozB+Rm8hqImcDxTucI0eh7FcEbBMB/vtD5dEn/Eyq3o3hMhIPt21Fjfu h5Z6e12lp/7OPjwlMgo4NwF0hTiR0rMXC3OblJLjphoLl1Bzv5u7E7tdz3rgxwyflrQK cOt/3QPQhHpWds8LNlz7LIH6Kc2As1LK4d52FiUWqH5Ba18EqqWRTorrQASBFsCVfX9i JvqsV0tJe2gwoP0zNTabAjKbQEwkg8/4ISMgaJWtwYN3TBu1SfC11Qlj4kfILQaLpTDK T6eqJYTOmQbun4o7mNHqDa1jvmgOJ05hRcYlW3iAfSqA6ajtNfl8YzMG1UoRZ21I8KGB TiXw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706301140; x=1706905940; 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=khTRnTM9rQ9XNgg2MeAsdPMur24bOv6XznsHlkn8x0g=; b=B7KsvrKj0dvU+quaWDO8SA0g9amJbSbv7BgMfE7D0X3XxLGx1X+ptNNLS3GDfG7L6q Q89WUXGVH5wsceMhc3Fp4CV1/zFI8BDgak13WcP3/OpKy6U593cno6A1uTrNHLR1UMre saXwx4lxjAXnOzdNPDjMPTXbUVRKlnJyOK9YGGnjhMUrzbs0clnwY4m5qbJ6T9w4kbAD GUhu9jgGdzW8GPTaUgRZVBFPQCZgAED+XRxswdzhHfztx9IIgf1sNQBa7cHLsLaTGbZz wKTLd2zt/IaSWcJFSJWiE2t+BCN0aVjAWG7d9DYhUowF9JXB12SWzxlbPsgRIxQ7qgMp 6hvg== X-Gm-Message-State: AOJu0Yxmn9U+DMSrrsNWZJV2Oy0LUh3AoajxR662H0FtxLJLfrH51ymh 1jCZtdTpAzJ5Oq56AiHBr8AjnuQDaqe1hzCjWrFl9vf3bkfekTCOz/qaYBmwnO10BbmAQziAoIz Dig== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a65:6648:0:b0:5d7:d631:202d with SMTP id z8-20020a656648000000b005d7d631202dmr1912pgv.4.1706301140652; Fri, 26 Jan 2024 12:32:20 -0800 (PST) Date: Fri, 26 Jan 2024 12:32:19 -0800 In-Reply-To: <20240125015420.1960090-1-maobibo@loongson.cn> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240125015420.1960090-1-maobibo@loongson.cn> Message-ID: Subject: Re: [PATCH v6 0/4] VM: selftests: Add LoongArch support From: Sean Christopherson To: Bibo Mao Cc: Paolo Bonzini , Shuah Khan , Tianrui Zhao , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, linux-kselftest@vger.kernel.org Content-Type: text/plain; charset="us-ascii" On Thu, Jan 25, 2024, Bibo Mao wrote: > --- > Tianrui Zhao (4): > KVM: selftests: Add KVM selftests header files for LoongArch > KVM: selftests: Add core KVM selftests support for LoongArch > KVM: selftests: Add ucall test support for LoongArch > KVM: selftests: Add test cases for LoongArch > > tools/testing/selftests/kvm/Makefile | 16 + > .../selftests/kvm/include/kvm_util_base.h | 5 + > .../kvm/include/loongarch/processor.h | 133 +++++++ > .../selftests/kvm/include/loongarch/ucall.h | 20 ++ > .../selftests/kvm/lib/loongarch/exception.S | 59 ++++ > .../selftests/kvm/lib/loongarch/processor.c | 332 ++++++++++++++++++ > .../selftests/kvm/lib/loongarch/ucall.c | 38 ++ > .../selftests/kvm/set_memory_region_test.c | 2 +- > 8 files changed, 604 insertions(+), 1 deletion(-) > create mode 100644 tools/testing/selftests/kvm/include/loongarch/processor.h > create mode 100644 tools/testing/selftests/kvm/include/loongarch/ucall.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 I did a *very* quick read through and didn't see anything egregious. I really hope that someday we can deduplicate much of the ARM/RISC-V/LoongArch code, but that's no reason to hold up getting selftests support merged.