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

Re: [Xen-devel] Shared memory and event channel


  • To: djmagee@xxxxxxxxxxxx
  • From: Ritu kaur <ritu.kaur.us@xxxxxxxxx>
  • Date: Tue, 23 Feb 2010 11:26:17 -0800
  • Cc: xen-devel@xxxxxxxxxxxxxxxxxxx, Ian Campbell <Ian.Campbell@xxxxxxxxxx>, Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx>, Daniel Stodden <Daniel.Stodden@xxxxxxxxxx>
  • Delivery-date: Tue, 23 Feb 2010 11:30:09 -0800
  • Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=DjECZ5j9UInQNDdqhoMhTRiZVfRF4G+Vo4GLgqYVHUExk4gR2o3TWVo0hcqKDwWaSI 8QawRK9JC9Y6fCiuszg6pQ7Pb+I3AlA6h8CcJEjm86cGXOeclYPd6lE+zncP8bP9391k ZRSLEkv9PYXigaAzeeN8edbJrnMjUSBylom/k=
  • List-id: Xen developer discussion <xen-devel.lists.xensource.com>

Hi,

I have tried proxy client and server model with server running in dom0 and client in domU. It intercepts ioctls and passes it to dom0 and able to read registers. This is done via socket calls. However, Citrix doesn't allow socket calls into dom0 and I had to tweak firewall setting(basically I cleared everything for testing purposes).

Need a clarification, using pci passthrough I believe it remove access to device from dom0 and attaches the device to a domU and from then on can only be accessed via that domU or is it possible to have dom0 and a single domU gain access to device using pci passthrough? I guess not, thought of checking.

Thanks


On Tue, Feb 23, 2010 at 9:42 AM, <djmagee@xxxxxxxxxxxx> wrote:

What is the data you’re trying to access in the device registers?  If it’s statistics, which you gave as an example, then why would a domain want to read statistics for a card that shared by many other guests, of which it has no knowledge?  In fact, I’m struggling to think of any situation where data applicable to the physical card that’s carrying packets for every guest on the box could be useable by one single guest.

 

Can’t you just write a daemon in dom0 that reads the data you’re interested in and makes it available to the domUs via a simple network service?

 

From: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx [mailto:xen-devel-bounces@xxxxxxxxxxxxxxxxxxx] On Behalf Of Ritu kaur
Sent: Tuesday, February 23, 2010 10:53 AM
To: Ian Campbell
Cc: xen-devel@xxxxxxxxxxxxxxxxxxx; Daniel Stodden; Konrad Rzeszutek Wilk
Subject: Re: [Xen-devel] Shared memory and event channel

 

Hi Ian,

Thanks for your inputs, I skimmed through Intel 82576 SR-IOV document and it looks like it needs hardware support and I don't think our hardware has it(will double check with our team). I believe currently there is no good solution other than using pci passthrough(with a single domU access). I just want to bring one thing and I hope it was not missed out from my earlier email i.e

"The NIC registers are memory mapped, can I take "machine memory address space(which is in dom0)" and remap it to domU's such that I can get multiple domU access. "

The above soln is just a thought, not sure it's feasible.

Thanks

On Tue, Feb 23, 2010 at 7:42 AM, Ian Campbell <Ian.Campbell@xxxxxxxxxx> wrote:

On Tue, 2010-02-23 at 14:47 +0000, Konrad Rzeszutek Wilk wrote:
> On Tue, Feb 23, 2010 at 09:38:26AM +0000, Ian Campbell wrote:
> > On Mon, 2010-02-22 at 22:16 +0000, Ritu kaur wrote:
> > >
> > > All I need to  is access NIC registers via domU's(network controller
> > > will still be working normally). Using PCI passthrough solves the
> > > problem for a domU, however, it doesn't solve when multiple domU's
> > > wanting to read NIC registers(ex. statistics).
> >
> > Direct access to hardware registers and availability of the device to
> > multiple guest domains are mutually exclusive configurations under Xen
> > (in the absence of additional technologies such as SR-IOV).
> >
> > The paravirtual front and back devices contain no hardware specific
> > functionality, in this configuration all hardware specific knowledge is
> > contained in the driver in domain 0. Guests use regular L2 or L3
> > mechanisms such as bridging, NAT or routing to obtain a path to the
> > physical hardware but they are never aware of that physical hardware.
> >
> > PCI passthrough allows a guest direct access to a PCI device but this is
> > obviously incompatible with access from multiple guests (again, unless
> > you have SR-IOV or something similar)
>
> What if the netback was set be able to work in guest mode? This way you
> could export it out to the guests?

Like a driver domain model? That would work (I think) but is still not
the same as having multiple domain's with access to the physical
registers. netback in a guest works in exactly the same as how it works
for domain 0.

Ian.

 


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

 


Rackspace

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