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 95F5CC001E0 for ; Mon, 31 Jul 2023 18:23:28 +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=47ikhHwLungC8unBN25hxYvNHnKvTyP2jIGgJ/vDjqc=; b=NjeWTQT2hpNbwf UoQtcq3MyH0pXJNFzURPsdU6uUyObxXOtrsq3I8HQ8eusng4gCLL5QEcmUabSGkoa5rINXNRC9hNW TlcShOyeUJG79BMjy8QJZt49kUrCI14POb83bSM7bwsQy0lnhxpMb+rEWGI7R5d4MwnkuwbeYkyzf 7blF2A7yPnKU8Kbd3eXK4OXEVfAuODKSoj28fqFTbppgnpT+s0X8yQQU6uAW8viggVRvuj4sgV+bQ cGTTyuxFGoX6CCTTjRkgP/omQuM4j+6+UP6XCJIGTlvyzawyDU0XwAxBCj8mr8MFlodqWM5ZNFqGb aG8ncra2mE7qleQXYm7Q==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qQXXp-00GyJi-02; Mon, 31 Jul 2023 18:23:01 +0000 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qQXXl-00GyJ8-25 for linux-arm-kernel@lists.infradead.org; Mon, 31 Jul 2023 18:22:58 +0000 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-4fe426521adso217853e87.0 for ; Mon, 31 Jul 2023 11:22:56 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=ventanamicro.com; s=google; t=1690827775; x=1691432575; 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=Q6BmQQ8xDHQ3qzVuwILJuAltF2TxUquAINpFxWwuR3w=; b=RTUp1GcE9TWV1qTvNE1C02wFkvp/rEJhtk+51nISvyjgPTusv53crdnWdpbT2WDNpC 9czQGReCauWeNFu8mJtHkId8ASDjhvZWALHZh+SyhEMqoUTqhxssydzxa6uZBKj0qYrD vcyzEEjHdxO76TNZyKc9O24YAUeb5rdAfQi7xglRc7Oz8U/VK20seE+TqLxPiIUEF2AF p2ypuV+xtoforGGsa/Lt/KyL8w4KTS3XdMdpYfXyMrVCX/d56Us0p1xCWIGjqH506lyL NZbaDWWhUfPFLWX9TmHQaEyEA1UmGoVZusjLFfEFIf7D4qJ0RegD+CSe3GcPeA3rkzoJ xi6Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1690827775; x=1691432575; 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=Q6BmQQ8xDHQ3qzVuwILJuAltF2TxUquAINpFxWwuR3w=; b=M2xQUEsyWFVeOTzdM2CcGGp24YCYYwKpNrhgVoz+6xDiYD7hEKU8WtUfpC3XjAdR9u +zRZwRMW9g5lIPv6tpMGl74/CenAXN30nnYRcKNfzIeuLHUcKaUBWhcpSjkojqqKksBY JHUwkbrE8dW7FYI/bZbGRTa59NZwqeSrYicbO65Pktky2SMGSRiN3d/9zJWD+jYwNlo0 LAdg+0NveZYQyvaNdV8zObj80F+yJYA4OJifm/zn3F04hXpnld7S9mlqcOTOcKsmAyyX C5MVz1bLBLNQoqImO5f8QN5nxqOl0L897+WRLur0V3z/z5ti6lroc3hCxRek+t/BGKhz yv4w== X-Gm-Message-State: ABy/qLbEXAnup60SamM2psoR3dYXLiNz1e7ePG7QjHbQ6DOPo4arb1hx 2abRamgLRxQg5Ux/yQGem/za2g== X-Google-Smtp-Source: APBJJlE51QtfiG+1ENPBZcz/MTN10/l7Xyhmr/3dD4Lp00ivZz+NffJEl0iYsoUxrdAsUIsDuqY10A== X-Received: by 2002:ac2:5e34:0:b0:4fe:3e89:fcb1 with SMTP id o20-20020ac25e34000000b004fe3e89fcb1mr383296lfg.68.1690827775288; Mon, 31 Jul 2023 11:22:55 -0700 (PDT) Received: from localhost (cst2-173-16.cust.vodafone.cz. [31.30.173.16]) by smtp.gmail.com with ESMTPSA id u7-20020a170906408700b0098de7d28c34sm6476150ejj.193.2023.07.31.11.22.54 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 31 Jul 2023 11:22:54 -0700 (PDT) Date: Mon, 31 Jul 2023 20:22:54 +0200 From: Andrew Jones To: Sean Christopherson Cc: Paolo Bonzini , Marc Zyngier , Oliver Upton , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.linux.dev, linux-kernel@vger.kernel.org, Thomas Huth , Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= , Aaron Lewis Subject: Re: [PATCH v4 09/34] KVM: selftests: Add a selftest for guest prints and formatted asserts Message-ID: <20230731-4335e61b2b2688a925025a9c@orel> References: <20230729003643.1053367-1-seanjc@google.com> <20230729003643.1053367-10-seanjc@google.com> <20230731-91b64a6b787ba7e23b285785@orel> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230731_112257_693306_0002390E X-CRM114-Status: GOOD ( 21.18 ) 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 10:19:47AM -0700, Sean Christopherson wrote: > On Mon, Jul 31, 2023, Sean Christopherson wrote: > > On Mon, Jul 31, 2023, Andrew Jones wrote: > > > diff --git a/tools/testing/selftests/kvm/include/ucall_common.h b/tools/testing/selftests/kvm/include/ucall_common.h > > > index 4cf69fa8bfba..4adf526dc378 100644 > > > --- a/tools/testing/selftests/kvm/include/ucall_common.h > > > +++ b/tools/testing/selftests/kvm/include/ucall_common.h > > > @@ -6,8 +6,19 @@ > > > */ > > > #ifndef SELFTEST_KVM_UCALL_COMMON_H > > > #define SELFTEST_KVM_UCALL_COMMON_H > > > +#include > > > #include "test_util.h" > > > > > > +#if defined(__aarch64__) > > > +#define UCALL_EXIT_REASON KVM_EXIT_MMIO > > > +#elif defined(__x86_64__) > > > +#define UCALL_EXIT_REASON KVM_EXIT_IO > > > +#elif defined(__s390x__) > > > +#define UCALL_EXIT_REASON KVM_EXIT_S390_SIEIC > > > +#elif defined(__riscv) > > > +#define UCALL_EXIT_REASON KVM_EXIT_RISCV_SBI > > > +#endif > > > + > > > /* Common ucalls */ > > > enum { > > > UCALL_NONE, > > > > > > and then compiled the test for riscv and it passed. I also ran all other > > > riscv tests successfully. > > > > Can I have your SoB for the ucall_common.h patch? I'll write a changelog and fold > > in a separate prep patch for that change. > > On second thought, I take that back. I think it makes more sense to add a ucall.h > for each arch and #define the exit type there. All then move all of the > ucall_arch_do_ucall() implementations to ucall.h (except maybe x86 while it has > the horrific save/restore GPRs hack...). That way the #define is colocated with > the code that generates the exit reason. Yup, feel free to just take the above as inspiration and create a different patch. If you decide you want an s-o-b for the above, though, then here's one Signed-off-by: Andrew Jones Thanks, drew _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel