# HG changeset patch # User kfraser@localhost.localdomain # 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 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 #include #include +#include #include #include @@ -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; @@ -640,6 +641,10 @@ static int xenfb_connect_backend(struct 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;