# Patent

## Title
Providing a function of a basic input/output system (BIOS) in a privileged domain

## Abstract

In some examples, a privileged domain includes a function of a Basic Input/Output System (BIOS). A request to access the function of the BIOS is routed to the privileged domain. The privileged domain determines whether to execute the function based on identifying at least one selected from among a source of the request and a context of the request.

## Background
CROSS-REFERENCE TO RELATED APPLICATION
This application is a national stage application under 35 U.S.C. §371 of PCT/US2011/057258, filed Oct. 21, 2011.
BACKGROUND
An electronic device, such as a computer or other type of device, can include a Basic Input/Output System (BIOS) that is responsible for starting up the electronic device. During startup, the BIOS initializes and configures components of the electronic device, and loads an operating system in the electronic device. In addition, the BIOS can also provide other services, such as a power management service, a thermal management service, a BIOS update service, and so forth.



BRIEF DESCRIPTION OF THE DRAWINGS
Some embodiments are described with respect to the figures:
FIGS. 1, 3, 4, and 5 are block diagrams of arrangements according to various implementations; and
FIGS. 2 and 6 are flow diagrams of processes according to various implementations.



DETAILED DESCRIPTION
A Basic Input/Output System (BIOS) is usually the first code executed by an electronic device when the electronic device starts. Examples of the electronic device include a computer (e.g. desktop computer, notebook computer, tablet computer, server computer, etc.), a handheld device (e.g. personal digital assistant, smartphone, etc.), an electronic appliance, a gaming console, or any other type of electronic device. The BIOS initializes and configures various hardware components of the electronic device, and loads and starts an operating system (OS) of the electronic device. Code for the BIOS is usually stored on a non-volatile memory, such as a flash memory device or other type of programmable read-only memory (ROM).
The BIOS also provides other functions that can be invoked in the electronic device. Many of such other functions of the BIOS are often executed in the electronic device by entering a: system management mode (SMM), which is an operating mode in which OS execution is suspended. Also, in an electronic device having multiple processors or processor cores, all but one of the processors or processor cores may be disabled in SMM mode. To enter SMM mode, a system management interrupt (SMI) is asserted, and an SMI handler (which is part of the BIOS) is executed, often in a relatively high privilege mode, to perform the respective function(s).
There can be various issues with entering SMM mode to perform BIOS functions. First, because OS execution is suspended, normal electronic device operation cannot proceed. Also, in an electronic device in which processor(s) or processor core(s) are disabled during SMM mode, a part of the processing capacity of the electronic device is temporarily deactivated, which means that such part of the processing capacity is unavailable to perform other tasks. Moreover, it can be difficult to predict how long SMM processing may take, which can cause uncertainty in electronic device operation. Moreover, since certain BIOS functions can take a relatively long period of time to complete (e.g. on the order of minutes), status information may not be available to a user of the electronic device, which can result in a disconcerting experience to the user since the user is unable to ascertain whether the electronic device is functioning properly or not.
Security may also be an issue, since malware may attack during SMM operation, which can lead to system corruption. Security measures that are taken to avoid any such attacks against SMM operation can result in increased complexity in the design of an electronic device. Examples of such security measures include locking certain storage areas, including registers and/or a portion of non-volatile memory such as a flash memory device or other type of programmable read-only memory, which can provide protection against unwanted or unauthorized alteration of the BIOS. These security measures however, may impose constraints on the performance of certain BIOS functions, such as BIOS code update, which can force such BIOS functions to be performed only at certain times, such as system restart.
Examples of various functions that are often performed in SMM can include any one or a combination of the following: a service to update BIOS code; a service to access or modify a setting of the BIOS; a thermal management service to perform thermal management (e.g. control cooling devices such as fans in the electronic device); a power management service (removing or restoring power to specific hardware components); a service to transition the electronic device between different power states (e.g. hibernation state, sleep state, fully on state, and so forth): a service to process activation of a button or button sequence (that includes activation of some combination of multiple buttons) of the electronic device (e.g. a button to turn on/off a wireless interface component, a hot-key sequence to perform some predefined task, and so forth); a service associated with an ambient light sensor of the electronic device (for detecting ambient light around the electronic device); a service to modify a setting of the BIOS; a service to modify a setting of a hardware component in the electronic device; a service to change a boot order of bootable devices of the electronic device; a service for handling a certain type of call between the OS and the BIOS (e.g. an interrupt 15 call); a service to execute a command of an embedded controller; and a service to support a legacy peripheral device (e.g. a Universal Serial Bus device) under a certain condition.
Although various example BIOS functions are listed above, it is noted that other or alternative BIOS functions can be used in other implementations.
In accordance with some implementations, for more robust system behavior, functions of the BIOS can be provided in a privileged domain of the electronic device, where the privileged domain is a domain of the electronic device that is relatively secure and that has certain predefined privilege(s) not available to other entities in the electronic device. Generally, a “privileged domain” refers to a domain that has predefined privilege(s) that allows an entity in the domain to perform functions in the electronic device that other entities (e.g. OS, application programs, etc.) are not allowed to perform. Also, a privileged domain also has a security mechanism to protect the privileged domain from unauthorized access or attack.
By moving functions of the BIOS to the privileged domain, the electronic device may not have to enter SMM mode to perform such BIOS functions that have been moved into the privileged domain. In some implementations. SMM operation can be eliminated altogether. In other implementations, SMM operation can still be enabled to perform certain BIOS functions, while the remaining BIOS functions are performed through the privileged domain. In the latter case, the idea is that SMM is enabled for just a small group of BIOS functions, such that effective measures can be taken to provide security and/or improve efficiency.
Examples of a privileged domain include any or some combination of the following: domain 0, which is often the first domain started by a virtual machine monitor (also referred to as a hypervisor) to perform management tasks; a portion of the virtual machine monitor (or hypervisor); a guest virtual machine that has predefined settings to provide the guest virtual machine with enhanced privileges and/or security; or another type of domain in the electronic device with a predefined special privilege and/or security mechanism.
A “virtual machine” (also referred to as a “virtual appliance” or “virtual partition”) refers to some partition or segment of a physical machine (the electronic device) that is provided to virtualize or emulate a physical machine. From the perspective of a user or application, a virtual machine looks like a physical machine. A virtual machine includes an operating system (referred to as a guest operating system) and at least one application program.
A virtual machine monitor (VMM), also referred to as a hypervisor, manages the sharing, by the virtual machines, of the physical resources, including the hardware components, of the electronic device. The VMM virtualizes the physical resources. Each virtual machine has an associated virtualized physical resources managed by the VMM. The VMM processes requests for physical resources.
FIG. 1 is a block diagram of an example electronic device 100, according to some implementations. The electronic device 100 includes a VMM 102, which creates a privileged domain 104 that includes at least one BIOS function 106 (any one or combination of the BIOS functions listed above, or other BIOS functions). Although the ensuing discussion refers to “BIOS function” in the singular sense as being part of the privileged domain 104, it is noted that “BIOS function” can refer to a single BIOS function or multiple BIOS functions.
In some examples, the privileged domain 104 is domain 0, which is an administrative domain started by the VMM 102 upon system startup, and which has enhanced privileges and security mechanisms. Examples of tasks performed by domain 0 include creating and configuring guest domains. Each of domain 0 and guest domains is considered a corresponding virtual machine.
In other implementations, the privileged domain 104 can be another type of virtual machine, such as a guest virtual machine. The privileged domain 104 can be separate from the VIM 102, such as according to the FIG. 1 arrangement. In alternative implementations, the privileged domain 104 can be part of the VMM 102. In such alternative implementations, the BIOS function 106 is part of the VMM 102.
The provision of the BIOS function 106 in the privileged domain 104 implements a “BIOS in a cloud,” also referred to as “BIOS.v.” The “cloud” can refer to the privileged domain 104 (or some other trusted environment). The cloud can be located either in the electronic device 100 or external of the electronic device 100. For example, as discussed further below, the cloud containing a BIOS function can be accessible by the electronic device 100 over a network.
The BIOS function 106 is accessible by an entity 108 in the electronic device. In some examples, the entity 108 that is able to access the BIOS function 106 in the privileged domain 104 is part of a guest virtual machine 110. For example, such entity 108 can be a guest operating system or another type of entity in the guest virtual machine 110. In other examples, the entity 108 can he external of any guest virtual machine 110, such as in scenarios where a host operating system (not shown in FIG. 1) or an application program desires to access the BIOS function 106. A “host operating system” differs from a “guest operating system” in that a guest operating system is part of a virtual machine, whereas a host operating system is not part of a virtual machine.
There are two alternative mechanisms for the entity 108 to access the BIOS function 106 in the privileged domain 104. A first mechanism involves the entity 108 directly sending a request (112) to access the BIOS function 106 in the privileged domain 104. As discussed further below, this can be enabled by the presence of a virtual BIOS in the guest virtual machine 110.
According to a second mechanism, a request (114) to access the BIOS function 106 is intercepted by the VMM 102, and routed by the VMM 102 (along path 116) to the privileged domain 104. In some implementations, the VMM 102 is able to intercept and route a request to access the BIOS function 106 (from the entity 108) to the privileged domain 104 without having to configure the VMM 102 with a virtual BIOS. This reduces complexity in the design of the VMM 102.
FIG. 1 also shows hardware resources 116 in the electronic device 100. As examples, the hardware resources 116 include a processor (or multiple processors), I/O devices, volatile memory, secondary storage, flash memory, a network interface controller, a graphics adapter, and so forth. Access of the hardware resources 116 by guest virtual machines (such as 110) is managed by the VMM 102.
FIG. 2 is a flow diagram of a process according to some implementations. The process of FIG. 2 can be performed by entities depicted in FIG. 1, for example. The process receives (at 202) a request to invoke a function of the BIOS (e.g. BIOS function 106 in FIG. 1). This request can be received by the VMM 102 from the entity 108, for example.
The process routes (at 204) the request to the privileged domain 104. Such muting can be performed by the VMM 102, or alternatively, the routing can be performed by a virtual BIOS in the guest virtual machine 110. In implementations with a virtual BIOS, an entity (e.g. 108), which can be a guest operating system, in the guest virtual machine 110 that wishes to access a BIOS (such as the BIOS function 106) issues the access request to the virtual BIOS in the guest virtual machine 110. The virtual BIOS then routes the access request to the privileged domain 104.
The privileged domain 104 then determines (at 206) whether or not to execute the requested BIOS function based on identifying a source of the request, or identifying a context of the request, or identifying both the source and context of the request. In implementations where the privileged domain makes the determination (206) based on identifying the source of the request, then if the privileged domain 104 determines that the source of the request is authorized to access the requested BIOS function, the requested BIOS function is executed. On the other hand, in such implementations, if the privileged domain 104 determines that the source of the request is not authorized to access the requested BIOS function (such as in a scenario where malware has issued the request), then the privileged domain 104 can deny access of the requested BIOS function. In this manner, the privileged domain 104 is able to securely execute the BIOS function.
Alternatively or additionally, the privileged domain 104 makes the determination (206) based on identifying the context of the request. The “context” of the request refers to the current state or environment of the electronic device (or a portion of the electronic device) at the time the request is to be processed. The privileged domain 104 determines whether the request can be executed based on whether the request is contextually correct (in other words, based on whether the current state or environment of the electronic device (or electronic device portion) satisfies a rule or rules for execution of the request). For example, assume that the electronic device can legally proceed, in sequence, from state S1, to state S2, to state S3, and to state S4. Also assume that executing the requested BIOS function would place the electronic device in state S4. In such an example, the privileged domain 104 would allow the request to execute the BIOS function only if the electronic device is in state S3 (in other words, the context of the request is correct). On the other hand, if the electronic device were in state S2, then the privileged domain 104 would not allow execution of the request, since that would be an illegal transition (the context is incorrect).
Another example of whether the context of a request to execute a BIOS function is correct or not is as follows. Assume the system provides that a command to perform an action involves the following sequence of commands: (1) Lock System, (2) Perform Action, and (3) Unlock System. The request to execute the BIOS function would be contextually correct if the request were received for execution after a command to lock the system. However, if the request were received prior to receiving the command to lock the system, then the request would be contextually incorrect, and the request cannot be executed by the privileged domain.
In accordance with some implementations, the requested BIOS function without having to enter SMM—in other words, SMM can be bypassed to perform certain BIOS function(s) which are traditionally performed in SMM by SMI BIOS handlers. By using techniques or mechanisms according to some implementations, the BIOS functions that traditionally would be performed in SMM can be instead performed in a trusted runtime environment provided by a privileged domain.
Additionally, overall design of an electronic device can be simplified since security mechanisms traditionally used, such as locking of registers or portions of non-volatile memory, can be omitted, since it is the privileged domain that now controls whether a request to a BIOS function is allowed to proceed.
In addition to executing the requested BIOS function, the privileged domain 104 is also able to perform certain tasks prior to execution of the BIOS function. As examples, the privileged domain 104 can determine if a request to access or perform a BIOS function is properly formed, or if the data to be written (such as in the case of BIOS code update) or a setting of a BIOS policy is correct (e.g. correct size, correct verification code, etc.). This can provide protections against cases where malware can use a malformed request to access BIOS functions, in an attempt to cause BIOS malfunctions as a result of processing the malformed command request. The privileged domain 104 can also determine if a backup of data to be modified (e.g. BIOS code) can be performed prior to performing the BIOS function. The privileged domain 104 can further determine if there is sufficient battery charge to complete the requested BIOS function. In general, the privileged domain can first validate a request to invoke a BIOS function inputs associated with the request, and a context of the request and its input, before the privileged domain begins to actually process or route the request to the actual physical BIOS for further processing.
In the context of updating BIOS code, the privileged domain 104 is also able to handle metadata and/or metacode associated with the BIOS update. The metadata can provide policies or descriptions regarding what part(s) of the BIOS code is to be updated, and condition(s) associated with performing the update (such as a condition relating to ensuring that an update code image for updating the BIOS code has a correct signature, a condition relating to rollback to an older BIOS code version in case of update failure, and so forth). The metacode can define procedure(s) regarding how variables and settings of the BIOS are to be updated. The privileged domain 104 can implement an interpreter to handle the metadata and/or metacode.
FIG. 3 is a block diagram of an electronic device 300 according to alternative implementations. The electronic device 300 includes multiple guest virtual machines 302A, 302B—although two virtual machines 302A, 302B are shown in FIG. 3, it is noted that in alternative implementations, there can be just one guest virtual machine or there can be more than two guest virtual machines.
Each guest virtual machine 302A or 302B includes a respective guest operating system 304A or 304B, as well as a respective application program 306A or 306B. In some implementations, each guest virtual machine 302A or 302B further includes virtual BIOS 308A or 308B. A guest operating system 304A or 304B designed to access services of a BIOS would make a call to the respective virtual BIOS 308A or 308B (instead of an actual BIOS). In some implementations, the virtual BIOS 308A or 308B can then directly route this request to a privileged domain 320, which includes the BIOS function 106. As with implementations according to FIG. 1, the privileged domain 320 can be implemented with domain 0 or another virtual machine, or can be implemented in the VMM 102.
In alternative implementations, the virtual BIOS 308A or 308B can instead route the request to access a BIOS function through the VMM 102. In yet further alternative implementations, the virtual BIOS 308A or 308B can be omitted from the guest virtual machine 302A or 302B—in such implementations, a request o access a BIOS function can be intercepted by the VMM 102.
The electronic device 300 further includes hardware resources 116 and a firmware layer 310 that has machine-readable instructions including an actual BIOS 312 (referred to as a “physical BIOS” in the ensuing discussion). A “physical BIOS” or “actual BIOS” refers to BIOS code that resides in non-volatile memory such as flash memory or other programmable read/only memory, and which is to be executed upon startup of the electronic device 300. The physical BIOS 312 can be a reduced (simplified) version of a typical physical BIOS, since one or multiple functions of the BIOS may have been moved to the privileged domain 320, such that these functions are executed from the privileged domain 320 so that access of the physical BIOS 312 does not have to be performed. However, there are certain functions of the physical BIOS 312 that remain with the physical BIOS 312—access of such BIOS functions involves invoking the physical BIOS 312. Such invocation can be accomplished from the privileged domain 104 through the VMM 102, as indicated by the path 314 in FIG. 3.
Also note that traditionally, data exchanged between an operating system and the BIOS is not protected, and as a result, some systems may employ various proprietary schemes to provide some level of protection for data exchanged between the operating system and the BIOS. Such protection is performed because the data transferred between an operating system and the BIOS can include sensitive information such as a user name, a password, an authentication hash, and/or an authentication policy. One example general protection scheme used is to encrypt the information exchanged between the operating system and the BIOS. Since protection using encryption would involve use and storage of a key in the BIOS (and the operating system), and because there are usually insufficient protection for this key, the protection afforded the information exchanged between the operating system and BIOS can be weak. Since communication with the physical BIOS 312 is performed through the privileged domain 320, traditional mechanisms for protecting the confidentiality and/or integrity of data (such as by encrypting the data) communicated with the physical BIOS 312 would not have to be implemented. This provides simplicity and performance enhancements in the solution while providing higher protection for data communicated to the physical BIOS without actually having to provide specific proprietary protection mechanisms.
In addition to the guest virtual machines 302A and 302B and the privileged domain 320, the electronic device 300 can also include a service domain virtual machine 316 that includes user interface (UI) code 318 executable to provide a user interface. The user interface provided by the UI code 318 in the service domain virtual machine 316 can be used by a user to monitor a status of the privileged domain 104, such that the user can be provided with feedback during execution of the BIOS function 106. Also, the user interface can be used to configure settings of the privileged domain 320.
As further depicted in FIG. 3, in accordance with some examples, the privileged domain 320 can also include a web service 322 to allow web access from an entity 324 that is external of the electronic device 300 over a secure connection 326. A “secure connection” refers to a network connection in which a security mechanism is applied (e.g. encryption of data, establishment of a secure tunnel, etc.) to prevent unauthorized access of the data communicated over the network connection. For example, in an enterprise environment (where an enterprise can be a business, educational organization, or government agency), the secure connection 326 allows the electronic device 300 to establish communication with a trusted server (324), such as a server configured to provide predefined services. An example of the predefined services that can be provided by the server 324 can include a service to update the physical BIOS 312 or the BIOS function 106. In other examples, other services can be provided by the server 324. The use of the trusted privileged domain 320 allows calls of a BIOS function to originate from outside the electronic device 300.
In some implementations, BIOS in a cloud is based on the following premises of a VMM-based architecture: the physical BIOS knows and trusts the main runtime entity (VMM 102 in FIG. 1 or 3) that the physical BIOS is booting, and the BIOS-trusted VMM has the ability to trap and turn off all I/O requests (to access BIOS functionality) other than those coming from the privileged domain. In some implementations, a BIOS verification mechanism can be provided to authenticate the origin of the VMM that is to be booted by the electronic device. Examples of such a verification mechanism are described in U.S. Patent Application No. PCT/US2011/022814. Such verification mechanisms allow an administrator or other user to specify that only an authorized VMM can be booted in the electronic device 100 or 300. The verification mechanism assures that the VMM image that is in the electronic device has not been modified maliciously, and that the VMM can be trusted. The physical BIOS can visually verify the VMM image, and ensure that he VMM is booted with a known set of controlled operational settings that have previously been specified.
After verifying that an authorized VMM has been booted, the physical BIOS can then defer or omit execution of various security measures that the physical BIOS would normally perform to prevent corruption by unauthorized or malicious code. For example, the physical BIOS can choose to not lock BIOS flash registers and/or portions of flash memory.
FIGS. 1 and 3 depict implementations in which the BIOS in the cloud (e.g. the BIOS function 106) is provided internally in an electronic device (100 or 300). Note, however, that from the perspective of a guest virtual machine or other entity of the electronic device that wishes to access BIOS services, the cloud including the BIOS services can be located anywhere, including in a location that is external of the electronic device.
In accordance with some implementations, to allow efficient access of BIOS functionality over a network, a privileged domain can be used to provide web-based network communication functionality. FIG. 4 shows an example of such an arrangement. FIG. 4 depicts an electronic device 400 that has a guest virtual machine 402, a VMM 404, and hardware resources 406. The electronic device 400 further includes a privileged domain 408 that has a web-based network communication function 410. The web-based network communication function 410 provides a web-based interface 411 that is able to route a BIOS access request to either an internal BIOS function 412 (which can be part of the privileged domain 408) or an external BIOS function 414 (which is accessible over a network 416). A requesting entity (e.g. the VMM 404 or guest virtual machine 402) can submit a BIOS access request to the web-based network interface 411 provided by the web-based network communication function 410.
In some implementations, the network 416 is a secure network implemented with a secure mechanism to prevent unauthorized access of information communicated between network elements over the network 416.
The external BIOS function 414 can be part of a trusted environment 418 in a server computer 420. In some implementations, the trusted environment 418 can also be implemented in a privileged domain (e.g. domain 0, secure guest virtual machine, virtual machine monitor, etc.) in the server computer 420. The server computer 420 has one or multiple processors 422, storage media 424, and a network interface 426 to communicate over the network 416 with the electronic device 400.
In some implementations, the web-based interface 411 provided by the web-based network communication function 410 is part of a service requestor-service provider model that allows the requester (e.g. electronic device 400) to request a service (e.g. BIOS service) from a provider (e.g. server computer 420) over a network. As examples, the web-based interface can be a web services interface. A web service refers to a mechanism designed to support interoperable machine-to-machine interaction over a network. The web services interface can be according to a format described by a Web Services Description Language (WSDL), as defined by the World Wide Web Consortium (W3C). Alternatively, the web services interface can be according to a Simple Object Access Protocol (SOAP) (also defined by the W3C), which is a protocol for exchanging structured information in the implementation of web services over networks.
As yet another alternative, the web-based interface 411 can be according to a Representational State Transfer (REST) architecture, which includes clients and servers, where clients can submit requests to servers, and servers can provide responses to clients. Requests and responses are built around the transfer of representations of resources. A resource can be any coherent and meaningful concept that may be addressed. A representation of a resource is typically a document that captures the current or intended state of a resource. In the REST architecture, a request submitted by a client (e.g. the electronic device 400) can be a Hypertext Transfer Protocol (HTTP) Get request, in some examples. The server (e.g. server computer 420) can provide an HTTP response to the HTTP Get request.
In the web-based interface 411, a resource (e.g. the internal BIOS function 412 or external BIOS function 414) can be accessed by issuing a BIOS access request that contains an address of the requested resource. The address can be a web address, such as a Uniform Resource Locator (URL), an Internet Protocol (IP) address, or some other address that can uniquely identify the requested resource.
In response to the BIOS access request containing the address that is received at the web-based interface 411, the web-based network communication function 410 can direct the request to an appropriate one of the internal and external BIOS functions. In some cases, the web-based network communication function 410 can direct the request to both the internal and external BIOS functions.
Provision of a BIOS function at an external location, such as the server computer 420, can provide certain benefits. For example, a service provider associated with the server computer 420 can perform automatic checks of BIOS updates without involving client devices such as the electronic device 400. The service provider can also control rollback of a BIOS to a previous version, such as upon detection of a fault or corruption. There can be other further services with respect to the BIOS that can be performed at the server computer 420 in a more efficient and effective manner.
Another benefit of providing a web-based interface is that there can be reduced dependency on the specific chipset or operating system architecture for communications involved in accessing BIOS functionality. For example, in some systems that employ a WINDOWS® operating system from Microsoft, a WMI (Windows Management Instrumentation) mechanism, which is an implementation of WBEM (Web Based Enterprise Management), can be used for accessing BIOS functions from the operating system. However, support for WMI may not be available or may be sparse in other operating environments, such as environments using the Linux or other operating systems. As further examples, specific interrupt mechanisms, such as int15 or int1A, can be used with specific types of chipsets. Using a more open interface, such as a web-based interface according to some implementations, reduces dependency on specific chipset and operating system architectures. Furthermore, the command format for accessing BIOS functions using WMI or other schemes mentioned above can be archaic and may lack flexibility. A web-based interface allows use of commands according to more widely used standards, such as XML (Extensible Markup Language) or other standards, for communications to invoke BIOS functionality, which can allow for more open and extensible command formats, and which allows standards based validation mechanisms (e.g. XML-based validation mechanisms) to be employed.
FIG. 5 is a simplified block diagram of an electronic device 500, in accordance with some implementations. The electronic device 500 includes a requesting entity 502 (e.g. VMM 404, guest virtual machine 402, or some other entity), which is able to submit a BIOS access request 504. The BIOS access request 504 is submitted to a web-based interface 506 (which is similar to the web-based interface 411 of FIG. 4). A function that provides the web-based interface 506 is then able to direct the BIOS access request 504 to a corresponding BIOS function 508 in a cloud 510, where the cloud 510 can be internally in the electronic device 500, or in an external location accessible over a network.
FIG. 6 is a flow diagram of a process according to some implementations. The process can he performed by the electronic device 400 or 500. The process receives (at 602) a request to access a BIOS function. The request can be received by a web-based interface (e.g. 411 or 506). The process then routes (at 604) the request through the web-based interface to a domain that includes the BIOS function. This domain can be any one of the following: privileged domain 408 in FIG. 4; trusted environment 418 in FIG. 4; or cloud 510 in FIG. 5.
Various modules, such as those depicted in FIGS. 1, 3, 4, and 5, can be implemented as machine-readable instructions that can be executed on one or multiple processors. A processor can include a microprocessor, microcontroller, processor module or subsystem, programmable integrated circuit, programmable gate array, or another control or computing device.
The machine-readable instructions can be stored in machine-readable or computer-readable storage media, which can be implemented as one or multiple computer-readable or machine-readable storage media. The storage media can include different forms of memory including semiconductor memory devices such as dynamic or static random access memories (DRAMs or SRAMs), erasable and programmable read-only memories (EPROMs), electrically erasable and programmable read-only memories (EEPROMs) and flash memories; magnetic disks such as fixed, floppy and removable disks; other magnetic media including tape: optical media such as compact disks (CDs) or digital video disks (DVDs); or other types of storage devices. Note that the instructions discussed above can be provided on one computer-readable or machine-readable storage medium, or alternatively, can be provided on multiple computer-readable or machine-readable storage media distributed in a large system having possibly plural nodes. Such computer-readable or machine-readable storage medium or media is (are) considered to be part of an article (or article of manufacture). An article or article of manufacture can refer to any manufactured single component or multiple components. The storage medium or media can be located either in the machine running the machine-readable instructions, or located at a remote site from which machine-readable instructions can be downloaded over a network for execution.
In the foregoing description, numerous details are set forth to provide an understanding of the subject disclosed herein. However, implementations may be practiced without some or all of these details. Other implementations may include modifications and variations from the details discussed above. It is intended that the appended claims cover such modifications and variations.

