Assignment 3 CMPT-300
QEMU: Adding a System Call
Disclaimer: This assignment is adapted from a project developed by Dr. Jason Nieh at
Columbia University.
Part A:
Setup Your Linux Kernel Building Environment and add dummy
syscall(25%):
The first step is to learn how to create a virtual machine using QEMU and install a
custom kernel.
Please follow this tutorial:
http://www.sfu.ca/~rws1/cmpt-300/assignments/a3-qemu-tut.pdf
All files can be downloaded from:
http://www.sfu.ca/~rws1/cmpt-300/assignments/cmpt300-a3.zip
Part B:
Adding an advanced system call(75%):
Write a new system call in Linux. The system call you write should take one argument
(pointer to a data structure) and return various information for the process identified by
the pid in the data structure. All return information will be put into the data structure. For
the following discussion all relative paths refer to the top of your kernel source
directory linux-2.6.26.5
The prototype for your system call will be:
int prinfo(struc