From patchwork Mon Mar 22 10:07:23 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haibo Xu X-Patchwork-Id: 406085 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3428883jai; Mon, 22 Mar 2021 03:08:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxJ1aYeReYnlkBnxr18Fgg3WqA3v/D48iT+scuHrINoduCbB3N+EREx2AdPQKj9Q2ECicyD X-Received: by 2002:a5e:c913:: with SMTP id z19mr10078462iol.33.1616407729806; Mon, 22 Mar 2021 03:08:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616407729; cv=none; d=google.com; s=arc-20160816; b=cc6zKt4BRuoamepzaVWbQrgwX/7x9RUhOi6bEjDyO5ms+FRMexyBB5UD+PibuSVRiH tv/I8qXwnh12T13juaV+e4tLKOsDX5TUlmONGfLy/KmVxY+hhPq73AFg6aCBhIYr4/X8 QR+Oh7QcfAAHh08XpLGzytp02bL/KIdD05gu9qkJaDm0VOSM/gHW0yvwL3Tn8iBX8CO8 ExrGeFCF836WfEi5ToGN0xIIF7DBQupb21HZnV7DIuZTPwPOqXKjjtFJ/sVNP9uIyR8n 0Styeer9XTvv82P4EDcLZD5QqxJW2pufmheB6up8/DB90qUDiXcrSvxNIOyh6Djju8d5 DkyQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:message-id:date:subject:to:from:dkim-signature; bh=Jr7Nf4ZOpS+Hp/7sKCD1OOapTVuiNfoOxyZqmhUtVbY=; b=Sp1I64GEME/aNxup9+Ff7JJ+SpvCYewvf94IK00f4zp25EitdCX77dhdDOJBDntmbF pk6bMNiPePz0SULSuZ3Zko69qPdzwYL4wAjsVGvwyUyPVd+kU3SE3g+KSOO+jb3X4hwz xgrDPnMhnfpw97kzpmi9SK8SLFkTkf0CDT4mhlNsxI9qr6tekJ9/OdtDaOM79khym2RX EhIKJlclkvIwDWNhjRanWPz2YKsumKxX9swkBY4fJ2Vx1W27AQIhUQqUc6B1ING5UdTN al/UViEiPqQMomVm/gmSfNWcRRmwKgmgx39cNDXJOw1mt5f9gvfp88IO5smLJOv6kftW q7FQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bfKGvzUM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id w12si8571924ilg.43.2021.03.22.03.08.49 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Mar 2021 03:08:49 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=bfKGvzUM; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:53264 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOHUL-0007jC-8C for patch@linaro.org; Mon, 22 Mar 2021 06:08:45 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55904) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOHTP-0007DQ-C8 for qemu-devel@nongnu.org; Mon, 22 Mar 2021 06:07:47 -0400 Received: from mail-pf1-x42e.google.com ([2607:f8b0:4864:20::42e]:36368) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOHTL-0002RP-OT for qemu-devel@nongnu.org; Mon, 22 Mar 2021 06:07:47 -0400 Received: by mail-pf1-x42e.google.com with SMTP id g15so10599226pfq.3 for ; Mon, 22 Mar 2021 03:07:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Jr7Nf4ZOpS+Hp/7sKCD1OOapTVuiNfoOxyZqmhUtVbY=; b=bfKGvzUMkZvD8O5vhedoiQESIMu4RIH7ra9TbytC80xVAXrARWOKCB2poUytDaP6wj s9jDQMsrGCCDPUAeBaGU+UIHKhlYuSnOmBDQMLl/bP7mTtJmwg3Z3Nu5v1uIYof9ojO/ du/xCfvE55wVpRwvjiGSh2J+0vEKFNX6Wti7EOv1iuwVb8btaFwBcjiClNKhEHHefVNw aSRdgPf3l9D0CTMbSrdef/vcUyoEnnts+X67HI6H97qDN0NigY1NCR1Dfw06h/geCJzu lacTURJnhh/MWlA4ZrQ1dEIH6dYj5xhc3dU/7pxWHmi9ve+N7yOFgYHQeAxvMhyxCTkx VpwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Jr7Nf4ZOpS+Hp/7sKCD1OOapTVuiNfoOxyZqmhUtVbY=; b=fbhV2PaXqbsa8jnvYZwEM2Ilt2Crmgb2mgsOwB58p+KcD7SljXa7G/BmfkajzCzO1q +qj8TG6FAYpx020PI6DAO5GL4F5QLvd4hEtaGxBzZiaHuxvlj6evpb1kOyGndARC3VoU o7WDukaTFToJbfrrIUOKDYz2XsCD1BT3HsUOstlDGk++R1kPL4ccpeJehVa4gkemK49G X3OY50eiVzrA2a+DxrN9MbIHrhH8lr8jnHAiiOKvcyMrjDGQ97UVHtt37qE/bJyqDKR9 9G0tM7buuL7dA1o68Z08jgzn33KE73YaFiZA8spFF0rttwbSoQP2IOX/byAce96s0m/g jYRA== X-Gm-Message-State: AOAM531xXXBroBd2aA4F1EhTfdr96vLqLw+06dP9ceVWCcZfN0m9bcje kh0SRR7CoRsQAwJeNDeDZ47NIDKoejt8 X-Received: by 2002:aa7:99c6:0:b029:1f5:c49d:dce7 with SMTP id v6-20020aa799c60000b02901f5c49ddce7mr20611403pfi.78.1616407659285; Mon, 22 Mar 2021 03:07:39 -0700 (PDT) Received: from localhost.localdomain ([147.75.106.138]) by smtp.gmail.com with ESMTPSA id c193sm13697145pfc.180.2021.03.22.03.07.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 03:07:39 -0700 (PDT) From: Haibo Xu To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH 0/3] target/arm: Add nested virtualization support Date: Mon, 22 Mar 2021 10:07:23 +0000 Message-Id: X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::42e; envelope-from=haibo.xu@linaro.org; helo=mail-pf1-x42e.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: peter.maydell@linaro.org, drjones@redhat.com, richard.henderson@linaro.org, Haibo Xu , pbonzini@redhat.com, philmd@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" This series add support for ARMv8.3/8.4 nested virtualization support in KVM mode. It's based on Marc Zyngier's kernel KVM patches[1], and has been tested on a FVP model to run a L2 guest with Qemu. Now the feature can be enabled by "-M virt,accel=kvm,virtualization=on" when starting a VM. [1] https://git.kernel.org/pub/scm/linux/kernel/git/maz/arm-platforms.git/log/?h=kvm-arm64/nv-5.12-WIP Haibo Xu (3): Update linux header with new arm64 NV macro. Enable support for setting KVM vGIC maintenance IRQ Enable nested virtualization support in arm64 KVM mode hw/arm/virt.c | 11 ++++++++--- hw/intc/arm_gicv3_common.c | 1 + hw/intc/arm_gicv3_kvm.c | 16 ++++++++++++++++ include/hw/intc/arm_gicv3_common.h | 1 + linux-headers/asm-arm64/kvm.h | 2 ++ linux-headers/linux/kvm.h | 1 + target/arm/cpu.h | 8 ++++++++ target/arm/kvm64.c | 14 ++++++++++++++ target/arm/kvm_arm.h | 28 ++++++++++++++++++++++++++++ 9 files changed, 79 insertions(+), 3 deletions(-) -- 2.17.1