From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 33946C0015E for ; Tue, 1 Aug 2023 09:44:24 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:In-Reply-To:MIME-Version:References: Message-ID:Subject:Cc:To:From:Date:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=tMzuLj57WmyfEKwgJC1Bd7r0bziScTK2rt2fLnybidc=; b=HUncIVYP5VAR4Q n8+8v89I8HR60/rV0Dqq3dcvp7I2Hu0cafSL3JJc7oBsr1gh+Mc69sgOpkJ+yqKQgEoMs9Gmo1cma jbWif3bBP5D8P1brNblqjuygGb88vhEIoLnhnDqNPKfPVt8O9w7sbuAx+djMgoZu7rKltj5TSWG3/ r6O82y5hTTxoNTZpv6Vv7MpyNvs7hhbi8GA9s0vjeXfzSSE5rvVxJzgEPZyrlRLWQ036OXp02dSxR G9tQyjFO7rhSOQZZarv+oKfSWfp4imWmoBF0Ivj1aKiu/leQWl8Mx+Xvs4rw6EpeLYFR+1JAn9BZd ace7A5G5789oH5FAolAg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQlv4-001eGp-0e; Tue, 01 Aug 2023 09:43:58 +0000 Received: from casper.infradead.org ([2001:8b0:10b:1236::1]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQlv2-001eAF-0L for linux-arm-kernel@bombadil.infradead.org; Tue, 01 Aug 2023 09:43:56 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=Gm17gZxC0/vm/Jdu3xQH50fn0wnKiSVhKMApv17FsGQ=; b=crm/xnWQCdFpjbnPCI+fHozjHu /zj3tyRXfEvnGy8zPWPoI8Lc+JX5CC/4q3MbTvAUBwU2/T/2on3aVGjRlIyGXmRttD/w8AkjtQJ5R 8Uwx3RNjr1mKg0YvPHJyY395ZUyB/AMUCk2uFKDjPblP7CIGpemDfQYd387GpEH4Psu2S8is2O2Ki OQCQOlMFUCZu/VOKkoz5sBTJKKQpYTn8UK0FFSQt2eid0k+HuDuDtcDChKG0fYguCK+zQZnX7Kq3H +iLTblm0fIGhxzZB7NU+hwLVL69JCGxC3ib0VcfM+0Lk8kDh8mS5FB9A2q7fR12kOlC36pHGghSnu 6JcElX2w==; Received: from mail-ej1-x631.google.com ([2a00:1450:4864:20::631]) by casper.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1qQlZg-007IRS-CV for linux-arm-kernel@lists.infradead.org; Tue, 01 Aug 2023 09:21:55 +0000 Received: by mail-ej1-x631.google.com with SMTP id a640c23a62f3a-99bed101b70so659487666b.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=YAn28u2eXfm3qWQptSe95qe4BtgcwJxThd7RuAikl7d7E7GV5ButvPOc0JqPzuu9c6 TxxwN1vGkxMPE2J2U2c6zR/eMaB0YGEskVBSorR1cahINSqc5yYLiERIZ5xWGKmRSwnb 91WFfk6/u6BcToxNEKEqjWIQocKJwLkF+rOobkUnXbd/bfPvERJt0ign2l/MIQc9hlHy Rr236dPOg9QCE8vX7TWDZcpw8XQ9Cqakx9uvAjtVW4gn8H7D6wDygTTKY2N4r7YPn+qr 1BcJMU6w+HciJt905Rb+N6LkKgRDuNZh1IDqPdkmQGU5xfCe373oMWRN/uCpwH7Yf+pp GTyQ== X-Gm-Message-State: ABy/qLaaJaetWqrD/uOqkPATMVfLxrQ1G7hsMyXo2qZLiWaKxn311lf2 fJ3UYlbPK0xLUW9WN4hwVT8EZw== X-Google-Smtp-Source: APBJJlGhr0BuIoveysf7HtzpSl2Jm+kRbIcFJ2Y03OXcder2XbQzIJjvsXJoXuSOYODVVZsM7UAnIg== 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-Disposition: inline In-Reply-To: <20230731203026.1192091-2-seanjc@google.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230801_102152_957816_835F245B X-CRM114-Status: GOOD ( 13.19 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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 _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel