Method and apparatus for first operating system to access resource of second operating system
AssigneeHuawei Technologies Co., Ltd.
InventorsPeng Zuo, Xiaoqiang Du, Yong Chen
Life of this patent
Estimating the term…
Abstract
A method includes configuring a memory for storing a kernel page table and a user page table to low-order address space, and reserving high-order address space, obtaining register configuration information of a kernel page table of a second operating system from the second operating system, and configuring a register of the high-order address space of a first operating system based on the register configuration information of the kernel page table of the second operating system such that the high-order address space is enabled to directly access a kernel resource of the second operating system.
Claims20
An apparatus comprising:
- a first operating system has a first memory area and virtual memory address space comprising first address space and second address space;
- and
- a second operating system has a kernel space and a kernel page table,
- wherein a processor of the first operating system is configured to:
- obtain register configuration information of the kernel page table and kernel symbol table information of the second operating system;
- configure, based on the register configuration information, the first memory area corresponding to the second address space;
- and
- access a resource in the kernel space using the second address space.
A method implemented by a first operating system, comprising:
- obtaining register configuration information of a kernel page table and kernel symbol table information of a second operating system, wherein the first operating system has virtual memory address space comprising first address space and second address space;
- configuring, based on the register configuration information, a first memory area of the first operating system, wherein the first memory area corresponds to the second address space;
- and
- accessing a resource in kernel space of the second operating system using the second address space.
An apparatus comprising:
- a first operating system has a first kernel space, user space, a first address space, a second address space, and a register, wherein the register comprises a first memory area and a second memory area;
- a second operating system has a first kernel page table and a second kernel space;
- and
- a processor configured to:
- configure the first kernel space and user space in the first address space, wherein the first address space corresponds to the first memory area;
- control the first operating system to obtain kernel symbol table information of the second operating system and register configuration information of the first kernel page table;
- configure the second address space with the register configuration information of the first kernel page table, wherein the second address space corresponds to the second memory area;
- and
- control the first operating system to access a first resource in the second kernel space using the second address space.
Dependencies are inferred from the claim text.