rewrite init_xenbus
rewrite xenbus_thread