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 71DB3C433EF for ; Tue, 21 Jun 2022 14:55:27 +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=N7sEVyKRSWhyWnhNJovkIpad4glyzD68A+JPanUk7R0=; b=Zsh8nSzUtTlku2 64uIpZ/x1/oSw5gvbw1irUlJCwafcVIOXtwaxAPsV9AmAqTD9K2wrP7pEu9yDNsDGimRwGmK3p4s0 VHy0/iR1jEmQgTIhW1ghD8neKMlAt4+MoifgH7NFzLv6/nEopCldK5eQB/9XGFlImNGmbnnfKYVTi vU2MC8RMcQGT4rNfH/Q2ZbkXTQMU/V5L/wUyC02UJpZTOhSBNYOYHub3sMbYD9mBJKlOf/buanyIb BkHcxpNGPYKse0YpGF6wG+263NODwSOfXrJKazYNxNdN9MRdRZPfz339sNZG9PPaiwU/Xped2SKzs yByht09ZmByEw7lYOY4g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3fGs-005zo3-Rs; Tue, 21 Jun 2022 14:54:26 +0000 Received: from mail-pj1-x102f.google.com ([2607:f8b0:4864:20::102f]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1o3fGp-005zmT-82 for linux-arm-kernel@lists.infradead.org; Tue, 21 Jun 2022 14:54:24 +0000 Received: by mail-pj1-x102f.google.com with SMTP id t3-20020a17090a510300b001ea87ef9a3dso13636707pjh.4 for ; Tue, 21 Jun 2022 07:54:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=ePpQR91B1wy0uIyvmn3lmteXD4y16fGYbzlfAq99TJo=; b=coFv7I5Y78JhXoxS37XR9c+mZYbk7SXPwuO7aREgBr4Q4xY/8nD/BF5WkQBHENLFnR M2swZ0YHKkbeZ6TusTYTCyinn24BoObIO+T5wnAXl9f2sGVIP8rG2F0nAbxkmCVGoPfH dAA8jbBGQ+fJqAoZJEhloFcXw4ggDv8whrRonPLp5/G9ruQkcs3nglSNUwAkZ1SThAWs 1rcmQq3sdA0WobCN3wZET42yLYirfqnABm0YdtxHceX3EHLEBkMtv0LKHMPI3jgadxxF dsa+Azc2y1bTS9+0PGwluDhQy+WUsYOcrTtvwmmyLjgGWHBJwb4h86H6/giVMU3D/eNI BJew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=ePpQR91B1wy0uIyvmn3lmteXD4y16fGYbzlfAq99TJo=; b=h4bgb6l/knGu+n66EcjV2hdLk63AN43Dv/ARGKzA5RWSQ6RXfvowBq86shVpL68F0k tRwwbPbeAUTsuK31B/y26VmsKEthP2tdqwXy+bgLf6gr81ckyFPkv1ljxh88iHv2dKJO e3AOb5sUMJhw3C+XxKU1c8vTizRYnah3KVwYHFEfbervMQuTk9ZGsmdPLIeBqyEGZ4Qm jjp/PdRXf3v/ITCqS0hZ451Z2wvSMhimAIaz3XQuqU6IC0lV0JIC02pdhF6qVvRI2CJq BxfW2k9fAZuHXJeUS2X9uGhRShllwGvlo9fDKMzDwKFPac5Y3i+gfS1zAfF/A8Bt9nHJ 7msQ== X-Gm-Message-State: AJIora94DYtq5M/prQYy6rpgu4YaMa+EUD8rkDwJcRNgfgeWsqY3qHkP FmhEKOctVbcbnktitHUUriuo2g== X-Google-Smtp-Source: AGRyM1vbuWPmzs8GSCKmhq+oi4jC8RW6CP9GBVkjErftz4qJu7wc14nAXYcvbe2B5lTWXF3n/kUg1Q== X-Received: by 2002:a17:90b:4a82:b0:1ec:bb6b:38d0 with SMTP id lp2-20020a17090b4a8200b001ecbb6b38d0mr7523665pjb.213.1655823262366; Tue, 21 Jun 2022 07:54:22 -0700 (PDT) Received: from google.com (123.65.230.35.bc.googleusercontent.com. [35.230.65.123]) by smtp.gmail.com with ESMTPSA id b21-20020aa78115000000b00518764d09cdsm11307136pfi.164.2022.06.21.07.54.21 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 21 Jun 2022 07:54:21 -0700 (PDT) Date: Tue, 21 Jun 2022 14:54:18 +0000 From: Sean Christopherson To: Paolo Bonzini Cc: Marc Zyngier , Anup Patel , Paul Walmsley , Palmer Dabbelt , Albert Ou , Christian Borntraeger , Janosch Frank , Claudio Imbrenda , James Morse , Alexandru Elisei , Suzuki K Poulose , Atish Patra , David Hildenbrand , kvm@vger.kernel.org, linux-arm-kernel@lists.infradead.org, kvmarm@lists.cs.columbia.edu, kvm-riscv@lists.infradead.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org, Colton Lewis , Andrew Jones Subject: Re: [PATCH 0/3] KVM: selftests: Consolidate ucall code Message-ID: References: <20220618001618.1840806-1-seanjc@google.com> <19bba1a0-8fb7-2aae-a65a-1111e29b92d3@redhat.com> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: <19bba1a0-8fb7-2aae-a65a-1111e29b92d3@redhat.com> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20220621_075423_306585_DA9D23F1 X-CRM114-Status: GOOD ( 15.24 ) 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, Jun 20, 2022, Paolo Bonzini wrote: > On 6/18/22 02:16, Sean Christopherson wrote: > > Consolidate the code for making and getting ucalls. All architectures pass > > the ucall struct via memory, so filling and copying the struct is 100% > > generic. The only per-arch code is sending and receiving the address of > > said struct. > > > > Tested on x86 and arm, compile tested on s390 and RISC-V. > > I'm not sure about doing this yet. The SEV tests added multiple > implementations of the ucalls in one architecture. I have rebased those > recently (not the SEV part) to get more familiar with the new kvm_vcpu API > for selftests, and was going to look at your old review next... I had forgotten about that code. My idea of a per-VM list[*] would fit nicely on top, though maybe drop the last patch from this series. [*] https://lore.kernel.org/all/Yc4gcJdhxthBKUUd@google.com _______________________________________________ linux-arm-kernel mailing list linux-arm-kernel@lists.infradead.org http://lists.infradead.org/mailman/listinfo/linux-arm-kernel