This invention relates to a method and apparatus for performing a host enumeration process.
With today's increasingly complex and sophisticated computer networks, virtual switches are commonly used to facilitate the use of remote end devices. Typically, a host is connected to a virtual switch. The virtual switch facilitates the sharing of input/output (“I/O”) devices that are physically disaggregated from the host. The virtual switch may be a Virtual peer-to-peer (“P2P”) Bridge device, or other hardware or software that serves the same function as a virtual switch.
When the system is being powered on, all the devices in the system will begin their bootup processes. In order for the host to see any I/O devices, a middle manager would conduct a shared resource allocation process. The purpose of this process is to allocate resources for one or more of the end devices such that the devices would operate correctly.
During the bootup process, typically, the host would perform an enumeration process of its bus hierarchy as part of the bootup process. However, if the host enumerates its hierarchy before the shared resource allocation process has been completed by the middle manager, the I/O devices that are behind the virtual switch would not be seen by the host.
The method and apparatus for performing a host enumeration process are further described with reference to the accompanying drawings in which:
The embodiments of present invention described herein provide a method and apparatus for performing a host enumeration process. The embodiments utilize a bit in the BIOS, or a bit in the memory or hardware that may be read by the BIOS to instruct the host to perform its enumeration process after the shared resource allocation process is substantially completed by the middle manager to ensure that the I/O devices behind the virtual switch can be seen by the host. Without this feature, the host would continue the enumeration process regardless if the shared resource allocation process has been completed by the middle manager, resulting in some I/O devices not being seen by the host. Thus, without this feature, in order for those devices to be seen by the host, the devices may have to be reinstalled or rebooted, or, in the alternative, the host may have to be rebooted.
The method and apparatus for performing a host enumeration process may be used in any system with one or more virtual switches. In one exemplary embodiment, the system comprises one or more hosts, one or more virtual switches, and one or more end devices. This aspect of the embodiment may be illustrated by the block diagrams of
When the system is being powered on, the bootup process starts. At this time the host would start its bootup enumeration process and the middle management 120 would begin its shared resource allocation process to allocate resources for the end devices 115 that are behind the virtual switches 105. The middle management 120 may be hardware or software, and may reside in the host or virtual switch or any other component in the computer system.
When the shared resource allocation process is completed by the middle management 120, i.e., when resources have been allocated to the end devices, the host would now see the end devices. However, if the shared resources allocation process is not completed before the host enumeration process begins, resources would not have been allocated to the end devices in time for the host to see the end devices.
In order to prevent the early enumeration of the host, a “BIOS Go” bit is provided to stall the host. In other words, the host would not perform the enumeration process until the “BIOS Go” bit is set, indicating to the host that the shared resource allocation process is completed. There are many ways the host enumeration process may be stalled. For example, it may be performed by means of interrupting the host or polling activity by the host, or by holding the host in reset or powered off. In this exemplary illustration, the host BIOS bus enumeration process is stalled by providing the “BIOS Go” bit inside the virtual P2P device configuration space accessible by the BIOS. The “BIOS Go” bit may also be provided elsewhere depending on the computer system. For example, the “BIOS Go” bit may be implemented in either dedicated hardware register(s) or within a shared memory location that is accessible by both the middle management and host.
In this exemplary embodiment, the “BIOS Go” bit is deasserted at power on. The BIOS at the host then polls the “BIOS Go” bit while the shared resource allocation process is being performed by the middle management. Once the shared resource allocation process is completed, i.e. shared resources have been allocated to the end devices, the middle management would set the “BIOS Go” bit to indicate to the host that the shared resource allocation process has been completed. When the host polls the “BIOS Go” bit, the host would now recognize that it may start and/or continue with the enumeration process. In this exemplary illustration, the BIOS of the host would poll the “BIOS Go” bit and continue the enumeration process. When the enumeration process is completed, the host would now see the end devices because they are allocated to the host by the middle management, even though those end devices may or may not physically reside on the host machine. The host may continuously or periodically poll the “BIOS Go” bit, or the host may poll the “BIOS Go” bit in a particular variation of sequence depending on the computer system. In addition, there are also many other possible embodiments. For example, the host may be interrupted, powered up, or brought out of reset when the “BIOS Go” bit is set.
When the system is powered on, a “BIOS Go” bit would be deasserted and the middle management starts the shared resource allocation process. The host would poll the “BIOS Go” bit and recognize that the enumeration should be stalled because the middle management is performing the shared resource allocation process.
Once the shared resource allocation process is completed, the “BIOS Go” bit would be set. The host then may poll the “BIOS Go” bit and may recognize that the enumeration may now continue. The end devices that are behind the virtual switch would be seen by the host computer after the enumeration process because resources have been allocated to the end devices, even though the end devices may or may not be physically connected to the host machine.
In another exemplary embodiment of the present invention, the “BIOS Go” bit may be set by one or more factors other than the completion of the shared resource allocation process. For example, if there are no end devices behind the virtual switch, the “BIOS Go” bit would be set so that the host may continue its enumeration process without any unnecessary delay. In another example, the “BIOS Go” bit may be set if too much time has elapsed after the shared resource allocation process has begun. This would ensure the host would continue its enumeration process even if the shared resource allocation process is stalled or unsuccessful for any reason, or if the shared resource allocation process is taking longer than desired. The duration of time for this “time-out” setting may be varied depending on the computer system. In another example, the “BIOS Go” bit may be set if too much time has elapsed before the shared resource allocation process begins. This would ensure the host would continue its enumeration process even if the shared resource allocation process never started for any reason, or is unsuccessful for any reason. The duration of time for this time-out setting may be varied depending on the computer system. Furthermore, all of these factors may be combined in a logical setting such that any one of the factors may set the “BIOS Go” bit such that the host enumeration process may continue.
In another exemplary embodiment of the present invention, the “BIOS Go” bit may be controlled by multiple ports. This embodiment may be used with multiple hosts, multiple virtual switches, or multiple middle management. Each of the multiple hosts, multiple virtual switches, or multiple middle management can be represented by a port. In this exemplary embodiment, the “BIOS Go” bit may be set when all the ports indicated that the “BIOS Go” bit should be set.
Following the same exemplary illustration of
Continuing the same exemplary illustration of
The exemplary illustration of
It is understood that the herein described apparatus and methods are susceptible to various modifications and alternative constructions. There is no intention to limit the invention to the specific constructions described herein. To the contrary, the invention is intended to cover all modifications, alternative constructions, and equivalents falling within the scope and spirit of the invention.
Although an exemplary implementation of the invention has been described in detail above, those skilled in the art will readily appreciate that many additional modifications are possible in the exemplary embodiments without materially departing from the novel teachings and advantages of the invention. Accordingly, these and all such modifications are intended to be included within the scope of this invention.
Filing Document | Filing Date | Country | Kind | 371c Date |
---|---|---|---|---|
PCT/US2008/002526 | 2/26/2008 | WO | 00 | 8/24/2010 |
Publishing Document | Publishing Date | Country | Kind |
---|---|---|---|
WO2009/108146 | 9/3/2009 | WO | A |
Number | Name | Date | Kind |
---|---|---|---|
5655148 | Richman et al. | Aug 1997 | A |
6134616 | Beatty | Oct 2000 | A |
6279060 | Luke et al. | Aug 2001 | B1 |
6732264 | Sun et al. | May 2004 | B1 |
6754817 | Khatri et al. | Jun 2004 | B2 |
7058738 | Stufflebeam, Jr. | Jun 2006 | B2 |
7110413 | Riley | Sep 2006 | B2 |
7216211 | Munguia et al. | May 2007 | B2 |
7251704 | Solomon et al. | Jul 2007 | B2 |
7287257 | Meza | Oct 2007 | B2 |
20020120924 | Miloushev et al. | Aug 2002 | A1 |
20020178316 | Schmisseur et al. | Nov 2002 | A1 |
20030093510 | Cen | May 2003 | A1 |
20040073912 | Meza | Apr 2004 | A1 |
20050066108 | Zimmer et al. | Mar 2005 | A1 |
20050246460 | Stufflebeam, Jr. | Nov 2005 | A1 |
20060242330 | Torudbakken et al. | Oct 2006 | A1 |
20070088943 | Phelps et al. | Apr 2007 | A1 |
20080256351 | Natarajan | Oct 2008 | A1 |
20100325332 | Matthews et al. | Dec 2010 | A1 |
20110082949 | Matthews et al. | Apr 2011 | A1 |
Number | Date | Country |
---|---|---|
H11-288338 | Oct 1999 | JP |
2001-228944 | Aug 2001 | JP |
2005-317021 | Nov 2005 | JP |
Entry |
---|
International Search Report and Written Opinion, dated Nov. 26, 2008, 10 pages. |
Number | Date | Country | |
---|---|---|---|
20110004688 A1 | Jan 2011 | US |