> On 02-Jul-2023, at 10:29 AM, Michael S. Tsirkin <[email protected]> wrote: > > On Sat, Jul 01, 2023 at 04:09:31PM +0900, Akihiko Odaki wrote: >> Yes, I want the slot number restriction to be enforced. If it worries you >> too much for regressions, you may implement it as a warning first and then >> turn it a hard error when the next development phase starts. > > That's not a bad idea. This is with just the warning - the device still gets added: (qemu) netdev_add socket,id=hostnet1,listen=:1234 (qemu) device_add e1000e,netdev=hostnet1,mac=00:11:22:33:44:03,id=net1,bus=pci.6,addr=0x2.0x5 warning: PCI: slot 2 is not valid for e1000e, parent device only allows plugging into slot 0. (qemu) info network igb.0: index=0,type=nic,model=igb,macaddr=52:54:00:12:34:56 igb.1: index=0,type=nic,model=igb,macaddr=52:54:00:12:34:57 net1: index=0,type=nic,model=e1000e,macaddr=00:11:22:33:44:03 \ hostnet1: index=0,type=socket, device_remove won’t be able to remove the nic unless guest cooperates.
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Michael S. Tsirkin
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Michael S. Tsirkin
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Michael S. Tsirkin
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Igor Mammedov
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Igor Mammedov
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Ani Sinha
- Re: [PATCH v6 5/5] hw/pci: ensure... Akihiko Odaki
- Re: [PATCH v6 5/5] hw/pci: ensure... Michael S. Tsirkin
- Re: [PATCH v6 5/5] hw/pci: ensure PCIE devices are plug... Michael S. Tsirkin
