* foo is exported as a global symbol.
*
* 2) rename the existing function int foo(char *string) to
- * int __vsym foo_v20(char *string)
+ * int __vsym foo_v20(char *string)
*
* 3) Add this macro immediately below the function
- * VERSION_SYMBOL(foo, _v20, 2.0);
+ * VERSION_SYMBOL(foo, _v20, 2.0);
*
* 4) Implement a new version of foo.
- * char foo(int value, int otherval) { ...}
+ * char foo(int value, int otherval) { ...}
*
* 5) Mark the newest version as the default version
- * BIND_DEFAULT_SYMBOL(foo, 2.1);
+ * BIND_DEFAULT_SYMBOL(foo, 2.1);
*
*/
#
# 3.a) Set the VM to use the launch script
#
-# Set the emulator path contained in the
+# Set the emulator path contained in the
# <emulator><emulator/> tags
#
-# e.g replace <emulator>/usr/bin/qemu-kvm<emulator/>
+# e.g replace <emulator>/usr/bin/qemu-kvm<emulator/>
# with <emulator>/usr/bin/qemu-wrap.py<emulator/>
#
# 3.b) Set the VM's device's to use vhost-net offload
#
# <interface type="network">
-# <model type="virtio"/>
-# <driver name="vhost"/>
+# <model type="virtio"/>
+# <driver name="vhost"/>
# <interface/>
#
# 4. Enable libvirt to access our userpace device file by adding it to
# flags onto the end
#############################################
def modify_netdev_arg(arg):
-
+
global fd_list
vhost_in_use = 0
s = ''
s+=opt
- return s
+ return s
#############################################
if __name__ == "__main__":
main()
-