Received: by 2002:ac0:a5a7:0:0:0:0:0 with SMTP id m36-v6csp3182374imm; Fri, 10 Aug 2018 05:16:28 -0700 (PDT) X-Google-Smtp-Source: AA+uWPw38xTZmj/Qeet8ogBLmNCuJojM+tSpweKGEeKvK08W+jl6yzIP7io6G8WS/lxLf695Mqdl X-Received: by 2002:a63:2506:: with SMTP id l6-v6mr6191894pgl.237.1533903388714; Fri, 10 Aug 2018 05:16:28 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1533903388; cv=none; d=google.com; s=arc-20160816; b=lCmzbBlqt0GCemcIfnVJcO+ozSeea7HHeWqQOXeogyMSGMwijDlEAi62rxoz9/h+Gf viVXndRW5Hm4FY8T2r1vJBCtq/i8Fqhc/dykbq7OM6PJLmEVE3skHXN9cANn9KcMJ/3M jeKu2sZmUj6TVzza+SpjXSFjLXQRToF+3fN6FuPLhXbMmQ/+fCRum3QSOgJApeE9illx HCXQAaa0LG8HudOlbI2Dxw0oQu6b+biLKff09a0wBf/8QisF1AD6TzncC3tzp06ukj2c ZctXymMjHhDSx97MwuTMGPUzAIpIHS0+PeaJZKNp0U+UcaT09s51s+ed5rgF7YuP3tMu B5gA== 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=5NXa9BBQMLMFIQyZzx+Ty04vsLPzBr8BtppuElfP3cU=; b=FoexvNeJX3OYj8lOKSUdkloKgNJaqF2j5nqsaSo9DS3HFcnJ/ArDvIBXq/WZ+3aP1a xZqCCzWR+qA7vFAhVNIe6XI54W0SEgi6iGJCl2S9vBY1w8+n228MSVFM4vPWaGADufo4 562cSYiAuchRFElLo5B1CTOePWreFLKed460+BsxkQ0FkIb/oYojYovy9Jrf5G/c8Dpu 7rIlrmcQbyEtU3R7BI0FMUuX/j/zaXtkOlfDojOuuWubPce8f4DO8oyOHgIRsTmD7WbN NDId+v6hiCtbmXGuBVKjWBfgnYHxtxZRywBpYpZB4kIy6MIe9NptUrxNGb86x1jAzgC/ d1Bw== 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 l26-v6si9989102pfj.188.2018.08.10.05.16.12; Fri, 10 Aug 2018 05:16:28 -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 S1727780AbeHJOWg (ORCPT + 99 others); Fri, 10 Aug 2018 10:22:36 -0400 Received: from mx2.suse.de ([195.135.220.15]:38736 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1727493AbeHJOWf (ORCPT ); Fri, 10 Aug 2018 10:22:35 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay1.suse.de (unknown [195.135.220.254]) by mx1.suse.de (Postfix) with ESMTP id 0EE74AE8A; Fri, 10 Aug 2018 11:52:58 +0000 (UTC) From: Juergen Gross To: linux-kernel@vger.kernel.org, xen-devel@lists.xenproject.org, x86@kernel.org, virtualization@lists.linux-foundation.org Cc: akataria@vmware.com, rusty@rustcorp.com.au, boris.ostrovsky@oracle.com, hpa@zytor.com, tglx@linutronix.de, mingo@redhat.com, Juergen Gross Subject: [PATCH 05/10] x86/paravirt: remove unused paravirt bits Date: Fri, 10 Aug 2018 13:52:47 +0200 Message-Id: <20180810115252.18213-6-jgross@suse.com> X-Mailer: git-send-email 2.13.7 In-Reply-To: <20180810115252.18213-1-jgross@suse.com> References: <20180810115252.18213-1-jgross@suse.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The macros ENABLE_INTERRUPTS_SYSEXIT, GET_CR0_INTO_EAX and PARAVIRT_ADJUST_EXCEPTION_FRAME are used nowhere. Remove their definitions. Signed-off-by: Juergen Gross --- arch/x86/include/asm/irqflags.h | 4 ---- arch/x86/include/asm/paravirt.h | 9 +-------- arch/x86/kernel/asm-offsets.c | 1 - 3 files changed, 1 insertion(+), 13 deletions(-) diff --git a/arch/x86/include/asm/irqflags.h b/arch/x86/include/asm/irqflags.h index c4fc17220df9..b7a790d03229 100644 --- a/arch/x86/include/asm/irqflags.h +++ b/arch/x86/include/asm/irqflags.h @@ -132,8 +132,6 @@ static inline notrace unsigned long arch_local_irq_save(void) */ #define SWAPGS_UNSAFE_STACK swapgs -#define PARAVIRT_ADJUST_EXCEPTION_FRAME /* */ - #define INTERRUPT_RETURN jmp native_iret #define USERGS_SYSRET64 \ swapgs; \ @@ -147,8 +145,6 @@ static inline notrace unsigned long arch_local_irq_save(void) #endif #else #define INTERRUPT_RETURN iret -#define ENABLE_INTERRUPTS_SYSEXIT sti; sysexit -#define GET_CR0_INTO_EAX movl %cr0, %eax #endif diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index 1b86bb319393..436d270e622b 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -904,14 +904,7 @@ extern void default_banner(void); call PARA_INDIRECT(pv_ops+PV_IRQ_irq_enable); \ PV_RESTORE_REGS(clobbers | CLBR_CALLEE_SAVE);) -#ifdef CONFIG_X86_32 -#define GET_CR0_INTO_EAX \ - push %ecx; push %edx; \ - ANNOTATE_RETPOLINE_SAFE; \ - call PARA_INDIRECT(pv_ops+PV_CPU_read_cr0); \ - pop %edx; pop %ecx -#else /* !CONFIG_X86_32 */ - +#ifdef CONFIG_X86_64 /* * If swapgs is used while the userspace stack is still current, * there's no way to call a pvop. The PV replacement *must* be diff --git a/arch/x86/kernel/asm-offsets.c b/arch/x86/kernel/asm-offsets.c index bec9fc3498f8..d0f0348209cb 100644 --- a/arch/x86/kernel/asm-offsets.c +++ b/arch/x86/kernel/asm-offsets.c @@ -71,7 +71,6 @@ void common(void) { OFFSET(PV_IRQ_irq_enable, paravirt_patch_template, pv_irq_ops.irq_enable); OFFSET(PV_CPU_iret, paravirt_patch_template, pv_cpu_ops.iret); - OFFSET(PV_CPU_read_cr0, paravirt_patch_template, pv_cpu_ops.read_cr0); OFFSET(PV_MMU_read_cr2, paravirt_patch_template, pv_mmu_ops.read_cr2); #endif -- 2.13.7