Supported Intel AMT Features > Storage > Detailed Description

Detailed Description

The objective of the Intel AMT HLAPI is to simplify the usage of the CIM classes:

•   Using names instead of handles.

•   Using the logical structure rather than the CIM class API, i.e., present the user with a structure containing the building blocks presented earlier.

•   Hide the need for a session handle.

•   Hide the fpacl table.

Structure

The Storage is divided into two logical units: StorageAdmin and StorageService. The StorageAdmin is responsible for the global storage settings, such as limiting the maximum available storage per application. The StorageAdmin can also retrieve information about Applications which exist in the storage.

The StorageService is responsible for the actual memory operations performed by registered applications, such as allocation and reading/writing from the memory.

Each logical unit requires a different realm – the StorageAdmin and Storage realms respectively.

Global Attributes

Currently there are 196608B available for allocation.

•   This memory is divided between partner and non-partner applications.

•   There is a configurable limitation of the total amount of memory that can be requested by a single application. This limit is identical for all non-partner applications, and can be set separately for each partner application (See Basic Flow – Control Allocation Sizes and Permissions Group’s Filters).

•   There can be up to 24 applications, 16 can be simultaneously active.

•   You can also obtain the amount of currently allocated storage, the max number of enterprises, and some data concerning block’s permissions groups. All this data can be obtained by performing StorageAdmin.GetGlobalStorageAttributes ().

Main Building Blocks

The Admin user can get and set the storage global attributes such as get the total amount of memory, and set the partition between partner and non-partner memory (See Basic Flow – Control Allocation Sizes). It can also add/delete enterprises and partner fpacl entries. It has access to all applications attributes and can remove applications.

The storage user represents a registered application, identified by its session handle, detailed below.  It can request memory allocation and then read and write to this allocated memory. It can also define which of the other registered applications will have access to this memory.

main components1

The StorageAdmin user can add/remove and enumerate the enterprises table. There can be up to 4 enterprises, case sensitive names. Each enterprise is identified by its handle, which is returned when inserting the enterprise.  When registering an application, the user must specify an existing enterprise.

An Application is the object on which all storage operations are performed. It is identified by its name, vendor name, enterprise name, and UUID. In order to create an application, i.e. add it to the storage, you need to perform RegisterApplication (name, vendor, enterprise, uuid). The registration returns a session handle.

•   The session handle is used as a key to authenticate and authorize the application for any future operations.

•   The session handle is valid for 1 hour, after then a new one should be requested.

•   A new session handle can be acquired by re-registering the application.

•   The applications also have an unique handle in the registered applications table.

Applications can be partner or non-partner. The difference between them is that a partner application can allocate free memory that was designated to the non-partner applications, if partner storage is all in use.

•   In Order for an application to be registered as partner, an identical entry for this application be exist in fpacl table prior registration. This is usually done in the FW.

•   For example, to register the application {app1, vendor1, enterprise1, uuid1} as partner, first need to add to the Fpacl entry {app1, vendor1, size}.

•   After a non-partner application is registered the FW adds an entry for it in the fpacl table, and isPartner set to false. This record cannot be deleted or changed by the user.

A block is a memory unit allocated for an application, it should be a multiple of 4KB.  The block storage as owned by an application is returned from the method CreateBlock () as IBlock interface. The session handle passes in the request determines the block owner.

•   The block owner can specify who has permitted to access this block, and can change the block properties. (name and visibility).

•   Any permitted application can read/write to this block.

Each block can have up to 2 permission groups. Each group has an attribute – readonly/readwrite which specifies its member’s access level. The members of the groups are applications (represented by their handles).

•   A group can have up to 8 members.

•   The first created group gets the handle 0 and the second gets 1.

•   Groups can also have special filter members. This provides access to all applications matching the filter.

 

Vendor Application

The storage dictates a logical structure on the applications– each application has a vendor and an enterprise associated with it.

This logical structure is reflected in the access level of one application to another application’s information.

Actually - an application can access another application information (such as blocks), only if the applications share the same vendor.

 

Permissions Group’s Filters

After a block is allocated, one can add a permission group to the block, to allow other applications to access the block.

A member of the permission group is normally a registered Application.

In addition to applications, one can add special filters to the group:

•   After a filter was added, any application that satisfies the filter’s conditions will gain access to the block.

•   Two types of filters: match Vendor and Enterprise – all applications that share the vendor and enterprise name with the block’s owner application. And Match application, vendor and enterprise – all application that share the same names and are only separated by their UUID.

 

Basic Flow – Control Allocation Sizes

The StorageAdmin user can control the allocation size of applications. It can be done in one of the following ways:

•   Limitation per type:

•   Dividing the storage between partner and non-partner applications. The user can set the value for MaxPartenrStorage, which will set MaxNonPartnerStorage to be total – MaxPartnerStorage.

•   If MaxPartnerStorage memory is allocated to partner applications, the next parner application that requests allocation will get non-partner memory, if non-allocated exists.  If MaxNonPartnerStorage is reached, the next non-partner allocation request will fail.

•   Limitation per application:

•   Non-partner application - All the non-partner apps share the same limitation value. This is the value for MaxNonPartnerTotalAllocationSize.

•   Partner applications – This value is set per application. It is set when inserting the fpacl entry for the application in the parameter TotalAllocationSize.

 

Copyright © 2006-2022, Intel Corporation. All rights reserved.