[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] any exit function in xen that is similar to exit_kernel?



Hello all,
I added a hypercall "do_greet" that only prints "Hello world" to do a
small experiment. After it prints the "hello world", I would it to
exit from Xen and stop current process. For instance:
the hypercall is like this:
int do_greet(){
   pirntk("Hello world\n");
   /*then I would it exit from Xen and stop current process that called it.*/
   exit_?? //exit(0) does not work.
}

If a process at the application level calls this hypercall through
privcmd file, I would like it kill this process after the hypercall
prints "Hello world". Then how to do that?
In linux kernel, there is a function exit_kernel, which switch the
kernel address space into the user address space. But I did not find
any similar function in Xen. Any idea? thanks

-- 
     Best Regards,
                                                                 Baozeng Ding
                                                                 OSTG,NFS,ISCAS

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.