From: Ingo Molnar Subject: Re: [PATCH 6/9] x86/iommu: change Calgary to use dma_ops register interface Date: Tue, 30 Sep 2008 17:38:15 +0200 Message-ID: <20080930153815.GA22693@elte.hu> References: <1222107681-8185-1-git-send-email-joerg.roedel@amd.com> <1222107681-8185-7-git-send-email-joerg.roedel@amd.com> <20080930111028.GC12529@elte.hu> <20080930133024.GA20341@il.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: Joerg Roedel , linux-kernel@vger.kernel.org, kvm@vger.kernel.org, iommu@lists.linux-foundation.org, David Woodhouse , Amit Shah , Ingo Molnar , FUJITA Tomonori To: Muli Ben-Yehuda Return-path: Received: from mx2.mail.elte.hu ([157.181.151.9]:43770 "EHLO mx2.mail.elte.hu" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753617AbYI3Pj3 (ORCPT ); Tue, 30 Sep 2008 11:39:29 -0400 Content-Disposition: inline In-Reply-To: <20080930133024.GA20341@il.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: * Muli Ben-Yehuda wrote: > > > +static int calgary_device_supported(struct device *dev) > > > +{ > > > + return translation_enabled(find_iommu_table(dev)); > > > +} > > Sure, but I prefer the explicit form since it lends itself to easier > debugging (oops line numbers, adding printks, etc.). we never do that for simple stuff like this. The kernel would be twice as large if we did. An oops is easy enough to decode and an oops does not come with a line number. Ingo