+ * drivers/xen/v2v/v2vdev.c
+ *
+ * V2V broker.
-+ *
++ *
+ * Copyright (c) 2009 Jean Guyader
+ * Copyright (c) 2009 Citrix Systems, Inc.
+ *
+ err = v2v_connect(path, &ctx->channel, 0);
+ if (err)
+ {
-+ printk(V2VDEV_LOG" failure in connect() - err: %d\n", err);
++ printk(V2VDEV_LOG" failure in connect() - err: %d\n", err);
+ return err;
+ }
+
+
+ if (ctx->last_err)
+ return -ctx->last_err;
-+
++
+ size = MIN(count, ctx->buff_size);
+ n = copy_to_user(buf, ctx->buff, size);
+ ctx->buff_size -= size;
+ }
+ else
+ ctx->buff += size;
-+
++
+ v2v_nc2_finish_message(ctx->channel);
+ v2v_set_wake_reason(ctx->channel, V2V_WAKE_REASON_RECEIVE);
+ return size - n;
+ struct v2vdev_context *ctx = filp->private_data;
+ volatile void *msg;
+ int err;
-+
++
+ err = v2v_nc2_prep_message(ctx->channel, count, ctx->type, 0, &msg);
+ if (err)
+ {