From patchwork Thu Apr 1 10:40:53 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haibo Xu X-Patchwork-Id: 413572 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp437011jai; Thu, 1 Apr 2021 03:41:53 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz1aV/TNXjHo4v7vwGaA2fHpS4n/fp/ykgKKDWYSM993EliuO784J1LcETnqjstSZwA+jjz X-Received: by 2002:a6b:ec08:: with SMTP id c8mr5846439ioh.55.1617273713756; Thu, 01 Apr 2021 03:41:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617273713; cv=none; d=google.com; s=arc-20160816; b=MFcZwNqOXelliX5jG7pwLiWat2BDgxeBtYTh8h/JJO01PKne9dkverDj8jr5w2zyRp WngHvcW0dYbvc6C/pzWBz5tQcxZr3rola7B+SCqhtHrTNR/nS6M4o1n/i9//S0hqODkz URJ7Jriyavb02G8r4dj6gJiJN9WYEVssCex2spkIQ1bH1z4jfkOtXf+AmxKe14ehB5Sq VhyBTPLHI+sxBBgNXrS+8i6K5bkyiYNC8jtY4ZD8/0doIdJSxgxntuu5drftXikrF3A8 RU+vc6YMknbiAbcr7hnEs6+uU1VHTcx08K3hnpjjECo+lysOqF5ejggI0gxuC5/f9eLD NLmA== 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:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=jf1VGujtece+sgrlTdeq9JiiLbbG5le4coO4jmGjzMs=; b=fJn2MdG1kVpGKmy//pafkTItoX2kPZ2AEHp8OOwjU0m8DitHU0V7BXqihqjQO9b2uG JEs/8X18ZFX3fDS/Mddpk4UhE7qT3gcbPU+lWnbXbnW2uCmVbE0cIAmNPg9yZLD8XJix LdZ0hfAkRdABpx6pMnKOgDKErrfjw2G12WvX/9w3mcMB80/FlP76kkyeExddXZOvPHnV QDUBx9rm0E/3hrpY+tpqiZIolMWTxKS9pKD/PtLiEhRuZbwzYXLCs4ZTqSVN83Fxu64u MUqfGRqbwxIH7S4UYq+MPvg5RQKRMk19rV8u+2B4bo+AY3WKoZsqrTaZcrOC0Gh/7TOC ISzA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=qVfeYxG0; 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 i19si2533259ila.74.2021.04.01.03.41.53 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Thu, 01 Apr 2021 03:41:53 -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=qVfeYxG0; 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]:47100 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lRult-00073o-6u for patch@linaro.org; Thu, 01 Apr 2021 06:41:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:46620) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lRulH-000736-Pb for qemu-devel@nongnu.org; Thu, 01 Apr 2021 06:41:15 -0400 Received: from mail-ot1-x32d.google.com ([2607:f8b0:4864:20::32d]:46804) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lRulF-0002N4-Sc for qemu-devel@nongnu.org; Thu, 01 Apr 2021 06:41:15 -0400 Received: by mail-ot1-x32d.google.com with SMTP id 68-20020a9d0f4a0000b02901b663e6258dso1647702ott.13 for ; Thu, 01 Apr 2021 03:41:13 -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:in-reply-to:references :mime-version:content-transfer-encoding; bh=jf1VGujtece+sgrlTdeq9JiiLbbG5le4coO4jmGjzMs=; b=qVfeYxG05PVTr+WDX4E0hcCtnnuGyFkGgbUy/HDUW9ROB28HCtfQnSlyhxKF4jGTjU Tgc4O4JkleK169+lvjDS+MFLAeXn8ot5/RpB+CqgNukwYVeWfp9UF/ChqS0cIWg7kH9o s5Ktf0DAm5aNdAbdN2/RkyCgslo+dJ93GjCUmCff1ZVunJk48wJERxxzKjGEBQYXca7u ziT2wlz7fUch5+ur+l3PrHXPkKwEJ0f/+1ta4cbUuiLWCFPRZZLey5HYn2/IOQ9wyfbN mYdiKkLVZ7Qyw6/FYh5fC8XaGSWkpmnmwzsMjzsPGVDwlDKsmdXu/eAdr/8+i3RRG6kW t0NQ== 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:in-reply-to :references:mime-version:content-transfer-encoding; bh=jf1VGujtece+sgrlTdeq9JiiLbbG5le4coO4jmGjzMs=; b=IIgZLjOtar+i8i6qr0RqDTNBGTnPzV3tLQE1hBLMKtyu0yK6DYEGZhuy3JiynZ2nq2 iJVXXlqKXNixymmBliVO1v8QTMRmTNU9+/4VYFuA9eC7Ra6rf7R2GcIf3MOL16lkO2h2 Mofm2bjVzHVlzCC0W41bmSdn1mKU/Nwc9P4GeH303b8NIby3aKUItNxJK3xgqbGR+ELt kDa7aI/ChTz7bp9WGou9O7iUyzhChb6RBOG+AwlKGa0mjDuswa5knUHVDo8j79ppQ/kY VVWDKzQ/IRcfeolxmsOxV5h98so7tCOYmELn5QfzZX4R+dm5Mg4+x/xWZxLkZQ9lyh8X 4LZA== X-Gm-Message-State: AOAM533dwg8ptGGBR7j3xC+gxz0whJixFNq8RyKN7+JeMUJ2rP+vTRDP rbshFCXbm4zo9hXrPIOWVFEgLhp5XbUdSXo= X-Received: by 2002:a9d:761a:: with SMTP id k26mr6178705otl.193.1617273672763; Thu, 01 Apr 2021 03:41:12 -0700 (PDT) Received: from localhost.localdomain ([147.75.106.138]) by smtp.gmail.com with ESMTPSA id a6sm1069066otq.79.2021.04.01.03.41.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 03:41:12 -0700 (PDT) From: Haibo Xu To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH v2 1/6] Update linux header with new arm64 NV macro Date: Thu, 1 Apr 2021 10:40:53 +0000 Message-Id: <87d2a40fa0a6775dd5a6af9b0d1609c1bf2a9610.1617272690.git.haibo.xu@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Received-SPF: pass client-ip=2607:f8b0:4864:20::32d; envelope-from=haibo.xu@linaro.org; helo=mail-ot1-x32d.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, abologna@redhat.com, Haibo Xu , philmd@redhat.com Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Haibo Xu --- linux-headers/asm-arm64/kvm.h | 2 ++ linux-headers/linux/kvm.h | 1 + 2 files changed, 3 insertions(+) -- 2.17.1 diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h index b6a0eaa32a..77b995a26c 100644 --- a/linux-headers/asm-arm64/kvm.h +++ b/linux-headers/asm-arm64/kvm.h @@ -106,6 +106,7 @@ struct kvm_regs { #define KVM_ARM_VCPU_SVE 4 /* enable SVE for this CPU */ #define KVM_ARM_VCPU_PTRAUTH_ADDRESS 5 /* VCPU uses address authentication */ #define KVM_ARM_VCPU_PTRAUTH_GENERIC 6 /* VCPU uses generic authentication */ +#define KVM_ARM_VCPU_HAS_EL2 7 /* Support nested virtualization */ struct kvm_vcpu_init { __u32 target; @@ -334,6 +335,7 @@ struct kvm_vcpu_events { #define KVM_DEV_ARM_VGIC_GRP_CPU_SYSREGS 6 #define KVM_DEV_ARM_VGIC_GRP_LEVEL_INFO 7 #define KVM_DEV_ARM_VGIC_GRP_ITS_REGS 8 +#define KVM_DEV_ARM_VGIC_GRP_MAINT_IRQ 9 #define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT 10 #define KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_MASK \ (0x3fffffULL << KVM_DEV_ARM_VGIC_LINE_LEVEL_INFO_SHIFT) diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index 020b62a619..ce4630c4db 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -1056,6 +1056,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_ENFORCE_PV_FEATURE_CPUID 190 #define KVM_CAP_SYS_HYPERV_CPUID 191 #define KVM_CAP_DIRTY_LOG_RING 192 +#define KVM_CAP_ARM_EL2 193 #ifdef KVM_CAP_IRQ_ROUTING