Received: by 2002:a05:6902:102b:0:0:0:0 with SMTP id x11csp519751ybt; Wed, 1 Jul 2020 04:08:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwgjgEfayTcSoil8kGHVDX+B73CwhEMuAMiHKykpmEBQOOoabVQJYiauws8DXp+K6E/Hv1d X-Received: by 2002:a17:906:dbed:: with SMTP id yd13mr21823672ejb.419.1593601699659; Wed, 01 Jul 2020 04:08:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1593601699; cv=none; d=google.com; s=arc-20160816; b=Q4laslwHrqN1/NYugZdvCXuZNbO2oXk6P3gTUykyLUKhkEuZn+eK46E4bSauMtfJ6l NmxKxQheoFglHIbJB+kEvX/K+0UTLfAomIuA1qh6L5QHBZEofSYHEbT4x3RlnE6v20JY oTAl3E1DwXxyRskNb9CuKPszwO2OW59dYaF4znn7ZroBF/hNY+7dr5FiGCwY3NB0QPli ydjuB+IwbtP0FCeFRMSKkJ6Q/BTKi9jN8kUGh0ltyW9zbWUPtqHcBM8dIjkSuljAx9vw sfdvKZlH/ymf4rbCCnOIazUagXhO/wmIxnRxhV14ceuKJZi1E4FkfVF9HuQIhi5mLHs9 ji+A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=Mal7uPRdvJm+NKOMcT6pYVJ9uu3TPDIXSOEnx3jF+Nk=; b=V9HH5UB1/TRTT0TnA8MdcT99txtiwtFb5XT4RBGYHSpgJUSqv7vXMVFkPsqCsCiHj1 zFM2bv5zIIinpqOxndfkmW/uuQ511eXFqXANvqCVDArV2JaAfqcACVPEokc1IEDn/+ZG kjwh9jOf5JH5qyBG4wKsK8ViyRpgoim5R2qleEcekJEgaQp6/GlkdohnvIz5xhJdid2E CnsG72sejFL98hwsKUAyS+dpyo8f+BG1x60r+nW1fN109XIl5qnLXAcQxILljG4W5aP8 Kjh96wx0wTWFc+36DBupjierMBLg5GIXJRqRqf1J1JjM/yBabCJTfTlSWlm66vCpGMiI DrAQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g4si4600522edf.452.2020.07.01.04.07.55; Wed, 01 Jul 2020 04:08:19 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730240AbgGALHU (ORCPT + 99 others); Wed, 1 Jul 2020 07:07:20 -0400 Received: from mx2.suse.de ([195.135.220.15]:48194 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730183AbgGALHQ (ORCPT ); Wed, 1 Jul 2020 07:07:16 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 699ECAD71; Wed, 1 Jul 2020 11:07:15 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org, x86@kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org Cc: Juergen Gross , Deep Shah , "VMware, Inc." , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" Subject: [PATCH v2 3/4] x86/paravirt: cleanup paravirt macros Date: Wed, 1 Jul 2020 13:06:49 +0200 Message-Id: <20200701110650.16172-4-jgross@suse.com> X-Mailer: git-send-email 2.26.2 In-Reply-To: <20200701110650.16172-1-jgross@suse.com> References: <20200701110650.16172-1-jgross@suse.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Some paravirt macros are no longer used, delete them. Signed-off-by: Juergen Gross --- arch/x86/include/asm/paravirt.h | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/arch/x86/include/asm/paravirt.h b/arch/x86/include/asm/paravirt.h index cfe9f6e472b5..cff2fbd1edd5 100644 --- a/arch/x86/include/asm/paravirt.h +++ b/arch/x86/include/asm/paravirt.h @@ -609,16 +609,9 @@ bool __raw_callee_save___native_vcpu_is_preempted(long cpu); #endif /* SMP && PARAVIRT_SPINLOCKS */ #ifdef CONFIG_X86_32 -#define PV_SAVE_REGS "pushl %ecx; pushl %edx;" -#define PV_RESTORE_REGS "popl %edx; popl %ecx;" - /* save and restore all caller-save registers, except return value */ #define PV_SAVE_ALL_CALLER_REGS "pushl %ecx;" #define PV_RESTORE_ALL_CALLER_REGS "popl %ecx;" - -#define PV_FLAGS_ARG "0" -#define PV_EXTRA_CLOBBERS -#define PV_VEXTRA_CLOBBERS #else /* save and restore all caller-save registers, except return value */ #define PV_SAVE_ALL_CALLER_REGS \ @@ -639,14 +632,6 @@ bool __raw_callee_save___native_vcpu_is_preempted(long cpu); "pop %rsi;" \ "pop %rdx;" \ "pop %rcx;" - -/* We save some registers, but all of them, that's too much. We clobber all - * caller saved registers but the argument parameter */ -#define PV_SAVE_REGS "pushq %%rdi;" -#define PV_RESTORE_REGS "popq %%rdi;" -#define PV_EXTRA_CLOBBERS EXTRA_CLOBBERS, "rcx" , "rdx", "rsi" -#define PV_VEXTRA_CLOBBERS EXTRA_CLOBBERS, "rdi", "rcx" , "rdx", "rsi" -#define PV_FLAGS_ARG "D" #endif /* -- 2.26.2