1460776445-d1324a83-8d56-4696-ac7e-f646bed3bf11

1. A computing device comprising:
a first virtual machine and a second virtual machine, where a networking packet is to be sent from the first virtual machine to the second virtual machine; and,
a hardware network interface controller (NIC) to determine whether the networking packet is to be routed from the first virtual machine to the second virtual machine within the computing device in accordance with a first approach or a second approach, based upon one or more considerations regarding a state of the computing device,
wherein the hardware NIC is then to control routing of the networking packet in accordance with the first approach or the second approach.
2. The computing device of claim 1, further comprising a hardware inputoutput (IO) bus to which the hardware NIC is communicatively connected,
wherein the first approach comprises routing the networking packet over the hardware IO bus from the first virtual machine to the second virtual machine, by the hardware NIC,
and wherein the second approach comprises routing the networking packet from the first virtual machine to the second virtual machine by using a computer program and one or more processors of the computing device to execute the computer program.
3. The computing device of claim 1, further comprising one or more processors via which the first virtual machine and the second virtual machine are run,
wherein the first approach does not use the processors to route the networking packet from the first virtual machine to the second virtual machine,
and wherein the second approach uses the processors to route the networking packet from the first virtual machine to the second virtual machine.
4. The computing device of claim 1, further comprising:
a hardware inputoutput (IO) bus to which the hardware NIC is communicatively connected; and,
a hardware memory having a first memory portion assigned to the first virtual machine and a second memory portion assigned to the second virtual machine,
wherein the first approach routes the networking packet over the hardware IO bus from the first virtual machine to the second virtual machine via a first direct memory access (DMA) operation to copy the networking packet from the first memory portion to the hardware NIC and via a second DMA operation to copy the networking packet from the hardware NIC to the second memory portion.
5. The computing device of claim 1, further comprising:
an intermediary virtual machine; and,
a hardware memory having a first memory portion assigned to the first virtual machine and a second memory portion assigned to the second virtual machine,
wherein the intermediary virtual machine has privileges to access the first memory portion and the second memory portion,
wherein the second approach routes the networking packet through the intermediary virtual machine from the first virtual machine to the second virtual machine intermediary virtual machine via the intermediary virtual machine retrieving the networking packet from the first memory portion and copying the networking packet to the second memory portion.
6. The computing device of claim 1, wherein the first virtual machine is to notify the hardware NIC that the first virtual machine has constructed the networking packet,
and wherein in response to notification from the first virtual machine, the hardware NIC is to determine whether the first approach or the second approach should be used to route the networking packet.
7. The computing device of claim 1, further comprising:
a hardware inputoutput (IO) bus to which the hardware NIC is communicatively connected; and,
a hardware memory having a first memory portion assigned to the first virtual machine and a second memory portion assigned to the second virtual machine,
wherein the hardware NIC is to perform a direct memory access (DMA) operation over the hardware IO bus to retrieve just a portion of the networking packet from the first memory portion, and is to determine whether the first approach or the second approach should be used to route the networking packet based on contents of the portion of the networking packet.
8. The computing device of claim 1, wherein the considerations comprising one or more of:
currently available capacity of one or more processors of the computing device via which the first virtual machine and the second virtual machine;
current congestion on a hardware inputoutput (IO) bus to which the hardware NIC is communicatively connected;
quality of service (QoS) requirements of the first virtual machine;
QoS requirements of the second virtual machine.
9. A computer-readable storage medium having computer-readable code stored thereon, wherein execution of the computer-readable code by a computing device causes a method to be performed, the method comprising:
programming a hardware network interface controller (NIC) of a computing device to determine whether a networking packet is to be routed from a first virtual machine of the computing device to a second virtual machine of the computing device in accordance with a first approach or a second approach, based upon one or more considerations regarding a state of the computing device,
wherein responsive to the networking packet being generated by the first virtual machine for transmission to the second virtual machine,
the hardware NIC is to determine whether the networking packet is to be routed in accordance with the first approach or the second approach, as programmed, and is then to control routing of the networking packet in the accordance with the first approach or the second approach.
10. The computer-readable storage medium of claim 9, wherein the first approach comprises routing the networking packet over a hardware inputoutput (IO) bus of the computing device from the first virtual machine to the second virtual machine,
and wherein the second approach comprises routing the networking packet from the first virtual machine to the second virtual machine by using a computer program and a processor of the computing device to execute the computer program.
11. The computer-readable storage medium of claim 9, wherein the first approach does not use any processors of the computing device to route the networking packet from the first virtual machine to the second virtual machine,
and wherein the second approach does use one or more processors of the computing device to route the networking packet from the first virtual machine to the second virtual machine.
12. The computer-readable storage medium of claim 9, wherein the second approach comprises:
performing a first direct memory access (DMA) operation to copy the networking packet from a first memory portion of a hardware memory of the computing device assigned to the first virtual machine to the hardware NIC; and,
performing a second DMA operation to copy the networking packet from the hardware NIC to a second memory portion of the hardware memory assigned to the second virtual machine.
13. The computer-readable storage medium of claim 9, wherein the first approach comprises:
retrieving, by an intermediary virtual machine, the networking packet from a first memory portion of a hardware memory of the computing device assigned to the first virtual machine; and,
copying, by the intermediary virtual machine, the networking packet to a second memory portion of the hardware memory assigned to the second virtual machine.
14. The computer-readable storage medium of claim 9, wherein the considerations comprising one or more of:
currently available capacity of one or more processors of the computing device via which the first virtual machine and the second virtual machine;
current congestion on a hardware inputoutput (IO) bus to which the hardware NIC is communicatively connected;
quality of service (QoS) requirements of the first virtual machine;
QoS requirements of the second virtual machine.
15. A hardware network interface controller (NIC) for a computing device comprising:
a first networking component implemented at least in hardware, to route a first networking packet sent by a first virtual machine of the computing device over a network external to the computing device;
a second networking component implemented at least in the hardware, to determine whether a second networking packet sent by the first virtual machine to a second virtual machine of the computing device is to be routed from the first virtual machine to the second virtual machine in accordance with a first approach or a second approach, based upon one or more considerations regarding a state of the computing device.