## Claims

1. A method of an electronic device, comprising:
receiving a request to invoke a function of a Basic Input/Output System (BIOS);
routing the request to a privileged domain that includes the function of the BIOS, wherein the request is routed to the privileged domain by a virtual BIOS without passing through a virtual machine monitor;
determining, by the privileged domain, whether to execute the function based on identifying at least one selected from among a source of the request and a context of the request; and
in response to determining that the function is to be executed, accessing the function in the privileged domain to execute the function, wherein executing the function is performed in a trusted runtime environment provided by the privileged domain without entering a system management mode (SMM).

2. The method of claim 1, wherein receiving the request to invoke the function of the BIOS comprises receiving the request to invoke a service to update code of the BIOS.

3. The method of claim 1, wherein receiving the request to invoke the function of the BIOS comprises receiving the request to invoke a service selected from the group consisting of:
a service to update a setting of the BIOS;
a thermal management service to perform thermal management in the electronic device;
a service to transition the electronic device between different power states;
a power management service to control power of a component in the electronic device;
a service to process activation of a button or button sequence of the electronic device;
a service associated with an ambient light sensor of the electronic device;
a service to modify a setting of the BIOS;
a service to modify a setting of a hardware component in the electronic device;
a service to change a boot order of bootable devices of the electronic device;
a service for handling a call between an operating system and the BIOS;
a service to execute a command of an embedded controller; and
a service to support a legacy peripheral device.

