# US 2019/0317784 A1 · Display method for use in multi-operating systems and electronic device

> Agents: this data is available as JSON from the patentgrep API and MCP server — see https://patentgrep.com/llms.txt

- Number: US 2019/0317784 A1
- Document ID: US20190317784A1
- Status: Published application
- Kind: A1
- Application number: 16/453,015
- Filed: 2019-06-26
- Published: 2019-10-17
- Earliest claimed: 2016-12-27
- Assignees: Cloudminds (Shenzhen) Robotics Systems Co., Ltd.
- Applicants: Cloudminds (Shenzhen) Robotics Systems Co., Ltd.
- Inventors: Xiangxiao KONG
- Web page: https://patentgrep.com/patent/US20190317784A1

## CPC

- G06F 9/455: Emulation; Interpretation; Software simulation, e.g. virtualisation or emulation of application or operating system execution engines
- G06F 9/45545: {Guest-host, i.e. hypervisor is an application program itself, e.g. VirtualBox}
- G06F 9/45558: {Hypervisor-specific management and integration aspects}
- G06F 9/544: {Buffers; Shared memory; Pipes}
- G06F 2009/45583: {Memory management, e.g. access or allocation}
- G06F: ELECTRIC DIGITAL DATA PROCESSING (computer systems based on specific computational models G06N)

## Abstract

A display method for use in multi-operating systems includes: in a host operating system, allocating a native window to each guest operating system; in the guest operating system, requesting a physical continuous memory (PCM) sub-region corresponding to a window from the host operating system when the window is newly created; in the host operating system, allocating the PCM sub-region to the guest operating system; in the guest operating system, storing rendered data to the PCM sub-region when the newly created window is rendered; and in the host operating system, rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region when a display request from the guest operating system is monitored, and in the host operating system, displaying the native window.

## Claims

### Claim 1

A display method for use in multi-operating systems, comprising:
in a host operating system, allocating a native window to each guest operating system;
in the guest operating system, requesting a physical continuous memory (PCM) sub-region corresponding to a window from the host operating system when the window is newly created;
in the host operating system, allocating the PCM sub-region to the guest operating system;
in the guest operating system, storing rendered data to the PCM sub-region when the newly created window is rendered; and
in the host operating system, rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region when a display request from the guest operating system is monitored, and in the host operating system, displaying the native window.

### Claim 2 (depends on 1)

The method according to claim 1, wherein the in the guest operating system, requesting the PCM sub-region corresponding to the window from the host operating system when the window is newly created comprises:
in the guest operating system, when the window is newly created, sending a memory share request to the host operating system;
the in the host operating system, allocating the PCM sub-region to the guest operating system comprises:
in the host operating system, upon receiving the memory share request, allocating the PCM sub-region to the guest operating system by a memory share management module Gralloc;
converting the PCM sub-region into a texture; and
returning an index value of the texture to the guest operating system; and
the storing the rendered data to the PCM sub-region comprises:
storing the rendered data to the PCM sub-region based on the index value.

### Claim 3 (depends on 2)

The method according to claim 2, wherein the in the guest operating system, when the window is newly created, sending the memory share request to the host operating system comprises:
the guest operating system sends a PCM sub-region request to the PCMA in the host operating system via the vPCMA in the host operating system based on the vPCMA in the guest operating system and communication between the front-end drive and the back-end drive;
the in the host operating system allocating the PCM sub-region to the guest operating system comprises:
the PCMA in the host operating system allocates a sub-region in the PCM based on the request;
the storing rendered data to the PCM sub-region comprises:
the guest operating system, via the vPCMA in the host operating system based on the vPCMA in the guest operating system and communication between the front-end drive and the back-end drive, make the PCMA in the host operating system stores the rendered data to the PCM sub-region corresponding to a PCM sub-region descriptor.

### Claim 4 (depends on 2)

The method according to claim 2, wherein the in the host operating system, rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region when the display request from the guest operating system is monitored comprises:
when the display request from the guest operating system is monitored, rendering the native window corresponding to the guest operating system based on various PCM sub-regions corresponding to the native window of the guest operating system.

### Claim 5 (depends on 1)

The method according to claim 1, wherein the when the display request from the guest operating system is monitored comprises:
when it is monitored that any of the guest operating systems sends a window display instruction to the host operating system, it is determined that the display request from the guest operating system is monitored.

### Claim 6 (depends on 1)

The method according to claim 1, wherein the displaying the native window comprises:
topping the native window.

### Claim 7

An electronic device, comprising:
a memory, and at least one processor; wherein the memory is communicably connected to the at least one processor via a communication bus; the at least one processor is configured to perform instructions stored in the memory; and the memory stores instructions for performing the steps of: in a host operating system, allocating a native window to each guest operating system;
in the guest operating system, requesting a physical continuous memory (PCM) sub-region corresponding to a window from the host operating system when the window is newly created;
in the host operating system, allocating the PCM sub-region to the guest operating system;
in the guest operating system, storing rendered data to the PCM sub-region when the newly created window is rendered; and
in the host operating system, rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region when a display request from the guest operating system is monitored, and
in the host operating system, displaying the native window.

