From 866ec00d1f8bc40042795b66ceec12608bb1f9e8 Mon Sep 17 00:00:00 2001 From: Richard Jones Date: Mon, 23 Aug 2010 21:53:32 +0100 Subject: 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) --- src/guestfs-internal.h | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/guestfs-internal.h') 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 }; -- cgit