Skip to content

Instantly share code, notes, and snippets.

View i3abghany's full-sized avatar

Mahmoud Abumandour i3abghany

View GitHub Profile
@i3abghany
i3abghany / f.asm
Created January 7, 2024 01:11
bootloader.asm
use16
org 0x7c00
; Set stack
mov bp, 0x8000
mov sp, bp
; Load 2nd stage
mov bx, 0x07E0
mov es, bx
import numpy as np
import pandas as pd
from matplotlib import pyplot as plt
import os
if not os.getenv("LAB_PATH"):
print("Set Lab Path\n")
exit(1)
static struct virtio_blk blk_device;
static struct slab_t *virtio_blk_req_slab;
void virtio_blk_isr()
{
uint32_t intr_status = VIRTIO_READ(VIRTIO_MMIO_INTERRUPT_STATUS);
VIRTIO_WRITE(VIRTIO_MMIO_INTERRUPT_ACK, intr_status);
while (blk_device.last_seen_used != blk_device.virtq.used->idx) {
660a661,664
> pkgconfig_fuse_LIBS
> pkgconfig_fuse_CFLAGS
> pkgconfig_fuse3_LIBS
> pkgconfig_fuse3_CFLAGS
670a675,676
> pkgconfig_XZ_LIBS
> pkgconfig_XZ_CFLAGS
673a680,683
> pkgconfigdir
#!/bin/bash
MNT_DIR="/mnt/zfs-$RANDOM"
sudo apt install kpartx
sudo losetup /dev/loop13 $1
sudo kpartx -av /dev/loop13
sudo mkdir $MNT_DIR
sudo zpool import -d /dev/mapper/ -R $MNT_DIR
sudo zpool import zroot -R $MNT_DIR -f
@i3abghany
i3abghany / GSoC-QEMU-Cache-Modelling-TCG-Plugin.md
Last active August 22, 2021 20:22
A presentation of the work done for my GSoC 2021 project with the QEMU organization.

QEMU Cache Modelling TCG Plugin

This repository contains all the work done for the project TCG Plugin: Cache modelling, wherein a multi-core, multi-level cache modelling TCG plugin is developed. I also wrote a QEMU blog post that contains more technical information about the internals of the plugin, along with an example demonstrating how to make use of it. The plugin can be optionally attached to QEMU on either user-mode emulation or full-system emulation. On