The claims below are in addition to those above.
All refrences to claim(s) which appear below refer to the numbering after this setence.

1. An automated method comprising:
determining, using look-up tables, a surface distance between two geographical locations by,
storing values in a square look-up table for determining the square of a value;
storing values in a squared linear to surface distance look-up table for determining the surface distance of a linear value;
using Normalized Cartesian co-ordinates of the two geographic locations and the square look-up table to calculate the square of the linear distance between the two geographical locations, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius;
using the squared linear to surface distance look-up table to convert the calculated square of the linear distance between the two geographical locations to a surface distance value between the two geographical locations; and

outputting the surface distance value between the two geographical locations.
2. The method of claim 1 further including calculating Normalized Cartesian co-ordinates of the two geographic locations, by converting the two geographical locations to Normalized Cartesian co-ordinates.
3. The method of claim 1 further including receiving a request from a user to calculate the distance between two geographical locations.
4. The method of claim 1 further including receiving distance criteria from a user and determining if the surface distance falls within the distance criteria.
5. The method of claim 1 further including: if the calculated surface distance is a distance greater than the surface distance of the diameter of the Earth, then recalculating the surface distance by:
determining the location of a point on the Earth’s surface diametrically opposite one of the two geographic locations;
calculating the surface distance from the diametrically opposite point to the other of the two geographical locations; and
subtracting the calculated surface distance from the surface distance of the Earth’s diameter to more accurately calculate the distance between the two geographic locations.
6. A machine-readable medium comprising instructions, which when executed by a machine, cause the machine to perform a method comprising:
determining the surface distance between two geographical locations by,
storing values in a square look-up table for determining the square of a value;
storing values in a squared linear to surface distance look-up table for determining the surface distance of a linear value;
receiving a request to calculate the distance between two geographical locations;

using Normalized Cartesian co-ordinates of the two geographic locations and the square look-up table to calculate the square of the linear distance between the two geographical locations, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius;
using the squared linear to surface distance look-up table to convert the calculated square of the linear distance between the two geographical locations to a surface distance value between the two geographical locations; and

