Memory allocation for guest operating systems
By storing and sharing the license information in the host operating system and in the random memory location of the virtual machine or container, the problem of the virtual machine or container being unable to access the license information is solved, achieving a seamless experience of applications, preventing software piracy, and reducing maintenance. cost.
Patent Information
- Application Number
- CN201980036022.4
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Priority Date
- 2018-05-31
- Filing Date
- 2019-05-16
- Publication Date
- 2024-10-15
- Estimated Expiration
- 2039-05-16
AI Technical Summary
When an application is launched in a virtual machine or container, due to the isolation between the host and guest operating systems, the virtual machine or container cannot access the same licensing information, resulting in operational difficulties and possible software piracy risks.
Ensuring that licensing information is shared and stored securely, preventing unauthorized copying and access, is achieved by storing licensing information in the host operating system and generating and storing licensing blobs in the random memory location of the virtual machine or container.
This enables a seamless user experience for applications while reducing or even preventing the risk of software piracy and eliminating the need for users to have multiple license keys for each operating system.
Smart Images

Figure CN112219202B_ABST
Abstract
Description
Background Art
[0001] A container, virtual machine, or other type of "guest operating system" or "client" can provide additional functionality and flexibility to a host computer and / or a corresponding host computing operating system. Such a client typically runs on a host computer with a host operating system. In some cases, a security boundary isolates the operation of the host operating system from the operation of the client to limit access to certain resources (such as storage on the host computer). In some cases, the client operating system maintains traditional files and configurations to enable compatibility with old software applications. In some cases, when the client is not running, the client also has packaging capabilities to provide various application packaging technologies. These application packaging technologies facilitate the distribution, installation, maintenance, configuration, removal, etc. of applications. Sometimes, an entire client operating system with one or more pre-installed applications is used for packaging. In this way, using clients to run various applications and workloads can help improve isolation, improve compatibility, and reduce maintenance costs. Summary of the invention
[0002] This Summary is provided to introduce some concepts in a simplified form that are further described below in the Detailed Description. This Summary is not intended to identify key features or essential features of the claimed subject matter, nor is it intended to be used to limit the scope of the claimed subject matter.
[0003] While helpful in maintaining a security boundary, the isolation of guests can present certain operational difficulties when licensing information is needed to launch an application in a virtual machine or container. In many computing systems, licensing operations are run independently in each host or guest operating system. For example, the host operating system can determine whether to allow an application to be launched based on licensing information (e.g., a product key) or corresponding data of other trust attributes accessible to the host operating system. However, when launching an application within a guest, the virtual machine or container may not be able to access the same licensing information due to the isolation between the host and guest operating systems.
[0004] In order to provide a seamless user experience for applications, some computing systems may provide for sharing of licensing information between the host operating system and the client. In this way, a user can launch an application in multiple client virtual machines on a single host using only one product key in the host operating system. However, by design, virtual machines and containers generally have built-in flexibility. For example, virtual machines or containers can be created, started, paused, resumed, and stopped. Therefore, a virtual machine or container running an application can be paused, and the corresponding memory content can be copied from one host to another using "snapshots", "clones" or other techniques. The copied memory content can then be used to restore or restart the application on other hosts, even if the other hosts may not have a valid license to launch the application. The ability and convenience of client operating systems to package applications has also improved. For example, some container operating systems have reduced startup time, reduced disk footprint, and simplified deployment compared to previous implementations. These recent developments make the aforementioned pause and resume operations easier and less costly. In addition, in some implementations, untrusted code runs in a container, and if the untrusted code breaks the protection in the container, the licensing information can be "stealed". Therefore, the built-in flexibility of virtual machines and containers may bring software piracy risks to software developers.
[0005] Several embodiments of the disclosed technology can solve certain aspects of the above challenges by implementing the storage of data of license information in a random memory location assigned to a virtual machine or container by a host operating system. In one embodiment, the data of the license information of an application can be stored in a file system accessible only to the host operating system. When the license driver of the host operating system receives a user request to start an application in a client from a user (or a script, a computing service, another software application, or other entity of a suitable type), based on the license information stored in the host operating system, the license driver can generate a block of data or a "blob" of license information (referred to as a "license blob") . In some embodiments, the license blob can have a lifetime value (e.g., 1 day). The expiration of the lifetime value can cause the license blob to be deleted from the memory. In other embodiments, the license blob can expire at other suitable time periods. In other embodiments, the license blob can also contain data representing event-based licenses. For example, when a given file is opened, a hardware component (e.g., a wireless interface card) is disconnected, or when a user is located in a given physical location or area, a license is provided.
[0006] The license driver may also be configured to determine a random memory location within the memory range allocated to the client. In one embodiment, when a virtual machine or container is instantiated, the hypervisor and / or container engine may be configured to allocate a certain amount of virtual memory available at the host to the virtual machine or container. The virtual machine or container may then use the allocated virtual memory as the "physical memory" of the virtual machine to execute the appropriate processes of the application. In other embodiments, the hypervisor and / or container engine may allocate other suitable types of memory to the virtual machine or container.
[0007] In one embodiment, the license driver may be configured to determine one or more sub-ranges of memory locations of the virtual memory allocated to the client, which do not currently contain any data (referred to as "free virtual memory"). The license driver may then randomly select one or more memory locations from the free virtual memory to hold the license blob. The license driver may also notify the client's operating system of the random memory locations in which the license information is maintained. In other embodiments, the license driver may also be configured to determine one or more ranges of the host's underlying physical memory corresponding to the allocated virtual memory that does not currently contain any data (referred to as "free physical memory"). The license driver may then randomly select memory locations from the free physical memory to hold the license blob. Therefore, during operation, the client's operating system may query the license information at the random memory locations and launch the application upon request.
[0008] When a virtual machine or container is copied from one host to another, the aforementioned random storage of the license blob can reduce or prevent the risk of software piracy. For example, when a user pauses a first virtual machine or container on a first host and copies the corresponding memory contents to a second host to start a second virtual machine or container, the second host may not allocate exactly the same virtual memory or underlying physical memory to the second virtual machine or container. Thus, when the operating system of the second virtual machine or container attempts to query the license blob at a random memory location on the first host, the operating system of the second virtual machine will not be able to locate the license blob. Therefore, even if a user copies the memory contents of a first virtual machine or container from a first host to a second host, the license information can be protected.
[0009] In other embodiments, the license blob may be stored in a random memory location that is not within the virtual memory allocated for the virtual machine or container (or the underlying physical memory of the host). For example, the virtual memory allocated for the virtual machine or container is from "FD00 0000 to FDFF FFFF". The license driver may be configured to store the blob in a memory location outside the allocated virtual memory, such as at "FBFF FFFF". In other examples, the license driver may also be configured to store the blob in a virtual persistent memory or other suitable type of persistent memory, a removable storage medium (e.g., a USB drive), a network file server, or a virtual hard disk drive temporarily installed by the client. In this way, even when the user copies the memory contents of the first virtual machine or container from the first host to the second host, the operating system of the second virtual machine or container will not be able to access the license blob stored at a memory location "outside the boundary" of the virtual memory allocated for the first virtual machine or container.
[0010] Thus, several embodiments of the disclosed technology can provide a seamless experience for applications while reducing or even preventing the risk of software piracy. By allowing the sharing of licensing information between the host operating system and the client, the user is not required to have multiple license keys for each operating system. When sharing licensing information, the host operating system can store the license blob in a random memory location within or outside the range of the virtual memory allocated to the client (or the corresponding underlying physical memory on the host). In this way, even if the client's memory contents are copied to another host, the client operating system on the other host cannot access the license blob from the original host. BRIEF DESCRIPTION OF THE DRAWINGS
[0011] Figure 1 is a schematic diagram illustrating a host computer having a licensing driver configured to facilitate operation of multiple guest operating systems according to an embodiment of the disclosed technology.
[0012] Figure 2A-2E According to an embodiment of the disclosed technology, during the operation phase Figure 1 A schematic diagram of some of the hardware / software components of the host.
[0013] Figure 3A and Figure 3B is an embodiment of the disclosed technology, during the additional operation phase Figure 1 A schematic diagram of some of the hardware / software components of the host.
[0014] Figure 4A-4C is a flow chart illustrating certain processes for memory allocation for a guest operating system in accordance with an embodiment of the disclosed technology.
[0015] Figure 5 Is suitable for Figure 1 Certain components of a computing device in a computing device. DETAILED DESCRIPTION
[0016] Certain embodiments of systems, devices, components, modules, routines, data structures, and processes for memory allocation for a guest operating system on a host computing device are described below. In the following description, specific details of the components are included to provide a thorough understanding of certain embodiments of the disclosed technology. Those skilled in the relevant art will also understand that the technology may have additional embodiments. It may also be described without the following references. Figure 1-Figure 5 The techniques are practiced without describing several details of the embodiments.
[0017] As used herein, a "host" generally refers to a computing device configured to implement, for example, one or more virtual machines, containers, or other suitable virtualization components. For example, a host may include a server with a hypervisor that is configured to support one or more virtual machines, containers, or other suitable types of virtual components. One or more virtual machines or containers may be used to launch and execute suitable applications or computer programs to provide corresponding computing services.
[0018] As also used herein, a "host operating system" generally refers to an operating system that is deployed to interact directly with the hardware components of a computing device (e.g., a server, laptop, phone). A hypervisor (e.g., a hosted hypervisor) can run on top of the host operating system, rather than interacting directly with the hardware components of the computing device. The hypervisor can then create, manage, or otherwise support one or more virtual machines (VMs) or containers, each of which has a "guest operating system" or "guest." In some embodiments, the guest operating system can be different from the host operating system that supports the guest operating system.
[0019] As further used herein, "virtual memory" generally refers to an abstract storage resource available on a computing device. Using a combination of hardware and software, a host operating system can map memory addresses ("virtual addresses") used by a virtual machine or container to physical addresses in memory and / or storage (e.g., a hard drive) on a computing device. Virtual memory as seen by a virtual machine or container can appear as a collection of continuous address spaces or continuous segments. The host operating system can manage and facilitate the operation of the virtual address space and the corresponding allocation of underlying physical memory to virtual memory. Once allocated, the virtual machine or container can use the allocated virtual memory as if the virtual memory were physical memory suitable for executing instructions for the application.
[0020] Furthermore, as used herein, a "memory location" generally refers to a block, segment, page, or other suitable division of memory, which software and hardware in a computing device may identify by a memory address or a range of memory addresses. In some embodiments, a memory address may include a fixed-length sequence of digits (e.g., in hexadecimal) displayed and manipulated as an unsigned integer. For example, an example memory location may be at the example memory address "FBFF FFFF". In other embodiments, a memory address may include other suitable types of identifiers.
[0021] As used herein, "licensing information" or "licensing info" generally refers to digital data representing a license key or software key that allows installation, execution, or other suitable operations related to an application or computer program. In one example, the licensing information may include a software key that includes a series of alphanumeric characters. In other examples, the licensing information may include digital data of a hash value or other suitable type of data.
[0022] As described in more detail later, the licensing information can be stored on the host computing device so that it is accessible only to the host operating system. When a user requests operation (e.g., launch) of an application in a guest operating system, the host component system can be configured to share the licensing information with the guest operating system. In this way, using only one license key in the host operating system, the user can launch applications in multiple guest virtual machines on a single host.
[0023] However, by design, client operating systems (such as virtual machines and containers) typically have built-in flexibility. For example, a virtual machine or container can be created, started, paused, resumed, and stopped. Thus, a virtual machine or container can be paused, and the associated memory contents can be copied from one host to another using "snapshots," "clones," or other techniques. The copied virtual machine or container can then be restored on another host even though the other host may not have a valid license to launch the application. Therefore, the built-in flexibility of the client operating system can present software developers with a risk of software piracy. In accordance with an embodiment of the disclosed technology, the host operating system can be configured to reduce or even prevent the unauthorized export or copying of shared license information by storing the shared license information in a random memory location in the client operating system, as described below with reference to Figure 1-Figure 5 As described in more detail.
[0024] Figure 11 is a schematic diagram illustrating a host computer 100 having a license driver configured to facilitate the operation of multiple guest operating systems according to an embodiment of the disclosed technology. The host computer 100 may be a server, a desktop or laptop computer, a smart phone, or other suitable type of computing device. Figure 1 Only certain components of the host 100 are shown, but in other embodiments, the host 100 may include additional and / or different hardware / software components, such as those described below with reference to Figure 5 Those example components described.
[0025] like Figure 1 As shown in , host 100 may include a host operating system 102 having a license drive 106, which is interconnected with a host storage 108 containing a record of license information 110. Host storage 108 may include any suitable computer-readable storage device configured to contain digital data. Example host storage 108 may include hardware / software components such as a hard disk drive, a solid-state drive, and an associated file system. In the illustrated embodiment, the record of license information 110 is stored in host storage 108. In other embodiments, the record of license information 110 may also be stored on a remote server (not shown) or other suitable location accessible to license drive 106 via a computer network 106 such as the Internet.
[0026] Also in Figure 1 , the host operating system 102 can be configured to support one or more guest operating systems 114 that individually execute applications 116. In some embodiments, the host operating system 102 can be configured to provide a hypervisor and / or container engine (not shown) that is configured to support one or more virtual machines or containers, each with a corresponding guest operating system 114. In other embodiments, the host operating system 102 may also include a virtual switch (not shown), a virtual router (not shown), or other appropriate virtual component client configured to facilitate the operation of the guest operating system 114 and / or the corresponding application 116. For illustrative purposes, Figure 1 1 and 2 , each of which executes an application 116. In other embodiments, the host operating system 102 may support three, four, or any other suitable number of guest operating systems 114, each of which executes a suitable number of applications 116.
[0027] like Figure 1As shown in FIG. 1 , the guest operating system 114 is isolated from the host operating system 102 by a security boundary 112. The security boundary 112 can be implemented as a set of rules (not shown) in the host operating system 102 to limit or prevent the guest operating system 114 and / or corresponding applications 116 from accessing certain hardware / software resources in the host operating system 102. For example, Figure 1 As shown in , only the license driver 106 has access to the license information 110 in the host storage 108. The guest operating system 114 cannot directly access the license information 110 in the host storage 108. In other embodiments, the security boundary 112 can also limit or prevent the guest operating system 114 from accessing additional computing, storage, network or other suitable types of resources available to the host operating system 102.
[0028] In order to provide a seamless user experience for applications 116 in a guest operating system 114, the license driver 106 can be configured to share the license information 110 with the guest operating system 114. For example, when the license driver 106 receives a request from the user 101 ( Figure 2A ) receives a request 120 (shown in FIG. 1 ) to launch an application 116 in a client operating system 114. Figure 2A ), the license driver 106 may generate a data block or "blob" of license information based on the license information 110 stored in the host storage 108. In some embodiments, the license blob may have a lifetime value. The expiration of the lifetime may cause the blob to be deleted from the memory. In other embodiments, the license blob may never expire. In other embodiments, the license blob may also contain data representing event-based license values. For example, when a given file (e.g., a document) is opened, when a hardware component (e.g., a wireless interface card) is disconnected, when a user is in a given physical location or area (e.g., an office or a secure area), or based on other suitable conditions, a license level is provided. The license driver 106 may then provide the generated license blob to the client operating system 114 to allow the launch or other operation of the application 116. In some embodiments, the license driver 106 may generate a more stringent license than the host operating system 102 for use by the application 116, for example, by limiting the functionality of the application 116 in the client operating system 114. The license driver 106 may also be configured to limit or prevent unauthorized copying of a shared blob of license information by storing the blob in a random memory location of the guest operating system 114, as described below with reference to Figure 2A-2E Described in more detail.
[0029] Figure 2A-2E According to an embodiment of the disclosed technology, during the operation phase Figure 1 A schematic diagram of certain hardware / software components of the host 100. Figure 2AIn other figures of this article, separate software components, objects, classes, modules and routines can be computer programs, steps or processes, which are written in source code form of C, C++, C#, Java and / or other appropriate programming languages. Components can include, but are not limited to, one or more modules, objects, classes, routines, attributes, processes, threads, executable files, libraries or other components. Components can be in source code form or binary form. Components can include aspects of the source code before compilation (e.g., classes, attributes, steps, routines), compiled binary units (e.g., libraries, executable files) or artifacts (e.g., objects, processes, threads) instantiated and used at runtime.
[0030] Components within the system may take different forms within the system. As an example, a system including a first component, a second component, and a third component may encompass, but is not limited to, a system having a first component as an attribute in source code, a second component as a binary compiled library, and a third component as a thread created at runtime. A computer program, step, or process may be compiled into object, intermediate, or machine code and presented for execution by one or more processors in a personal computer, a network server, a laptop, a smartphone, and / or other suitable computing device.
[0031] Likewise, a component may include a hardware circuit device. Those skilled in the art will recognize that hardware may be viewed as fossilized software, and software may be viewed as liquefied hardware. As just one example, the software instructions in a component may be burned into a programmable logic array circuit, or may be designed as a hardware circuit with an appropriate integrated circuit. Likewise, hardware may be emulated by software. Various implementations of source code, intermediate code, and / or object code and associated data may be stored in a computer memory, which includes a read-only memory, a random access memory, a disk storage medium, an optical storage medium, a flash memory device, and / or other suitable computer-readable storage media in addition to a propagation signal.
[0032] like Figure 2A As shown in FIG. 1 , the host operating system 102 ( Figure 1) may allocate a range of virtual memory to the client operating system 114 as allocated memory 115. In the example shown, allocated memory 115 may include a block of memory between memory addresses "FD00 0000" and "FDFF FFFF." Within allocated memory 115, the client operating system 114 (e.g., an operating system kernel) may occupy a portion of allocated memory 115, such as from "FD000000" to "FDF1 0000." Another portion of allocated memory 115 (from "FDF1 0000" to "FDFF FFFF") is accessible to the client operating system 114, but does not yet contain any data (referred to herein as "free memory 118"). Although in Figure 2A Not shown, the host operating system 102 and associated components (such as the license driver 106) may also have corresponding allocated memory (not shown) that is isolated from the allocated memory 115 allocated to the guest operating system 114 by the security boundary 112.
[0033] Also in Figure 2A , the license driver 106 may include an interface component 130, a license component 132, and a location component 134 that are operably coupled to each other. Although the aforementioned components are shown for illustrative purposes, in other embodiments, the license driver 106 may also include additional and / or different components, modules, or routines. The interface module 130 may be configured to receive from the user 101 a request for launching the application 116 ( Figure 1 ) of a user request 120. In some examples, user 101 may provide user request 120 via a command line, a graphical user interface, or other suitable interface element (not shown). In other examples, user request 120 may be provided by a script, a computing service, another software application, or other suitable type of entity. In other examples, client operating system 114 may also include an optional license driver 106' (or license driver agent, shown in dashed lines for clarity), which intercepts requests from user 101 or from application 116 ( Figure 1 ) of the user request 120'. The optional licensing driver 106' can then forward the intercepted user request 120' to the licensing driver 106 in the host operating system 102 for further processing. Upon receiving the user request 120 (or the user request 120' from the optional licensing driver 106'), the interface component 130 can instruct the licensing component 132 to initiate a licensing information sharing operation.
[0034] The licensing component 132 may be configured to, upon receiving an indication of the received user request 120, check whether there is licensing information 110 corresponding to the requested application 116 in the host storage 108. In one embodiment, in response to determining that the corresponding licensing information 110 does not exist in the host storage 108, the licensing component 132 may instruct the interface component 130 to provide a notification (not shown) to the user 101 indicating that the application 116 is not allowed to be launched. In other embodiments, in response to determining that the corresponding licensing information 110 does not exist in the host storage 108, the licensing component 132 may instruct the interface component 130 to retrieve appropriate licensing information 110 from, for example, a remote server (not shown). In some embodiments, the application 116 may be launched with reduced capabilities, e.g., lacking key features, a demo mode, etc. In other embodiments, the licensing component 132 may prompt the user 101, via the interface component 130, to purchase the application 116 (or a valid license thereof). In further embodiments, licensing component 132 may optionally be configured to enforce policies specified by the host operating system, such as limiting the number of instances of application 116 that may be simultaneously launched in guest operating system 114 running on host operating system 102 .
[0035] Upon retrieving the license information 110 or determining that the license information 110 already exists in the host storage 108, the license component 132 may be configured to generate a license blob 122 based on the license information 110 from the host storage 108, such as Figure 2B In one embodiment, generating license blob 122 may include copying a product key from license information 110. In other embodiments, generating license blob 122 may also include setting a time-to-live value or other suitable parameter on the copied product key. When the time-to-live value expires, license blob 122 may be expired, for example, by being deleted from a memory location in allocated memory 115.
[0036] When generating the license blob 122, the license component 132 may instruct the location component 134 to determine a random memory location in the allocated memory 115 for storing the generated license blob 122. In one embodiment, the location component 134 may be configured to scan the allocated memory 115 to determine one or more memory ranges that contain the free memory 118. Figure 2BIn the example shown in , the free memory 118 is from "FDF1 0000" to "FDFF FFFF". Upon determining the memory address of the free memory 118, the location component 134 can determine a random memory location in the free memory 118, for example, by generating a random offset from "FDF1 0000" using a random number generator. In other embodiments, the location component 134 can determine a random memory location by generating a random offset from "FDFF FFFF" or via other suitable techniques.
[0037] Once the random memory location is determined, the location component 134 can instruct the interface component 130 to write the license blob 122 to the determined random location in the free memory 118. Figure 2B As shown in , based on the determined random memory locations, license blobs 122 (one is shown in dashed lines for clarity) may be stored at different memory locations in free memory 118. Figure 2C As shown in , the interface component 130 can also be configured to transmit a message regarding the location information 124 corresponding to the stored license blob 122 to the client operating system 114 (eg, via inter-process messaging). Then, as Figure 2D As shown in FIG. , using the received location information 124 ( Figure 2C ), the client operating system 114 can query the permission blob 122 at the determined random memory location to retrieve the appropriate application permissions or other appropriate data. Based on the retrieved application permissions, the client operating system 114 can then install, launch, or execute the application 116 ( Figure 1 ) and any other appropriate operations related thereto.
[0038] By storing the license blob 122 at a random memory location in the free memory 118, when the user 101 suspends and copies the memory contents of the guest operating system 114 to another host 100', various embodiments of the disclosed technology can limit or even prevent software piracy, such as Figure 2E For example, Figure 2E As shown in , user 101 can suspend guest operating system 114 on host 100 and copy memory contents (such as license blob 122) to another host 100'.
[0039] The user 101 may then attempt to recover or restart the application 116 based on the license blob 122 in another guest operating system 114'. However, it is highly unlikely that the host 100' will allocate the same virtual memory (shown as allocated memory 115') to the guest operating system 114' as was allocated to the guest operating system 114 on the initial host 100. For example, in the example shown, the host 100' allocates a memory range from "D000 0000" to "DFFF FFFF" to the guest operating system 114'. Therefore, when the user 101 attempts to restart the application 116, the guest operating system 114' will attempt to query the license blob 122 at the memory location between "FDF10000" and "FDFF FFFF" which does not contain the license blob 122. As a result, the guest operating system 114' will be unable to restart the application 116 because it appears to the guest operating system 114' that no license information is available.
[0040] Thus, various embodiments of the disclosed technology can provide a seamless experience for applications 116 while reducing or even preventing the risk of software piracy. By allowing the sharing of license information 110 between the host operating system 102 and the guest operating system 114, the user 101 does not need to have multiple license keys for each operating system. When the license information 110 is shared, the license driver 106 can store the license blob 122 at a random memory location within the allocated memory 115. In this way, even if the memory contents of the original guest operating system 114 are copied to another host 100', the new guest operating system 114' on the other host cannot access the license blob 122 from the original host 100.
[0041] In additional embodiments, the host operating system 102 may use Figure 2A-2E, but selected memory locations in the allocated memory 115 are used to store the license blob 122 in a non-contiguous manner. The host operating system 102 can be configured to allocate non-contiguous memory locations for storing the license blob 122 randomly or by using a suitable type of pattern derived from a key or some other unique data source. The license blob 122 can then be divided into smaller data packets or fragments and loaded into the non-contiguous memory areas separately. The host operating system 102 can then provide the selected memory locations as location information 124 to the guest operating system 112. Based on the location information 124, the guest operating system 112 can then collect the fragments of the license blob 122 from the non-contiguous memory locations and reassemble the fragments into a complete license blob 122, which is available to the user 101 or application 116 in the guest operating system 112. The aforementioned technique of dividing and reassembling the license blob 122 can provide another layer of protection against piracy.
[0042] In some embodiments, each application 116 uses one license. In other embodiments, one or more applications 116 may be bundled to require a single license. In yet other embodiments, applications 116 may have "client-aware" licenses. In such embodiments, licenses for the host operating system 102 and multiple client operating systems 114 may be pre-assigned or pre-generated and stored in the host storage 108. The license driver 106 may then selectively reassign these licenses to the client operating system 114. This technology may be used to facilitate the operation of nested operating systems, in which a first client operating system 114 also hosts a nested second client operating system 114. In this case, the first client operating system 114 may be configured to execute appropriate instructions to provide its own license driver 106', which will receive one of the pre-assigned licenses to share with the nested second client operating system (or additional client operating system 114).
[0043] even though Figure 2A-2E The technology of protecting the license blob 122 by randomly storing the license blob 122 in the allocated memory 115 is illustrated, but in other embodiments, the license blob 122 may be protected by storing the license blob 122 outside the allocated memory 115. For example, Figure 3A As shown in , the location component 134 of the license driver 106 can be configured to: in response to another user request 120', determine the range of the allocated memory 115, and then select a memory location outside the range or "outside the boundary" of the allocated memory 115. Figure 3BAs shown in , when user 101 attempts to copy the memory contents of client operating system 114, license blob 122' is not copied to another host 100'. As a result, when client operating system 114' on host 100' attempts to query license blob 122', the query will fail because license blob 122' does not exist on host 100' (shown in dotted lines). In other examples, license blob 122' may also be stored in virtual persistent memory or other suitable types of persistent memory or removable storage media (e.g., USB drive) on the original host 100, a network file server, or a virtual hard disk drive temporarily installed by the original client operating system 114. Therefore, even if the memory contents of the original client operating system 114 are copied to host 100', license blob 122 cannot be accessed by client operating system 114' on host 100'.
[0044] Figure 4A-4C is a flowchart illustrating certain processes for memory allocation for a guest operating system according to an embodiment of the disclosed technology. Figure 1-Figure 3B An embodiment of the process is described with reference to host 100 , but in other embodiments, one or more of the processes may be implemented in a host having additional and / or different hardware / software components.
[0045] like Figure 4A As shown in , process 200 includes: at stage 202, receiving a user request from a user to launch an application in a client operating system. In response to receiving the user request, process 200 may include a decision stage 204 to determine whether license information corresponding to the application exists in the host operating system or is accessible by the host operating system. In one embodiment, the data of the license information may be stored in a file system on the host and accessible to the host operating system. In another embodiment, the data of the license information may be stored on a remote server and accessible by the client operating system via a computer network (such as the Internet).
[0046] In response to determining that the license information is not available, process 200 may include providing an error message to the user at stage 205. Otherwise, process 200 continues at stage 206 to generate a license blob for the client operating system based on the available license information. Figure 4C Example operations for generating the license blob 122 are described in more detail. Process 200 may then include, at stage 209, storing the license blob outside of an allocated memory range corresponding to the guest operating system, or alternatively, storing the license blob at a random memory location in the allocated memory. Figure 4B Example operations for storing a blob of licenses at a random memory location in allocated memory are described in greater detail.
[0047] like Figure 4B As shown in , storing the license blob at a random memory location in the allocated memory may include: at stage 212, scanning the allocated memory to the client operating system. Then, the operation may include a decision stage 214 to determine whether one or more ranges of the allocated memory are free. In response to determining that there is no free memory in the allocated memory, the operation may return to continue scanning the allocated memory at stage 212.
[0048] In response to determining that there is free memory in the allocated memory, the operation may include: selecting a random location from the free memory to store the license blob at stage 216. Then, the operation may include: writing the license blob to the selected random memory location at stage 218, and notifying the guest operating system at stage 219 of the random memory location where the license blob is stored.
[0049] Figure 4C Example operations for generating a license blob based on license information available to a host operating system are illustrated. Figure 4C As shown in , the operation may include copying the data of the license information into the license blob. Examples of such copied data may include product keys, software keys, application performance levels (e.g., regular vs. professional), or other suitable information. The operation may also include setting a time-to-live value for the copied data at stage 224. The time-to-live value may be one day, two days, three days, four days, or any suitable number of days after which the license blob expires.
[0050] Figure 5 Is suitable for Figure 1 1. The computing device 300 of the host computer 100 in FIG. 302. In a very basic configuration 302, the computing device 300 may include one or more processors 304 and a system memory 306. A memory bus 308 may be used to communicate between the processor 304 and the system memory 306.
[0051] Depending on the desired configuration, the processor 304 can be of any type, including but not limited to a microprocessor (μP), a microcontroller (μC), a digital signal processor (DSP), or any combination thereof. The processor 304 can include one or more levels of cache (such as a level 1 cache 310 and a level 2 cache 312), a processor core 314, and registers 316. An example processor core 314 can include an arithmetic logic unit (ALU), a floating point unit (FPU), a digital signal processing core (DSP core), or any combination thereof. An example memory controller 318 can also be used with the processor 304, or in some embodiments, the memory controller 318 can be an internal part of the processor 304.
[0052] Depending on the desired configuration, system memory 306 may be of any type, including but not limited to volatile memory (such as RAM), non-volatile memory (such as ROM, flash memory, etc.), or any combination thereof. System memory 306 may include an operating system 320, one or more applications 322, and program data 324. The basic configuration 302 described in Figure 5 are shown by those components within the inner dashed line.
[0053] The computing device 300 may have additional features or functions, and additional interfaces to facilitate communication between the basic configuration 302 and any other devices and interfaces. For example, a bus / interface controller 330 may be used to facilitate communication between the basic configuration 302 and one or more data storage devices 332 via a storage interface bus 334. The data storage device 332 may be a removable storage device 336, a non-removable storage device 338, or a combination thereof. Examples of removable storage devices and non-removable storage devices include magnetic disk devices such as floppy disk drives and hard disk drives (HDDs), optical disk drives such as compact disk (CD) drives or digital versatile disk (DVD) drives, solid state drives (SSDs), and tape drives, etc. Example computer storage media may include volatile and non-volatile, removable and non-removable media implemented in any method or technology for storing information such as computer-readable instructions, data structures, program modules, or other data. The term "computer-readable storage medium" or "computer-readable storage device" does not include propagation signals and communication media.
[0054] System memory 306, removable storage device 336, and non-removable storage device 338 are examples of computer-readable storage media. Computer-readable storage media include, but are not limited to, RAM, ROM, EEPROM, flash memory or other storage technology, CD-ROM, digital versatile disks (DVD) or other optical storage, magnetic cassettes, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other medium that can be used to store the desired information and can be accessed by computing device 300. Any such computer-readable storage medium may be part of computing device 300. The term "computer-readable storage medium" does not include propagating signals and communication media.
[0055] The computing device 300 may also include an interface bus 340 for facilitating communications from various interface devices (e.g., output devices 342, peripheral interfaces 344, and communication devices 346) to the basic configuration 302 via the bus / interface controller 330. Example output devices 342 include a graphics processing unit 348 and an audio processing unit 350 that may be configured to communicate with various external devices such as a display or speakers via one or more A / V ports 352. Example peripheral interfaces 344 include a serial interface controller 354 or a parallel interface controller 356 that may be configured to communicate with external devices such as input devices (e.g., keyboards, mice, pens, voice input devices, touch input devices, etc.) or other peripheral devices (e.g., printers, scanners, etc.) via one or more I / O ports 358. Example communication devices 346 include a network controller 360 that may be arranged to facilitate communication with one or more other computing devices 362 over a network communication link via one or more communication ports 364.
[0056] A network communication link can be an example of a communication medium. Communication media can generally be implemented by other data in a computer-readable instruction, a data structure, a program module, or a modulated data signal (such as a carrier wave or other transmission mechanism), and can include any information transfer medium. A "modulated data signal" can be a signal that enables the information to be encoded in the signal in a manner that sets or changes one or more of its characteristics. As an example and not limitation, communication media can include wired media such as a wired network or a direct wired connection, and wireless media such as acoustics, radio frequency (RF), microwaves, infrared (IR) and other wireless media. The term computer-readable medium used herein can include storage media and communication media.
[0057] The computing device 300 may be implemented as part of a small portable (or mobile) electronic device, such as a cellular phone, a personal digital assistant (PDA), a personal media player device, a wireless network watch device, a personal headset device, a dedicated device, or a hybrid device including any of the above functions. The computing device 300 may also be implemented as a personal computer including laptop and non-laptop configurations.
[0058] For the purpose of illustration, specific embodiments of the present technology have been described above, however, various modifications may be made without departing from the foregoing disclosure. In addition, many elements of the elements of one embodiment may be combined with other embodiments in addition to or in place of the elements of other embodiments. Therefore, the present technology is not limited except as set forth in the appended claims.
Claims
1. A method for memory allocation for a guest operating system, the guest operating system being supported by a host operating system on a host computing device, the host computing device having a host storage, the host storage storing a record of licensing information, the method comprising: receiving a request to launch an application in the guest operating system, the guest operating system having an allocated memory range in the host computing device; as well as In response to receiving the request, at the host operating system, generating a license blob based on a record of license information stored in said host storage, said license blob containing data representing a product key copied from said record of license information; determining a random memory location within a memory range outside of the memory range allocated to the guest operating system in the host computing device; as well as writing the generated permission blob from the host operating system to the random memory location determined within the memory range outside the memory range allocated to the guest operating system; as well as The determined random memory location outside the memory range allocated to the guest operating system is transmitted from the host operating system to the guest operating system, so that the guest operating system can access the written permission block at the determined random memory location for access by the guest operating system to start the application, thereby preventing the application from being restarted in the new guest operating system on the new host computing device using the same permission block when the data within the memory range allocated to the guest operating system on the host computing device is copied to a new memory range allocated to the new guest operating system on the new host computing device.
2. The method of claim 1, wherein generating the license blob further comprises one or more of: setting a lifetime value for the license blob, or setting an event-based license value, and wherein when the lifetime value expires, the license blob stored in the random memory location expires, and wherein the event-based license value indicates a license level according to preset conditions.
3. The method according to claim 1, further comprising: In response to receiving the request, at the host operating system, determining whether the record of the license information corresponding to the application exists in the host storage; as well as In response to determining that the record of license information corresponding to the application exists in the host storage, the license blob is generated based on the record of license information stored in the host storage.
4. The method according to claim 1, further comprising: In response to receiving the request, at the host operating system, determining whether the record of the license information corresponding to the application exists in the host storage; as well as In response to determining that the record of licensing information corresponding to the application does not exist in the host storage, retrieving said record of licensing information from a remote server via a computer network; as well as The license blob is generated based on the record of retrieved license information.
5. The method of claim 1 , wherein determining the random memory location comprises: scanning the memory range not allocated by the host operating system to the guest operating system; determining one or more sub-ranges within the memory range that do not contain any data; as well as A single memory location is randomly selected from the one or more sub-ranges as the random memory location.
6. The method of claim 1 , wherein determining a random memory location within a memory range comprises: scanning the memory range not allocated by the host operating system to the guest operating system; determining a sub-range within the memory range that does not contain any data; as well as A plurality of non-contiguous memory locations are selected as the random memory locations, each non-contiguous memory location having a corresponding random offset from a starting memory location of the sub-range, wherein writing the generated license blob comprises: writing a plurality of data packets of the license blob each to one of the plurality of non-contiguous memory locations.
7. The method according to claim 1, wherein: The guest operating system is a first guest operating system that hosts a second guest operating system; The license blob is a first license blob; The method further comprises: generating a second blob of licenses based on another record of license information pre-assigned and stored in the host storage; determining another random memory location outside the memory range allocated by the first guest operating system to the second guest operating system; and The second permission blob is written to the determined another random access memory location for access by the second guest operating system to launch another application.
8. The method according to claim 1, wherein: The request is a first request; and The method further comprises: receiving a second request to launch another application in the guest operating system; and In response to receiving the second request, at the host operating system, generating another license blob based on another record of license information stored in the host storage, the another license blob containing data representing a product key copied from the another record of license information, the another record of license information corresponding to the another application; and The generated another license blob is written to another memory location, which is outside the memory range allocated to the guest operating system by the host operating system on the host computing device, thereby preventing the another license blob from being copied when data in the memory range allocated to the guest operating system on the host computing device is copied to the new host computing device.
9. The method according to claim 1, wherein: The request is a first request; and The method further comprises: receiving a second request to launch another application in the guest operating system; and In response to receiving the second request, at the host operating system, generating another license blob based on another record of license information stored in the host storage, the another license blob containing data representing a product key copied from the another record of license information, the another record of license information corresponding to the another application; and The generated another license blob is written to the virtual persistent memory of the host computing device, the removable storage medium of the host computing device, or a virtual hard disk drive temporarily mounted by the guest operating system, thereby preventing the copying of the another license blob when the data in the memory range allocated to the guest operating system on the host computing device is copied to the new host computing device.
10. A computing device comprising: processor; as well as A memory containing instructions executable by the processor to cause the computing device, upon receiving a request to launch an application in a guest operating system supported by a host operating system of the computing device: generating, at the host operating system, a license blob containing data representing a product key copied from a record of license information; Selecting, by the host operating system, a random memory location within a range of virtual memory currently allocated by the host operating system to the guest operating system; as well as writing the permission blob generated by the host operating system to the selected random access memory location; as well as The selected random memory location to which the license blob is written is transmitted from the host operating system to the client operating system so that the client operation can access the license blob to launch the application, thereby preventing the application from being restarted in another client operating system on another computing device using the same license blob when data within the memory range allocated to the client operating system is copied into another memory range allocated to another client operating system on another computing device.
11. The computing device of claim 10, wherein the memory contains additional instructions executable by the processor to cause the computing device to: determining whether the record of licensing information corresponding to the application exists in a host storage of the host device; and In response to determining that the record of license information corresponding to the application exists in the host storage, the license blob is generated based on the record of license information stored in the host storage.
12. The computing device of claim 10, wherein the memory contains additional instructions executable by the processor to cause the computing device to: determining whether the record of the license information corresponding to the application exists in a host storage of the host device; as well as In response to determining that the record of licensing information corresponding to the application does not exist in the host storage, retrieving said record of licensing information from a remote server via a computer network; as well as The license blob is generated based on the record of retrieved license information.
13. The computing device of claim 10, wherein selecting the random memory location comprises: scanning the memory range currently allocated to the guest operating system; determining a sub-range within the memory range that does not contain any data; as well as A memory location is randomly selected by the host operating system from the sub-range as the random memory location.
14. The computing device of claim 10, wherein selecting the random memory location comprises: scanning the memory range allocated to the guest operating system; determining a sub-range within the memory range that does not contain any data; selecting a plurality of non-contiguous memory locations in the sub-range; and wherein writing the generated permissions blob comprises: writing each of a plurality of data packets of the grant blob to a non-contiguous memory location of the plurality of non-contiguous memory locations; as well as The guest operating system is notified of the non-contiguous memory location, thereby allowing the guest operating system to collect the plurality of data packets from the non-contiguous memory location and reassemble the data packets into a complete license blob.
15. The computing device of claim 10, wherein the memory contains additional instructions executable by the processor to cause the computing device to: receiving another request to launch another application in the guest operating system; and In response to receiving the other request, at the host operating system, generating another license blob based on another record of license information, the another license blob containing data representing a product key corresponding to the another application copied from the another record of license information; The generated another license blob is stored in another memory location that is outside the memory range allocated to the guest operating system by the host operating system on the host computing device.
16. A method for memory allocation for a guest operating system, the guest operating system being supported by a host operating system on a host computing device, the host computing device having a host storage, the host storage storing a record of licensing information, the method comprising: When a request is received from a user to launch an application in the guest operating system having an allocated memory range in the host computing device: generating, at the host operating system, a license blob containing data representing a product key copied from the record of license information in the host storage; determining a random memory location within a memory range outside of the memory range allocated to the guest operating system in the host computing device; storing the generated license blob in the determined memory location; transmitting the determined random access memory location where the license blob is stored from the host operating system to the guest operating system so that the guest operating system supported by the host operating system can access the license blob; querying, by the guest operating system, the permission blob for permission to launch the application; as well as In response to obtaining the permission, the application is launched in the guest operating system without having a separate product key for the guest operating system.
17. The method of claim 16, wherein generating the license blob further comprises: A time-to-live value is set for the permission blob, and wherein the permission blob stored in the random access memory location expires when the time-to-live value expires.
18. The method of claim 16, wherein storing the generated license blob comprises: scanning the memory range not allocated to the guest operating system; determining a sub-range within the memory range that does not contain any data; as well as A memory location is randomly selected from the sub-range to store the permission blob.
19. The method of claim 16, wherein: The guest operating system is a first guest operating system that hosts a second guest operating system; The license blob is a first license blob; The method further comprises: generating a second blob of licenses based on another record of license information pre-assigned and stored in the host storage; determining another random memory location outside the memory range allocated by the first guest operating system to the second guest operating system; and The second permission blob is written to the determined another random access memory location for access by the second guest operating system to launch another application.
20. The method of claim 16, wherein: The request is a first request; and The method further comprises: receiving a second request to launch another application in the guest operating system; and In response to receiving the second request, at the host operating system, generating, based on another record of the license information stored in the host storage, another license blob, the another license blob containing data representing a product key copied from the another record of license information, the another record corresponding to the another application; The generated another license blob is written to another memory location, which is outside the memory range allocated to the guest operating system by the host operating system on the host computing device, thereby preventing the another license blob from being copied when data in the memory range allocated to the guest operating system on the host computing device is copied to a new host computing device.
