Accessing the hypervisor from VMs
You could add one or more hypercalls to do this. Alternatively, you can put the information you want to pass up into a shared memory page so that dom0 can read it directly.
Cheers,
Mark
Quoted 8 lines · Diwaker Gupta
Hi everyone,
Is it possible to access the hypervisor through a VM other than dom0? I'm not interested in all the control functions -- lets just say I want to access the value of some hypervisor variable (
stime_irq, for instance) from a guest.TIA
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Hi everyone,
Is it possible to access the hypervisor through a VM other than dom0? I'm not interested in all the control functions -- lets just say I want to access the value of some hypervisor variable (stime_irq, for instance) from a guest.
TIA
Signature · 9 lines
Diwaker Gupta http://resolute.ucsd.edu/diwaker ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 5 lines
You could add one or more hypercalls to do this. Alternatively, you can put the information you want to pass up into a shared memory page so that dom0 can read it directly.
Quoted 1 line
Is it possible to access the hypervisor through a VM other than dom0?
Sure, I can do all this from dom0, but I want to be able to do it from guests other than dom0 -- how does that work?
Signature · 9 lines
Diwaker Gupta http://resolute.ucsd.edu/diwaker ------------------------------------------------------- SF email is sponsored by - The IT Product Guide Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now. http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
Quoted 8 lines · Diwaker Gupta
Quoted 5 lines
You could add one or more hypercalls to do this. Alternatively, you can put the information you want to pass up into a shared memory page so that dom0 can read it directly.
Quoted 1 line
Is it possible to access the hypervisor through a VM other than dom0?
Sure, I can do all this from dom0, but I want to be able to do it from guests other than dom0 -- how does that work?
You could add a new type of hypercall that is available to any dom and returns the data you require. For starters, take a look at the hypercall table in xen/arch/x86/x86_32/entry.S
All you need to do to make it work with unpriv domains is to not check the domains privileges ;-)
Setting up Xen <-> domU shared memory would be a bit more involved.
Cheers,
Mark
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users. Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click