4. The method of claim 1, further comprising:
invoking, by a physical BIOS running in the electronic device, the virtual machine monitor.

5. The method of claim 4, further comprising:
the physical BIOS verifying an image of the virtual machine monitor, and in response to the verifying, electing not to execute a security measure used to prevent unauthorized access of a feature of the electronic device.

6. The method of claim 4, further comprising:
receiving a second BIOS access request;
routing the second BIOS access request to the privileged domain; and
performing a communication between the privileged domain and the physical BIOS, in response to the second BIOS access request.

7. The method of claim 1, further comprising:
receiving a second BIOS access request;
directing, by the privileged domain, the second BIOS access request to a location external of the electronic device, to invoke a second BIOS function at the external location.

8. The method of claim 1, further comprising:
providing a user interface to monitor a status of execution of the function, wherein the user interface is provided by a virtual machine.

9. The method of claim 1, further comprising starting, by the virtual machine monitor, the privileged domain, wherein the privileged domain is separate from the virtual machine monitor.

10. The method of claim 9, wherein the privileged domain is created by the virtual machine monitor.

11. The method of claim 1, wherein the privileged domain has a predefined privilege that another entity is without.

12. The method of claim 1, wherein the determining of whether to execute the function is based on identifying the context of the request, the context comprising a current state of the electronic device, and wherein the request is denied in response to determining that the current state of the electronic device violates a specified rule for execution of the request.

