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

Re: [Xen-devel] Add a new module to the hypervisor



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@xxxxxxxxxx> 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

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
http://lists.xen.org/xen-devel

 


Rackspace

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