摘要 |
According to embodiments described in the specification a virtual machine environment (VME) for interfacing a real time operating system (RTOS) environment with a native host operating system (HOS) is described. The VME comprises: at least one virtual I/O service for emulating a hardware service available to the native HOS, the at least one virtual I/O service enabled to generate a notification when data is transmitted from the at least one virtual I/O service to the RTOS environment, a non blocking messaging queue for exchanging data between the RTOS environment and the at least one virtual I/O service; an interrupt emulator in communication with the at least one virtual I/O service for generating an interrupt in response to receiving the notification, the interrupt for triggering the RTOS environment to poll the non-blocking message queue to retrieve data from the non-blocking message queue; a hardware exception handler emulator in communication with the interrupt emulator for relaying the interrupt to the RTOS environment, the hardware exception handler emulator further enabled to manage interrupts and exceptions from the native HOS such that the interrupts and exceptions from the native HOS appear to the RTOS environment as if they had occurred on hardware running the RTOS environment natively; and a supervisory instruction emulator in communication with the hardware exception handler emulator, for emulating supervisory instructions executed by the RTOS environment.
|