From owner-svn-ports-all@freebsd.org Wed Jan 9 17:52:05 2019 Return-Path: Delivered-To: svn-ports-all@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id E9D571488559; Wed, 9 Jan 2019 17:52:04 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "Let's Encrypt Authority X3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 8D55D6C451; Wed, 9 Jan 2019 17:52:04 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org (repo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:0]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 7810A1F66F; Wed, 9 Jan 2019 17:52:04 +0000 (UTC) (envelope-from zeising@FreeBSD.org) Received: from repo.freebsd.org ([127.0.1.37]) by repo.freebsd.org (8.15.2/8.15.2) with ESMTP id x09Hq4Dx083487; Wed, 9 Jan 2019 17:52:04 GMT (envelope-from zeising@FreeBSD.org) Received: (from zeising@localhost) by repo.freebsd.org (8.15.2/8.15.2/Submit) id x09Hq4D3083485; Wed, 9 Jan 2019 17:52:04 GMT (envelope-from zeising@FreeBSD.org) Message-Id: <201901091752.x09Hq4D3083485@repo.freebsd.org> X-Authentication-Warning: repo.freebsd.org: zeising set sender to zeising@FreeBSD.org using -f From: Niclas Zeising Date: Wed, 9 Jan 2019 17:52:04 +0000 (UTC) To: ports-committers@freebsd.org, svn-ports-all@freebsd.org, svn-ports-branches@freebsd.org Subject: svn commit: r489817 - in branches/2019Q1/x11-servers/xorg-server: . files X-SVN-Group: ports-branches X-SVN-Commit-Author: zeising X-SVN-Commit-Paths: in branches/2019Q1/x11-servers/xorg-server: . files X-SVN-Commit-Revision: 489817 X-SVN-Commit-Repository: ports MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Rspamd-Queue-Id: 8D55D6C451 X-Spamd-Bar: -- Authentication-Results: mx1.freebsd.org X-Spamd-Result: default: False [-2.96 / 15.00]; local_wl_from(0.00)[FreeBSD.org]; NEURAL_HAM_MEDIUM(-1.00)[-0.999,0]; NEURAL_HAM_SHORT(-0.96)[-0.958,0]; ASN(0.00)[asn:11403, ipnet:2610:1c1:1::/48, country:US]; NEURAL_HAM_LONG(-1.00)[-0.998,0] X-BeenThere: svn-ports-all@freebsd.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: SVN commit messages for the ports tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 09 Jan 2019 17:52:05 -0000 Author: zeising Date: Wed Jan 9 17:52:03 2019 New Revision: 489817 URL: https://svnweb.freebsd.org/changeset/ports/489817 Log: MFH: r489754 Fix illegal instruction when running in kvm/qemu Fix illegal instruction when running xserver in kvm or qemu (and possibly others) virtualisation. This is solved by disabling sse instructions while compiling the xf86SlowBcopy (don't ask) function. This fix was originally committed by dim as r396167 in 2015, and then most likely accidentally removed in r433863 in 2017. Bump portrevision Original commit message: > Disable use of SSE instructions in Xorg's xf86SlowBcopy() function. > > When such instructions are used to copy data from/to mapped video > memory, some hypervisors (e.g. KVM, Microsoft Hyper-V) can generate > SIGILL or SIGBUS exceptions, causing Xorg to crash. PR: 202643 Reported by: nogcjx@fastmail.fm Requested by: dim Diagnose and fix by: dim Approved by: ports-secteam (miwi) Added: branches/2019Q1/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-misc-Makefile.in - copied unchanged from r489754, head/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-misc-Makefile.in Modified: branches/2019Q1/x11-servers/xorg-server/Makefile Directory Properties: branches/2019Q1/ (props changed) Modified: branches/2019Q1/x11-servers/xorg-server/Makefile ============================================================================== --- branches/2019Q1/x11-servers/xorg-server/Makefile Wed Jan 9 16:45:54 2019 (r489816) +++ branches/2019Q1/x11-servers/xorg-server/Makefile Wed Jan 9 17:52:03 2019 (r489817) @@ -3,7 +3,7 @@ PORTNAME?= xorg-server PORTVERSION?= 1.18.4 -PORTREVISION?= 10 +PORTREVISION?= 11 PORTEPOCH?= 1 CATEGORIES= x11-servers MASTER_SITES= XORG/individual/xserver Copied: branches/2019Q1/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-misc-Makefile.in (from r489754, head/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-misc-Makefile.in) ============================================================================== --- /dev/null 00:00:00 1970 (empty, because file is newly added) +++ branches/2019Q1/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-misc-Makefile.in Wed Jan 9 17:52:03 2019 (r489817, copy of r489754, head/x11-servers/xorg-server/files/patch-Xserver-hw-xfree86-os-support-misc-Makefile.in) @@ -0,0 +1,12 @@ +--- hw/xfree86/os-support/misc/Makefile.in.orig 2015-09-23 10:21:18.470900000 +0200 ++++ hw/xfree86/os-support/misc/Makefile.in 2015-09-23 10:22:34.979974000 +0200 +@@ -530,7 +530,8 @@ + + #AM_LDFLAGS = -r + AM_CPPFLAGS = $(XORG_INCS) +-AM_CFLAGS = $(XORG_CFLAGS) $(DIX_CFLAGS) ++@I386_VIDEO_TRUE@I386_VIDEO_CFLAGS = -mno-sse ++AM_CFLAGS = $(I386_VIDEO_CFLAGS) $(XORG_CFLAGS) $(DIX_CFLAGS) + EXTRA_DIST = $(I386_SRCS) $(PORTIO_SRCS) + all: all-am +