Received: by mail.netbsd.org (Postfix, from userid 605) id 46C6684E9C; Wed, 15 Apr 2020 16:04:08 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by mail.netbsd.org (Postfix) with ESMTP id BEFFD84E9A for ; Wed, 15 Apr 2020 16:04:07 +0000 (UTC) X-Virus-Scanned: amavisd-new at netbsd.org Received: from mail.netbsd.org ([IPv6:::1]) by localhost (mail.netbsd.org [IPv6:::1]) (amavisd-new, port 10025) with ESMTP id DdYWxJduQSWH for ; Wed, 15 Apr 2020 16:04:07 +0000 (UTC) Received: from cvs.NetBSD.org (ivanova.NetBSD.org [IPv6:2001:470:a085:999:28c:faff:fe03:5984]) by mail.netbsd.org (Postfix) with ESMTP id 4469384CE7 for ; Wed, 15 Apr 2020 16:04:07 +0000 (UTC) Received: by cvs.NetBSD.org (Postfix, from userid 500) id 3E3BDFB27; Wed, 15 Apr 2020 16:04:07 +0000 (UTC) Content-Disposition: inline Content-Transfer-Encoding: 8bit Content-Type: text/plain; charset="US-ASCII" MIME-Version: 1.0 Date: Wed, 15 Apr 2020 16:04:07 +0000 From: "Manuel Bouyer" Subject: CVS commit: [bouyer-xenpvh] src/sys/arch To: source-changes@NetBSD.org X-Mailer: log_accum Message-Id: <20200415160407.3E3BDFB27@cvs.NetBSD.org> Sender: source-changes-owner@NetBSD.org List-Id: source-changes.NetBSD.org Precedence: bulk Reply-To: source-changes-d@NetBSD.org Mail-Reply-To: "Manuel Bouyer" Mail-Followup-To: source-changes-d@NetBSD.org List-Unsubscribe: Module Name: src Committed By: bouyer Date: Wed Apr 15 16:04:07 UTC 2020 Modified Files: src/sys/arch/amd64/amd64 [bouyer-xenpvh]: spl.S src/sys/arch/amd64/conf [bouyer-xenpvh]: XEN3_DOMU src/sys/arch/i386/i386 [bouyer-xenpvh]: lock_stubs.S spl.S src/sys/arch/x86/include [bouyer-xenpvh]: cpufunc.h src/sys/arch/x86/x86 [bouyer-xenpvh]: patch.c Log Message: On amd64, always use the cmpxchg8b version of spllower. All x86_64 host should have it and we already rely on it in lock stubs. On i386, always use i686_mutex_spin_exit and cx8_spllower for Xen; Xen doesn't run on CPUs on CPUs lacking the required instructions anyway. Skip x86_patch only for XENPV, and adjust for changes in assembly functions. Tested on Xen PV and PVHVM, and on bare metal core i5. To generate a diff of this commit: cvs rdiff -u -r1.43.4.6 -r1.43.4.7 src/sys/arch/amd64/amd64/spl.S cvs rdiff -u -r1.90.6.1 -r1.90.6.2 src/sys/arch/amd64/conf/XEN3_DOMU cvs rdiff -u -r1.32 -r1.32.6.1 src/sys/arch/i386/i386/lock_stubs.S cvs rdiff -u -r1.50.4.5 -r1.50.4.6 src/sys/arch/i386/i386/spl.S cvs rdiff -u -r1.37 -r1.37.6.1 src/sys/arch/x86/include/cpufunc.h cvs rdiff -u -r1.37.6.2 -r1.37.6.3 src/sys/arch/x86/x86/patch.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.