From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from [140.186.70.92] (port=59742 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OGWqX-0006l2-8R for qemu-devel@nongnu.org; Mon, 24 May 2010 08:33:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OGWqU-0004QC-JP for qemu-devel@nongnu.org; Mon, 24 May 2010 08:33:29 -0400 Received: from mail.codesourcery.com ([38.113.113.100]:59448) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OGWqU-0004PR-3k for qemu-devel@nongnu.org; Mon, 24 May 2010 08:33:26 -0400 From: Paul Brook Subject: Re: [Qemu-devel] [PATCH 1/2] ioport: add function to check whenever a port is assigned or not Date: Mon, 24 May 2010 13:32:50 +0100 References: <1274262857-31964-1-git-send-email-kraxel@redhat.com> In-Reply-To: <1274262857-31964-1-git-send-email-kraxel@redhat.com> MIME-Version: 1.0 Content-Type: Text/Plain; charset="iso-8859-15" Content-Transfer-Encoding: 7bit Message-Id: <201005241332.51768.paul@codesourcery.com> List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Gerd Hoffmann > +int is_ioport_assigned(pio_addr_t addr) Shouldn't we move this into register_ioport_{read,write}, and have that fail if the port has already been assigned? Paul