Download as a PDF
Transcript
Visible Memory Hidden Memory AIX Stable Memory ICQ Device Driver ICQ Server ... VDISK Service Data Handles Figure 1: Overall Structure of DM/6000 Software. this FASTBOOT snapshot exists, the operating system can be rebooted in about 1 second from the time the FASTBOOT server has received a reboot request. Since our device drivers are all virtual, in the sense that they communicate with the server and not directly with a physical I/O device, this allows a complete reboot in under 3 seconds. 4 ICQ and the Server The main problems we faced in providing services outside of AIX were: sharing physical memory; sharing the processor(s); communication between AIX and the server; server installation and restart; and service installation and restart. The last two problem areas arise from the recognition that our intention to make the ICQ server and services free of bugs will not necessarily be fullled. Further, even if it is, there will, undoubtedly, be additional services invented after some systems are already in operation. We therefore want to be able to replace the server, and/or services, on a running system without performing a shutdown of AIX. 4.1 Sharing Physical Memory We want some of the main memory of the DM/6000 prototype to be accessible only to the ICQ server, but the prototype does not support hardware fencing of memory. Thus, there is in principle nothing to prevent the operating system from trespassing onto the ICQ server's storage. In practice, operating systems avoid accessing non-existent real memory, because this could lead to unrecoverable machine-check interruptions: they expect the ROS boot code that loads the operating system to provide a map of available real memory. Since we are providing the equivalent of the ROS boot code ourselves, we are free to have that code build a map of memory indicating that the vast majority of the installed memory simply does not exist. This is not an ideal solution, but is adequate, given that AIX operates in real mode only until the real addresses of the good memory pages have been loaded into the appropriate tables, when virtual address translation is turned on once and for all (except for a very brief initial sequence in rst-level interruption handlers). Since no real addresses are ever generated, there is little danger of an erroneous access to hidden memory. 4.2 Sharing Processors We could dedicate some of the DM/6000's processors to the ICQ server, leaving the rest to AIX, but possible workload changes make this inecient. Further, an entire processor is a rather crude granule. And, nally, we wanted to be able to test our system modications using standard, uniprocessor RS/6000s. Therefore, we needed a way to switch a single processor between running AIX and our server. This requires a hole in the wall between visible and hidden memory, a call stub in the kernel that transfers control to code in hidden memory. A hardware call gate could be used; it would be unspoofable, though slow. In practice, sucient protection derives from running the server without address translation, in unmapped storage. The call stub is located in an area of memory that is mapped virtual=real so that translation mode switching makes sense. The real address of the server code is supplied in the operating system's boot data. When a request is put on the ICQ, the processor making that request is free to spin, waiting for some