From nobody Mon Feb 9 01:16:25 2026 Delivered-To: importer@patchew.org Received-SPF: pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Authentication-Results: mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1593601654; cv=none; d=zohomail.com; s=zohoarc; b=dONqN2uz+PslT/xMIuAZIDt7t5PLl0j6NJ7UMSASVUH8lS0AFOgtwmtd+jzF+Kxxb9VATLTkgfPIy7/z/LIojQuXLw4HketXVwrot+dASq0CyMHoLZ3LXvugDttUTxOSd7HF5OPxlQYubT9Yf6tU6OrobeNKyI6YAaI21zc/Des= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1593601654; h=Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To; bh=Mal7uPRdvJm+NKOMcT6pYVJ9uu3TPDIXSOEnx3jF+Nk=; b=kuaRKXf8GTZLdIu6QIALi5d31dCfqacOfbuHMt3IUBRULqHgvX85+KrRLypBcfMnjIQ2dAsy5/yCAiK/D37FsYuLElf/pBsu4x6PlxF/0UDTao/yxY4rxRfz1+WLIwmacCFR5U7MotDiEz+W95M7fTAs2f3jslOQLTd5QfymrJ8= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=pass (zohomail.com: domain of lists.xenproject.org designates 192.237.175.120 as permitted sender) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1593601654550722.3523829552958; Wed, 1 Jul 2020 04:07:34 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jqaaE-0006o8-Tr; Wed, 01 Jul 2020 11:07:18 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1jqaaD-0006nx-CV for xen-devel@lists.xenproject.org; Wed, 01 Jul 2020 11:07:17 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 05977038-bb8b-11ea-86ef-12813bfff9fa; Wed, 01 Jul 2020 11:07:16 +0000 (UTC) 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) X-Inumbo-ID: 05977038-bb8b-11ea-86ef-12813bfff9fa X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org, x86@kernel.org, virtualization@lists.linux-foundation.org, linux-kernel@vger.kernel.org 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: quoted-printable X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Juergen Gross , Deep Shah , "VMware, Inc." , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Thomas Gleixner Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" Content-Type: text/plain; charset="utf-8" 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/paravir= t.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 */ =20 #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 =20 /* --=20 2.26.2