From patchwork Mon Nov 16 15:22:57 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?SsO8cmdlbiBHcm/Dnw==?= X-Patchwork-Id: 11909587 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id 179C7139F for ; Mon, 16 Nov 2020 15:23:41 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C934420888 for ; Mon, 16 Nov 2020 15:23:40 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (1024-bit key) header.d=suse.com header.i=@suse.com header.b="OVr7yeWC" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C934420888 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=suse.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from list by lists.xenproject.org with outflank-mailman.28411.57531 (Exim 4.92) (envelope-from ) id 1kegLf-000269-7K; Mon, 16 Nov 2020 15:23:19 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 28411.57531; Mon, 16 Nov 2020 15:23:19 +0000 X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kegLf-00025w-1S; Mon, 16 Nov 2020 15:23:19 +0000 Received: by outflank-mailman (input) for mailman id 28411; Mon, 16 Nov 2020 15:23: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 1kegLe-00021y-ES for xen-devel@lists.xenproject.org; Mon, 16 Nov 2020 15:23:18 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f5713986-34fd-471c-a68c-c89fdd80742b; Mon, 16 Nov 2020 15:23:12 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 30619AF37; Mon, 16 Nov 2020 15:23:11 +0000 (UTC) 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 1kegLe-00021y-ES for xen-devel@lists.xenproject.org; Mon, 16 Nov 2020 15:23:18 +0000 X-Inumbo-ID: f5713986-34fd-471c-a68c-c89fdd80742b Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f5713986-34fd-471c-a68c-c89fdd80742b; Mon, 16 Nov 2020 15:23:12 +0000 (UTC) X-Virus-Scanned: by amavisd-new at test-mx.suse.de DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=suse.com; s=susede1; t=1605540191; h=from:from:reply-to:date:date:message-id:message-id:to:to:cc:cc: mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=hXDPxLHhf2Wu81S1L0YOGGDmDdav6QELXVfWLp0Wriw=; b=OVr7yeWC1WJ/1YNfjLfTDpzLFPM5irXSm+vTpdhhYWW0gyPttx4RWUmJDusvFHgGnUjA1f 6B9Q3UEWCc9Hfdns2tdN/wn130OzGduOD18wLIaCKu3fqq2TgVhL4IToyZS54mNBwyfRQD XslVTZ7zthwQfSWOk5zXiuWG4F7uhpA= Received: from relay2.suse.de (unknown [195.135.221.27]) by mx2.suse.de (Postfix) with ESMTP id 30619AF37; Mon, 16 Nov 2020 15:23:11 +0000 (UTC) From: Juergen Gross To: xen-devel@lists.xenproject.org, x86@kernel.org, linux-kernel@vger.kernel.org, virtualization@lists.linux-foundation.org Cc: Juergen Gross , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Boris Ostrovsky , Stefano Stabellini , Andy Lutomirski , Deep Shah , "VMware, Inc." Subject: [PATCH 0/4] x86/xen: do some paravirt cleanup Date: Mon, 16 Nov 2020 16:22:57 +0100 Message-Id: <20201116152301.24558-1-jgross@suse.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 Eliminate the usergs_sysret64 paravirt call completely and switch the swapgs one to use ALTERNATIVE instead. This requires to fix the IST based exception entries for Xen PV to use the same mechanism as NMI and debug exception already do. Juergen Gross (4): x86/xen: use specific Xen pv interrupt entry for MCE x86/xen: use specific Xen pv interrupt entry for DF x86/pv: switch SWAPGS to ALTERNATIVE x86/xen: drop USERGS_SYSRET64 paravirt call arch/x86/entry/entry_64.S | 32 ++++++++++++--------------- arch/x86/include/asm/idtentry.h | 6 +++++ arch/x86/include/asm/irqflags.h | 26 +++++++--------------- arch/x86/include/asm/paravirt.h | 25 --------------------- arch/x86/include/asm/paravirt_types.h | 10 --------- arch/x86/kernel/asm-offsets_64.c | 3 --- arch/x86/kernel/paravirt.c | 6 +---- arch/x86/kernel/paravirt_patch.c | 7 ------ arch/x86/xen/enlighten_pv.c | 28 ++++++++++++++++++----- arch/x86/xen/xen-asm.S | 24 ++------------------ arch/x86/xen/xen-ops.h | 2 -- 11 files changed, 53 insertions(+), 116 deletions(-) Acked-by: Peter Zijlstra (Intel)