From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39353) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wnryd-000351-QG for qemu-devel@nongnu.org; Fri, 23 May 2014 12:05:55 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WnryT-0006gs-7R for qemu-devel@nongnu.org; Fri, 23 May 2014 12:05:47 -0400 Received: from smtp.citrix.com ([66.165.176.89]:50207) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WnryT-0006gS-3M for qemu-devel@nongnu.org; Fri, 23 May 2014 12:05:37 -0400 From: Roger Pau Monne Date: Fri, 23 May 2014 17:57:46 +0200 Message-ID: <1400860669-21593-1-git-send-email-roger.pau@citrix.com> MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH v2 0/3] qemu-freebsd: fixes for running Xen guests List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org, xen-devel@lists.xenproject.org This three patches allow FreeBSD Xen Dom0 to use Qemu (i.e., launch HVM guests). First patch fixes the usage of ENODATA, which doesn't exist on FreeBSD and is replaced with ENOENT instead. The second patch is more controversial probably, since it introduces a FreeBSD specific version of tap_open which behaves like it's Linux counterpart, allowing Qemu to create tap interfaces and rename them. I've decided to just fork the function instead of adding a bunch more of preprocessor code in the original function. Last patch adds G_IO_HUP to calls to qemu_chr_fe_add_watch so they behave the same way on both FreeBSD and Linux (see the commit message for the rationale). Thanks for the review, Roger.