Skip to content
Snippets Groups Projects
Commit 5eb825ce authored by mandersch's avatar mandersch
Browse files

Revert ./run_qemu changes AGAIN (pls run git blame on the last commit), add...

Revert ./run_qemu changes AGAIN (pls run git blame on the last commit), add task preemption back in task_tick_pb
parent 8bdbfc5b
Branches
No related tags found
No related merge requests found
...@@ -226,6 +226,10 @@ static void task_tick_pb(struct rq *rq, struct task_struct *p, int queued) ...@@ -226,6 +226,10 @@ static void task_tick_pb(struct rq *rq, struct task_struct *p, int queued)
if (pb->mode != PB_DISABLED_MODE) { if (pb->mode != PB_DISABLED_MODE) {
printk("TICK #%d\n",pb->count_pb_cycles); printk("TICK #%d\n",pb->count_pb_cycles);
} }
if (determine_next_mode_pb(rq) != PB_EXEC_MODE && pb->mode == PB_EXEC_MODE) {
resched_curr(rq);
}
} }
static unsigned int get_rr_interval_pb(struct rq *rq, struct task_struct *task) static unsigned int get_rr_interval_pb(struct rq *rq, struct task_struct *task)
......
...@@ -7,7 +7,7 @@ DEBUG_OPTIONS=" -s -S" ...@@ -7,7 +7,7 @@ DEBUG_OPTIONS=" -s -S"
COMMAND="qemu-system-x86_64" COMMAND="qemu-system-x86_64"
[ "$MODE" == "gdb" ] && COMMAND+=$DEBUG_OPTIONS [ "$MODE" == "gdb" ] && COMMAND+=$DEBUG_OPTIONS
COMMAND+=" -kernel $KERNEL -cpu EPYC" COMMAND+=" -kernel $KERNEL -cpu host"
COMMAND+=$IMAGE_OPTIONS COMMAND+=$IMAGE_OPTIONS
COMMAND+=" -append \"root=/dev/sda rootwait rw single console=ttyS0 nokaslr\"" # disable kaslr for better gdb debugging COMMAND+=" -append \"root=/dev/sda rootwait rw single console=ttyS0 nokaslr\"" # disable kaslr for better gdb debugging
COMMAND+=" --enable-kvm" COMMAND+=" --enable-kvm"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment