WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] [qemu] xen_be_init under stubdom

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] [qemu] xen_be_init under stubdom
From: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxx>
Date: Wed, 19 Jan 2011 14:03:16 -0500
Delivery-date: Wed, 19 Jan 2011 11:03:53 -0800
Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:date:message-id:subject:from:to :content-type; bh=WKWe0PPDhBke7+iBmohncJITBQhLp9yTnEEAipg5fBw=; b=Yd8QX/g9c70qBu95nYwA/ubsOiut6hTkGl/8cyTSKxhQuESsWJ3fGL1+rZfa5MLt0x AU6vyfLtT2InJqT3hyYcXQa91YqOV5P5yKP9A+bsofFOG7qTmSUmmiusvvDsLjJMhmS8 ZgXGymVTFZ25DP3mSLELavUWCWTg8+HbJ/lt8=
Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=r042j/48fTCOJLBEdkNwJkGulI2/MQZp66+YJS4IGfOT6fBtH3h9Hwu8l83WWZJ2sO 4rXZ4UgIIVfh/asO6aDbyj0z9oVye4jO7p5YvoReuJcsohNuykJ58b4KxmJHv0LeKaI3 vHmApaa2rBhUAayxxA/8TEzMzkjoQezvY8DxQ=
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Do nothing in xen_be_init under stubdom plus a minor inconsequential cleanup.

Signed-off-by: Kamala Narasimhan <kamala.narasimhan@xxxxxxxxxx>

Kamala

diff --git a/hw/xen_backend.c b/hw/xen_backend.c
index d9be513..61e1210 100644
--- a/hw/xen_backend.c
+++ b/hw/xen_backend.c
@@ -613,7 +613,7 @@ static void xenstore_update(void *unused)

     vec = xs_read_watch(xenstore, &count);
     if (vec == NULL)
-       goto cleanup;
+        return;

     if (sscanf(vec[XS_WATCH_TOKEN], "be:%" PRIxPTR ":%d:%" PRIxPTR,
                &type, &dom, &ops) == 3)
@@ -621,7 +621,6 @@ static void xenstore_update(void *unused)
     if (sscanf(vec[XS_WATCH_TOKEN], "fe:%" PRIxPTR, &ptr) == 1)
        xenstore_update_fe(vec[XS_WATCH_PATH], (void*)ptr);

-cleanup:
     qemu_free(vec);
 }

@@ -646,6 +645,10 @@ static void xen_be_evtchn_event(void *opaque)

 int xen_be_init(void)
 {
+#ifdef CONFIG_STUBDOM
+    return 0;
+#endif
+
     xenstore = xs_daemon_open();
     if (!xenstore) {
        xen_be_printf(NULL, 0, "can't connect to xenstored\n");

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel