All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Jan Beulich" <jbeulich@novell.com>
To: Dexuan Cui <dexuan.cui@intel.com>
Cc: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>
Subject: RE: co-assignment needs for PCI devices
Date: Tue, 31 Mar 2009 08:57:43 +0100	[thread overview]
Message-ID: <49D1E917.76E4.0078.0@novell.com> (raw)
In-Reply-To: <EADF0A36011179459010BDF5142A457511A788E9@pdsmsx502.ccr.corp.intel.com>

>>> "Cui, Dexuan" <dexuan.cui@intel.com> 31.03.09 09:48 >>>
>Jan Beulich wrote:
>> Also, being not really knowledgeable about all the differences between
>> PCIe and PCI, I'd appreciate some clarification on why on PCIe it is
>> possible and correct to do a secondary bus reset when targeting just
>> the (PCIe) functions of a single device - to me this seems to imply
>> that there's a one-device-per-non-root-bus restriction there.
>According to VT-d spec (section 3.6.1: Identifying Origination of DMA Requests), PCI devices behind the same uppermost PCI/PCI-X
>bridge must be co-assigned to the same guest. PCIe devices have not such a constraint.
>
>FLR (Functional Level Reset) is used to quiesce an assigned device when we destroy a guest or we detach the device from the guest.
>If a PCIe device has no standard FLR capability, we'll try to use SecondaryBusReset as a way to do FLR. Unluckily,
>SecondaryBusReset resets all the devices behind the bridge, so for a multi-function PCIe device without FLR capability, we require
>they have to be co-assigned to the same guest --  certainly this is only for iommu case and for non-iommu case this requirement may
>be not proper and we shoud fix it...

But - for the sake of my education, if you forgive - you didn't answer whether there is a one-device-per-secondary-bus restriction on PCIe...

Thanks, Jan

  reply	other threads:[~2009-03-31  7:57 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-03-31  7:10 co-assignment needs for PCI devices Jan Beulich
2009-03-31  7:48 ` Cui, Dexuan
2009-03-31  7:57   ` Jan Beulich [this message]
2009-03-31  8:10     ` Cui, Dexuan
2009-03-31 12:21       ` Ross Philipson
2009-04-01  8:20         ` Cui, Dexuan
2009-04-01 13:09           ` Ross Philipson

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=49D1E917.76E4.0078.0@novell.com \
    --to=jbeulich@novell.com \
    --cc=dexuan.cui@intel.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.