* Add a new module to the hypervisor
@ 2014-10-13 2:14 Anh Dinh
2014-10-13 8:34 ` Jan Beulich
0 siblings, 1 reply; 6+ messages in thread
From: Anh Dinh @ 2014-10-13 2:14 UTC (permalink / raw)
To: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 211 bytes --]
How do I add a "hello-world" module to the hypervisor, and load it at
run-time (without rebooting) from Dom0? Is it even possible?
static int hello(void){
printk("Hello worl\n");
return 1;
}
Regards,
Anh.
[-- Attachment #1.2: Type: text/html, Size: 349 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread* Re: Add a new module to the hypervisor
2014-10-13 2:14 Add a new module to the hypervisor Anh Dinh
@ 2014-10-13 8:34 ` Jan Beulich
2014-10-13 13:47 ` Anh Dinh
0 siblings, 1 reply; 6+ messages in thread
From: Jan Beulich @ 2014-10-13 8:34 UTC (permalink / raw)
To: Anh Dinh; +Cc: xen-devel
>>> On 13.10.14 at 04:14, <ug93tad@gmail.com> wrote:
> How do I add a "hello-world" module to the hypervisor, and load it at
> run-time (without rebooting) from Dom0? Is it even possible?
No, it's not. There's no concept of loadable modules in the hypervisor.
Jan
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add a new module to the hypervisor
2014-10-13 8:34 ` Jan Beulich
@ 2014-10-13 13:47 ` Anh Dinh
2014-10-13 13:54 ` Andrew Cooper
0 siblings, 1 reply; 6+ messages in thread
From: Anh Dinh @ 2014-10-13 13:47 UTC (permalink / raw)
To: Jan Beulich; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 595 bytes --]
thanks,
that's a bummer.
I'm trying to get the hypervisor to execute a user-given code without
recompiling the hypervisor. This is just for research purpose.
Would appreciate some guidelines of the possible ways to go about it.
Cheers,
Anh.
On 13 October 2014 16:34, Jan Beulich <JBeulich@suse.com> wrote:
> >>> On 13.10.14 at 04:14, <ug93tad@gmail.com> wrote:
> > How do I add a "hello-world" module to the hypervisor, and load it at
> > run-time (without rebooting) from Dom0? Is it even possible?
>
> No, it's not. There's no concept of loadable modules in the hypervisor.
>
> Jan
>
>
[-- Attachment #1.2: Type: text/html, Size: 1205 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add a new module to the hypervisor
2014-10-13 13:47 ` Anh Dinh
@ 2014-10-13 13:54 ` Andrew Cooper
2014-10-13 15:30 ` Anh Dinh
0 siblings, 1 reply; 6+ messages in thread
From: Andrew Cooper @ 2014-10-13 13:54 UTC (permalink / raw)
To: Anh Dinh, Jan Beulich; +Cc: xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 567 bytes --]
On 13/10/14 14:47, Anh Dinh wrote:
> thanks,
>
> that's a bummer.
>
> I'm trying to get the hypervisor to execute a user-given code without
> recompiling the hypervisor. This is just for research purpose.
>
> Would appreciate some guidelines of the possible ways to go about it.
>
> Cheers,
> Anh.
Recompile Xen, and run it in a VM if you find hardware is taking too
long to reboot.
There is no existing way of loading code into Xen at runtime. The best
which exists is the kexec crash path, but Xen will partially shut down
when exiting on this path.
~Andrew
[-- Attachment #1.2: Type: text/html, Size: 1434 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add a new module to the hypervisor
2014-10-13 13:54 ` Andrew Cooper
@ 2014-10-13 15:30 ` Anh Dinh
2014-10-13 20:26 ` George Dunlap
0 siblings, 1 reply; 6+ messages in thread
From: Anh Dinh @ 2014-10-13 15:30 UTC (permalink / raw)
To: Andrew Cooper; +Cc: Jan Beulich, xen-devel
[-- Attachment #1.1: Type: text/plain, Size: 955 bytes --]
Suppose the user-given code is written in Ansi C, very simple codes. Would
it be possible to write a hypercall that acts as a loader which basically
loads and jumps to the code?
What does a very, very basic loader look like? What needs to be set up
before executing the code?
Cheers.
On 13 October 2014 21:54, Andrew Cooper <andrew.cooper3@citrix.com> wrote:
> On 13/10/14 14:47, Anh Dinh wrote:
>
> thanks,
>
> that's a bummer.
>
> I'm trying to get the hypervisor to execute a user-given code without
> recompiling the hypervisor. This is just for research purpose.
>
> Would appreciate some guidelines of the possible ways to go about it.
>
> Cheers,
> Anh.
>
>
> Recompile Xen, and run it in a VM if you find hardware is taking too long
> to reboot.
>
> There is no existing way of loading code into Xen at runtime. The best
> which exists is the kexec crash path, but Xen will partially shut down when
> exiting on this path.
>
> ~Andrew
>
[-- Attachment #1.2: Type: text/html, Size: 1982 bytes --]
[-- Attachment #2: Type: text/plain, Size: 126 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: Add a new module to the hypervisor
2014-10-13 15:30 ` Anh Dinh
@ 2014-10-13 20:26 ` George Dunlap
0 siblings, 0 replies; 6+ messages in thread
From: George Dunlap @ 2014-10-13 20:26 UTC (permalink / raw)
To: Anh Dinh; +Cc: Andrew Cooper, Jan Beulich, xen-devel@lists.xen.org
On Mon, Oct 13, 2014 at 4:30 PM, Anh Dinh <ug93tad@gmail.com> wrote:
> Suppose the user-given code is written in Ansi C, very simple codes. Would
> it be possible to write a hypercall that acts as a loader which basically
> loads and jumps to the code?
>
> What does a very, very basic loader look like? What needs to be set up
> before executing the code?
Don't top-post please.
Maybe you can tell us what you're actually trying to accomplish here?
I suspect a "very very basic loader" wouldn't really be all that
basic; so there may be a better way to do what you want to do.
-George
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2014-10-13 20:26 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-13 2:14 Add a new module to the hypervisor Anh Dinh
2014-10-13 8:34 ` Jan Beulich
2014-10-13 13:47 ` Anh Dinh
2014-10-13 13:54 ` Andrew Cooper
2014-10-13 15:30 ` Anh Dinh
2014-10-13 20:26 ` George Dunlap
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.