diff options
author | Richard Jones <rjones@redhat.com> | 2010-08-23 21:53:32 +0100 |
---|---|---|
committer | Richard Jones <rjones@redhat.com> | 2010-08-24 11:54:37 +0100 |
commit | 866ec00d1f8bc40042795b66ceec12608bb1f9e8 (patch) | |
tree | d294b6acd2cad726a4901433ea9aff3a4bdde012 /src/guestfs-internal.h | |
parent | 5c31f6126ba4ea3e9056c34c300f6f5e332ab997 (diff) | |
download | libguestfs-866ec00d1f8bc40042795b66ceec12608bb1f9e8.tar.gz libguestfs-866ec00d1f8bc40042795b66ceec12608bb1f9e8.tar.xz libguestfs-866ec00d1f8bc40042795b66ceec12608bb1f9e8.zip |
Use virtio-serial, remove other vmchannel methods.
This adds support for virtio-serial, and removes all other
vmchannel methods.
Virtio-serial is faster than other methods, and is now widely
available.
I tested this by using the guestfs_upload API on an 83 MB file:
before: 6.12 seconds (14.1 MB/sec)
after: 4.20 seconds (20.6 MB/sec)
(note this is with the current 8K chunk size)
Diffstat (limited to 'src/guestfs-internal.h')
-rw-r--r-- | src/guestfs-internal.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/src/guestfs-internal.h b/src/guestfs-internal.h index f2abeba1..b534b6a6 100644 --- a/src/guestfs-internal.h +++ b/src/guestfs-internal.h @@ -38,12 +38,6 @@ #define N_(str) str #endif -#ifdef __linux__ -#define CAN_CHECK_PEER_EUID 1 -#else -#define CAN_CHECK_PEER_EUID 0 -#endif - #define UNIX_PATH_MAX 108 #ifndef MAX @@ -74,8 +68,6 @@ */ #define NETWORK "169.254.0.0/16" #define ROUTER "169.254.2.2" -#define GUESTFWD_ADDR "169.254.2.4" -#define GUESTFWD_PORT "6666" /* GuestFS handle and connection. */ enum state { CONFIG, LAUNCHING, READY, BUSY, NO_HANDLE }; |