aboutsummaryrefslogtreecommitdiffstats
path: root/linux-2.6-xen-sparse
diff options
context:
space:
mode:
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-23 14:47:26 +0000
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>2007-01-23 14:47:26 +0000
commitc82ff605c76b11665a26b34ccd608b8f016f99ca (patch)
treecadbdaa0acac951ff8159d3a23a1e0c99c8c1267 /linux-2.6-xen-sparse
parentb43ce3d63fe17fbaede94afa1ddd76afe0760bad (diff)
downloadxen-c82ff605c76b11665a26b34ccd608b8f016f99ca.tar.gz
xen-c82ff605c76b11665a26b34ccd608b8f016f99ca.tar.bz2
xen-c82ff605c76b11665a26b34ccd608b8f016f99ca.zip
bimodal: pvfb frontend
Create a new node "protocol" in xenstore, add the protocol name it speaks there. Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
Diffstat (limited to 'linux-2.6-xen-sparse')
-rw-r--r--linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c b/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c
index 40846d1d09..0d7d4ca700 100644
--- a/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c
+++ b/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c
@@ -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 xenbus_device *dev,
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;
@@ -640,6 +641,10 @@ static int xenfb_connect_backend(struct xenbus_device *dev,
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");
if (ret)
goto error_xenbus;