Skip to content

Instantly share code, notes, and snippets.

@soleen
Created January 20, 2022 03:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save soleen/f4be4795826b7ab1a51ae659582e179c to your computer and use it in GitHub Desktop.
Save soleen/f4be4795826b7ab1a51ae659582e179c to your computer and use it in GitHub Desktop.
page table check panic
#!/bin/bash
set -e
PARAM="root=/dev/sda console=ttyS0 page_table_check=on"
qemu-system-x86_64 -smp 1 -m 1G -enable-kvm -cpu host \
-net user,host=10.0.2.10,hostfwd=tcp::10022-:22 \
-net nic,model=virtio-net-pci \
-kernel arch/x86/boot/bzImage -nographic \
-device virtio-scsi-pci,id=scsi \
-device scsi-hd,bus=scsi.0,drive=d0 \
-drive file=work/wheezy.img,format=raw,if=none,id=d0 \
-append "$PARAM"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment