-
Notifications
You must be signed in to change notification settings - Fork 64
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
vmm-sys-util #1
vmm-sys-util #1
Commits on May 7, 2019
-
Add and correct basic support files for the vmm-sys-util crate including: - files generated by Cargo - license files - gitignore Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
Jing Liu committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for e570ddb - Browse repository at this point
Copy the full SHA e570ddbView commit details -
vmm-sys-util: Add modules for system utilities.
The errno module wraps an interface to the error codes. The eventfd module is a wraper around the Linux eventfd. Use result::Result<EventFd, io::Error> instead of result::Result<EventFd, errno::Errno> as return type. The terminal module is for configuring pseudo-terminals in raw mode. The signal module is for registering signal handlers and for signalling threads. The ioctl module is factoring out common ioctl wrappers and macros. This is derived from crosvm code base e4ece32798ba436fbfa88466c571f46dab99e2be and firecracker code base 1fdde1997fc763601f8a88399bc426bd5d4097cd. Signed-off-by: Jing Liu <jing2.liu@linux.intel.com> --- Change Log Add license. Append prefix test_ for each test. Add verbose commit messages.
Jing Liu committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 1ddc50d - Browse repository at this point
Copy the full SHA 1ddc50dView commit details -
vmm-sys-util: Add flag parameter for signal module
To use different init flag(e.g. SA_RESTART, SA_SIGINFO) for sigaction, add a parameter to register_signal_handler and a function to set this flag. Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
Jing Liu committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for d6b8535 - Browse repository at this point
Copy the full SHA d6b8535View commit details -
vmm-sys-util: Add timerfd module
Wrapping the libc timerfd for the usage of setting timer, waiting expiring, disarm timer. This is derived from crosvm code base e4ece32798ba436fbfa88466c571f46dab99e2be. Signed-off-by: Jing Liu <jing2.liu@linux.intel.com> --- Change Log: Add license. Split the summary and description for method. Add link for structures and functions. Append prefix test_ for tests.
Jing Liu committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 4d6455d - Browse repository at this point
Copy the full SHA 4d6455dView commit details -
vmm-sys-util: Add poll and syslog modules
The poll module addis the Poller object for waiting on mutliple file descriptors at once. Add macro handle_eintr_errno! to check the epoll_wait return value. The syslog module is for logging, temporarily defining the SYS_getpid syscall value. This is derived from crosvm code base e4ece32798ba436fbfa88466c571f46dab99e2be. Signed-off-by: Jing Liu <jing2.liu@linux.intel.com> --- Change Log Append prefix test_ for tests.
Jing Liu committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for a7987f5 - Browse repository at this point
Copy the full SHA a7987f5View commit details -
file: Add file specific traits
Copied verbatim from crosvm 107edb3e. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 71bf8a0 - Browse repository at this point
Copy the full SHA 71bf8a0View commit details -
vmm-sys-util: Add a basic fallocate implementation
This will be needed for the write_zeroes and seek_hole implementations. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 0588fc9 - Browse repository at this point
Copy the full SHA 0588fc9View commit details -
tempdir: Add a simple temporary directory implementation
A dependency free alternative to the tempfile crate. Copied verbatim from crosvm 107edb3e. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for d84dc8e - Browse repository at this point
Copy the full SHA d84dc8eView commit details -
write_zeroes: Add a trait for writing zeroes to a stream
This is needed for disk image format support like e.g. QCOW2. Copied verbatim from crosvm 107edb3e. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 09870bc - Browse repository at this point
Copy the full SHA 09870bcView commit details -
seek_hole: Add a trait for seeking holes in a file
This is needed for disk image format support like e.g. QCOW2. Copied verbatim from crosvm 107edb3e. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 08daac2 - Browse repository at this point
Copy the full SHA 08daac2View commit details -
vmm-sys-util: Make clippy clean
Several places are improved to suppress the clippy warnings. The changes of type casting in timerfd module are based on crosvm latest code base b1de6323ab8c96c52a60e0ff735e4bbb8a8464c9. The write_zeroes and seek_hole clippy warnings are only on test code, we can safely allow them. Signed-off-by: Jing Liu <jing2.liu@linux.intel.com>
Jing Liu authored and Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 5aa355b - Browse repository at this point
Copy the full SHA 5aa355bView commit details -
vmm-sys-util: Add buildkite based CI
Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 7, 2019 Configuration menu - View commit details
-
Copy full SHA for 766db44 - Browse repository at this point
Copy the full SHA 766db44View commit details
Commits on May 21, 2019
-
seek_hole: Fix musl compilation
musl does not define the SEEK_HOLE and SEEK_DATA constants. We use the libc one when using glibc and we define them when building for musl. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Configuration menu - View commit details
-
Copy full SHA for 45d47cf - Browse repository at this point
Copy the full SHA 45d47cfView commit details
Commits on May 28, 2019
-
syslog: Use libc directly to get lowest fd
Using the File wrappers leads to poisoned pointers when running under a tmpfs based /dev mount. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 28, 2019 Configuration menu - View commit details
-
Copy full SHA for d660a92 - Browse repository at this point
Copy the full SHA d660a92View commit details -
The vmm-sys-util test make heavy use of temporary dirs and files. Running that under a container overlay leads to erratic behaviours and this is fixed by using a real tmpfs mount into the container's /tmp. Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Samuel Ortiz committedMay 28, 2019 Configuration menu - View commit details
-
Copy full SHA for 700a05b - Browse repository at this point
Copy the full SHA 700a05bView commit details