CN104714821A - Operating system instance establishing method and device - Google Patents

Operating system instance establishing method and device Download PDF

Info

Publication number
CN104714821A
CN104714821A CN201310695516.8A CN201310695516A CN104714821A CN 104714821 A CN104714821 A CN 104714821A CN 201310695516 A CN201310695516 A CN 201310695516A CN 104714821 A CN104714821 A CN 104714821A
Authority
CN
China
Prior art keywords
resource
system example
operation system
description information
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Granted
Application number
CN201310695516.8A
Other languages
Chinese (zh)
Other versions
CN104714821B (en
Inventor
高云伟
池志雄
陆钢
丁科
詹剑锋
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Original Assignee
Huawei Technologies Co Ltd
Institute of Computing Technology of CAS
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Huawei Technologies Co Ltd, Institute of Computing Technology of CAS filed Critical Huawei Technologies Co Ltd
Priority to CN201310695516.8A priority Critical patent/CN104714821B/en
Priority to PCT/CN2014/094039 priority patent/WO2015090195A1/en
Publication of CN104714821A publication Critical patent/CN104714821A/en
Application granted granted Critical
Publication of CN104714821B publication Critical patent/CN104714821B/en
Expired - Fee Related legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/44Arrangements for executing specific programs
    • G06F9/4401Bootstrapping
    • G06F9/4406Loading of operating system
    • G06F9/441Multiboot arrangements, i.e. selecting an operating system to be loaded
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/46Multiprogramming arrangements
    • G06F9/50Allocation of resources, e.g. of the central processing unit [CPU]

Landscapes

  • Engineering & Computer Science (AREA)
  • Software Systems (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Computer Security & Cryptography (AREA)
  • Stored Programmes (AREA)

Abstract

The embodiment of the invention provides an operating system instance establishing method and device. According to the operating system instance establishing method, exclusive system resources are distributed to a Secondary operating system instance by a Primary operating system according to resource demand information, the Secondary operating system instance is initialized and started after resource description information of the Secondary operating system instance is generated, in this way, the operating system instance with exclusive system resources is dynamically established according to resource demands provided by users, and the purposes of improving system expansibility and meeting requirements of the users are realized.

Description

Operation system example creation method and device
Technical field
The embodiment of the present invention relates to computer realm, particularly relates to a kind of operation system example creation method and device.
Background technology
Along with the development of computer technology, at a central processing unit (Central ProcessingUnit, CPU) deploy multiple physics core (Core) forms the polycaryon processor with powerful processing power, and the department of computer science comprising at least one polycaryon processor is referred to as multicomputer system.
In a multi-processor system, one or more physics core (core) deploy kernel (kernel), is called many kernel operating system, in many kernel operating system, the system image of the independent compilation of core deploy customization, thus the operating system that formation one is complete.In general, many kernel operating system coexist multiple operation system example, wherein, first the operation system example started is main (Primary) operation system example, one or more operation system examples of follow-up startup are called from (Secondary) operation system example, and user can create via Primary operation system example and manage Secondary operation system example.For meeting consumers' demand, needing the resource requirement provided according to user, creating the operation system example conformed to resource requirement.But the resource requirement provided according to user concrete in prior art, dynamic establishment has the method for the operation system example of exclusive resource.
Therefore, how to propose a kind of resource requirement provided according to user, dynamic establishment has the method for the operation system example of exclusive resource, and real is industry problem demanding prompt solution.
Summary of the invention
The embodiment of the present invention provides a kind of operation system example creation method and device, realizes the resource requirement provided according to user, and dynamic establishment has the operation system example of exclusive resource, thus improves system extension performance, and meets the demand of user.
First aspect, the embodiment of the present invention provides a kind of operation system example creation method, comprising:
Master operating system example receives the request to create of instruction establishment from operation system example, and described request to create carries the described resource requirement information from operation system example;
Described master operating system example is according to described resource requirement information, and distribute exclusive system resource for described from operation system example, described system resource at least comprises: processor resource, physical memory partitioned resources;
Described master operating system example, according to described resource requirement information, generates the described resource description information from operation system example;
System resource described in the initialization of described master operating system example, obtains initializing system resources;
Described master operating system example starts described from operation system example on described initializing system resources.
In the first possible implementation in first, after described master operating system example receives the request to create that instruction creates from operation system example, according to described resource requirement information, before the described system resource exclusive from operation system example distribution, comprising:
Described master operating system example, according to described resource requirement information, judges whether there is the described system resource meeting described resource requirement information in resource pool.
In conjunction with the first possible implementation of first aspect or first aspect, in the implementation that the second in first is possible, described resource description information, comprising:
Compatible resource description information, the resource description information of described compatibility is the resource description information not meeting bootup process standard multiboot; Or,
The resource description information of standard, the resource description information of described standard is the resource description information meeting bootup process standard multiboot.
In conjunction with the implementation that the first or the second of first aspect, first aspect are possible, in the third possible implementation in first, described master operating system example, according to described resource requirement information, generates the described resource description information from operating system, comprising:
Described master operating system example is according to described resource requirement information, the first resource descriptor of the quantity information describing described system resource is generated at client layer, and at kernel spacing, according to described quantity information, generate the described resource description information complete from operation system example, from operation system example, described resource description information is loaded with the physical memory partitioned resources described system resource described in making; Or,
Described master operating system example, at kernel spacing, generates the described resource description information from operation system example, loads with the physical memory partitioned resources described system resource described in making from operation system example by described resource description information; Or,
Described master operating system example, generates the described resource description information from operation system example, loads on as described from the physical memory subregion the described system resource that operation system example distributes.
In the 4th kind of possible implementation in first, described master operating system example according to described resource requirement information, after generating the described resource description information from operation system example, system resource described in initialization, before obtaining initializing system resources, comprising:
Described Primary operation system example carries out virtual address to described physical memory partitioned resources and remaps.
Second aspect, the embodiment of the present invention provides a kind of operation system example creation apparatus, comprising:
Receiver module, for receiving the request to create of instruction establishment from operation system example, described request to create carries the described resource requirement information from operating system;
Distribution module, for according to described resource requirement information, be describedly distribute exclusive system resource from operation system example, described system resource at least comprises: processor resource, physical memory partitioned resources;
Generation module, for according to described resource requirement information, generates the described resource description information from operation system example;
Initialization module, for system resource described in initialization, obtains initializing system resources;
Start module, described from operation system example for starting on described initializing system resources.
In the first possible implementation in second, described device also comprises:
Judge module, for according to described resource requirement information, judges whether there is the described system resource meeting described resource requirement information in resource pool.
In conjunction with the first possible implementation of second aspect or second aspect, in the implementation that the second in second is possible, described resource description information, comprising:
Compatible resource description information, the resource description information of described compatibility is the resource description information not meeting bootup process standard multiboot; Or,
The resource description information of standard, the resource description information of described standard is the resource description information meeting bootup process standard multiboot.
In conjunction with second aspect, the implementation that the first or the second of second aspect are possible, in the third possible implementation in second, described generation module, for according to described resource requirement information, the first resource descriptor of the quantity information describing described system resource is generated at client layer, and at kernel spacing, according to described quantity information, generate the described resource description information complete from operation system example, from operation system example, described resource description information is loaded with the physical memory partitioned resources described system resource described in making, or,
At kernel spacing, generate the described resource description information from operation system example, from operation system example, described resource description information is loaded with the physical memory partitioned resources described system resource described in making; Or,
Generate the described resource description information from operation system example, load on as described from the physical memory subregion the described system resource that operation system example distributes.
In the 4th kind of possible implementation in second, described device also comprises:
Remapping module, remapping for carrying out virtual address to described physical memory partitioned resources.
The operation system example creation method that the embodiment of the present invention provides and device, Primary operating system is according to resource requirement information, for Secondary operation system example distributes exclusive system resource, after generating the resource description information of Secondary operation system example, initialization also starts Secondary operation system example, thus the resource requirement that realization provides according to user, dynamic establishment has the operation system example of exclusive resource, reach and improve system extension performance, and meet the object of the demand of user.
Accompanying drawing explanation
In order to be illustrated more clearly in the embodiment of the present invention or technical scheme of the prior art, be briefly described to the accompanying drawing used required in embodiment or description of the prior art below, apparently, accompanying drawing in the following describes is some embodiments of the present invention, for those of ordinary skill in the art, under the prerequisite not paying creative work, other accompanying drawing can also be obtained according to these accompanying drawings.
Fig. 1 is the process flow diagram of operation system example creation method embodiment one of the present invention;
The start-up parameter data structure schematic diagram that Fig. 2 is suitable for by operation system example creation method of the present invention;
Fig. 3 is the structural representation of operation system example creation apparatus embodiment one of the present invention;
Fig. 4 is the structural representation of operation system example creation apparatus embodiment two of the present invention;
Fig. 5 is the structural representation of operation system example creation apparatus embodiment three of the present invention.
Embodiment
For making the object of the embodiment of the present invention, technical scheme and advantage clearly, below in conjunction with the accompanying drawing in the embodiment of the present invention, technical scheme in the embodiment of the present invention is clearly and completely described, obviously, described embodiment is the present invention's part embodiment, instead of whole embodiments.Based on the embodiment in the present invention, those of ordinary skill in the art, not making the every other embodiment obtained under creative work prerequisite, belong to the scope of protection of the invention.
Fig. 1 is the process flow diagram of operation system example creation method embodiment one of the present invention.The present embodiment is applicable to have main (Primary) operation system example and at least one many kernel operating system from (Secondary) operation system example, is applied to the scene needing dynamic creation to have the Secondary operation system example of autonomous system resource.Concrete, the present embodiment comprises the steps:
101, master operating system example receives the request to create of instruction establishment from operation system example, and request to create carries the resource requirement information from operating system.
In many kernel operating system, Primary operation system example also can be referred to as heavyweight operating system (Heavy OS), it is the general-purpose operating system with functions such as Resourse Distribute, recovery, virtual and coordinations, also be the operation system example that first starts on hardware, be responsible for the management of system resource, such as, the resources such as cpu resource, physical memory partitioned resources, physical equipment or the virtual unit in multiprocessor operations system are controlled.Secondary operation system example also can be referred to as lightweight operating system (Light OS), be the resource that manages based on Heavy OS and create the operating system of customization, the resource of self can only be managed, apply for resource from Heavy OS, or return to Heavy OS after resource being discharged.In this step, when certain application service initiated by needs, user proposes to create the request to create starting Secondary operation system example in the environment or interface of Primary operation system example, resource requirement information needed for this application service is provided simultaneously, such as, the number of the CPU of demand, the size etc. of physical memory subregion.
102, master operating system example is according to resource requirement information, and for distributing exclusive system resource from operation system example, system resource at least comprises: processor resource, physical memory partitioned resources.
After receiving the resource requirement information needed for the generation of Secondary operation system example, Primary operating system from resource pool for Secondary operation system example distributes exclusive system resource, such as, exclusive CPU, the device resources such as exclusive physical memory subregion, exclusive virtual unit or physical equipment.
103, master operating system example is according to resource requirement information, generates the resource description information from operating system.
Primary operating system is according to the resource requirement information in the Secondary operation system example request to create received, for generating the resource description information of specific data structure from operation system example, such as, under Huawei is subsidized, many kernel operating system that the Chinese Academy of Sciences develops: Rainforest operating system, generate the resource description information of start-up parameter data structure Kernbootparams.
Optionally, Primary operating system can adopt following several mode to be that Secondary operation system example generates resource description information:
Mode one, master operating system example are according to resource requirement information, the first resource descriptor of the quantity information of descriptive system resource is generated at client layer, and at kernel spacing, according to quantity information, generate from the complete resource description information of operating system, to make from operation system example, resource description information to be loaded with the physical memory subregion system resource.
Concrete, master operating system can first according to resource requirement information, the first resource descriptor of the quantity information of descriptive system resource is constructed at client layer, by the relevant information of required system resource, as the number of CPU, the number of Core, the size of physical memory subregion, the information etc. of the system map file corresponding with application service are filled in the first resource descriptor being formed in resource description information and describe quantity information.Then, by function call etc., the first resource descriptor that client layer generates is transferred to kernel spacing, continue to fill first resource descriptor at kernel spacing, such as, the information of the concrete CPU corresponding with required CPU number, the information of the concrete physical memory subregion corresponding with the size of required physical memory subregion add in first resource descriptor, thus generate finally complete resource description information, then make from operation system example, resource description information to be loaded with the physical memory subregion system resource.
Mode two, master operating system example, at kernel spacing, generate the resource description information from operation system example, to make to load resource description information with the physical memory subregion system resource from operation system example.Concrete, Primary operating system, at kernel spacing, directly according to resource requirement information, generates the resource description information that Secondary operation system example is complete.
Mode three, build resource description information from operation system example, directly loading on the physical memory subregion into distributing from operation system example, reading from memory headroom by from operating system.
104, master operating system example initializing system resources, obtains initializing system resources;
In this step, Primary operation system example initializing system resources, and the related resource preparing that Secondary operation system example starts, as x86 framework CPU to be transformed into springboard (Trampoline) code etc. of protected mode from real pattern.
It should be noted that, above-mentioned 103 and 104 do not have strict sequencing, and in namely actual implementation process, first can generate resource description information, reinitialize system resource; Or, also can first initializing system resources, regeneration resource description information.
105, master operating system example starts from operation system example on initializing system resources.
After system resource initialization, Primary operation system example runs Secondary operating system nucleus code etc. on initializing system resources, thus creates startup Secondary operation system example.
The operation system example creation method that the embodiment of the present invention provides, Primary operating system is according to resource requirement information, for Secondary operation system example distributes exclusive system resource, after generating the resource description information of Secondary operation system example, initialization also starts Secondary operation system example, thus the resource requirement that realization provides according to user, dynamic establishment has the operation system example of exclusive resource, reach and improve system extension performance, and meet the object of the demand of user.
Further, in above-described embodiment one, master operating system example receives instruction and creates from after the request to create of operation system example, according to resource requirement information, before distributing exclusive system resource, according to resource requirement information, can judge in resource pool, whether to there is the system resource meeting resource requirement information.
Concrete, Primary operation system example can according to resource requirement information, judge whether resource idle in resource pool exists the resource meeting resource requirement information, such as, can according to CPU distribution state bitmap (MP Table), judge current idle can CPU or Core, or, discharge by other means, as hot plug (Hotplug) mode discharges the CPU in other Secondary operation system examples, the CPU of recovery is distributed to current Secondary operation system example to be created.
Further, in above-described embodiment one, from the angle of bootup process standard (multiboot), comprise compatible resource description information and the resource description information of standard from the resource description information of operation system example, the resource description information meeting multiboot is referred to as the resource description information of standard; Otherwise the resource description information not meeting multiboot is referred to as compatible resource description information.
In general, many kernel operating system can have many forms, such as, under Huawei subsidizes, the open source code virtual machine monitor (XEN) of the virtual technology of increasing income that the Rainforest operating system that the Chinese Academy of Sciences develops, Cambridge University safeguard, there is on XEN virtual machine access suggestion access authorization for resource, and the operating system (Demain0) of other word operation systems can be managed.Below, for Rainforest operating system, the present invention will be described in detail.
Concrete, a system be made up of (can also for a multiple) Primary operational instances and multiple Secondary operation system example in Rainforest system, Primary operation system example is responsible for the management etc. of life cycle of the integration of system resource, configuration, Secondary operation system example, and Secondary operation system example runs on the physical memory subregion of isolation.Wherein, following governing principle is had: first when carrying out subregion to system resource, the classification of equipment that (PCI-E, internal bus) is mutually isolated with physically, secondly, system resource can divide with the separate functional unit of physical equipment when cannot satisfy the demands, finally, just can consider to carry out virtual to single one physical equipment, upwards construct multiple virtual unit by time-multiplexed physical equipment.The Primary operation system example of Rainforest system comprises: operating system client layer value-added tax function (Osloader) module, CPU control (CPU Controller) module and springboard (Trampoline) module, the Secondary operation system example request to create that Primary operation system example sends with Osloader functional module response user, Secondary operation system example is created via CPU Controller module drive, and complete patten transformation by Trampoline module, roughly comprise the steps:
S1, Primary operation system example receives the request to create creating and start Secondary operation system example.
Osloader module responds request to create in S2, Primary operation system example, in client layer structure first resource descriptor, and calls the CPU Controller module of kernel spacing.
In this step, such as start the part start-up parameter of Secondary operation system example in the first resource descriptor of client layer structure.Concrete, Osloader module completes following sub-step:
S21, resource requirement information according to the characteristic of application service, prepare in client layer structure first resource descriptor.
Concrete, resource requirement information is such as the number of CPU/core, the size of physical memory subregion and the system map file etc. that starts needed for Secondary operating system to be created.
The legitimacy of corresponding resource in S22, checking resource requirement information, and carry out a series of initialization.
Such as, for CPU, if the CPU number of resource description information instruction is 6 in S21, then whether there are 6 idle CPU in Osloader module verification system resource pond, or, whether can 6 CPU of hot plug (hotplug) other Secondary operation system examples, to distribute to this Secondary system example to be created.For system map file, the legitimacy of Osloader module verification system map file.
If S23 is legal, then generate first resource descriptor according to resource requirement information at client layer.
If step S22 verifies all legal of corresponding resource in resource requirement information, then generate first resource descriptor at client layer, this first resource descriptor is used for the quantity information etc. of descriptive system resource, be such as start-up parameter data structure (kernboootparams), comprising the relevant information etc. of the number of CPU/Core, physical memory partitioned resources size, system map file.Concrete, the start-up parameter data structure schematic diagram that Fig. 2 is suitable for by operation system example creation method of the present invention.
S24, Osloader module calls CPU Controller module, distributes related resource, prepares afterwards to build full resource descriptor at kernel spacing.
To first resource descriptor, namely after start-up parameter partial data structure is filled, Osloader module calls CPU Controller module, the first resource descriptor of structure is imported into kernel spacing by call function (ioctl), and monitor the member variable ret whether the instruction Secondary operation system example in this parameter successfully create, to determine the success or not that Secondary operation system example creates.
S3, CPU Controller module is according to the first resource descriptor generated at client layer, distribute relevant system resource, the full resource descriptor of Secondary operation system example is built at kernel spacing, this process comprises the distribution of concrete CPU/core, the distribution of physical memory subregion, page table maps, a series of Secondary operation system examples such as CPU distribution state bitmap (MP Table) start required resource preliminary work, finally send Advanced Programmable Interrupt Controllers APICs (Inter-Processor InterruptController, IPI), sequence starting Secondary operation system example.Concrete, CPU Controller module completes following sub-step:
S31, CPU Controller module receives the first resource descriptor generated at client layer that Osloader module sends.
After receiving the first resource descriptor that Osloader module imports into, CPU Controller module is according to CPU distribution state bitmap (MP Table, CPU_Possible, CPU_online_map), discharge from the CPU/core of current idle or by other means the CPU/core resource of the first resource descriptor instruction of (as CPU_hotplug), distribute to Secondary operation system example, simultaneously by alloc_pages() function is that this Secondary operation system example distributes the instruction of first resource descriptor, continuous print physical memory subregion.
The resource description information of S32, CPU Controller CMOS macro cell Secondary operation system example.
CPU Controller module is distributed in resource requirement in S31, for the physical memory subregion that Secondary operation system example distributes building the MP_Table meeting PC standard, ACPI_Table descriptor, be described as the concrete relevant information of CPU/core and Global Descriptor Table (the Global Descriptor Table of system of the distribution of Secondary operation system example, GDT), interrupt-descriptor table (InterruptDescriptor Table, the information such as IDT), build E820map data structure simultaneously, in Secondary operation system example start-up course, memory mapping is obtained by detect_memory_e820 (), fill boot_params.e820map, thus set up the Governance framework basis of Secondary operation system example physical memory subregion.Wherein, ACPI_Table can be used for the information of the exclusive device resource be described as in the system resource of Secondary operation system example distribution, and this exclusive equipment resource information can be recharge in ACPI_Table choose available information parameter from the facility information of Primary operation system example after.
S33, Primary operation system example carries out virtual address to managed memory partitioning resource and remaps.
The CPU Controller module of Primary operation system example is that the physical memory subregion distributed in step S31 obtains section start (memstart) information, that carries out virtual address remaps page_to_phys(), make Secondary operation system example have independently address space.
System map file is imported into the physical memory subregion of Secondary operation system example by S34, CPU Controller module.
CPU Controller module copies the system map file that imports into the physical memory space of specifying, and start-up parameter Kernbootparams data structure is improved in filling, as obtained section start (memstart) information, system map file etc. in step S33, complete the work of resource description information structure, after getting out all necessary resources, Secondary operation system example waits for IPI signal.
S35, CPU Controller module imports resource description information into Trampoline module.
Constructing resource description information, namely after whole start-up parameter Kernbootparams data structure being filled, the function code (trampoline_data_multi-kernel) of patten transformation is set to assigned address by CPU Controller module, and imports whole start-up parameter Kernbootparams data structure to Trampoline module into.
S36, CPU Controller module sends IPI look-at-me to Secondary operation system example.
Concrete, CPU Controller module converts start-up parameter member variable bspindex is advanced configuration and power-management interface (Advanced Configuration and Power Interface, apicid), i.e. int apicid=apic->CPU_present_toapicid (bp->bspindex), send IPI look-at-me by apic mechanism, allow Secondary operation system example perform corresponding interrupt handling routine.
S4, Trampoline module carries out initialization to the system resource that Secondary operation system example distributes, and starts Secondary operation system example.
In this step, Trampoline module is after Secondary operation system example distributes system resource at Primary operation system example, the system resources such as initialization processor resource, memory partitioning resource, as initialization CPU waits for remapping of IPI signal, the value adjusting page table region in trampoline, virtual address.Concrete; the CPU/core of Secondary operation system example is under Trampoline module is supported after initialization; wait for IPI signal; after receiving IPI look-at-me; perform corresponding processing program; then, by trampoline redirect, make the CPU/core of Secondary operation system example complete the conversion of real pattern to protected mode.Trampoline module copies the kernel spacing of constructing variable to Secondary operating system of trampoline function code by head.S, parameter needed for starting as Secondary operation system example, then system map file loading place of Secondary operation system example is jumped to, after loading system image file, right of execution is given the kernel of Secondary operation system example, complete a series of initialization task, build whole system and run kernel environment, from start_kernel to CPU_idle.In this start-up course, for (SuSE) Linux OS, Secondary operating system from low address space, as the information of BIOS region of memory fetch equipment resource, can start and initialization apparatus with this in start-up course.For the equipment of non-immediate access, Primary operation system example and Secondary operation system example is had to consult the structure of " virtual unit ".
Finally, when Secondary operation system example starts successfully, the member variable ret being used in osloader monitoring is put 1 by Primary operation system example, identifies this Secondary operation system example and successfully creates.
Fig. 3 is the structural representation of operation system example creation apparatus embodiment one of the present invention.The operation system example creation apparatus that the present embodiment provides can be arranged on the Primary operation system example of multiprocessor operations system, also can be Primary operation system example itself, be the device embodiment corresponding with Fig. 1 embodiment of the present invention, specific implementation process does not repeat them here.Concrete, the operation system example creation apparatus 100 that the present embodiment provides specifically comprises:
Receiver module 11, for receiving the request to create of instruction establishment from operation system example, request to create carries the resource requirement information from operating system;
Distribution module 12, for according to resource requirement information, be distribute exclusive system resource from operation system example, system resource at least comprises: processor resource, physical memory partitioned resources;
Generation module 13, for according to resource requirement information, generates the resource description information from operation system example;
Initialization module 14, for initializing system resources, obtains initializing system resources;
Start module 15, for starting from operation system example on initializing system resources.
The operation system example creation apparatus that the embodiment of the present invention provides, according to resource requirement information, for Secondary operation system example distributes exclusive system resource, after generating the resource description information of Secondary operation system example, initialization also starts Secondary operation system example, thus the resource requirement that realization provides according to user, dynamic establishment has the operation system example of exclusive resource, reach and improve system extension performance, and meet the object of the demand of user.
Fig. 4 is the structural representation of operation system example creation apparatus embodiment two of the present invention.As shown in Figure 4, the operation system example creation apparatus 200 that the present embodiment provides, on the basis of Fig. 3, also comprises:
Judge module 16, for according to resource requirement information, judges whether there is the system resource meeting resource requirement information in resource pool.
Further, resource description information, comprising:
Compatible resource description information, compatible resource description information is the resource description information not meeting bootup process standard multiboot; Or,
The resource description information of standard, the resource description information of standard is the resource description information meeting bootup process standard multiboot.
Further, generation module 13, for according to resource requirement information, the first resource descriptor of the quantity information of descriptive system resource is generated at client layer, and at kernel spacing, according to quantity information, generate from the complete resource description information of operation system example, to make from operation system example, resource description information to be loaded with the physical memory partitioned resources system resource; Or,
At kernel spacing, generate the resource description information from operation system example, to make to load with the physical memory partitioned resources system resource from operation system example by resource description information; Or,
Generating the resource description information from operation system example, loading in the physical memory subregion in the system resource into distributing from operation system example.
Please refer to Fig. 4 again, operation system example creation apparatus comprises:
Remapping module 17, remapping for carrying out virtual address to physical memory partitioned resources.
Fig. 5 is the structural representation of operation system example creation apparatus embodiment three of the present invention.As shown in Figure 5, the operation system example creation apparatus 300 that the present embodiment provides comprises processor 31 and storer 32.Operation system example creation apparatus 300 can also comprise transmitter 33, receiver 34.Transmitter 33 can be connected with processor 31 with receiver 34.Wherein, transmitter 33 is for sending data or information, receiver 34 is for receiving data or information, storer 32 stores and performs instruction, when operation system example creation apparatus 300 runs, communicate between processor 31 with storer 32, processor 31 calls the execution instruction in storer 32, for performing following operation:
Receive the request to create of instruction establishment from operation system example, request to create carries the resource requirement information from operating system;
According to resource requirement information, for distributing exclusive system resource from operation system example, system resource at least comprises: processor resource, physical memory partitioned resources;
According to resource requirement information, generate the resource description information from operation system example;
Initializing system resources, obtains initializing system resources;
Initializing system resources starts from operation system example.
Further, receive instruction and create from after the request to create of operation system example, according to resource requirement information, before distributing exclusive system resource from operation system example, comprising:
According to resource requirement information, judge in resource pool, whether to there is the system resource meeting resource requirement information.
Further, resource description information, comprising:
Compatible resource description information, compatible resource description information is the resource description information not meeting bootup process standard multiboot; Or,
The resource description information of standard, the resource description information of standard is the resource description information meeting bootup process standard multiboot.
Further, according to resource requirement information, generate the resource description information from operating system, comprising:
According to resource requirement information, the first resource descriptor of the quantity information of descriptive system resource is generated at client layer, and at kernel spacing, according to quantity information, generate from the complete resource description information of operation system example, to make from operation system example, resource description information to be loaded with the physical memory partitioned resources system resource; Or,
At kernel spacing, generate the resource description information from operation system example, to make to load with the physical memory partitioned resources system resource from operation system example by resource description information; Or,
Generating the resource description information from operation system example, loading in the physical memory subregion in the system resource into distributing from operation system example.
Further, according to resource requirement information, after generating the resource description information from operation system example, initializing system resources, before obtaining initializing system resources, comprising:
Carry out virtual address to physical memory partitioned resources to remap.
One of ordinary skill in the art will appreciate that: all or part of step realizing above-mentioned each embodiment of the method can have been come by the hardware that programmed instruction is relevant.Aforesaid program can be stored in a computer read/write memory medium.This program, when performing, performs the step comprising above-mentioned each embodiment of the method; And aforesaid storage medium comprises: ROM, RAM, magnetic disc or CD etc. various can be program code stored medium.
Last it is noted that above each embodiment is only in order to illustrate technical scheme of the present invention, be not intended to limit; Although with reference to foregoing embodiments to invention has been detailed description, those of ordinary skill in the art is to be understood that: it still can be modified to the technical scheme described in foregoing embodiments, or carries out equivalent replacement to wherein some or all of technical characteristic; And these amendments or replacement, do not make the essence of appropriate technical solution depart from the scope of various embodiments of the present invention technical scheme.

Claims (10)

1. an operation system example creation method, is characterized in that, comprising:
Master operating system example receives the request to create of instruction establishment from operation system example, and described request to create carries the described resource requirement information from operation system example;
Described master operating system example is according to described resource requirement information, and distribute exclusive system resource for described from operation system example, described system resource at least comprises: processor resource, physical memory partitioned resources;
Described master operating system example, according to described resource requirement information, generates the described resource description information from operation system example;
System resource described in the initialization of described master operating system example, obtains initializing system resources;
Described master operating system example starts described from operation system example on described initializing system resources.
2. method according to claim 1, it is characterized in that, after described master operating system example receives the request to create that instruction creates from operation system example, according to described resource requirement information, before the described system resource exclusive from operation system example distribution, comprising:
Described master operating system example, according to described resource requirement information, judges whether there is the described system resource meeting described resource requirement information in resource pool.
3. method according to claim 1 and 2, is characterized in that, described resource description information, comprising:
Compatible resource description information, the resource description information of described compatibility is the resource description information not meeting bootup process standard multiboot; Or,
The resource description information of standard, the resource description information of described standard is the resource description information meeting bootup process standard multiboot.
4. the method according to any one of claims 1 to 3, is characterized in that, described master operating system example, according to described resource requirement information, generates the described resource description information from operation system example, comprising:
Described master operating system example is according to described resource requirement information, the first resource descriptor of the quantity information describing described system resource is generated at client layer, and at kernel spacing, according to described quantity information, generate the described resource description information complete from operation system example, from operation system example, described resource description information is loaded with the physical memory partitioned resources described system resource described in making; Or,
Described master operating system example, at kernel spacing, generates the described resource description information from operation system example, loads with the physical memory partitioned resources described system resource described in making from operation system example by described resource description information; Or,
Described master operating system example, generates the described resource description information from operation system example, loads on as described from the physical memory subregion the described system resource that operation system example distributes.
5. method according to claim 1, is characterized in that, described master operating system example is according to described resource requirement information, after generating the described resource description information from operation system example, system resource described in initialization, before obtaining initializing system resources, comprising:
Described master operating system example carries out virtual address to described physical memory partitioned resources and remaps.
6. an operation system example creation apparatus, is characterized in that, comprising:
Receiver module, for receiving the request to create of instruction establishment from operation system example, described request to create carries the described resource requirement information from operating system;
Distribution module, for according to described resource requirement information, be describedly distribute exclusive system resource from operation system example, described system resource at least comprises: processor resource, physical memory partitioned resources;
Generation module, for according to described resource requirement information, generates the described resource description information from operation system example;
Initialization module, for system resource described in initialization, obtains initializing system resources;
Start module, described from operation system example for starting on described initializing system resources.
7. device according to claim 6, is characterized in that, described device also comprises:
Judge module, for according to described resource requirement information, judges whether there is the described system resource meeting described resource requirement information in resource pool.
8. the device according to claim 6 or 7, is characterized in that, described resource description information, comprising:
Compatible resource description information, the resource description information of described compatibility is the resource description information not meeting bootup process standard multiboot; Or,
The resource description information of standard, the resource description information of described standard is the resource description information meeting bootup process standard multiboot.
9. the device according to any one of claim 6 ~ 8, it is characterized in that, described generation module, for according to described resource requirement information, the first resource descriptor of the quantity information describing described system resource is generated at client layer, and at kernel spacing, according to described quantity information, generate the described resource description information complete from operation system example, from operation system example, described resource description information is loaded with the physical memory partitioned resources described system resource described in making; Or,
At kernel spacing, generate the described resource description information from operation system example, from operation system example, described resource description information is loaded with the physical memory partitioned resources described system resource described in making; Or,
Generate the described resource description information from operation system example, load on as described from the physical memory subregion the described system resource that operation system example distributes.
10. device according to claim 6, is characterized in that, described device also comprises:
Remapping module, remapping for carrying out virtual address to described physical memory partitioned resources.
CN201310695516.8A 2013-12-17 2013-12-17 Operation system example creation method and device Expired - Fee Related CN104714821B (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201310695516.8A CN104714821B (en) 2013-12-17 2013-12-17 Operation system example creation method and device
PCT/CN2014/094039 WO2015090195A1 (en) 2013-12-17 2014-12-17 Method and device for creating example of operating system

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201310695516.8A CN104714821B (en) 2013-12-17 2013-12-17 Operation system example creation method and device

Publications (2)

Publication Number Publication Date
CN104714821A true CN104714821A (en) 2015-06-17
CN104714821B CN104714821B (en) 2018-07-31

Family

ID=53402109

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201310695516.8A Expired - Fee Related CN104714821B (en) 2013-12-17 2013-12-17 Operation system example creation method and device

Country Status (2)

Country Link
CN (1) CN104714821B (en)
WO (1) WO2015090195A1 (en)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106796536A (en) * 2016-12-27 2017-05-31 深圳前海达闼云端智能科技有限公司 Memory pool access method, device and electronic equipment for multiple operating system
CN108885565A (en) * 2016-03-15 2018-11-23 微软技术许可有限责任公司 The operating system of game mode is supported

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109542610B (en) * 2018-12-04 2023-06-30 中国航空工业集团公司西安航空计算技术研究所 Method for realizing virtual interrupt standard component of multi-partition operating system

Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050120160A1 (en) * 2003-08-20 2005-06-02 Jerry Plouffe System and method for managing virtual servers
CN101000566A (en) * 2006-01-12 2007-07-18 三星电子株式会社 Operating system switching device and operating system switching method
CN101178666A (en) * 2007-12-13 2008-05-14 中兴通讯股份有限公司 Coordinating and scheduling method between heterogeneous multi-core
CN101246431A (en) * 2008-03-10 2008-08-20 中兴通讯股份有限公司 Management method for loading multi-core different operating system images
CN101373441A (en) * 2008-09-19 2009-02-25 苏州壹世通科技有限公司 Virtual platform system based on firmware
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system
CN101449240A (en) * 2006-05-15 2009-06-03 微软公司 Launching hypervisor under running operating system
US20090260008A1 (en) * 2008-04-14 2009-10-15 Seung-Mo Cho Virtual machine management system and method for managing processor resources thereof
US20120254862A1 (en) * 2011-03-29 2012-10-04 Yaozu Dong Efficent migration of virtual functions to enable high availability and resource rebalance
CN103257929A (en) * 2013-04-18 2013-08-21 中国科学院计算技术研究所 Virtual machine memory mapping method and system

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US8336046B2 (en) * 2006-12-29 2012-12-18 Intel Corporation Dynamic VM cloning on request from application based on mapping of virtual hardware configuration to the identified physical hardware resources
CN103002044B (en) * 2012-12-18 2016-05-11 武汉大学 A kind of method that improves multi-platform intelligent terminal disposal ability

Patent Citations (10)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20050120160A1 (en) * 2003-08-20 2005-06-02 Jerry Plouffe System and method for managing virtual servers
CN101000566A (en) * 2006-01-12 2007-07-18 三星电子株式会社 Operating system switching device and operating system switching method
CN101449240A (en) * 2006-05-15 2009-06-03 微软公司 Launching hypervisor under running operating system
CN101419561A (en) * 2007-10-26 2009-04-29 中兴通讯股份有限公司 Resource management method and system in isomerization multicore system
CN101178666A (en) * 2007-12-13 2008-05-14 中兴通讯股份有限公司 Coordinating and scheduling method between heterogeneous multi-core
CN101246431A (en) * 2008-03-10 2008-08-20 中兴通讯股份有限公司 Management method for loading multi-core different operating system images
US20090260008A1 (en) * 2008-04-14 2009-10-15 Seung-Mo Cho Virtual machine management system and method for managing processor resources thereof
CN101373441A (en) * 2008-09-19 2009-02-25 苏州壹世通科技有限公司 Virtual platform system based on firmware
US20120254862A1 (en) * 2011-03-29 2012-10-04 Yaozu Dong Efficent migration of virtual functions to enable high availability and resource rebalance
CN103257929A (en) * 2013-04-18 2013-08-21 中国科学院计算技术研究所 Virtual machine memory mapping method and system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN108885565A (en) * 2016-03-15 2018-11-23 微软技术许可有限责任公司 The operating system of game mode is supported
CN108885565B (en) * 2016-03-15 2021-10-08 微软技术许可有限责任公司 Operating system support for gaming modes
CN106796536A (en) * 2016-12-27 2017-05-31 深圳前海达闼云端智能科技有限公司 Memory pool access method, device and electronic equipment for multiple operating system

Also Published As

Publication number Publication date
WO2015090195A1 (en) 2015-06-25
CN104714821B (en) 2018-07-31

Similar Documents

Publication Publication Date Title
RU2639693C1 (en) Method for resource processing, operating system and device
US9811369B2 (en) Method and system for physical computer system virtualization
US8381002B2 (en) Transparently increasing power savings in a power management environment
CN107783818A (en) Deep learning task processing method, device, equipment and storage medium
US10223161B2 (en) Hardware-based inter-device resource sharing
US20170293451A1 (en) Dynamic partitioning of processing hardware
CN104951694A (en) Isolation method and apparatus for management virtual machine
CN103885833A (en) Method and system for managing resources
CN105573830A (en) Virtual machine migration method
CN111176790A (en) Active maintenance method and device of cloud platform physical host and readable storage medium
CN104714821A (en) Operating system instance establishing method and device
CN115617364A (en) GPU virtualization deployment method, system, computer equipment and storage medium
CN114625484A (en) Virtualization implementation method, device, electronic equipment, medium and ARM platform
CN104714843B (en) More kernel operating system instances support the method and device of multiprocessor
CN103699444A (en) CPU (central processing unit) hot plug implementing method and device
JP6859463B2 (en) Methods, devices, devices and media for launching virtual machines
CN102968319A (en) VxWorks image loading method
CN112162822A (en) Mirror image construction method, device, equipment and readable storage medium
EP4172828B1 (en) Static configuration of accelerator card security modes
US20240004688A1 (en) Control system and control method
CN103853599A (en) Extension method of node calculating ability
CN114461380A (en) Virtual hardware configuration allocation method of cloud desktop system
CN112231048A (en) GPU resource using method and system based on X86 server platform
CN109271179B (en) Virtual machine application program management method, device, equipment and readable storage medium
CN106775943A (en) Based on Ubuntu system creations KVM virtual machine methods on OpenPower frameworks

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant
CF01 Termination of patent right due to non-payment of annual fee
CF01 Termination of patent right due to non-payment of annual fee

Granted publication date: 20180731

Termination date: 20201217