[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] any exit function in xen that is similar to exit_kernel?
On Tue, Nov 29, 2011 at 2:22 PM, Baozeng <sploving1@xxxxxxxxx> wrote: > 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? A process is a guest kernel-level construct. Xen doesn't know anything about processes; it only knows things about VMs. You can easily kill the guest by doing this: domain_crash(current->domain); If you want the process only to be killed, you have to have the guest kernel do it. -George _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |