* Accessing the hypervisor from VMs
@ 2005-03-09 19:31 Diwaker Gupta
2005-03-09 19:30 ` Mark Williamson
0 siblings, 1 reply; 4+ messages in thread
From: Diwaker Gupta @ 2005-03-09 19:31 UTC (permalink / raw)
To: xen-devel
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
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing the hypervisor from VMs
2005-03-09 19:31 Accessing the hypervisor from VMs Diwaker Gupta
@ 2005-03-09 19:30 ` Mark Williamson
2005-03-09 21:17 ` Diwaker Gupta
0 siblings, 1 reply; 4+ messages in thread
From: Mark Williamson @ 2005-03-09 19:30 UTC (permalink / raw)
To: xen-devel, Diwaker Gupta
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
On Wednesday 09 March 2005 19:31, Diwaker Gupta wrote:
> 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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing the hypervisor from VMs
2005-03-09 19:30 ` Mark Williamson
@ 2005-03-09 21:17 ` Diwaker Gupta
2005-03-10 2:40 ` Mark Williamson
0 siblings, 1 reply; 4+ messages in thread
From: Diwaker Gupta @ 2005-03-09 21:17 UTC (permalink / raw)
To: Mark Williamson; +Cc: xen-devel
> 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.
> > 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?
--
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
^ permalink raw reply [flat|nested] 4+ messages in thread
* Re: Accessing the hypervisor from VMs
2005-03-09 21:17 ` Diwaker Gupta
@ 2005-03-10 2:40 ` Mark Williamson
0 siblings, 0 replies; 4+ messages in thread
From: Mark Williamson @ 2005-03-10 2:40 UTC (permalink / raw)
To: Diwaker Gupta; +Cc: Mark Williamson, xen-devel
On Wednesday 09 March 2005 21:17, Diwaker Gupta wrote:
> > 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.
> >
> > > 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
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2005-03-10 2:40 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-03-09 19:31 Accessing the hypervisor from VMs Diwaker Gupta
2005-03-09 19:30 ` Mark Williamson
2005-03-09 21:17 ` Diwaker Gupta
2005-03-10 2:40 ` Mark Williamson
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.