Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-10-02 Thread Michael S. Tsirkin
On Wed, Oct 02, 2013 at 10:53:07AM +0200, Paolo Bonzini wrote: > Il 25/09/2013 10:59, Michael S. Tsirkin ha scritto: > >> > I couldn't find on PCIe spec any mention that "Root Complex Integrated > >> > EndPoint" > >> > must be PCIe. But, from spec 1.3.2.3: > >> > - A Root Complex Integrated Endpoi

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-10-02 Thread Paolo Bonzini
Il 25/09/2013 10:59, Michael S. Tsirkin ha scritto: >> > I couldn't find on PCIe spec any mention that "Root Complex Integrated >> > EndPoint" >> > must be PCIe. But, from spec 1.3.2.3: >> > - A Root Complex Integrated Endpoint must not require I/O resources >> > claimed through BAR(s). >> > - A

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-10-01 Thread Michael S. Tsirkin
On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: > When I added support for the Q35-based machinetypes to libvirt, I > specifically prohibited attaching any PCI devices (with the exception of > graphics controllers) to the PCIe root complex, and had planned to > prevent attaching them t

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-30 Thread Michael S. Tsirkin
On Mon, Sep 30, 2013 at 06:01:17PM +0200, Gerd Hoffmann wrote: > Hi, > > > Yes but, same as in the initial design, > > it really makes it user's problem. > > > > So we'd have > > virtio-net-pci-conventional > > virtio-net-pci-express > > virtio-net-pci-integrated > > > > > > All this while us

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-30 Thread Gerd Hoffmann
Hi, > Yes but, same as in the initial design, > it really makes it user's problem. > > So we'd have > virtio-net-pci-conventional > virtio-net-pci-express > virtio-net-pci-integrated > > > All this while users just really want to say "virtio" > (that's the expert user, what most people want i

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-30 Thread Michael S. Tsirkin
On Mon, Sep 30, 2013 at 11:55:47AM +0200, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: > > > On Fri, Sep 27, 2013 at 07:06:44PM +0200, Markus Armbruster wrote: > >> Marcel Apfelbaum writes: > >> > >> > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: > >> >> On Tue, Sep 2

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-30 Thread Laine Stump
On 09/30/2013 05:55 AM, Markus Armbruster wrote: > "Michael S. Tsirkin" writes: >> I never heard of a pci/pci express >> one but it's not impossible I think. > PCI on one side of the card, PCIe on the other, and a switchable > backplate? Weird :) > > Again, I can't see why we'd want to model this

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-30 Thread Markus Armbruster
"Michael S. Tsirkin" writes: > On Fri, Sep 27, 2013 at 07:06:44PM +0200, Markus Armbruster wrote: >> Marcel Apfelbaum writes: >> >> > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: >> >> On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: >> >> > When I added support for

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-28 Thread Michael S. Tsirkin
On Fri, Sep 27, 2013 at 07:06:44PM +0200, Markus Armbruster wrote: > Marcel Apfelbaum writes: > > > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: > >> On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: > >> > When I added support for the Q35-based machinetypes to libvirt,

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-27 Thread Markus Armbruster
Marcel Apfelbaum writes: > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: >> On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: >> > When I added support for the Q35-based machinetypes to libvirt, I >> > specifically prohibited attaching any PCI devices (with the exception

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Michael S. Tsirkin
On Wed, Sep 25, 2013 at 01:56:20PM +0300, Michael S. Tsirkin wrote: > On Wed, Sep 25, 2013 at 06:14:27AM -0400, Laine Stump wrote: > > On 09/25/2013 06:00 AM, Michael S. Tsirkin wrote: > > > On Wed, Sep 25, 2013 at 05:39:37AM -0400, Laine Stump wrote: > > >> However it is done, each controller will

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Michael S. Tsirkin
On Wed, Sep 25, 2013 at 06:14:27AM -0400, Laine Stump wrote: > On 09/25/2013 06:00 AM, Michael S. Tsirkin wrote: > > On Wed, Sep 25, 2013 at 05:39:37AM -0400, Laine Stump wrote: > >> However it is done, each controller will need to have two sets of flags > >> - one for what it can plug into, and on

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Laine Stump
On 09/25/2013 06:00 AM, Michael S. Tsirkin wrote: > On Wed, Sep 25, 2013 at 05:39:37AM -0400, Laine Stump wrote: >> However it is done, each controller will need to have two sets of flags >> - one for what it can plug into, and one for what can be plugged into it. > Not just into it - what can be p

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Michael S. Tsirkin
On Wed, Sep 25, 2013 at 05:39:37AM -0400, Laine Stump wrote: > On 09/25/2013 04:48 AM, Marcel Apfelbaum wrote: > > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: > >> On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: > >>> When I added support for the Q35-based machinetypes

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Laine Stump
On 09/25/2013 04:48 AM, Marcel Apfelbaum wrote: > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: >> On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: >>> When I added support for the Q35-based machinetypes to libvirt, I >>> specifically prohibited attaching any PCI devices

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Michael S. Tsirkin
On Wed, Sep 25, 2013 at 11:48:28AM +0300, Marcel Apfelbaum wrote: > On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: > > On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: > > > When I added support for the Q35-based machinetypes to libvirt, I > > > specifically prohibited att

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Marcel Apfelbaum
On Wed, 2013-09-25 at 10:01 +0300, Michael S. Tsirkin wrote: > On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: > > When I added support for the Q35-based machinetypes to libvirt, I > > specifically prohibited attaching any PCI devices (with the exception of > > graphics controllers) to

Re: [Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-25 Thread Michael S. Tsirkin
On Tue, Sep 24, 2013 at 06:01:02AM -0400, Laine Stump wrote: > When I added support for the Q35-based machinetypes to libvirt, I > specifically prohibited attaching any PCI devices (with the exception of > graphics controllers) to the PCIe root complex, That's wrong I think. Anything attached to R

[Qemu-devel] Attaching PCI devices to the PCIe root complex

2013-09-24 Thread Laine Stump
When I added support for the Q35-based machinetypes to libvirt, I specifically prohibited attaching any PCI devices (with the exception of graphics controllers) to the PCIe root complex, and had planned to prevent attaching them to PCIe root ports (ioh3420 device) and PCIe downstream switch ports (