Possibility of mapping memory addresses to virtio-serial ports

Our current Linux project involves an application running on the host and a virtualized ECU application running on the guest. The guest machine was set up using KVM and QEMU, and we plan to perform communication between the host app and the guest app thru virtio-serial.

Based on the virtio-serial wiki, this feature provides ports to the guest for simple I/O processes. The ports are originally mapped to a specific path in the host and will be available thru a different path in the guest.


I’d like to ask if the ports can be mapped to certain memory addresses in the host and can be accessible in the guest thru a different memory address?

e.g. path=0x7fff9575c05f

The reason for this is we want to simulate the actual process of writing and reading data on registers in real ECUs. If this is not possible, do you have any suggestions on how we can utilize virtio-serial ports with memory addresses?

Any response will be greatly appreciated. Thank you in advance!

1 Like