Received: by 2002:a05:6358:c692:b0:131:369:b2a3 with SMTP id fe18csp5503898rwb; Tue, 1 Aug 2023 03:51:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEATGPSdlu0O2a12uER9olFB55UMWIx1xvUASu/mslfGtjsecusAiquNhfSVIEKByBvuhpE X-Received: by 2002:a17:90a:638e:b0:268:3a6a:7df4 with SMTP id f14-20020a17090a638e00b002683a6a7df4mr11659348pjj.10.1690887083940; Tue, 01 Aug 2023 03:51:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1690887083; cv=none; d=google.com; s=arc-20160816; b=iDMEKeuDDc9qzhP0coRkKovHCCW+lreo32HoYzaaVGE0IJj6g+y/SCvECZju/quhFH 5tseBQNXGElNVIrmlFSCFdwiosMi/1cXppwSb5ljttjDkqu1uwUBdmYj+5wrdajlIe2n hi6Wy77DsUY1JNbVnvgW89+66H4ne2zudYPxprM3/rS4yzbB1U/8uWqLaOInCLuFyEUM nH3lc3MK35s9m2rvP2HvNtlv1kN14nTvWZHEC/wqj42Dkj9XvK6UWK1hjr/IDFhawM4/ Biqu+k8BjMUnbgiwBOqvujZED6/FDduN92YV7Igy+bluxGx1+6nbhDLBQ12BbG2ai586 iSig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=Gm17gZxC0/vm/Jdu3xQH50fn0wnKiSVhKMApv17FsGQ=; fh=FTG1r3XrxejOca075LSfLXgiTu7Qp1Z3pnovLJwLfYE=; b=TAPG52NOcnZJBRT/rcCgOcT7ZFQ7vXOif97OzelkpRuukkztZBi9vC0knHvRoJ3J1t /9PSF8dyVaM3k+Y1D0r+cvd88ZKksHTdsH1Yhz4mmu0CV5igaxh6wTp/Snd7BBgxZqev ASpB/hyojeAu02bC1G1RVaGyMuQhUcPGPSHxYZbMqTz9pGtbovZCyAhiVulM5WUUiuwg uPkfHpFh+FT7Z2VgJfBIgvXlxOpHHZ/mMZZ+ikuNd4UCrL04xizN6vsZevyFG9kFAfsF uG89hXqO04rmWhoPRfDfaBBmBSKwRn1+hnKE42PKw+1uEXxDwCDamK0QlHe5YP8+5FUX iwtw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ventanamicro.com header.s=google header.b=dq5CAvhQ; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l14-20020a170903120e00b001b7ea20dbf2si9213265plh.224.2023.08.01.03.51.11; Tue, 01 Aug 2023 03:51:23 -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=@ventanamicro.com header.s=google header.b=dq5CAvhQ; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S232786AbjHAJX0 (ORCPT + 99 others); Tue, 1 Aug 2023 05:23:26 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52298 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233006AbjHAJXM (ORCPT ); Tue, 1 Aug 2023 05:23:12 -0400 Received: from mail-ej1-x630.google.com (mail-ej1-x630.google.com [IPv6:2a00:1450:4864:20::630]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EF023272A for ; Tue, 1 Aug 2023 02:21:51 -0700 (PDT) Received: by mail-ej1-x630.google.com with SMTP id a640c23a62f3a-99bed101b70so659487566b.3 for ; Tue, 01 Aug 2023 02:21:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1690881710; x=1691486510; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=Gm17gZxC0/vm/Jdu3xQH50fn0wnKiSVhKMApv17FsGQ=; b=dq5CAvhQQ+vveH4MSteCM4KpxWqvSjfMuOapn0LnoQqDOErjMIbbWNheVH/uLc2KIf UdBwINkexXsFRjBN8poea9hv+4sXzWagYJkGf39toFnDnN3gA3fyjhZTQCaYda/GblQa pkw6dcECiAkZW/+Wy1xwLXzUC7d0jC/4tRCVUhI1fyGS501AuV0YVethzHboQgI7CbyL M5k4ZKy5NVWRN6++5pgESXlnIknAxtut14Hcvq275w4blo8RZfULkrUqc81+6hPmItwP 3fxQ350OyrMQNDnLyh3ELg4ylCq9dGO2couVM6uXKHIXQCaUruaeC2pK2fs6kliqSArs ZedQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690881710; x=1691486510; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=Gm17gZxC0/vm/Jdu3xQH50fn0wnKiSVhKMApv17FsGQ=; b=g2gAQyyf3sLahumOeybxCZMcJlglrvteIp0SMFrzFdPT0mBrzXDSi22MZqnSJB2aq+ pgVp/Qa/czKoYHeGrQOK/0tGewZRWZHYk2ZWlzFXeA9nz6aacxw9F58pBP5Y/EqzWP6b T0xOVtNuEUpHl3KZsmhuehX4NGqOTuMBFjh30UCh22o6dIeF3fds1vp0SU6ItcR5xYlD ud6euejRFR2rrmC4S40uhQh+g2GBzcY+/nNSIu26evXCR+mArpJtsuaWoWTbUkgICsP3 i1ul6qinsuIrblt8+zrPA+2Dw4rG6RUJYbSzkrHVzRKLXQk79xsptffwOWMX8eG5UJAR 7bHQ== X-Gm-Message-State: ABy/qLaifTJf3Q29H8tsthMPjU/KxpIsM3h8R29RxbgBFkfoOdi3VwIx /RFtm6B1EWsg5kM/mR8rUJimwhxVkICOVgWB1NSNbg== X-Received: by 2002:a17:906:518a:b0:99b:fdbb:31f1 with SMTP id y10-20020a170906518a00b0099bfdbb31f1mr2052678ejk.16.1690881710061; Tue, 01 Aug 2023 02:21:50 -0700 (PDT) Received: from localhost (212-5-140-29.ip.btc-net.bg. [212.5.140.29]) by smtp.gmail.com with ESMTPSA id m10-20020a17090607ca00b009931a3adf64sm7529760ejc.17.2023.08.01.02.21.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Aug 2023 02:21:49 -0700 (PDT) Date: Tue, 1 Aug 2023 11:21:48 +0200 From: Andrew Jones To: Sean Christopherson Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Aaron Lewis Subject: Re: [PATCH v4.1 1/3] KVM: selftests: Add arch ucall.h and inline simple arch hooks Message-ID: <20230801-3ab43c432cbaafcadbffb092@orel> References: <20230731203026.1192091-1-seanjc@google.com> <20230731203026.1192091-2-seanjc@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230731203026.1192091-2-seanjc@google.com> X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE,URIBL_BLOCKED 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 On Mon, Jul 31, 2023 at 01:30:24PM -0700, Sean Christopherson wrote: > Add an architecture specific ucall.h and inline the simple arch hooks, > e.g. the init hook for everything except ARM, and the actual "do ucall" > hook for everything except x86 (which should be simple, but temporarily > isn't due to carrying a workaround). > > Having a per-arch ucall header will allow adding a #define for the > expected KVM exit reason for a ucall that is colocated (for everything > except x86) with the ucall itself. > > Signed-off-by: Sean Christopherson > --- > .../selftests/kvm/include/aarch64/ucall.h | 18 ++++++++++++++++++ > .../selftests/kvm/include/riscv/ucall.h | 18 ++++++++++++++++++ > .../selftests/kvm/include/s390x/ucall.h | 17 +++++++++++++++++ > .../selftests/kvm/include/ucall_common.h | 1 + > .../selftests/kvm/include/x86_64/ucall.h | 11 +++++++++++ > .../testing/selftests/kvm/lib/aarch64/ucall.c | 11 +---------- > tools/testing/selftests/kvm/lib/riscv/ucall.c | 11 ----------- > tools/testing/selftests/kvm/lib/s390x/ucall.c | 10 ---------- > tools/testing/selftests/kvm/lib/x86_64/ucall.c | 4 ---- > 9 files changed, 66 insertions(+), 35 deletions(-) > create mode 100644 tools/testing/selftests/kvm/include/aarch64/ucall.h > create mode 100644 tools/testing/selftests/kvm/include/riscv/ucall.h > create mode 100644 tools/testing/selftests/kvm/include/s390x/ucall.h > create mode 100644 tools/testing/selftests/kvm/include/x86_64/ucall.h > Reviewed-by: Andrew Jones