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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id A1EF5C41513 for ; Tue, 15 Aug 2023 09:54:45 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236218AbjHOJyN (ORCPT ); Tue, 15 Aug 2023 05:54:13 -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) Precedence: bulk List-ID: X-Mailing-List: linux-doc@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