65
•
•
•
1.
-v, --version
Shows program's version number and exit
--device DEVICE, -d DEVICE
Device to work with.
--disable_rshim
When TRUE, the host does not have an RSHIM function to
access the embedded CPU registers
--disable_tracer
When TRUE, the host will not be allowed to own the Tracer
--disable_counter_rd
When TRUE, the host will not be allowed to read Physical port
counters
--disable_port_owner
When TRUE, the host will not be allowed to be Port Owner
r,restrict
Set host 1 (Arm) privileged, host 0 (x86_64) restricted.
p,privilege
Set host 1 (Arm) privileged, host 0 (x86_64) privileged (back
to default).
q,query
Query current host configuration
-f, --full
Run with query command for high verbosity level - valid from
embedded ARM CPU only.
Example of mlxprivhost:
Enabling Full Host Restriction (Embedded ARM CPU Only):
mlxprivhost –d /dev/mst/mt41682_pciconf0 r --disable_rshim --disable_tracer --disable_counter_rd --
disable_port_owner
Disabling Host Restriction (Embedded ARM CPU Only): :
mlxprivhost –d /dev/mst/mt41682_pciconf0 p
Query the status of the host\hosts (the full flag valid for embedded ARM CPU Only):
mlxprivhost -d /dev/mst/mt41682_pciconf0 q --full
Host configurations
-------------------
host index :
0
1
2
3
level : PRIVILEGED PRIVILEGED PRIVILEGED PRIVILEGED
Port functions status:
-----------------------
disable_rshim : FALSE FALSE FALSE FALSE
disable_tracer : FALSE FALSE FALSE FALSE
disable_port_owner : FALSE FALSE FALSE FALSE
disable_counter_rd : FALSE FALSE FALSE FALSE
Disabling/Enabling Access to the Hardware
The secure host feature enables ConnectX family devices to block access to its internal hardware
registers. The hardware access in this mode is allowed only if a correct 64 bits key is provided.
4th Generation Devices
To disable/enable access to the hardware:
Set the key:
The secure host feature requires a MLNX_OFED driver installed on the machine.