From: Blue Swirl Subject: Re: [PATCH 08/10] xen: pv domain builder. Date: Thu, 2 Apr 2009 20:06:57 +0300 Message-ID: References: <1238621982-18333-1-git-send-email-kraxel@redhat.com> <1238621982-18333-9-git-send-email-kraxel@redhat.com> Reply-To: qemu-devel@nongnu.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1238621982-18333-9-git-send-email-kraxel@redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org Errors-To: qemu-devel-bounces+gceq-qemu-devel=gmane.org@nongnu.org To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, Gerd Hoffmann List-Id: xen-devel@lists.xenproject.org On 4/2/09, Gerd Hoffmann wrote: > This adds domain building support for paravirtual domains to qemu. > This allows booting xen guests directly with qemu, without Xend > and the management stack. > > Signed-off-by: Gerd Hoffmann > + /* close all file handles, except stdio/out/err, > + * our watch pipe and the xen interface handle */ > + for (i = 3; i < 256; i++) { You should use getdtablesize() or sysconf(_SC_OPEN_MAX) instead of 256.