Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp639693rdb; Tue, 15 Aug 2023 07:42:51 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEMioORKt/a+5ZKlqxVwWc49O8x0rL5YbhqiN2+XMZyQSLdhHKd3M+tbLfetP4jmK0i2GO6 X-Received: by 2002:ac2:4d86:0:b0:4fd:d6ff:c244 with SMTP id g6-20020ac24d86000000b004fdd6ffc244mr8009849lfe.62.1692110571473; Tue, 15 Aug 2023 07:42:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692110571; cv=none; d=google.com; s=arc-20160816; b=Q7Mq930ouRvcfxQJEU1vtBNPec/65opGXorm4z2Tvfn6+ICndPNRiB+3UVmphu813T K02ml7H6107OI+Sxt/9IIyhlvD/q1gOigUZUzMjL2t6Catp6bGmN7nfZo2gjxvqEyx0O rBXsSq7yaz0tFYOxAXkrlCfKLtpCaJ1wNRiqENldy3sgEgE8v8eMNXbyqxyB9gERv71C PMAmeP3rU5bPSDL8j0x53tJDShckt7yjRrod2SRc7mJCypv0a8b1/qRDDJNCXVvSeuTZ s5FVyYOmaGrbI9eK+16tIw7CL63Q/9c+9unRLhRaq7fd2TYxL1qnx3ygyfYSMMrTeO7k +87Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=pPWKIi3cCAcUYZ79Tqrjq5RSyR+Am87+BzKT/5/LTjE=; fh=Snbldkc0NRPPD6ywdcv+fz0pPL6kEpunPznSCGv/evg=; b=gjfWWV//1kOSw7l2c682k+gDPeHNitDK9veRLc0xA709CdxOf3SQ255WfIg/8d0jyy Ryf+cMVp5PUwHvN7m6KsSHk35BsDNUZiaw4A0rZ0TyLMTI6Ig9RfIbnB+ERN2F8i7SvK Sg5tLVKvn5gxkZl9OCWDo+k9MjpLwY0Rvd4Cx5p9eUbT+RGHHrxDwO0rXtKDvkqQ2F7U d51vJUZjUv25sVXOJHcjBGT4mermKWzX9PYrRJ+QYuh0YLcEs5wYx2/KwVpqSuDDFbIK m88YOghDRkXT3KUYREG/ISbT/bqiUrYFY2CIe8qj13bvZphMjLoZGLxLBkaUWehZkuwi Ti2Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=Uqw5AIwC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q16-20020a170906361000b0099ce9549c44si9409860ejb.24.2023.08.15.07.42.25; Tue, 15 Aug 2023 07:42:51 -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=@kernel.org header.s=k20201202 header.b=Uqw5AIwC; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236270AbjHOJyO (ORCPT + 99 others); Tue, 15 Aug 2023 05:54:14 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:33462 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236247AbjHOJx6 (ORCPT ); Tue, 15 Aug 2023 05:53:58 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 18201F7; Tue, 15 Aug 2023 02:53:57 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 9C70A62B61; Tue, 15 Aug 2023 09:53:56 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 6926DC433C8; Tue, 15 Aug 2023 09:53:51 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692093235; bh=kvaqJ2sBEkbN7oMgKvzp6aMeCbQ6lN6aEQjyWQJ5X6s=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Uqw5AIwCq5p7sCinwmmp/Lqz+8nGO5myfGcZEaCsclPS+/Dq5OkqZIWvlAsVY8uxR FL5dgh/XWOTklxmPq9FDZW5xT31bE/WIg6siTr5DLREiB2Zv7srizXhQIOcqQiDaS4 PCZjYG6f3/OWUWTxkKEwh7oAlcEAZU/xrZ/iMoTlKvu1SjYYeqP4Uf5CwHYCvOgzjK rYulG/3FrqS9u8zCuJPbKQNYtQMWuPv1dS8t0eV05/iK8WzCJTpWThBQjtR4cOKgrU qCM6KGWyF2pkR9NkX9uqoHqsfYuQ4rVzrshHKaBe0jrpTTYMdWS100Oykaz9q5eP8k GMSfRQ3v6Nhuw== Date: Tue, 15 Aug 2023 10:53:47 +0100 From: Will Deacon To: Rob Herring Cc: Yi-De Wu , Yingshiuan Pan , Ze-Yu Wang , Krzysztof Kozlowski , Conor Dooley , Jonathan Corbet , Catalin Marinas , Arnd Bergmann , Matthias Brugger , AngeloGioacchino Del Regno , devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-arch@vger.kernel.org, linux-mediatek@lists.infradead.org, David Bradil , Trilok Soni , Ivan Tseng , Jade Shih , My Chuang , Shawn Hsiao , PeiLun Suei , Liju Chen , Willix Yeh Subject: Re: [PATCH v5 04/12] virt: geniezone: Add vcpu support Message-ID: <20230815095346.GA11083@willie-the-truck> References: <20230727080005.14474-1-yi-de.wu@mediatek.com> <20230727080005.14474-5-yi-de.wu@mediatek.com> <20230811170054.GB3593414-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230811170054.GB3593414-robh@kernel.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_PASS 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 Fri, Aug 11, 2023 at 11:00:54AM -0600, Rob Herring wrote: > On Thu, Jul 27, 2023 at 03:59:57PM +0800, Yi-De Wu wrote: > > From: "Yingshiuan Pan" > > > > VMM use this interface to create vcpu instance which is a fd, and this > > fd will be for any vcpu operations, such as setting vcpu registers and > > accepts the most important ioctl GZVM_VCPU_RUN which requests GenieZone > > hypervisor to do context switch to execute VM's vcpu context. > > > > Signed-off-by: Yingshiuan Pan > > Signed-off-by: Jerry Wang > > Signed-off-by: Liju Chen > > Signed-off-by: Yi-De Wu > > --- > > arch/arm64/geniezone/Makefile | 2 +- > > arch/arm64/geniezone/gzvm_arch_common.h | 20 ++ > > arch/arm64/geniezone/vcpu.c | 88 +++++++++ > > arch/arm64/geniezone/vm.c | 11 ++ > > arch/arm64/include/uapi/asm/gzvm_arch.h | 30 +++ > > I'm almost certain that the arm64 maintainers will reject putting this > here. What is the purpose of the split with drivers/virt/? Do you plan > to support another arch in the near future? Thanks, Rob. You're absolutely right that this doesn't belong in the architecture code. Will