From patchwork Tue Jun 28 16:47:22 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vitaly Kuznetsov X-Patchwork-Id: 9203615 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id ED8916075F for ; Tue, 28 Jun 2016 16:49:27 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id DE833285FD for ; Tue, 28 Jun 2016 16:49:27 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id D18E02860E; Tue, 28 Jun 2016 16:49:27 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAYES_00, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 894E4285FD for ; Tue, 28 Jun 2016 16:49:27 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHwAl-0003Zi-St; Tue, 28 Jun 2016 16:47:39 +0000 Received: from mail6.bemta3.messagelabs.com ([195.245.230.39]) by lists.xenproject.org with esmtp (Exim 4.84_2) (envelope-from ) id 1bHwAk-0003Z7-LO for xen-devel@lists.xenproject.org; Tue, 28 Jun 2016 16:47:38 +0000 Received: from [85.158.137.68] by server-2.bemta-3.messagelabs.com id 1C/59-01903-92AA2775; Tue, 28 Jun 2016 16:47:37 +0000 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFnrALMWRWlGSWpSXmKPExsVysWW7jK7mqqJ wg8a/Uhbft0xmcmD0OPzhCksAYxRrZl5SfkUCa8bDE6wF/RwV++aeYm1g/MTWxcjJISSwm0ni 2k2BLkYuIPsIo8Ssz3+ZQBJsAjoS35+eYgaxRQSUJO6tmswEUsQsMIVZ4vPG7awgCWEBe4lHP 38ygtgsAqoSc5ftZe9i5ODgFXCSaDoiBBLmFHCW+Ny+jR1imZPEiRXzwBZLCGhLPL8wmR3C7m OUWLZJaAIjzwJGhlWM6sWpRWWpRbrGeklFmekZJbmJmTm6hgbGermpxcWJ6ak5iUnFesn5uZs YgT5nAIIdjM1fnA4xSnIwKYnyfustChfiS8pPqcxILM6ILyrNSS0+xCjDwaEkwSu9EignWJSa nlqRlpkDDD6YtAQHj5II77MVQGne4oLE3OLMdIjUKUZFKXFeL5A+AZBERmkeXBss4C8xykoJ8 zICHSLEU5BalJtZgir/ilGcg1FJGGI7T2ZeCdz0V0CLmYAWs1bngywuSURISTUw3lq3+FPyks gKyRUNv0/KrT5WulW3QekLx6H6bfe/1KUVZERm5tpLSM8Od7r6cVfpFAeN2zqCzzlfznkZZil t2nV3AeuCP4Ed+99O/3jh6OPHXNKcipcXWji0rnW8stgg50uffv92M56HsR0SkZtcVrx0yd26 tPrXpD/63ZudImzveb186BEro8RSnJFoqMVcVJwIAFxxRXpzAgAA X-Env-Sender: vkuznets@redhat.com X-Msg-Ref: server-3.tower-31.messagelabs.com!1467132456!47778844!1 X-Originating-IP: [209.132.183.28] X-SpamReason: No, hits=0.0 required=7.0 tests=sa_preprocessor: VHJ1c3RlZCBJUDogMjA5LjEzMi4xODMuMjggPT4gNTQwNjQ=\n X-StarScan-Received: X-StarScan-Version: 8.46; banners=-,-,- X-VirusChecked: Checked Received: (qmail 30031 invoked from network); 28 Jun 2016 16:47:37 -0000 Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by server-3.tower-31.messagelabs.com with DHE-RSA-AES256-GCM-SHA384 encrypted SMTP; 28 Jun 2016 16:47:37 -0000 Received: from int-mx11.intmail.prod.int.phx2.redhat.com (int-mx11.intmail.prod.int.phx2.redhat.com [10.5.11.24]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 6AEB3D47B9; Tue, 28 Jun 2016 16:47:35 +0000 (UTC) Received: from vitty.brq.redhat.com (vitty.brq.redhat.com [10.34.26.3]) by int-mx11.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5SGlUI6004662; Tue, 28 Jun 2016 12:47:33 -0400 From: Vitaly Kuznetsov To: xen-devel@lists.xenproject.org Date: Tue, 28 Jun 2016 18:47:22 +0200 Message-Id: <1467132449-1030-2-git-send-email-vkuznets@redhat.com> In-Reply-To: <1467132449-1030-1-git-send-email-vkuznets@redhat.com> References: <1467132449-1030-1-git-send-email-vkuznets@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.24 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.39]); Tue, 28 Jun 2016 16:47:35 +0000 (UTC) Cc: Juergen Gross , Stefano Stabellini , x86@kernel.org, linux-kernel@vger.kernel.org, Julien Grall , Ingo Molnar , David Vrabel , "H. Peter Anvin" , Boris Ostrovsky , Thomas Gleixner Subject: [Xen-devel] [PATCH linux 1/8] x86/xen: update cpuid.h from Xen-4.7 X-BeenThere: xen-devel@lists.xen.org X-Mailman-Version: 2.1.18 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: xen-devel-bounces@lists.xen.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP Update cpuid.h header from xen hypervisor tree to get XEN_HVM_CPUID_VCPU_ID_PRESENT definition. Signed-off-by: Vitaly Kuznetsov --- arch/x86/include/asm/xen/cpuid.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/arch/x86/include/asm/xen/cpuid.h b/arch/x86/include/asm/xen/cpuid.h index 0d809e9..3bdd10d 100644 --- a/arch/x86/include/asm/xen/cpuid.h +++ b/arch/x86/include/asm/xen/cpuid.h @@ -76,15 +76,18 @@ /* * Leaf 5 (0x40000x04) * HVM-specific features + * EAX: Features + * EBX: vcpu id (iff EAX has XEN_HVM_CPUID_VCPU_ID_PRESENT flag) */ -/* EAX Features */ /* Virtualized APIC registers */ #define XEN_HVM_CPUID_APIC_ACCESS_VIRT (1u << 0) /* Virtualized x2APIC accesses */ #define XEN_HVM_CPUID_X2APIC_VIRT (1u << 1) /* Memory mapped from other domains has valid IOMMU entries */ #define XEN_HVM_CPUID_IOMMU_MAPPINGS (1u << 2) +/* vcpu id is present in EBX */ +#define XEN_HVM_CPUID_VCPU_ID_PRESENT (1u << 3) #define XEN_CPUID_MAX_NUM_LEAVES 4