- Modifying MSR may void your CPU's (or system board's) warranty. Proceed with caution. I am not responsible for any damage caused by this article.
- MSR addresses vary significantly between CPUs. Check your CPU's MSR address using Intel's documentation.
- This has only been tested on the Intel i7-8550U (Kaby Lake R).
- This article is a translation of this article. If you can read Korean, I recommend reading that article instead.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stddef.h> | |
#include <stdio.h> | |
#include <string.h> | |
#include "getopt.h" | |
char *optarg; | |
int optind=1, opterr=1, optopt, __optpos, optreset=0; | |
#define optpos __optpos |
This is mainly a notes dump and should be used for reference. This guide assumes:
- Ubuntu 14.04 (or Debian 8) hypervisor/host with bridge networking
- Knowledge of qemu
- Knowledge of debootstrap
Limitations of the qemu-system-aarch64 emulator on x86 include only being able to emulate one CPU and no KVM support.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# simple bashrc with nice prompt | |
# link: https://gist.github.com/aslpavel/5925739 | |
# install: wget --no-check-certificate -q -O - https://gist.github.com/aslpavel/5925739/download | tar -xzO -f- --strip-components=1 > "$HOME/.bashrc" | |
[ -z "$PS1" ] && return | |
### PROMPT | |
case $TERM in | |
linux|rxvt) | |
col_user=3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ANSI_X3.4-1968 ANSI_X3.4-1986 ASCII CP367 IBM367 ISO-IR-6 ISO646-US ISO_646.IRV:1991 US US-ASCII CSASCII | |
UTF-8 | |
ISO-10646-UCS-2 UCS-2 CSUNICODE | |
UCS-2BE UNICODE-1-1 UNICODEBIG CSUNICODE11 | |
UCS-2LE UNICODELITTLE | |
ISO-10646-UCS-4 UCS-4 CSUCS4 | |
UCS-4BE | |
UCS-4LE | |
UTF-16 | |
UTF-16BE |