# HG changeset patch
# User kfraser@xxxxxxxxxxxxxxxxxxxxx
# Date 1169563646 0
# Node ID b9ffa4b49d9711edba34d490a2263fd909b2acfe
# Parent ffe52263b430cff6cd31237f5872c71a3622306b
bimodal: pvfb frontend
Create a new node "protocol" in xenstore, add the protocol name it
speaks there.
Signed-off-by: Gerd Hoffmann <kraxel@xxxxxxx>
---
linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletion(-)
diff -r ffe52263b430 -r b9ffa4b49d97
linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c
--- a/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c Tue Jan 23 14:45:41
2007 +0000
+++ b/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c Tue Jan 23 14:47:26
2007 +0000
@@ -27,6 +27,7 @@
#include <asm/hypervisor.h>
#include <xen/evtchn.h>
#include <xen/interface/io/fbif.h>
+#include <xen/interface/io/protocols.h>
#include <xen/xenbus.h>
#include <linux/kthread.h>
@@ -479,7 +480,7 @@ static int __devinit xenfb_probe(struct
goto error_nomem;
/* set up shared page */
- info->page = (void *)__get_free_page(GFP_KERNEL);
+ info->page = (void *)__get_free_page(GFP_KERNEL | __GFP_ZERO);
if (!info->page)
goto error_nomem;
@@ -638,6 +639,10 @@ static int xenfb_connect_backend(struct
goto error_xenbus;
ret = xenbus_printf(xbt, dev->nodename, "event-channel", "%u",
irq_to_evtchn_port(info->irq));
+ if (ret)
+ goto error_xenbus;
+ ret = xenbus_printf(xbt, dev->nodename, "protocol", "%s",
+ XEN_IO_PROTO_ABI_NATIVE);
if (ret)
goto error_xenbus;
ret = xenbus_printf(xbt, dev->nodename, "feature-update", "1");
_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog
|