Received: from eggs.gnu.org ([2001:4830:134:3::10]:40431) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1gD9Xa-0000fg-9G for qemu-devel@nongnu.org; Thu, 18 Oct 2018 10:44:47 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1gD9XX-0005FG-0K for qemu-devel@nongnu.org; Thu, 18 Oct 2018 10:44:46 -0400 Received: from mail-wr1-x436.google.com ([2a00:1450:4864:20::436]:37535) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1gD9XW-0005DR-MA for qemu-devel@nongnu.org; Thu, 18 Oct 2018 10:44:42 -0400 Received: by mail-wr1-x436.google.com with SMTP id q1-v6so1102335wrs.4 for ; Thu, 18 Oct 2018 07:44:42 -0700 (PDT) References: <20181013025435.25785-1-ehabkost@redhat.com> <20181014173258-mutt-send-email-mst@kernel.org> <20181015181404.GQ31060@habkost.net> <20181016170236.GJ7995@redhat.com> <87murdf73g.fsf_-_@dusky.pond.sub.org> <20181017155637.GC31060@habkost.net> <29ed5e33-18d5-7c86-d946-02e96b9bff68@gmail.com> <20181018143858.GG20424@redhat.com> From: Marcel Apfelbaum Message-ID: <6bdbd841-5922-c974-8232-4912a8fd9906@gmail.com> Date: Thu, 18 Oct 2018 17:45:34 +0300 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [Qemu-devel] No more chameleon devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Peter Maydell , =?UTF-8?Q?Daniel_P=2e_Berrang=c3=a9?= Cc: Eduardo Habkost , "Michael S. Tsirkin" , Caio Carrara , Fabian Deutsch , QEMU Developers , Wainer dos Santos Moschetta , Markus Armbruster , Gonglei , Laine Stump , Gerd Hoffmann , Andrea Bolognani , Cleber Rosa , =?UTF-8?Q?Philippe_Mathieu-Daud=c3=a9?= 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 >>>> 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 both a PCI and a PCIe device. >>> So the command line would then distinguish "-device ne2k-pci" and >>> "-device ne2k-pcie", and users need to know whether the machine they're >>> using implements PCI or PCIe, and use the right device name accordingly? >> I can understand the rational for splitting the virtio devices, because >> of the way they completely change their functionality, even PCI device ID, >> depending on whether plugged into a pci or pcie slot. >> >> I'm not seeing the real world benefit of creating -pci vs -pcie for all >> the other non-virtio devices. AFAIK, the existing devices work the same >> regardless of what bus they are plugged into. So why would a user/app >> want to use such devices ? It feels like extra work for no clear benefit > Well, I don't see the benefit either, which is why I wanted to check > whether that was what was being proposed here. Conversely, if we're > happy that the ne2k-pci device should be allowed to plug into either > PCI or PCIe, it seems wrong to prohibit a virtio PCI device from > also being flexible that way, because then virtio would be a weird special > case as far as the user is concerned (as the only device where they need > to care about PCI vs PCIe). They would need to know which device to use. 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 hybrid device - QEMU will 'make' it PCI/PCIe  2. Is a PCIe device - would not work on a PCI machine  3. Is a PCI device - all good But maybe is too much trouble for a not-so-important issue. Thanks, Marcel > > thanks > -- PMM