Re: [PATCH] scripts: add a script to list virtio devices in a system

2021-05-12 Thread Laurent Vivier
On 11/05/2021 11:17, Peter Maydell wrote: > On Thu, 6 May 2021 at 20:36, Laurent Vivier wrote: >> >> Add "lsvirtio" that lists all virtio devices in a system >> the same way lspci does for the PCI cards. > > This is cool, but it's not really QEMU specific -- it should > work on any Linux guest ru

Re: [PATCH] scripts: add a script to list virtio devices in a system

2021-05-11 Thread Peter Maydell
On Thu, 6 May 2021 at 20:36, Laurent Vivier wrote: > > Add "lsvirtio" that lists all virtio devices in a system > the same way lspci does for the PCI cards. This is cool, but it's not really QEMU specific -- it should work on any Linux guest running on some hypervisor or hardware that exposes vir

Re: [PATCH] scripts: add a script to list virtio devices in a system

2021-05-11 Thread Michael S. Tsirkin
On Fri, May 07, 2021 at 08:17:33AM +0200, Laurent Vivier wrote: > On 06/05/2021 21:50, Philippe Mathieu-Daudé wrote: > > On 5/6/21 9:33 PM, Laurent Vivier wrote: > >> Add "lsvirtio" that lists all virtio devices in a system > >> the same way lspci does for the PCI cards. > >> > >> For instance: > >

Re: [PATCH] scripts: add a script to list virtio devices in a system

2021-05-11 Thread Michael S. Tsirkin
On Thu, May 06, 2021 at 09:33:41PM +0200, Laurent Vivier wrote: > Add "lsvirtio" that lists all virtio devices in a system > the same way lspci does for the PCI cards. > > For instance: > > $ ./lsvirtio > :01:00.0 virtio0 Red Hat, Inc. (PCI) Virtio Network Card >Subsystem: virtio >

Re: [PATCH] scripts: add a script to list virtio devices in a system

2021-05-06 Thread Laurent Vivier
On 06/05/2021 21:50, Philippe Mathieu-Daudé wrote: > On 5/6/21 9:33 PM, Laurent Vivier wrote: >> Add "lsvirtio" that lists all virtio devices in a system >> the same way lspci does for the PCI cards. >> >> For instance: >> >> $ ./lsvirtio >> :01:00.0 virtio0 Red Hat, Inc. (PCI) Virtio Network

Re: [PATCH] scripts: add a script to list virtio devices in a system

2021-05-06 Thread Philippe Mathieu-Daudé
On 5/6/21 9:33 PM, Laurent Vivier wrote: > Add "lsvirtio" that lists all virtio devices in a system > the same way lspci does for the PCI cards. > > For instance: > > $ ./lsvirtio > :01:00.0 virtio0 Red Hat, Inc. (PCI) Virtio Network Card >Subsystem: virtio >Modalias: virtio