From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Mrui5-0005gy-2u for qemu-devel@nongnu.org; Sun, 27 Sep 2009 10:26:45 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Mrui0-0005fI-Fz for qemu-devel@nongnu.org; Sun, 27 Sep 2009 10:26:44 -0400 Received: from [199.232.76.173] (port=46157 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Mrui0-0005fC-D4 for qemu-devel@nongnu.org; Sun, 27 Sep 2009 10:26:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:6745) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1Mruhz-0002ME-Te for qemu-devel@nongnu.org; Sun, 27 Sep 2009 10:26:40 -0400 Message-ID: <4ABF7619.7000103@redhat.com> Date: Sun, 27 Sep 2009 16:26:33 +0200 From: Avi Kivity MIME-Version: 1.0 Subject: Re: [Qemu-devel] Re: [PATCHv2] qemu: target library, use it in msix References: <20090923200635.GA21246@redhat.com> <20090927082020.GA23513@redhat.com> <4ABF4110.80300@redhat.com> <20090927114459.GA24031@redhat.com> <4ABF52A5.5080409@redhat.com> <20090927120041.GB24031@redhat.com> <4ABF585D.7000201@redhat.com> <20090927140841.GA24769@redhat.com> <4ABF7359.8050404@redhat.com> <20090927142129.GA24851@redhat.com> In-Reply-To: <20090927142129.GA24851@redhat.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: Blue Swirl , qemu-devel@nongnu.org On 09/27/2009 04:21 PM, Michael S. Tsirkin wrote: > >> How can the caller (except in your special case) know if it has a >> quantity that will fit in 32 bits? >> > It's actually not unusual for devices to limit addressing to 32 bit, whatever > the bus supports. For example, the value might come from a 32 bit pci > bar, even on a 64 bit system this will get values 0 to 4G. > What if the caller is a device that doesn't intentionally cripple itself? -- Do not meddle in the internals of kernels, for they are subtle and quick to panic.