All of lore.kernel.org
 help / color / mirror / Atom feed
From: Jambunathan K <jambunathan@netxen.com>
To: Keir Fraser <Keir.Fraser@cl.cam.ac.uk>
Cc: xen-devel <xen-devel@lists.xensource.com>,
	Sanjeev Jorapur <sanjeev@netxen.com>
Subject: Re: PCI Passthru: fn0 exported but not fn1
Date: Sun, 26 Aug 2007 21:49:31 +0530	[thread overview]
Message-ID: <46D1A813.1030704@netxen.com> (raw)
In-Reply-To: <C2F4B16C.148BB%Keir.Fraser@cl.cam.ac.uk>

Keir Fraser wrote:
> Why did you not use VPCI? Does that not work for you? It should avoid the
> problem that is currently blocking your progress.
> 
>  -- Keir
> 
> 
> On 24/8/07 15:58, "Jambunathan K" <jambunathan@netxen.com> wrote:
> 
>> CONFIG_XEN_PCIDEV_FRONTEND=y
>> CONFIG_XEN_PCIDEV_FE_DEBUG=y
>> CONFIG_XEN_PCIDEV_BACKEND=y
>> # CONFIG_XEN_PCIDEV_BACKEND_VPCI is not set
>> CONFIG_XEN_PCIDEV_BACKEND_PASS=y
>> # CONFIG_XEN_PCIDEV_BACKEND_SLOT is not set
>> CONFIG_XEN_PCIDEV_BE_DEBUG=y
>>
>> I have overridden default VPCI with explicit BACKEND_PASS. Both Dom0 and
>> Dom1 run the same kernel binary.
>>
>> I had used the above configuration all along (on both Xen304 + Xen310)
>> and have seen fn1 exported 'as such' to Dom1. It is with my new box that
>> I have the above issue.
> 
> 
> 

I did some more experiments and here is what I find.

I) In PASS mode,
	a) Guest domain *cannot* see fn2 if *only* fn2 is exported.
	b) Guest domain *can* see fn2 *only if* fn0 is also exported to it.

II) In VPCI mode,
	a) Guest domain *cannot* see fn2 if *only* fn2 is exported.
	b) Guest domain *can* see fn2 *only if* fn0 is also exported to it.

III) In SLOT mode,
	a) Guest doamin can see fn2 even if *only* fn2 is exported.


A cursory look suggests that the difference in behaviour is due to the
way pcifront scans devices. It scans non-zero fns only if it actually
sees a device at *fn0*.

Our device requires that the fn-no be preserved as such (even if other
PCI params change) for proper working.

I am trying to export 4 PCI functions in our device to 4 different
domains. I am stuck at not being able to use *any* of the passthrough
methods.

If behaviours (I) and (II) above is as intended may I know why this is
so?. If not, would you agree that this is a bug?

Jambunathan K.



	
	

  reply	other threads:[~2007-08-26 16:19 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-08-23 19:04 PCI Passthru: fn0 exported but not fn1 Jambunathan K
2007-08-24 14:42 ` Keir Fraser
2007-08-24 14:58   ` Jambunathan K
2007-08-24 15:01     ` Keir Fraser
2007-08-26 16:19       ` Jambunathan K [this message]
2007-08-27 14:08         ` Jambunathan K
2007-08-27 15:22           ` Keir Fraser
2007-08-27 15:27             ` Jambunathan K
2007-08-27 15:40               ` Keir Fraser
2007-08-27 15:58                 ` Jambunathan K
2007-08-27 16:14                   ` Keir Fraser
2007-08-27 16:34                     ` Jambunathan K
2007-08-27 16:42                       ` Keir Fraser
     [not found] <C2FA6F3A.D05F%keir@xensource.com>
2007-08-29 14:18 ` Jambunathan K
2007-08-29 14:26   ` Keir Fraser
2007-08-30 10:11     ` Jambunathan K
2007-08-30 10:19       ` Keir Fraser
2007-08-30 14:45         ` Jambunathan K
2007-08-29 18:27   ` Stefan Neuwirth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46D1A813.1030704@netxen.com \
    --to=jambunathan@netxen.com \
    --cc=Keir.Fraser@cl.cam.ac.uk \
    --cc=sanjeev@netxen.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.