Received: by 2002:ac0:a594:0:0:0:0:0 with SMTP id m20-v6csp4278741imm; Fri, 18 May 2018 02:21:26 -0700 (PDT) X-Google-Smtp-Source: AB8JxZoK6Z++YdeJyH7/xujoxTTJ64Tx1gHcDFb6mFmw1XOn9BbiFhlk0pKBeY8E1EIqNEPohcIV X-Received: by 2002:a63:380e:: with SMTP id f14-v6mr6963387pga.242.1526635286294; Fri, 18 May 2018 02:21:26 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1526635286; cv=none; d=google.com; s=arc-20160816; b=I7+FH+tiW4SwoDwg3NunhppKBixC8t56AvhOfB1Z9IwbNz/pK38vr77R0SIAWPCp2N OJmkHAVppw9N+AoxcJdk/cWupBingbCOpqG+JG6axfW6Ppv7dZo0JBnxnwCGW3B+052m 53ZfXyAvsMslIGr74xtcKLCs1rMNgOzr8KaGFnCpxhfbheIpkQQdPv0w7EXthDY8FjHN jblHAkzCOmpnkuSXQCW52D4LgXwQGYlUeot4Vgwc09UEo2j03M+hNYekQP94D4rgS1Wu 8HFheNMtrjRDQjQSOCRi1uIFdq/irDbhXh7RiecJtXBlKIn1GsQtVxVn+7Ve/HPKoEmp 96aQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=W3a9UvMQ7wLrJQ4wo++ETvRdh6owrcfKVDfFe3qkC2M=; b=zF2++nLfMPuJ/4wQAlpHpyCwIRoKlcc884AYISsOc807+xb1FcamB7Of1LoqOcf4ZC I7pMGhvfoo2x61aRtXBKoeXaFkyqyC8kBFEc/c71GeERr3Ij6+5h1orzA1xZMx9DgL5d khzM3AkndfCY54XLiJWyvobAL/kpIqhJZZGS7iimj6uUBFnqO+bQMzTcXSmWPEyNRKps Q9pQf94h0fIQnON0d4n2NW1n4YJ9ru6eJgHaDF6RJdeVV8qol5JR0nT/mSrqcALT++Kz 8tGI2RdJXpAXk/d0kUzgEQwWG0u0nRLVbQDS7dGg+/RkTYk85jKnU4ZjknKdgNEdfd1X CnuQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g8-v6si5884526pgr.474.2018.05.18.02.21.12; Fri, 18 May 2018 02:21:26 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753203AbeERJRu (ORCPT + 99 others); Fri, 18 May 2018 05:17:50 -0400 Received: from mx2.suse.de ([195.135.220.15]:45458 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752835AbeERJRm (ORCPT ); Fri, 18 May 2018 05:17:42 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 02C09AF72; Fri, 18 May 2018 09:17:41 +0000 (UTC) From: Jiri Slaby To: mingo@redhat.com Cc: linux-arch@vger.kernel.org, linux-kernel@vger.kernel.org, Jiri Slaby , Boris Ostrovsky , Juergen Gross , Thomas Gleixner , "H. Peter Anvin" , x86@kernel.org, xen-devel@lists.xenproject.org Subject: [PATCH v6 14/28] xen/pvh: annotate data appropriatelly Date: Fri, 18 May 2018 11:17:07 +0200 Message-Id: <20180518091721.7604-15-jslaby@suse.cz> X-Mailer: git-send-email 2.16.3 In-Reply-To: <20180518091721.7604-1-jslaby@suse.cz> References: <20180518091721.7604-1-jslaby@suse.cz> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Use the new SYM_DATA_START_LOCAL, and SYM_DATA_END* macros to have: 0000 8 OBJECT LOCAL DEFAULT 6 gdt 0008 32 OBJECT LOCAL DEFAULT 6 gdt_start 0028 0 OBJECT LOCAL DEFAULT 6 gdt_end 0028 256 OBJECT LOCAL DEFAULT 6 early_stack 0128 0 OBJECT LOCAL DEFAULT 6 early_stack Signed-off-by: Jiri Slaby Reviewed-by: Boris Ostrovsky Cc: Boris Ostrovsky Cc: Juergen Gross Cc: Thomas Gleixner Cc: Ingo Molnar Cc: "H. Peter Anvin" Cc: x86@kernel.org Cc: xen-devel@lists.xenproject.org --- arch/x86/xen/xen-pvh.S | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/arch/x86/xen/xen-pvh.S b/arch/x86/xen/xen-pvh.S index e1a5fbeae08d..52b28793a625 100644 --- a/arch/x86/xen/xen-pvh.S +++ b/arch/x86/xen/xen-pvh.S @@ -137,11 +137,12 @@ END(pvh_start_xen) .section ".init.data","aw" .balign 8 -gdt: +SYM_DATA_START_LOCAL(gdt) .word gdt_end - gdt_start .long _pa(gdt_start) .word 0 -gdt_start: +SYM_DATA_END(gdt) +SYM_DATA_START_LOCAL(gdt_start) .quad 0x0000000000000000 /* NULL descriptor */ .quad 0x0000000000000000 /* reserved */ #ifdef CONFIG_X86_64 @@ -150,12 +151,12 @@ gdt_start: .quad GDT_ENTRY(0xc09a, 0, 0xfffff) /* __KERNEL_CS */ #endif .quad GDT_ENTRY(0xc092, 0, 0xfffff) /* __KERNEL_DS */ -gdt_end: +SYM_DATA_END_LABEL(gdt_start, SYM_L_LOCAL, gdt_end) .balign 4 -early_stack: +SYM_DATA_START_LOCAL(early_stack) .fill 256, 1, 0 -early_stack_end: +SYM_DATA_END_LABEL(early_stack, SYM_L_LOCAL, early_stack_end) ELFNOTE(Xen, XEN_ELFNOTE_PHYS32_ENTRY, _ASM_PTR (pvh_start_xen - __START_KERNEL_map)) -- 2.16.3