### Claim 8 (depends on 7)

The electronic device according to claim 7, wherein the requesting the PCM sub-region corresponding to the window from the host operating system when the window is newly created in the guest operating system comprises:
in the guest operating system, when the window is newly created, sending a memory share request to the host operating system;
the allocating the PCM sub-region to the guest operating system in the host operating system comprises:
in the host operating system, upon receiving the memory share request, allocating the PCM sub-region to the guest operating system by a memory share management module Gralloc;
converting the PCM sub-region into a texture; and
returning an index value of the texture to the guest operating system; and
the storing the rendered data to the PCM sub-region comprises:
storing the rendered data to the PCM sub-region based on the index value.

### Claim 9 (depends on 8)

The electronic device according to claim 8, wherein the in the guest operating system, when the window is newly created, sending the memory share request to the host operating system comprises:
the guest operating system sends a PCM sub-region request to the PCMA in the host operating system via the vPCMA in the host operating system based on the vPCMA in the guest operating system and communication between the front-end drive and the back-end drive;
the allocating the PCM sub-region to the guest operating system in the host operating system comprises:
the PCMA in the host operating system allocates a sub-region in the PCM based on the request;
the storing rendered data to the PCM sub-region comprises:
the guest operating system, via the vPCMA in the host operating system based on the vPCMA in the guest operating system and communication between the front-end drive and the back-end drive, make the PCMA in the host operating system stores the rendered data to the PCM sub-region corresponding to a PCM sub-region descriptor.

### Claim 10 (depends on 8)

The electronic device according to claim 8, wherein rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region in the host operating system when the display request from the guest operating system is monitored comprises:
when the display request from the guest operating system is monitored, rendering the native window corresponding to the guest operating system based on various PCM sub-regions corresponding to the native window of the guest operating system.

### Claim 11 (depends on 7)

The electronic device according to claim 7, wherein the when the display request from the guest operating system is monitored comprises:
when it is monitored that any of the guest operating systems sends a window display instruction to the host operating system, it is determined that the display request from the guest operating system is monitored.

### Claim 12 (depends on 7)

The electronic device according to claim 7, wherein the displaying the native window comprises:
topping the native window.

### Claim 13

A computer program product for use in combination with an electronic device, comprising a computer program embedded into a computer-readable storage medium;
wherein the computer program comprises instructions for causing the electronic device to perform the steps of:
in a host operating system, allocating a native window to each guest operating system;
in the guest operating system, requesting a physical continuous memory (PCM) sub-region corresponding to a window from the host operating system when the window is newly created;
in the host operating system, allocating the PCM sub-region to the guest operating system;
in the guest operating system, storing rendered data to the PCM sub-region when the newly created window is rendered; and
in the host operating system, rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region when a display request from the guest operating system is monitored, and
in the host operating system, displaying the native window.

### Claim 14 (depends on 13)

The computer program product according to claim 13, wherein the in the guest operating system, requesting the PCM sub-region corresponding to the window from the host operating system when the window is newly created comprises:
in the guest operating system, when the window is newly created, sending a memory share request to the host operating system;
the in the host operating system, allocating the PCM sub-region to the guest operating system comprises:
in the host operating system, upon receiving the memory share request, allocating the PCM sub-region to the guest operating system by a memory share management module Gralloc;
converting the PCM sub-region into a texture; and
returning an index value of the texture to the guest operating system; and
the storing the rendered data to the PCM sub-region comprises:
storing the rendered data to the PCM sub-region based on the index value.

### Claim 15 (depends on 14)

The computer program product according to claim 14, wherein the in the guest operating system, when the window is newly created, sending the memory share request to the host operating system comprises:
the guest operating system sends a PCM sub-region request to the PCMA in the host operating system via the vPCMA in the host operating system based on the vPCMA in the guest operating system and communication between the front-end drive and the back-end drive;
the in the host operating system, allocating the PCM sub-region to the guest operating system comprises:
the PCMA in the host operating system allocates a sub-region in the PCM based on the request;
the storing rendered data to the PCM sub-region comprises:
the guest operating system, via the vPCMA in the host operating system based on the vPCMA in the guest operating system and communication between the front-end drive and the back-end drive, make the PCMA in the host operating system stores the rendered data to the PCM sub-region corresponding to a PCM sub-region descriptor.

### Claim 16 (depends on 14)

The computer program product according to claim 14, wherein the in the host operating system, rendering the native window corresponding to the guest operating system based on the data in the PCM sub-region when the display request from the guest operating system is monitored comprises:
when the display request from the guest operating system is monitored, rendering the native window corresponding to the guest operating system based on various PCM sub-regions corresponding to the native window of the guest operating system.

### Claim 17 (depends on 13)

The computer program product according to claim 13, wherein the when the display request from the guest operating system is monitored comprises:
when it is monitored that any of the guest operating systems sends a window display instruction to the host operating system, it is determined that the display request from the guest operating system is monitored.

### Claim 18 (depends on 13)

The computer program product according to claim 13, wherein the displaying the native window comprises:
topping the native window.
