From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:51828) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa7iU-0001x2-Ev for qemu-devel@nongnu.org; Fri, 24 Jun 2011 10:50:43 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Qa7iR-0008Qz-TM for qemu-devel@nongnu.org; Fri, 24 Jun 2011 10:50:41 -0400 Received: from smtp02.citrix.com ([66.165.176.63]:12987) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Qa7iR-0008Qn-JR for qemu-devel@nongnu.org; Fri, 24 Jun 2011 10:50:39 -0400 From: Date: Fri, 24 Jun 2011 15:54:48 +0100 Message-ID: <1308927289-10474-1-git-send-email-stefano.stabellini@eu.citrix.com> In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain Subject: [Qemu-devel] [PATCH 1/2] xen: enable console and disk backend in HVM mode List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: xen-devel@lists.xensource.com, agraf@suse.de, Stefano Stabellini From: Stefano Stabellini Initialize the Xen console backend and the Xen disk backend even when running in HVM mode so that PV on HVM drivers can connect to them. Signed-off-by: Stefano Stabellini --- xen-all.c | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index b0b2f10..93fa2ee 100644 --- a/xen-all.c +++ b/xen-all.c @@ -862,6 +862,14 @@ int xen_hvm_init(void) cpu_register_phys_memory_client(&state->client); state->log_for_dirtybit = NULL; + /* Initialize backend core & drivers */ + if (xen_be_init() != 0) { + fprintf(stderr, "%s: xen backend core setup failed\n", __FUNCTION__); + exit(1); + } + xen_be_register("console", &xen_console_ops); + xen_be_register("qdisk", &xen_blkdev_ops); + return 0; } -- 1.7.2.3