From patchwork Tue Sep 15 03:11:37 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Haibo Xu X-Patchwork-Id: 303963 Delivered-To: patch@linaro.org Received: by 2002:a92:5ad1:0:0:0:0:0 with SMTP id b78csp2155809ilg; Mon, 14 Sep 2020 20:12:58 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxlBv+9T6SwaNUrhP9LA/niwZRMyeE3gG0HDJOJGwZSGVF4iS9zJCkQWNXsYxP6V/aAnGrL X-Received: by 2002:a25:55c5:: with SMTP id j188mr12429404ybb.417.1600139578798; Mon, 14 Sep 2020 20:12:58 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600139578; cv=none; d=google.com; s=arc-20160816; b=kn7B5t8ML0nGU/0lq4x0AkOjcQHWc6LZf9mGr5SJBIdahMuEvvIOFb4B/90c2RqLTD v0JjNQDE1cJ7akooOGddt0jLvyNZfVuqjQ7t7KZZXRR1cOTqVodl0+JcNsPVNsNJZGiv BddwIvsYzksesRsk7PCMkLhRQwCgVYP77zoxQbRQMTaAN/uOnP7Ece4rHkbsObBjOZx1 Sk0GbA0eJnFf0glvO7zwBEsnJqhYb0OOu4HsEEMNaU9Lyn/xn42orgPAWo2xouzHqVmr pN76uVTzlYzqMrpBQHRDWhO63C1rS3W30GnmeHx5WzyQsmFPnGm3hxskgeU0XRW8k26K MwAw== 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=SVvavflqwBHyVfPeo3WkPtz2sD2s7cZLSNZLl+ZfUO0=; b=VpPsqThPbT+KUMZHXp4pbf4wOsVEP7Il6jGXC63bNOZ0/KdmdXCjlxMBQqS0sq3xFY X9yXsCkfjGWmY54W0Z+kjM4e4WoCWACWdK5KqOlRtPuBrnuXEip4agPzNCjykasOt4fH bqDSAchb6bg6gwwAU6asj6SpFq/9CQnskeWlDHRlm/3hVp8/hQc8e61xFLoRUzXLrw8X xavfxRHNbaWC/KSfj0q379fVyvbP1hLFLbgPYV8wkjnsYh1/qeHNOFE/3beP4EGYkuvM TQDmmZw4BG5WFxJqb6SHtQwoO3gRdwHvoqtHY3Xeb6I+8gdqGoHZOCSXHV8bqoC4T0pf Y1Xg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=WCB9iQFe; 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 l206si12404246ybb.76.2020.09.14.20.12.58 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Mon, 14 Sep 2020 20:12:58 -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=WCB9iQFe; 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]:44366 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1kI1Os-0000Fx-95 for patch@linaro.org; Mon, 14 Sep 2020 23:12:58 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:47978) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1kI1O6-0000Dq-CK for qemu-devel@nongnu.org; Mon, 14 Sep 2020 23:12:10 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]:32933) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1kI1O2-0001fV-65 for qemu-devel@nongnu.org; Mon, 14 Sep 2020 23:12:10 -0400 Received: by mail-pl1-x636.google.com with SMTP id d19so594194pld.0 for ; Mon, 14 Sep 2020 20:12:05 -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=SVvavflqwBHyVfPeo3WkPtz2sD2s7cZLSNZLl+ZfUO0=; b=WCB9iQFeDkSIxhrOaxldsUCpTkakmnF3WXhKhUR08k7N3Cz8gNPyiQAK+sdNGusu4x M81u8VLniD7W7iDXb6O19pQlWstd2YyJcebF+nNjdl4XFMVj5/w63fzeXYFSxpbwFbNQ OJJj0wIIuBTTwoUUAW7zfFgdiEplas1GBENkhCwnD+5dFFlr2Kr11zfuMedEI9Gs4rFw 3B2LhcsPm/K+6nZncZ4oATmTNPsQJN9n42CuEvIkoaTBtYE3pbs5vYJ53SxwJFH6nJ77 GEwmkacaZDZf830deyyIFxZOxDrNMXnjCQVM/TWmIps8GxYqbr17dMQqSnVC+LnyOgAQ Xyhg== 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=SVvavflqwBHyVfPeo3WkPtz2sD2s7cZLSNZLl+ZfUO0=; b=U6qw56JyydhkHrcUb4RAE7WojIYYb5U7KSHoJUyWBFBO12hDinzLvcik+EV0SRZC3u vwpHIem+dnbEAAv8e2N+O8Wuu+Ksq8NoIjnq5spqTAUER4CBkxRFrRz52tUk+fZIe4so o7OVPgr29mJbk3H+Mcs6kYPcXjgAa+Y+dQaIUbiLtRrASXZ7QIUM+PeWi/P7T3lpRcd+ LKtKqcHtKquduyGsy/6xKh0h0JQhlVYkjelNW5Edn7e3P74uN1s+SAc7ClLdfdveXkNa KpBVdewYC4v3EmtGMlxjcosHM5TxRU24KkMGytFyNCqa8QRBf7EiUAxaSPxVGkn3Z9En h3zA== X-Gm-Message-State: AOAM531fBR+JiP5gK465tOSarmmJVuQVf7ozsh5ZcD1uUuJ0mxH06bki dlZGIBhI6PcRnJKBcUCKstzq X-Received: by 2002:a17:902:e901:b029:d1:920c:bf93 with SMTP id k1-20020a170902e901b02900d1920cbf93mr16620603pld.21.1600139524697; Mon, 14 Sep 2020 20:12:04 -0700 (PDT) Received: from localhost.localdomain ([147.75.106.138]) by smtp.gmail.com with ESMTPSA id g23sm11551776pfh.133.2020.09.14.20.12.03 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 14 Sep 2020 20:12:04 -0700 (PDT) From: Haibo Xu To: drjones@redhat.com, richard.henderson@linaro.org Subject: [PATCH v3 01/12] update Linux headers with new vSPE macros Date: Tue, 15 Sep 2020 03:11:37 +0000 Message-Id: <35e621987cca029c207c9ef68032364d2b765cf7.1600135462.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::636; envelope-from=haibo.xu@linaro.org; helo=mail-pl1-x636.google.com X-detected-operating-system: by eggs.gnu.org: No matching host in p0f cache. That's all we know. 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=unavailable 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, qemu-arm@nongnu.org, philmd@redhat.com, qemu-devel@nongnu.org, Haibo Xu Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Haibo Xu --- linux-headers/asm-arm64/kvm.h | 4 ++++ linux-headers/linux/kvm.h | 2 ++ 2 files changed, 6 insertions(+) -- 2.17.1 diff --git a/linux-headers/asm-arm64/kvm.h b/linux-headers/asm-arm64/kvm.h index 9e34f0f875..802319ee02 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_SPE_V1 7 /* Support guest SPEv1 */ struct kvm_vcpu_init { __u32 target; @@ -334,6 +335,9 @@ struct kvm_vcpu_events { #define KVM_ARM_VCPU_TIMER_IRQ_PTIMER 1 #define KVM_ARM_VCPU_PVTIME_CTRL 2 #define KVM_ARM_VCPU_PVTIME_IPA 0 +#define KVM_ARM_VCPU_SPE_V1_CTRL 3 +#define KVM_ARM_VCPU_SPE_V1_IRQ 0 +#define KVM_ARM_VCPU_SPE_V1_INIT 1 /* KVM_IRQ_LINE irq field index values */ #define KVM_ARM_IRQ_VCPU2_SHIFT 28 diff --git a/linux-headers/linux/kvm.h b/linux-headers/linux/kvm.h index a28c366737..35ef0ae842 100644 --- a/linux-headers/linux/kvm.h +++ b/linux-headers/linux/kvm.h @@ -1031,6 +1031,7 @@ struct kvm_ppc_resize_hpt { #define KVM_CAP_PPC_SECURE_GUEST 181 #define KVM_CAP_HALT_POLL 182 #define KVM_CAP_ASYNC_PF_INT 183 +#define KVM_CAP_ARM_SPE_V1 184 #ifdef KVM_CAP_IRQ_ROUTING @@ -1671,6 +1672,7 @@ struct kvm_assigned_msix_entry { #define KVM_ARM_DEV_EL1_VTIMER (1 << 0) #define KVM_ARM_DEV_EL1_PTIMER (1 << 1) #define KVM_ARM_DEV_PMU (1 << 2) +#define KVM_ARM_DEV_SPE (1 << 3) struct kvm_hyperv_eventfd { __u32 conn_id;