Index: kqemu-1.4.0pre1/kqemu-linux.c =================================================================== --- kqemu-1.4.0pre1.orig/kqemu-linux.c 2008-06-11 10:29:37.000000000 +0200 +++ kqemu-1.4.0pre1/kqemu-linux.c 2008-06-11 10:31:30.000000000 +0200 @@ -318,7 +318,13 @@ static int kqemu_ioctl(struct inode *ino #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) unlock_kernel(); #endif +#ifdef PF_VCPU + current->flags |= PF_VCPU; +#endif ret = kqemu_exec(s); +#ifdef PF_VCPU + current->flags &= ~PF_VCPU; +#endif #if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,10) lock_kernel(); #endif