Received: from mailman by lists.gnu.org with archive (Exim 4.43) id 1MzBqV-0006Et-T0 for mharc-grub-devel@gnu.org; Sat, 17 Oct 2009 12:09:31 -0400 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MzBqU-0006E7-0t for grub-devel@gnu.org; Sat, 17 Oct 2009 12:09:30 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MzBqT-0006Df-Cq for grub-devel@gnu.org; Sat, 17 Oct 2009 12:09:29 -0400 Received: from [199.232.76.173] (port=39325 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MzBqT-0006Db-7r for grub-devel@gnu.org; Sat, 17 Oct 2009 12:09:29 -0400 Received: from fg-out-1718.google.com ([72.14.220.154]:49725) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MzBqS-0003lv-Ri for grub-devel@gnu.org; Sat, 17 Oct 2009 12:09:29 -0400 Received: by fg-out-1718.google.com with SMTP id e21so665552fga.12 for ; Sat, 17 Oct 2009 09:09:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=TevsgrsfIhbx4drcmEaN2jrmAKC3N0+wHZd3lPwKUaU=; b=FXcTfnSNi3fD/NGKDGnk+m5P0MeO5imtqdEAymxU9s69RXygyPaysSY/WB8TMIdDm4 q2ncLe6vQHn3f5gpIjoibW0VPBj0YVy+VaPLJA5w0usrV/Kv7xkU7uLmjixMpa9Cmbm+ qgal06Hcwxl8lTr+2/hP39a4PbKR51RlztBhY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=WnSgd8oQ/qa6+l8BA/hMXX5FZOG2FYDie4tuiuRMqaYIVZrUD1vwPkmf1K7lkA5jLJ oLNnOaFvywQbmctXG9034utb0NKwese9LtZ4fW83TxW0TiVrm/8wozUor2IFIHAFW1cD oL/RuMoW9KUbIPjT2Xo3cnszLvSQYBXfKr8lY= MIME-Version: 1.0 Received: by 10.239.181.165 with SMTP id m37mr254453hbg.11.1255795768135; Sat, 17 Oct 2009 09:09:28 -0700 (PDT) In-Reply-To: <4AD9AD2B.8000604@gmail.com> References: <20091017111852.GA30854@thorin> <4AD9AD2B.8000604@gmail.com> Date: Sat, 17 Oct 2009 11:09:28 -0500 Message-ID: <2e59e6970910170909x571ed409if333a7d3e09bc74@mail.gmail.com> From: "richardvoigt@gmail.com" To: The development of GRUB 2 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Cc: Colin Watson Subject: Re: [2637] 2009-10-16 Colin Watson X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: The development of GRUB 2 List-Id: The development of GRUB 2 List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Oct 2009 16:09:30 -0000 On Sat, Oct 17, 2009 at 6:40 AM, Vladimir 'phcoder' Serbinenko wrote: > Robert Millan wrote: >> On Fri, Oct 16, 2009 at 03:38:44PM +0000, Colin Watson wrote: >> >>> Revision: 2637 >>> =C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0 http://svn.sv.gnu.org/viewvc/?view= =3Drev&root=3Dgrub&revision=3D2637 >>> Author: =C2=A0 cjwatson >>> Date: =C2=A0 =C2=A0 2009-10-16 15:38:42 +0000 (Fri, 16 Oct 2009) >>> Log Message: >>> ----------- >>> 2009-10-16 =C2=A0Colin Watson =C2=A0 >>> >>> =C2=A0 =C2=A0 =C2=A0* configure.ac (TARGET_CFLAGS): Add -mno-mmx -mno-s= se -mno-sse2 >>> =C2=A0 =C2=A0 =C2=A0-mno-3dnow on x86 architectures. =C2=A0Some toolcha= ins enable these >>> =C2=A0 =C2=A0 =C2=A0features by default, but they rely on registers tha= t aren't enabled >>> =C2=A0 =C2=A0 =C2=A0in GRUB. =C2=A0Thanks to Vladimir Serbinenko for th= e suggestion. >>> >> >> Would it be preferable to enable those registers instead? >> >> > They are disabled for following simple reason: > imagine an OS which isn't aware of those registers. Then if user > simultaneously launches two applications which use those registers then > they won't be preserved accross context switches leading to bugs. I > don't know if there is a way to disable these registers again after > enabling them. I don't think grub2 will benefit a lot because of I think this cannot be accurate because virtual machines would be badly broken (registers enabled by the host, guest without awareness is exactly the situation you describe). > mmx/sse/sse2/3dnow because we don't use floating point arithmetics. If I > remember correctly sse has some commands for operations on parallel > operations on integers but the only place I see where benefit could be > considerable is decompression and decryption. If it's proven that For example, memcpy is much faster using those extended instruction sets. Maybe that's not an important use case for grub2 either. > decompressing/decrypting with SSE makes it considerably faster then > enabling SSE would be a good thing. Anyhow for now we can just disable > MMX/SSE/SSE2/3dnow and when someone implements handling those registers > he can enable them again > On FreeBSD kernel itself is compiled without MMX, SSE, SSE2 and 3dnow to > avoid to have to handle them on kernel threads switches. > > > -- > Regards > Vladimir 'phcoder' Serbinenko > Personal git repository: http://repo.or.cz/w/grub2/phcoder.git > > > > _______________________________________________ > Grub-devel mailing list > Grub-devel@gnu.org > http://lists.gnu.org/mailman/listinfo/grub-devel >