Sensor Sharing

Updated: April 19, 2023

The Sensor Sharing framework allows guests to read data from sensors connected to the hypervisor host. Sensor support will vary. Presently, the framework allows guests to access Inertial Measurement Unit (IMU) sensors on the hypervisor host.

This framework provides a virtual device through which guests can use the System Control and Management Interface (SCMI) standard to read gyroscope, accelerometer, and other data. Guests can share a sensor with the host, because applications in each OS can read data from the same sensor.

Note: This framework is considered experimental because the VirtIO specification that defines the virtual device interface or the guest OS components that use this interface might change. Thus, the guest or host components may require updates in future releases.

This chapter explains how the framework architecture allows the hypervisor to manage interaction between guests and sensors, how to configure sensors in a VM to make them available to a guest, and how to add the necessary framework components for the guests and host.