Received: by 2002:a25:1506:0:0:0:0:0 with SMTP id 6csp4208514ybv; Tue, 25 Feb 2020 15:30:45 -0800 (PST) X-Google-Smtp-Source: APXvYqzz+hSiHuK9vYk3RWEZifUYyQBLySYpDHJ3+JMyvBworIFw2O9vyXYxE0QRIDhDu6v6x5Js X-Received: by 2002:a05:6808:209:: with SMTP id l9mr1036285oie.112.1582673444946; Tue, 25 Feb 2020 15:30:44 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1582673444; cv=none; d=google.com; s=arc-20160816; b=vyMzlhpGuKcCdxlzgzakACPR7ynhF+jp9ndp2QsegYNkwRPY6oFW5FQrG10W2W5RUk tal2fuk5CgUq9tTfHCwplRyiEioqYQJpQmCF940d+vMfQusxXMcClpFu3HnaVaVJJUB6 MFjCdY6k4MX0RZqwUfSUVnRW8zEms5AJI2P3MIU57scF17PPqZmGl/1qEKB4CT3xB8Ab fyVSAk0KO58nsJvqsbH9GEF/O8YM1nIWGbuhJrktTV5Rer/YlKb8iXCbUKdjFu3XmAVZ oEZr56bsLGlFd2twK3ww4+lif2IrsDllm13PIakhFTwLFOW61Pc1r2Ct2RwbNBCVbeSD ZdTA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:subject:cc:to :from:date:user-agent:message-id; bh=xxqdB9rDP7zU/j3UQBOphKAozS73WUBlDvFyaZdi6VA=; b=DgFB3w9csnhHDoY4rvNdwQ3hUvQDIHML33fS5Fe9Y0/tGOzZrqDIsbgNKlr/k4hc8V H2Hnid9P39J/rmaaFRQDv0qXy6NtvDutDtZvoeSjdbD18y41bEY6DbMzqbkMuJ7VX4ks TX/ApCybTYAz5mIneurM4ksSDf4oec2y9TgAnG1adjrGARlLEmvILPQrhvcGEkQdIuny zST6CKKzYbVIRubBjXGhFxe/oUoYLtymifSZZQftnyPoRXtdL9zu6RjbLT24kfvndRps vllQ/wibzL+TH8Ryljd2/b14XHcFUQ0OfPzrTSTCEoNFsd7MuapAxZK8frj6tl0y4bhO zBYg== 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 k205si127716oib.64.2020.02.25.15.30.32; Tue, 25 Feb 2020 15:30:44 -0800 (PST) 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 S1730165AbgBYXaD (ORCPT + 99 others); Tue, 25 Feb 2020 18:30:03 -0500 Received: from Galois.linutronix.de ([193.142.43.55]:55608 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729754AbgBYX0B (ORCPT ); Tue, 25 Feb 2020 18:26:01 -0500 Received: from p5de0bf0b.dip0.t-ipconnect.de ([93.224.191.11] helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1j6jaB-0004dn-Pk; Wed, 26 Feb 2020 00:25:44 +0100 Received: from nanos.tec.linutronix.de (localhost [IPv6:::1]) by nanos.tec.linutronix.de (Postfix) with ESMTP id 17CEC100375; Wed, 26 Feb 2020 00:25:37 +0100 (CET) Message-Id: <20200225222648.485203436@linutronix.de> User-Agent: quilt/0.65 Date: Tue, 25 Feb 2020 23:16:09 +0100 From: Thomas Gleixner To: LKML Cc: x86@kernel.org, Steven Rostedt , Brian Gerst , Juergen Gross , Paolo Bonzini , Arnd Bergmann Subject: [patch 03/24] x86/entry/64: Reorder idtentries References: <20200225221606.511535280@linutronix.de> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Linutronix-Spam-Score: -1.0 X-Linutronix-Spam-Level: - X-Linutronix-Spam-Status: No , -1.0 points, 5.0 required, ALL_TRUSTED=-1,SHORTCIRCUIT=-0.0001 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Move them all together so verifying the cleanup patches for binary equivalence will be easier. Signed-off-by: Thomas Gleixner --- arch/x86/entry/entry_64.S | 42 +++++++++++++++++++----------------------- 1 file changed, 19 insertions(+), 23 deletions(-) --- a/arch/x86/entry/entry_64.S +++ b/arch/x86/entry/entry_64.S @@ -1019,18 +1019,36 @@ SYM_CODE_END(\sym) idtentry divide_error do_divide_error has_error_code=0 idtentry overflow do_overflow has_error_code=0 +idtentry int3 do_int3 has_error_code=0 create_gap=1 idtentry bounds do_bounds has_error_code=0 idtentry invalid_op do_invalid_op has_error_code=0 idtentry device_not_available do_device_not_available has_error_code=0 -idtentry double_fault do_double_fault has_error_code=1 paranoid=2 read_cr2=1 idtentry coprocessor_segment_overrun do_coprocessor_segment_overrun has_error_code=0 idtentry invalid_TSS do_invalid_TSS has_error_code=1 idtentry segment_not_present do_segment_not_present has_error_code=1 +idtentry stack_segment do_stack_segment has_error_code=1 +idtentry general_protection do_general_protection has_error_code=1 idtentry spurious_interrupt_bug do_spurious_interrupt_bug has_error_code=0 idtentry coprocessor_error do_coprocessor_error has_error_code=0 idtentry alignment_check do_alignment_check has_error_code=1 idtentry simd_coprocessor_error do_simd_coprocessor_error has_error_code=0 +idtentry page_fault do_page_fault has_error_code=1 read_cr2=1 +#ifdef CONFIG_KVM_GUEST +idtentry async_page_fault do_async_page_fault has_error_code=1 read_cr2=1 +#endif + +#ifdef CONFIG_X86_MCE +idtentry machine_check do_mce has_error_code=0 paranoid=1 +#endif +idtentry debug do_debug has_error_code=0 paranoid=1 shift_ist=IST_INDEX_DB ist_offset=DB_STACK_OFFSET +idtentry double_fault do_double_fault has_error_code=1 paranoid=2 read_cr2=1 + +#ifdef CONFIG_XEN_PV +idtentry hypervisor_callback xen_do_hypervisor_callback has_error_code=0 +idtentry xennmi do_nmi has_error_code=0 +idtentry xendebug do_debug has_error_code=0 +#endif /* * Reload gs selector with exception handling @@ -1082,8 +1100,6 @@ SYM_FUNC_START(do_softirq_own_stack) SYM_FUNC_END(do_softirq_own_stack) #ifdef CONFIG_XEN_PV -idtentry hypervisor_callback xen_do_hypervisor_callback has_error_code=0 - /* * A note on the "critical region" in our callback handler. * We want to avoid stacking callback handlers due to events occurring @@ -1186,26 +1202,6 @@ apicinterrupt3 HYPERVISOR_CALLBACK_VECTO acrn_hv_callback_vector acrn_hv_vector_handler #endif -idtentry debug do_debug has_error_code=0 paranoid=1 shift_ist=IST_INDEX_DB ist_offset=DB_STACK_OFFSET -idtentry int3 do_int3 has_error_code=0 create_gap=1 -idtentry stack_segment do_stack_segment has_error_code=1 - -#ifdef CONFIG_XEN_PV -idtentry xennmi do_nmi has_error_code=0 -idtentry xendebug do_debug has_error_code=0 -#endif - -idtentry general_protection do_general_protection has_error_code=1 -idtentry page_fault do_page_fault has_error_code=1 read_cr2=1 - -#ifdef CONFIG_KVM_GUEST -idtentry async_page_fault do_async_page_fault has_error_code=1 read_cr2=1 -#endif - -#ifdef CONFIG_X86_MCE -idtentry machine_check do_mce has_error_code=0 paranoid=1 -#endif - /* * Save all registers in pt_regs, and switch gs if needed. * Use slow, but surefire "are we in kernel?" check.