From owner-freebsd-hackers@FreeBSD.ORG Wed Aug 23 07:29:49 2006 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CC7EF16A4E1; Wed, 23 Aug 2006 07:29:49 +0000 (UTC) (envelope-from ssedov@mbsd.msk.ru) Received: from com1.ht-systems.ru (com1.ht-systems.ru [83.97.104.204]) by mx1.FreeBSD.org (Postfix) with ESMTP id 1A84143D49; Wed, 23 Aug 2006 07:29:48 +0000 (GMT) (envelope-from ssedov@mbsd.msk.ru) Received: from [213.87.86.60] (helo=fonon.realnet) by com1.ht-systems.ru with esmtpa (Exim 4.62) (envelope-from ) id 1GFnBJ-00066V-8a; Wed, 23 Aug 2006 11:29:46 +0400 Received: from localhost (localhost [127.0.0.1]) by fonon.realnet (Postfix) with ESMTP id 95A3D1146F; Wed, 23 Aug 2006 11:29:15 +0600 (YEKST) Date: Wed, 23 Aug 2006 11:29:10 +0600 From: Stanislav Sedov To: freebsd-hackers@freebsd.org, "Attilio Rao" Message-ID: <20060823112910.478721d2@localhost> In-Reply-To: <3bbf2fe10608220336s24968560i8565040a2d7eb9c7@mail.gmail.com> References: <20060814124658.1d416cbe@localhost> <200608140932.57875.jhb@freebsd.org> <20060814194729.436fc453@localhost> <3bbf2fe10608220336s24968560i8565040a2d7eb9c7@mail.gmail.com> Organization: MBSD labs, Inc. X-Operating-System: FreeBSD X-Mailer: carrier-pigeon Mime-Version: 1.0 Content-Type: multipart/signed; boundary=Sig_WIBNGweIWQped5ossX0ow24; protocol="application/pgp-signature"; micalg=PGP-SHA1 X-Spam-Flag: SKIP X-Spam-Yversion: Spamooborona 1.6.0 Cc: Subject: Re: exception handling in kernel code X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 23 Aug 2006 07:29:49 -0000 --Sig_WIBNGweIWQped5ossX0ow24 Content-Type: text/plain; charset=KOI8-R Content-Transfer-Encoding: quoted-printable On Tue, 22 Aug 2006 12:36:40 +0200 "Attilio Rao" mentioned: >=20 > Mmm, I think that a better approach would be refering to different > MSRs tables for pentium, p6 and Pentium 4 (if I remind correctly they > are which show differences). It is more extensible, portable and > possibly cleaner (I.E: you could port automatically to openbsd/netbsd, > adding new table and make minimum modifies, etc.) I don't agree. We have a bunch of i386-compatible cpu vendors (Winbond, Cyrix, Intel, AMD, etc) and several models for each of them. Each have specific MSR set available. Thus, in that case we should add a table per each cpu model into the code, that seems to me bogus, since it will grow codesize dramatically and will not save from #GP faults in case of 'degenerate' cpu models. That is, it requires fault handlers anyway. Current implementation works well providing MSR access to userland and it garantee no kernel faults at all. It reports MSR reading errors to userland too. Furthermore, porting to other BSD isn't a goal. --=20 Stanislav Sedov MBSD labs, Inc. =F2=CF=D3=D3=C9=D1, =ED=CF=D3=CB=D7=C1 http://mbsd.msk.ru -------------------------------------------------------------------- If the facts don't fit the theory, change the facts. -- A. Einstein -------------------------------------------------------------------- PGP fingerprint: F21E D6CC 5626 9609 6CE2 A385 2BF5 5993 EB26 9581 --Sig_WIBNGweIWQped5ossX0ow24 Content-Type: application/pgp-signature; name=signature.asc Content-Disposition: attachment; filename=signature.asc -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.3 (FreeBSD) iD8DBQFE6+erK/VZk+smlYERAsl/AJ0Q69OFXVhEpoCAIzAVgtcPgtU+oQCeNASF DFTCykztyLigaeDzstwjdYk= =s0k0 -----END PGP SIGNATURE----- --Sig_WIBNGweIWQped5ossX0ow24--