Added a new RPC, vmd_rescan, that forces the VMD driver to do a rescan of all devices behind the VMD. A device that was previously removed via spdk_vmd_remove_device() will be found again during vmd_rescan. Signed-off-by: Konrad Sztyber <konrad.sztyber@intel.com> Change-Id: Ide87eb44c1d6d524234820dc07c78ba5b8bcd3ad Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/13958 Reviewed-by: Jim Harris <james.r.harris@intel.com> Reviewed-by: Tom Nabarro <tom.nabarro@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
18 lines
417 B
Python
18 lines
417 B
Python
from .helpers import deprecated_alias
|
|
|
|
|
|
@deprecated_alias('enable_vmd')
|
|
def vmd_enable(client):
|
|
"""Enable VMD enumeration."""
|
|
return client.call('vmd_enable')
|
|
|
|
|
|
def vmd_remove_device(client, addr):
|
|
"""Remove a device behind VMD"""
|
|
return client.call('vmd_remove_device', {'addr': addr})
|
|
|
|
|
|
def vmd_rescan(client):
|
|
"""Force a rescan of the devices behind VMD"""
|
|
return client.call('vmd_rescan')
|