qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Qemu-devel] Adding a custom monitoring device to virt machine


From: Nassim Corteggiani
Subject: [Qemu-devel] Adding a custom monitoring device to virt machine
Date: Tue, 23 Aug 2016 07:31:53 +0000

Hi all,


This is the first time I am playing with QEmu.


I made a custom qemu device in oder to monitor all memory accesses (sdram, 
flash, peripherals, gpio, ...).


The device is parent of TYPE_SYS_BUS_DEVICE and implements a MemoryRegionOps 
with read/write functions.


The device is part of virt machine, so I called my device contructor from 
virt.c (fct machvirt_init line 1256).

The constructor set the mmio device range from 0 to RAMLIMIT_BYTES.


The device is well initialized but read/write functions are never called...


Did I miss something ?


If I want to create a dynamically allocated device that can be used by all QEmu 
machine without adding the device constructor for each machine, how can I 
process ?


Thank you a lot for any help.


Best regards,

Nassim.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]