SYSTEM AND METHOD FOR REQUESTING SYSTEM SERVICES
An example host computing device includes: a memory and a communications interface; a processor interconnected with the memory and the communications interface, the processor configured to: detect a request, by a target computing device, for execution of a system service by the host computing device; obtain system service parameters for the requested system service; execute the system service in accordance with the system service parameters; and send a completion indicator to the target computing device.
1 . A host computing device comprising:
a memory and a communications interface;
a processor interconnected with the memory and the communications interface, the processor configured to:
detect a request, by a target computing device, for execution of a system service by the host computing device;
obtain system service parameters for the requested system service;
execute the system service in accordance with the system service parameters; and
send a completion indicator to the target computing device.
2 . The device of claim 1 , wherein to detect the request for execution of the system service, the processor is configured to:
detect a polling condition and in response to the polling condition, poll an exception log of the target computing device; and
identify the request represented by an exception detected in the exception log.
3 . The device of claim 2 , wherein the polling condition comprises one of: a system interrupt initiated at the host computing device by the target computing device; and passage of a predetermined period of time.
4 . The device of claim 1 , wherein to obtain the system service parameters, the processor is configured to request the system service parameters from the target computing device.
5 . The device of claim 1 , wherein the system service comprises one or more of: a read request, a write request, and a log request.
6 . A target computing device comprising:
a plurality of processing elements configured to execute a program;
a memory and a communications interface;
a controller interconnected with the memory, the communications interface, and the plurality of processing elements, the controller configured to:
during execution of the program by at least one of the processing elements, detect a service request condition for requesting a system service from a host device;
in response to the service request condition, generate an exception to request the system service from the host device; and
in response to a completion indicator indicating completion of the requested system service from the host device, resume execution of the program.
7 . The device of claim 6 , wherein the controller is configured to log the exception in an exception log at the target device.
8 . The device of claim 7 , wherein to generate the exception, the controller is configured to initiate a system interrupt at the host device to cause the host device to poll the exception log to identify the exception as the request for the system service.
9 . The device of claim 6 , wherein the controller is further configured to:
receive a request for system service parameters from the host device; and
send, to the host device, the system service parameters for the host device to execute the system service.
10 . The device of claim 6 , wherein the system service comprises one or more of: a read request, a write request and a log request.
11 . A method comprising:
detecting, at a host device, a request for a system service at a target device;
obtaining system service parameters for processing the request from the target device;
executing the system service request in accordance with the system service parameters; and
sending a completion indicator to the target device.
12 . The method of claim 11 , wherein detecting the request for the system service comprises: polling an exception log at the target device to identify an exception indicating the request for the system service.
13 . The method of claim 12 , further comprising: detecting a system interrupt initiated by the exception, wherein the polling is performed in response to the system interrupt.
14 . The method of claim 11 , wherein obtaining the system service parameters comprises requesting the system service parameters from the target device.
15 . The method of claim 11 , wherein the system service comprises one or more of: a read request, a write request, and a log request.
16 . A method comprising:
during execution of a program at a target device, detecting a service request condition for requesting a system service from a host device;
in response to the service request condition, generating an exception to request the system service from the host device; and
in response to a completion indicator from the host device, resuming the execution of the program.
17 . The method of claim 16 , further comprising: logging the exception in an exception log stored at the target device.
18 . The method of claim 17 , wherein generating the exception comprises: initiating a system interrupt at the host device to cause the host device to poll the exception log to identify the exception as the request for the system service.
19 . The method of claim 16 , further comprising:
receiving a request for system service parameters from the host device; and
sending, to the host device, the system service parameters for the host device to execute the system service.
20 . The method of claim 16 , wherein the system service comprises one or more of: a read request, a write request and a log request.