13. An article comprising at least one non-transitory machine-readable storage medium storing instructions that upon execution cause an electronic device to:
generate, by an entity, a request to access a function of the Basic Input/Output System (BIOS); and
route, by a virtual BIOS, the request to a privileged domain that includes the function of the BIOS, wherein the request is routed to the privileged domain by the virtual BIOS without passing through a virtual machine monitor, wherein the virtual machine monitor is without any virtual BIOS functionality, and the privileged domain is started by the virtual machine monitor and is separate from the virtual machine monitor.

14. The article of claim 13, wherein the privileged domain is one of domain 0 and a guest virtual machine.

15. The article of claim 13, wherein the electronic device further includes a physical BIOS that boots the virtual machine monitor, and wherein the instructions are executable to cause the electronic device to execute the function of the BIOS in the privileged domain without accessing the physical BIOS.

16. The article of claim 13, wherein the instructions upon execution cause the electronic device to execute the function of the BIOS in response to the request, without entering a system management mode (SMM) of the electronic device.

17. An electronic device comprising:
at least one processor;
an entity to issue a request to access a function of a Basic Input/Output System (BIOS);
a virtual machine monitor executable on the at least one processor; and
a privileged domain to be invoked by the virtual machine monitor, and the privileged domain separate from the virtual machine monitor, wherein the privileged domain includes the function of the BIOS, and wherein the request from the entity is to be routed by a virtual BIOS to the privileged domain without passing through the virtual machine monitor.

18. The electronic device of claim 17, further comprising:
a guest virtual machine that includes the entity, wherein the guest virtual machine includes the virtual BIOS that is to route the request from the entity to the privileged domain without passing through the virtual machine monitor.

19. The electronic device of claim 17, wherein the privileged domain is to execute the function of the BIOS in response to the request, without entering a system management mode (SMM) of the electronic device.