Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753123Ab0K1OFs (ORCPT ); Sun, 28 Nov 2010 09:05:48 -0500 Received: from mail-ww0-f44.google.com ([74.125.82.44]:60618 "EHLO mail-ww0-f44.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752801Ab0K1OFq convert rfc822-to-8bit (ORCPT ); Sun, 28 Nov 2010 09:05:46 -0500 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=fkcQ55wz3BvfYJdkWJFehQWV7hgBZ6sLSlJbEgd0TO4zck0UugaskeHQnTtxP0H4OZ 8CM+ypj233NV1rlxyoJw8GmwThBdAX/zzLJHnHKZfk6YMZIvX5eQJOaTnoAoAoF50I7o GOU2T/dzyvcXuA0/dfyfLeW4XTA/tEXHBxvik= MIME-Version: 1.0 In-Reply-To: <1290951770.13526.18.camel@cai.gentoo> References: <1290941875.13526.15.camel@cai.gentoo> <73BC440E-833E-4E1B-ACCC-5D68BAB89D83@mit.edu> <1290951770.13526.18.camel@cai.gentoo> Date: Sun, 28 Nov 2010 09:05:44 -0500 Message-ID: Subject: Re: VT console need rewrite From: "jonsmirl@gmail.com" To: microcai@fedoraproject.org Cc: Theodore Tso , linux-kernel@vger.kernel.org, linux-console@vger.kernel.org Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8BIT Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2862 Lines: 65 On Sun, Nov 28, 2010 at 8:42 AM, Microcai wrote: > 在 2010-11-28日的 08:24 -0500,Theodore Tso写道: >> On Nov 28, 2010, at 5:57 AM, Microcai wrote: >> >> > Hi, there >> > >> >     I'm implementing the UNICODE font of the framebuffer console, (see >> > http://lkml.org/lkml/2010/11/26/50 in case you do not got my email). But >> > current vt code is too bugy, too many direct assumes about vt buffer, >> > This makes me so hard to hack.  There is TODO telling me to add UNICODE >> > support, but no room for such code, that's why my patch is so tricky. >> > >> >     And the code itself, if you'll excuse me, it isn't as beautiful as rest >> > of the kernel. >> >     So, it really really need a clean rewrite.I'm ganna take is hard job. >> >     And, please tell me if is worth to do so. >> >> Yes, the console is code is very old.   But please be aware that lots of code (both in the kernel and in userspace) has dependencies upon how the code behaves.   So changing it in a way that does not break backwards compatibility is hard.  i.e., it is hard to hack for a reason. >> >> I would recommend an incremental rewrite (i.e., one patch at a time), as opposed to a rewrite from scratch.   Because people will want to be assured that things haven't broken in a horrible way as a result of a complete rewrite... >> >> -- Ted >> > > Yeah, I'd also like to rewrite it incrementally. But... who will accept > that incrementally patch ? It just seems that incremental patch will be > horrible at the beginning...... It will be discard without a > reason ..... You can use CONFIG_VT to remove the entire VT subsystem. It might be easier for you to write an alternative VT system that could be enabled with a different flag. The VT system is very old code from the earliest days of Linux. Thousands of things depend on it both in the kernel and user space. It will be very hard to make significant changes to it that don't break lots of dependent code. Another model to consider... Remove the VT subsystem. Replace it will a Unicode VT system built in user space. Using the existing kernel code, leave a single user console in the kernel that would only be used for system maintenance. Normal users would never see this console unless their system was really messed up. > > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at  http://vger.kernel.org/majordomo-info.html > Please read the FAQ at  http://www.tux.org/lkml/ > -- Jon Smirl jonsmirl@gmail.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/