qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
* How do I enumerate devices connected to i2c busses on running QEMU?
@ 2024-03-06 11:44 Paz Offer
  2024-03-06 16:27 ` Philippe Mathieu-Daudé
  0 siblings, 1 reply; 2+ messages in thread
From: Paz Offer @ 2024-03-06 11:44 UTC (permalink / raw)
  To: qemu-devel@nongnu.org

[-- Attachment #1: Type: text/plain, Size: 271 bytes --]

Hi,

I want to enumerate all devices connected to i2c busses in running QEMU hosting Linux.
I understand I need to use 'qom-list' and 'qom-get' in monitor mode, but I did not find documentation on how to use them for specific information.

Thanks for any tip,
Paz

[-- Attachment #2: Type: text/html, Size: 1874 bytes --]

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: How do I enumerate devices connected to i2c busses on running QEMU?
  2024-03-06 11:44 How do I enumerate devices connected to i2c busses on running QEMU? Paz Offer
@ 2024-03-06 16:27 ` Philippe Mathieu-Daudé
  0 siblings, 0 replies; 2+ messages in thread
From: Philippe Mathieu-Daudé @ 2024-03-06 16:27 UTC (permalink / raw)
  To: Paz Offer, qemu-devel@nongnu.org

Hi Paz,

On 6/3/24 12:44, Paz Offer wrote:
> Hi,
> 
> I want to enumerate all devices connected to i2c busses in running QEMU 
> hosting Linux.
> I understand I need to use 'qom-list' and 'qom-get' in monitor mode, but 
> I did not find documentation on how to use them for specific information.

Try "info qtree":

$ qemu-system-i386 -M q35 -S -monitor stdio
(qemu) help info qtree
info qtree  -- show device tree
(qemu) info qtree
bus: main-system-bus
   type System
   dev: q35-pcihost, id ""
     bus: pcie.0
       dev: ICH9-SMB, id ""
         bus: i2c
           type i2c-bus
           dev: smbus-eeprom, id ""
             address = 87 (0x57)
           dev: smbus-eeprom, id ""
             address = 86 (0x56)
           dev: smbus-eeprom, id ""
             address = 85 (0x55)
           dev: smbus-eeprom, id ""
             address = 84 (0x54)
           dev: smbus-eeprom, id ""
             address = 83 (0x53)
           dev: smbus-eeprom, id ""
             address = 82 (0x52)
           dev: smbus-eeprom, id ""
             address = 81 (0x51)
           dev: smbus-eeprom, id ""
             address = 80 (0x50)

> 
> Thanks for any tip,
> Paz



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2024-03-06 16:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-03-06 11:44 How do I enumerate devices connected to i2c busses on running QEMU? Paz Offer
2024-03-06 16:27 ` Philippe Mathieu-Daudé

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).