Method and device for virtual interrupt

The invention discloses a method and a device for virtual interrupt. In the invention, when a first OS needs to be communicated with a second OS, the first OS starts an interrupt request; a virtual layer between software layers of a hardware layer and the first OS as well as the second OS conducts environment switch according to the started interrupt request, switches the current implement state into an interrupt mode, and schedules the interrupt request to the second OS after the site of the interrupt of real hardware is hypothesized, thus the second OS can process data from the first OS so as to achieve the communication between the first OS and the second OS according to a manner for processing real interrupt.