Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764758AbXJOTjW (ORCPT ); Mon, 15 Oct 2007 15:39:22 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1756701AbXJOTjO (ORCPT ); Mon, 15 Oct 2007 15:39:14 -0400 Received: from smtp2.linux-foundation.org ([207.189.120.14]:53648 "EHLO smtp2.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753975AbXJOTjN (ORCPT ); Mon, 15 Oct 2007 15:39:13 -0400 Date: Mon, 15 Oct 2007 12:38:06 -0700 (PDT) From: Linus Torvalds To: Ingo Molnar cc: Boaz Harrosh , Jeff Garzik , linux-kernel@vger.kernel.org, James Bottomley Subject: Re: [patch] scsi: fix crash in gdth_timeout() In-Reply-To: <20071015192703.GA7279@elte.hu> Message-ID: References: <20071015165534.GA17833@elte.hu> <4713A9FA.4050209@garzik.org> <4713B4E7.2050001@panasas.com> <20071015192703.GA7279@elte.hu> MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1564 Lines: 36 On Mon, 15 Oct 2007, Ingo Molnar wrote: > > heh. Incidentally i was thinking about using KVM for automated testing. Using emulators to test device drivers is almost certain to be pointless. The problem with device drivers tends to be timing issues, odd hardware interactions, and lots of strange (and sometimes undocumented) behaviour and dependencies (eg things like "you have to wait 50us after setting the reset bit until the hardware has actually reset"). These are all things that you'd generally not catch in emulation - because the emulation by necessity is only going to be a very weak picture of the real thing. So I suspect you can find the easy stuff, but only by writing insanely complex device model descriptions in the emulator environment itself, and only for those device models that have actually been written. Can it be donein theory? Sure. Practically? Not so sure. Would it help? I suspect the effort to do the device model would be many times bigger than *any* conceivable effort to just fix the driver bugs as they get found through other means. So we could perhaps have *really* good emulated hardware for a few models of hw out there, but likely they'd be fewer and less varied platforms than most kernel developers end up having hidden under their desk anyway.. Linus - 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/