This gist contains the scripts and configurations to run a QEMU virtual machine with an ARM64 architecture.
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
AMD EPYC 7V12 64-Core Processor |
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
|
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
#!/bin/bash | |
# Update the system | |
sudo apt-get update | |
sudo apt-get upgrade -y | |
# Install necessary packages | |
sudo apt-get install -y build-essential ocaml ocamlbuild automake autoconf libtool wget python-is-python3 libssl-dev git cmake perl protobuf-compiler | |
# Clone the Linux SGX SDK repository |
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
// This is a simple program to demonstrate the use of the cpuset | |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <sched.h> | |
#include <sys/types.h> | |
#include <sys/syscall.h> | |
#define NUM_THREADS 2 |
sudo apt install gcc-11 g++-11 gcc-12 g++-12
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-11 11
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-12 12
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-11 11
sudo update-alternatives --install /usr/bin/g++ g++ /usr/bin/g++-12 12
sudo apt install -y bpftrace gcc-10-plugin-dev gettext
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 <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/mman.h> | |
#include <sys/mman.h> | |
#include <sys/prctl.h> | |
#include <asm/prctl.h> | |
#include <sys/syscall.h> | |
#define PKEY_DISABLE_WRITE 0x1ull |
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
using System; | |
using System.Runtime.InteropServices; | |
using static LowSharp; | |
namespace LLVM | |
{ | |
#region Enums | |
//LLVMVerifierFailureAction | |
public enum LLVMVerifierFailureAction : Int32 | |
{ |
NewerOlder