Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Eduardo Habkost
On Thu, Oct 18, 2018 at 03:38:58PM +0100, Daniel P. Berrangé wrote: > On Thu, Oct 18, 2018 at 03:15:31PM +0100, Peter Maydell wrote: > > On 18 October 2018 at 15:11, Marcel Apfelbaum > > wrote: > > > Maybe would be a step toward a clean "socket-device" modeling (what goes > > > where) > > > and al

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Marcel Apfelbaum
On 10/18/18 5:48 PM, Peter Maydell wrote: On 18 October 2018 at 15:45, Marcel Apfelbaum wrote: PCIe machines support PCI devices while PCI machines do not support PCIe devices. I think users of the PCI machines would benefit from having a clear list of supported devices, rather than have to

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Marcel Apfelbaum
On 10/18/18 5:41 PM, Peter Maydell wrote: On 18 October 2018 at 15:38, Daniel P. Berrangé wrote: On Thu, Oct 18, 2018 at 03:15:31PM +0100, Peter Maydell wrote: On 18 October 2018 at 15:11, Marcel Apfelbaum wrote: Maybe would be a step toward a clean "socket-device" modeling (what goes whe

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Daniel P . Berrangé
On Thu, Oct 18, 2018 at 03:15:31PM +0100, Peter Maydell wrote: > On 18 October 2018 at 15:11, Marcel Apfelbaum > wrote: > > Maybe would be a step toward a clean "socket-device" modeling (what goes > > where) > > and also QEMU emulation would be cleaner since in bare metal you cannot > > plug a PCI

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Peter Maydell
On 18 October 2018 at 15:45, Marcel Apfelbaum wrote: > PCIe machines support PCI devices while PCI machines do not support > PCIe devices. > > I think users of the PCI machines would benefit from having a clear list of > supported devices, rather than have to find out if their device > 1. Is a hy

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Peter Maydell
On 18 October 2018 at 15:38, Daniel P. Berrangé wrote: > On Thu, Oct 18, 2018 at 03:15:31PM +0100, Peter Maydell wrote: >> On 18 October 2018 at 15:11, Marcel Apfelbaum >> wrote: >> > Maybe would be a step toward a clean "socket-device" modeling (what goes >> > where) >> > and also QEMU emulation

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Peter Maydell
On 18 October 2018 at 15:11, Marcel Apfelbaum wrote: > Maybe would be a step toward a clean "socket-device" modeling (what goes > where) > and also QEMU emulation would be cleaner since in bare metal you cannot > plug a PCIe device into a PCI slot and vice-versa or have the same device ID > for bo

Re: [Qemu-devel] No more chameleon devices

2018-10-18 Thread Marcel Apfelbaum
Hi Eduardo, On 10/17/18 6:56 PM, Eduardo Habkost wrote: (CCing Marcel, in case he has extra details on the complex Conventional/Express bus/device plugging rules) On Wed, Oct 17, 2018 at 07:57:39AM +0200, Markus Armbruster wrote: Laine Stump writes: [...] In the end, having a device that ch

Re: [Qemu-devel] No more chameleon devices (was: [PATCH] virtio: Provide version-specific variants of virtio PCI devices)

2018-10-17 Thread Eduardo Habkost
On Wed, Oct 17, 2018 at 12:38:29PM -0400, Michael S. Tsirkin wrote: > On Wed, Oct 17, 2018 at 12:56:37PM -0300, Eduardo Habkost wrote: > > (CCing Marcel, in case he has extra details on the complex > > Conventional/Express bus/device plugging rules) > > > > On Wed, Oct 17, 2018 at 07:57:39AM +0200

Re: [Qemu-devel] No more chameleon devices (was: [PATCH] virtio: Provide version-specific variants of virtio PCI devices)

2018-10-17 Thread Michael S. Tsirkin
On Wed, Oct 17, 2018 at 12:56:37PM -0300, Eduardo Habkost wrote: > (CCing Marcel, in case he has extra details on the complex > Conventional/Express bus/device plugging rules) > > On Wed, Oct 17, 2018 at 07:57:39AM +0200, Markus Armbruster wrote: > > Laine Stump writes: > > > > [...] > > > In th

Re: [Qemu-devel] No more chameleon devices (was: [PATCH] virtio: Provide version-specific variants of virtio PCI devices)

2018-10-17 Thread Eduardo Habkost
(CCing Marcel, in case he has extra details on the complex Conventional/Express bus/device plugging rules) On Wed, Oct 17, 2018 at 07:57:39AM +0200, Markus Armbruster wrote: > Laine Stump writes: > > [...] > > In the end, having a device that changed PCI ID depending on what kind > > of slot it

Re: [Qemu-devel] No more chameleon devices

2018-10-17 Thread Markus Armbruster
Gerd Hoffmann writes: > On Wed, Oct 17, 2018 at 07:57:39AM +0200, Markus Armbruster wrote: >> Laine Stump writes: >> >> [...] >> > In the end, having a device that changed PCI ID depending on what kind >> > of slot it was plugged into was an idea "too clever for its own good", >> > should be av

Re: [Qemu-devel] No more chameleon devices (was: [PATCH] virtio: Provide version-specific variants of virtio PCI devices)

2018-10-16 Thread Gerd Hoffmann
On Wed, Oct 17, 2018 at 07:57:39AM +0200, Markus Armbruster wrote: > Laine Stump writes: > > [...] > > In the end, having a device that changed PCI ID depending on what kind > > of slot it was plugged into was an idea "too clever for its own good", > > should be avoided when new devices are added

[Qemu-devel] No more chameleon devices (was: [PATCH] virtio: Provide version-specific variants of virtio PCI devices)

2018-10-16 Thread Markus Armbruster
Laine Stump writes: [...] > In the end, having a device that changed PCI ID depending on what kind > of slot it was plugged into was an idea "too clever for its own good", > should be avoided when new devices are added in the future, and we > should at least provide an alternative that doesn't do