debuggers.hg
changeset 13600:b9ffa4b49d97
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>
Create a new node "protocol" in xenstore, add the protocol name it
speaks there.
Signed-off-by: Gerd Hoffmann <kraxel@suse.de>
author | kfraser@localhost.localdomain |
---|---|
date | Tue Jan 23 14:47:26 2007 +0000 (2007-01-23) |
parents | ffe52263b430 |
children | c545932a18f3 |
files | linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c |
line diff
1.1 --- a/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c Tue Jan 23 14:45:41 2007 +0000 1.2 +++ b/linux-2.6-xen-sparse/drivers/xen/fbfront/xenfb.c Tue Jan 23 14:47:26 2007 +0000 1.3 @@ -27,6 +27,7 @@ 1.4 #include <asm/hypervisor.h> 1.5 #include <xen/evtchn.h> 1.6 #include <xen/interface/io/fbif.h> 1.7 +#include <xen/interface/io/protocols.h> 1.8 #include <xen/xenbus.h> 1.9 #include <linux/kthread.h> 1.10 1.11 @@ -479,7 +480,7 @@ static int __devinit xenfb_probe(struct 1.12 goto error_nomem; 1.13 1.14 /* set up shared page */ 1.15 - info->page = (void *)__get_free_page(GFP_KERNEL); 1.16 + info->page = (void *)__get_free_page(GFP_KERNEL | __GFP_ZERO); 1.17 if (!info->page) 1.18 goto error_nomem; 1.19 1.20 @@ -640,6 +641,10 @@ static int xenfb_connect_backend(struct 1.21 irq_to_evtchn_port(info->irq)); 1.22 if (ret) 1.23 goto error_xenbus; 1.24 + ret = xenbus_printf(xbt, dev->nodename, "protocol", "%s", 1.25 + XEN_IO_PROTO_ABI_NATIVE); 1.26 + if (ret) 1.27 + goto error_xenbus; 1.28 ret = xenbus_printf(xbt, dev->nodename, "feature-update", "1"); 1.29 if (ret) 1.30 goto error_xenbus;