From patchwork Mon Mar 22 10:07:24 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haibo Xu X-Patchwork-Id: 406089 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp3434954jai; Mon, 22 Mar 2021 03:18:16 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjjUrJuxRSZvUJjnC4z0Y61vwq1z7c10QYoTNsxksCanKUfwLfemqxvaXXx6loqza45crg X-Received: by 2002:a25:5ed5:: with SMTP id s204mr24613577ybb.121.1616408296683; Mon, 22 Mar 2021 03:18:16 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616408296; cv=none; d=google.com; s=arc-20160816; b=NAkRrC3P37CRRFdShmCF9jp550CC+/seL9ZSbOhotJA9MZwApVS3AB5MZKhEu0ISfT qSdGRWzov6PZCxNiV/yoJT8smwT6jW7isMGareu7tnXI4czbKcp+S8FEoNWpHwg7utqi /5FjxxUfNO/ohGWUf8Q5WtCO5dJjuyQ9u4/0wPE221VuQPWKye+vJu3JE0HwELwk3jZ4 Io8565lo8V8kF3OblB8Fa/tNHV+d33uhefcLwSD8R0EWuOpErtuewx5IbYiWOfy8AiSd OMCrhoIPCNH5uVNr0rqVvXDYISRpHJeAoewW0d9LS02Yn6wLqqx3E2cwv80BEXZpqi5e VhNA== 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=Tg9v+ApUeRfBKdnO0gfwnnWF2TBBfB1oRBXWE9a6pm/0F5pj2Lfoi4XN4ogIUrxDMi VqxibH3TvVxIUyoCADvNc1Z0RTh2jMjhUCjUNyBVRDerB2q/yAe7K8Dq9wqRSunHqia7 odEtIHa9neAF+vSfmzTiz9CehfZOR7hcLCmzH6a6a2TPD+NdlUUV2FcDsuXwZj07pLSJ g45iwum8ggAdoYAEUX+z3WXaPMcyFlW+p/kIXxzEPZ7uKN496fuMlMonpdO+sK+VdKf0 WGBS+RNqkNasIk2KuVNIsSXs7KtDvXShdHwzmey96kQEP7Xf+I8VF/45qSB/GKN++u18 uiLA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=N6iKUsFm; 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 j187si13361595ybg.401.2021.03.22.03.18.16 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 22 Mar 2021 03:18:16 -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=N6iKUsFm; 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]:44098 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lOHdX-0007N1-TK for patch@linaro.org; Mon, 22 Mar 2021 06:18:15 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:55908) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lOHTP-0007Dc-J1 for qemu-devel@nongnu.org; Mon, 22 Mar 2021 06:07:47 -0400 Received: from mail-pl1-x62f.google.com ([2607:f8b0:4864:20::62f]:40599) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lOHTL-0002Rl-Rg for qemu-devel@nongnu.org; Mon, 22 Mar 2021 06:07:47 -0400 Received: by mail-pl1-x62f.google.com with SMTP id g1so6277977plg.7 for ; Mon, 22 Mar 2021 03:07:42 -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=N6iKUsFm3jc2NUeWupkVAaHWrDMQnmpc+3X563QHjhEeWbp40BYEqrnBl+3qyNdnr9 PAQ+8JyJBUmH6QAgHiQGkD2GbjHnp/QJmUrQkbWnEuJxZ6pk17z+3LDznE34CJkT5r6P KLMfXvpD7GBtSj83bnkS+hIP5UUsI8BNRhK03dn+hQ3+MKBWl0vBMxNVOiIsbDq0fCLf /FjB70CPhXy4lp8J68FWX6PrpsB3eJRhIsYIqIBQDJeMcBq23rM76kDjwzdFEgB+zQDW We1GaJwdbK0Uhaf9JeGmfWLdjUdNF3SLhanAKVAF0JIz6RwH4UriRTMcQn0r+4/MDgd/ jmzQ== 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=Ca1fLkDJV6INYOilhxdP977YyQM7Dm1DfsxYziQyfH19yJO5P/YtHx7gKoP2c1H5A2 +Zlq4d8S6XKMSpsJjv2wKGKzX/3sXZO+KvNvnkrXzsBvzlPdUQtfjH3KW2qAj/loDEv4 r5fcdUdermOs+avWFLH906TYHKkKEFj6ve6XObHdmstLw00yinYY65Nb7Sw0gub9dk5w q6Lxopcu3bxX5aU2iJpBJdMb0u3QxDSzG/FiPWZ2fH1SMkTeqJ00GaFJcs3obxCjAOiE 8+lDzu7KXtoj3RwfQUdWS966BALflUxKo1VtNaEfneYZZMqAtRJakr3BDm5I+cbOOe/q hUfA== X-Gm-Message-State: AOAM533WuxTMyEbFloIjNLtJEUXd6AWxqm/cnQdM6FIFX/XPcfoTrk3k XWVptS3MFmm0B4YncJU6Rml6Lkr50hU8 X-Received: by 2002:a17:90b:681:: with SMTP id m1mr12231622pjz.168.1616407660836; Mon, 22 Mar 2021 03:07:40 -0700 (PDT) Received: from localhost.localdomain ([147.75.106.138]) by smtp.gmail.com with ESMTPSA id c193sm13697145pfc.180.2021.03.22.03.07.39 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 22 Mar 2021 03:07:40 -0700 (PDT) From: Haibo Xu To: qemu-devel@nongnu.org, qemu-arm@nongnu.org Subject: [PATCH 1/3] Update linux header with new arm64 NV macro. Date: Mon, 22 Mar 2021 10:07:24 +0000 Message-Id: <636b5932e4cf061b6f97516e82d4319c1d29b871.1616052889.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::62f; envelope-from=haibo.xu@linaro.org; helo=mail-pl1-x62f.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" 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