Method for managing a multi-system shared memory, electronic device and non-volatile computer-readable storage medium

    公开(公告)号:US11281388B2

    公开(公告)日:2022-03-22

    申请号:US16784613

    申请日:2020-02-07

    发明人: Yanfei Wen

    IPC分类号: G06F12/00 G06F3/06

    摘要: A method for managing a multi-system shared memory includes: upon receiving a data write instruction for writing data to the shared memory, acquiring a data size of to-be-written data that is to be written to the shared memory; judging whether the shared memory includes a data block that matches the data size and is idle; if the shared memory does not include the data block that matches the data size and is idle, acquiring a first data block that has a memory size greater than the data size and is idle, such that the to-be-written data is written to the first data block; acquiring a remaining idle space of the first data block after the to-be-written data is written to the first data block; and generating a new data block based on the remaining idle space.

    Method and apparatus for simultaneously running multiple virtual machines, and electronic device

    公开(公告)号:US10901766B2

    公开(公告)日:2021-01-26

    申请号:US16457016

    申请日:2019-06-28

    IPC分类号: G06F9/46 G06F9/455 G06F9/50

    摘要: The present invention provides a method and apparatus for simultaneously running multiple virtual machines, and an electronic device. The method includes: initiating a request of running a second operating system in QEMU; triggering an exception to a Hypervisor of a currently running first operating system in a KVM module; storing a context of the Hypervisor of the first operating system in the Hypervisor of the first operating system, and loading the context of the Hypervisor of the second operating system; and storing the context of the first operating system in the Hypervisor of the second operating system, and loading the context of the second operating system. By adoption of the solution provided by the present application, multiple virtual machines can be run simultaneously, and the respective functions can be run independently.

    Context processing method and apparatus in switching process of multiple virtual machines, and electronic device

    公开(公告)号:US10922126B2

    公开(公告)日:2021-02-16

    申请号:US16456855

    申请日:2019-06-28

    发明人: Yanfei Wen

    IPC分类号: G06F9/455

    摘要: The present application provides a context processing method and apparatus in a switching process of multiple virtual machines, and an electronic device. The method includes: in a KVM module, receiving a switching request of switching from a first Hypervisor to a second Hypervisor; in the KVM module, triggering an exception to the first Hypervisor; and in the first Hypervisor, storing a context of the first Hypervisor in a specified location, and loading the pre-stored context of the second Hypervisor. By adoption of the solution provided by the present application, multiple virtual machines can be run simultaneously, and the respective functions can be run independently.