When does Linux KVM emulate instructions?
graph LR
x86_emulate_instruction --> x86_emulate_insn
emulate_instruction --> x86_emulate_instruction| This first example assumes two usb serial port adapters are connected to the host machine. They enumerate as ttyUSB0 and ttyUSB1. | |
| We want data coming into ttyUSB0 to be piped right back out of ttyUSB1 (so our host sits as a man in the middle). | |
| We want an application running on the host to be able to connect to a com port and monitor the traffic. | |
| # create the fifo | |
| sudo mkfifo -m 777 /tmp/fifo | |
| # stream serial data on /dev/ttyUSB0 to the fifo AND a virtual com port /tmp/relay | |
| sudo socat /dev/ttyUSB0,raw,echo=0 system:'sudo tee /tmp/fifo | sudo socat - "pty,raw,echo=0,link=/tmp/relay"' & |
Boot a specific installed Ubuntu kernel using grub-reboot and grub-set-default.
This allows you to pick what kernel you want to boot on next reboot, or set the default, without having to know much about how grub works or editing config files.
Usage: boot-kernel [options] [kernel]
call grub-reboot or grub-set-default to boot the provided kernel.
| use std::sync::mpsc::{channel, Sender}; | |
| use std::sync::Mutex; | |
| use std::thread; | |
| #[derive(Debug)] | |
| enum Message { A, B } | |
| struct Request; | |
| struct Response; | |
| struct IronError; |
| BUILD_DIR := gen | |
| # pandoc is a handy tool for converting between numerous text formats: | |
| # http://johnmacfarlane.net/pandoc/installing.html | |
| PANDOC := pandoc | |
| # pandoc options | |
| # Liberation fonts: http://en.wikipedia.org/wiki/Liberation_fonts | |
| PANDOC_PDF_OPTS := --toc --chapters --base-header-level=1 --number-sections --template=virsto_doc.tex --variable mainfont="Liberation Serif" --variable sansfont="Liberation Sans" --variable monofont="Liberation Mono" --variable fontsize=12pt --variable documentclass=book | |
| PANDOC_EBOOK_OPTS := --toc --epub-stylesheet=epub.css --epub-cover-image=cover.jpg --base-header-level=1 |