outputting the surface distance value between the two geographical locations.
7. A computerized system to calculate, using look-up tables, a surface distance between two geographical locations, the system comprising:
a database to store values in a square look-up table for determining the square of a value, and values in a squared linear to surface distance look-up table for determining the surface distance of the square of a linear value;
a processor to use Normalized Cartesian co-ordinates of the two geographic locations and the square look-up table to calculate the square of the linear distance between the two geographical locations, and to use the squared linear to surface distance look-up table to convert the calculated square of the linear distance between the two geographical locations to a surface distance value between the two geographical locations, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius; and
an output device to output the surface distance value between the two geographical locations.
8. A computerized system to calculate, using look-up tables, a surface distance between two geographical locations, the system comprising:
first means for storing values in a square look-up table for determining the square of a value, and values in a squared linear to surface distance look-up table for determining the surface distance of a square of a linear value;
second means for using Normalized Cartesian co-ordinates of the two geographic locations and the square look-up table to calculate the square of the linear distance between the two geographical locations, and for using the squared linear to surface distance look-up table to convert the calculated square of the linear distance between the two geographical locations to a surface distance value between the two geographical locations, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius; and
third means for outputting surface distance value between the two geographical locations.
9. A method to filter a search result set using distance criteria, the method including:
receiving a search request with search parameters, the search request including distance criteria;
retrieving a result using the search parameters, the result including a list of items and associated geographical locations;
determining Normalized Cartesian co-ordinates for an origin location, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius;
determining the Normalized Cartesian co-ordinates for the geographical location associated with each of the items;
using the Normalized Cartesian co-ordinates of the origin location and of the geographical location associated with each of the items to calculate a linear distance from the origin location to the geographical location of each of the items;
converting the calculated linear distances to surface distances from the origin location to the geographical location of each of the items;
determining whether the surface distance from the origin location to the geographical location of an item falls within the distance criteria;
for cases where it is determined the surface distance from the origin location to the geographical location of an item falls within the distance criteria then including the item in a result set; and
outputting the result set.
10. The method of claim 9 further including:
storing values in a square look-up table for determining the square of a value;
storing values in a squared linear to surface distance look-up table for determining the surface distance of a linear value;
using the square look-up table to calculate the square of the linear distances; and using the squared linear to surface distance look-up table to convert the calculated square of the linear distances to surface distances.
11. A machine-readable medium comprising instructions, which when executed by a machine, cause the machine to perform a method to filter a search result set using distance criteria, the method comprising:
receiving a search request with search parameters, the search request including distance criteria;
retrieving a result set using the search parameters, the result set including a list of items and their geographical locations;
determining Normalized Cartesian co-ordinates for an origin location, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius;
determining the Normalized Cartesian co-ordinates for the geographical location of each of the items;
using the Normalized Cartesian co-ordinates of the origin location and of the geographical location of each of the items to calculate a linear distance from the origin location to the geographical location of each of the items;
converting the calculated linear distances to surface distances from the origin location to the geographical location of each of the items;
determining whether the surface distance from the origin location to the geographical location of an item falls within the distance criteria;
for cases where it is determined the surface distance from the origin location to the geographical location of an item falls within the distance criteria then including the item in a result set; and outputting the result set.
12. A computerized system to filter a search result set using distance criteria, the system comprising:
a search engine for receiving a search request with search parameters, the search request including distance criteria, and retrieving a result set using the search parameters, the result set including a list of items and their geographical locations;
a processor to use Normalized Cartesian co-ordinates of an origin location and the geographic location of each item in the list of items to calculate a linear distance between the origin location and the geographical location of each of the items, and to convert the calculated linear distance to a surface distance between the origin location and the geographic location of each item, the Normalized Cartesian co-ordinates obtained by adding to each of Cartesian co-ordinates X, Y, and Z a value of earth radius;
a filter to filter out from the result set those items whose surface distances do not fall within the distance criteria; and
an output device to output the result set.