Received: by 2002:a05:6358:9144:b0:117:f937:c515 with SMTP id r4csp1908938rwr; Fri, 28 Apr 2023 03:38:31 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ6mfTdomXYu8QRISqQ1Cs8WuliOU+NJF689g0RFfpLGKe9YSAXwKp0HYD8du82gWBEOUuQE X-Received: by 2002:a05:6a20:c70a:b0:ef:f558:b80 with SMTP id hi10-20020a056a20c70a00b000eff5580b80mr4678100pzb.58.1682678311202; Fri, 28 Apr 2023 03:38:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1682678311; cv=none; d=google.com; s=arc-20160816; b=AxcwVKx9UyecQ6gcxD2m7H/zoZkzuNgIYFOKFKmnnqQKPZzSd86orD4Ij6aqPRrYKk TgKoxL3YMR9tNC3wobe8aQrVite9FdlraPz4egPBUExf6kofIat2KfDRmKRxb0ZsJrbV eCSwjRRd+yvaADUwh8AM6136Px0YDLo/PIF8ZYg6r95jKDuwO6bLQjlwDVcQr24LCNuC mprYcqrYnmhtCEIuxzXeX7dNT+aZbD5Ggkrai6X2bxVtF7xzv85gXdFJRv2adMYp1wQp DU9AEVc/aevV7AU1I1EROcumGeZx/rg85HiUJgc2u+zOyjFA7YrhjIPzcZA+lpsZicT0 JgGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:subject:cc:to:from :dkim-signature; bh=JQQfwdXJ3U6QJbtA1YUHv/cnpoSQQmb4BeKmzsuPPEs=; b=XIJa/JdB3gMN+srPI1vhBbwQJyr1ZmlB/GPKUD/4TYkgOFp04e02a8uji1R1mV9YYw oX9rajRPIYdDw4SpawvwVR3tkxfBrYRsSc6Aoa+X+7ve9N6xu5JPpyjqo9/KoWiiSii2 a09fGPy8AHp1BHzrBGuKneXpDxMIW4zEZscHS8xe5ZTKDGiwHrbtBTkTbMevlNMebueJ wNWp4JmaANb06EqZHmINnwXzq2gh/gzqdJg13NL5lw5VpWgUlq8VMKoFkYOFuy4V/Q1Y nGRyaKoVlFAuaekawl4nwv+1CYPFBlWifTl67DPJ09/K/WAd/yOWlrv7/Fq7+FqhOzaL iyJQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@mediatek.com header.s=dk header.b="tq/XWUIS"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q3-20020a63e943000000b0051f663b7e8esi21802179pgj.51.2023.04.28.03.38.19; Fri, 28 Apr 2023 03:38:31 -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=@mediatek.com header.s=dk header.b="tq/XWUIS"; 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=QUARANTINE sp=QUARANTINE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1345914AbjD1Kgo (ORCPT + 99 others); Fri, 28 Apr 2023 06:36:44 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34932 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229878AbjD1Kgh (ORCPT ); Fri, 28 Apr 2023 06:36:37 -0400 Received: from mailgw01.mediatek.com (unknown [60.244.123.138]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2B5B4CD; Fri, 28 Apr 2023 03:36:31 -0700 (PDT) X-UUID: 8777cdbce5b011ed9cb5633481061a41-20230428 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=mediatek.com; s=dk; h=Content-Type:MIME-Version:Message-ID:Date:Subject:CC:To:From; bh=JQQfwdXJ3U6QJbtA1YUHv/cnpoSQQmb4BeKmzsuPPEs=; b=tq/XWUIS9+hMnyKJxUkZ9Td3KkGAfh8yLRBIpmhYBEWFY36Cl8aAfI+prl1wqgpGm/7BmKM0K82waNy7JzW2BrkFxNo1TkxtjvGHJV/Nw669QzBvtFlquAX5RBPn1llDVp0ddDBancqBQ35j+XztAeFCytSAmmDQB6LL/5MGl8g=; X-CID-UNFAMILIAR: 1 X-CID-P-RULE: Release_Ham X-CID-O-INFO: VERSION:1.1.22,REQID:bc140d69-9b16-4074-8c20-ebdd47427a5b,IP:0,U RL:0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Release_Ham,ACTI ON:release,TS:95 X-CID-INFO: VERSION:1.1.22,REQID:bc140d69-9b16-4074-8c20-ebdd47427a5b,IP:0,URL :0,TC:0,Content:-5,EDM:0,RT:0,SF:100,FILE:0,BULK:0,RULE:Spam_GS981B3D,ACTI ON:quarantine,TS:95 X-CID-META: VersionHash:120426c,CLOUDID:6e893230-6935-4eab-a959-f84f8da15543,B ulkID:2304281836272LNBBSJX,BulkQuantity:0,Recheck:0,SF:38|29|28|16|19|48,T C:nil,Content:0,EDM:-3,IP:nil,URL:0,File:nil,Bulk:nil,QS:nil,BEC:nil,COL:0 ,OSI:0,OSA:0,AV:0 X-CID-BVR: 0 X-CID-BAS: 0,_,0,_ X-UUID: 8777cdbce5b011ed9cb5633481061a41-20230428 Received: from mtkmbs13n1.mediatek.inc [(172.21.101.193)] by mailgw01.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-GCM-SHA384 256/256) with ESMTP id 5675473; Fri, 28 Apr 2023 18:36:26 +0800 Received: from mtkmbs13n1.mediatek.inc (172.21.101.193) by mtkmbs10n2.mediatek.inc (172.21.101.183) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.2.1118.26; Fri, 28 Apr 2023 18:36:25 +0800 Received: from mtksdccf07.mediatek.inc (172.21.84.99) by mtkmbs13n1.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.2.1118.25 via Frontend Transport; Fri, 28 Apr 2023 18:36:25 +0800 From: Yi-De Wu To: Yingshiuan Pan , Ze-Yu Wang , Yi-De Wu , Rob Herring , Krzysztof Kozlowski , Jonathan Corbet , Catalin Marinas , Will Deacon , Arnd Bergmann , Matthias Brugger , AngeloGioacchino Del Regno CC: , , , , , , "David Bradil" , Trilok Soni , Jade Shih , Miles Chen , Ivan Tseng , My Chuang , Shawn Hsiao , PeiLun Suei , Liju Chen Subject: [PATCH v2 0/7] GenieZone hypervisor drivers Date: Fri, 28 Apr 2023 18:36:15 +0800 Message-ID: <20230428103622.18291-1-yi-de.wu@mediatek.com> X-Mailer: git-send-email 2.18.0 MIME-Version: 1.0 Content-Type: text/plain X-MTK: N X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_MSPIKE_H2,SPF_HELO_PASS, SPF_PASS,T_SCC_BODY_TEXT_LINE,UNPARSEABLE_RELAY,URIBL_BLOCKED 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 This series is based on linux-next, tag: next-20230427. Changes in v2: - Refactor: move to drivers/virt/geniezone - Refactor: decouple arch-dependent and arch-independent - Check pending signal before entering guest context - Fix reviewer's comments Yi-De Wu (7): docs: geniezone: Introduce GenieZone hypervisor dt-bindings: hypervisor: Add MediaTek GenieZone hypervisor virt: geniezone: Introduce GenieZone hypervisor support virt: geniezone: Add vcpu support virt: geniezone: Add irqchip support for virtual interrupt injection virt: geniezone: Add irqfd support virt: geniezone: Add ioeventfd support .../hypervisor/mediatek,geniezone-hyp.yaml | 31 + Documentation/virt/geniezone/introduction.rst | 34 ++ MAINTAINERS | 13 + arch/arm64/Kbuild | 1 + arch/arm64/geniezone/Makefile | 9 + arch/arm64/geniezone/gzvm_arch.c | 280 +++++++++ arch/arm64/geniezone/gzvm_arch.h | 92 +++ arch/arm64/geniezone/gzvm_irqchip.c | 108 ++++ arch/arm64/include/uapi/asm/gzvm_arch.h | 47 ++ drivers/virt/Kconfig | 2 + drivers/virt/geniezone/Kconfig | 17 + drivers/virt/geniezone/Makefile | 12 + drivers/virt/geniezone/gzvm_ioeventfd.c | 263 +++++++++ drivers/virt/geniezone/gzvm_irqfd.c | 536 ++++++++++++++++++ drivers/virt/geniezone/gzvm_main.c | 151 +++++ drivers/virt/geniezone/gzvm_vcpu.c | 260 +++++++++ drivers/virt/geniezone/gzvm_vm.c | 447 +++++++++++++++ include/linux/gzvm_drv.h | 154 +++++ include/uapi/asm-generic/gzvm_arch.h | 10 + include/uapi/linux/gzvm.h | 274 +++++++++ 20 files changed, 2741 insertions(+) create mode 100644 Documentation/devicetree/bindings/hypervisor/mediatek, geniezone-hyp.yaml create mode 100644 Documentation/virt/geniezone/introduction.rst create mode 100644 arch/arm64/geniezone/Makefile create mode 100644 arch/arm64/geniezone/gzvm_arch.c create mode 100644 arch/arm64/geniezone/gzvm_arch.h create mode 100644 arch/arm64/geniezone/gzvm_irqchip.c create mode 100644 arch/arm64/include/uapi/asm/gzvm_arch.h create mode 100644 drivers/virt/geniezone/Kconfig create mode 100644 drivers/virt/geniezone/Makefile create mode 100644 drivers/virt/geniezone/gzvm_ioeventfd.c create mode 100644 drivers/virt/geniezone/gzvm_irqfd.c create mode 100644 drivers/virt/geniezone/gzvm_main.c create mode 100644 drivers/virt/geniezone/gzvm_vcpu.c create mode 100644 drivers/virt/geniezone/gzvm_vm.c create mode 100644 include/linux/gzvm_drv.h create mode 100644 include/uapi/asm-generic/gzvm_arch.h create mode 100644 include/uapi/linux/gzvm.h -- 2.18.0