vhost: add power monitor API
authorMiao Li <miao.li@intel.com>
Mon, 25 Oct 2021 14:47:22 +0000 (14:47 +0000)
committerMaxime Coquelin <maxime.coquelin@redhat.com>
Fri, 29 Oct 2021 10:32:29 +0000 (12:32 +0200)
commit34fd4373ce76efd0236e59397c495762c2ec9e64
tree6064b7ee50b678322f2b5a305c4b918e297dab83
parent64ac7e08f636d05ba29231bfe48b363862ff59aa
vhost: add power monitor API

This commit defines rte_vhost_power_monitor_cond which is used to pass
some information to vhost driver. The information is including the
address to monitor, the expected value, the mask to extract value read
from 'addr', the value size of monitor address, the match flag used to
distinguish the value used to match something or not match something.

Vhost driver can use these information to fill rte_power_monitor_cond.

Signed-off-by: Miao Li <miao.li@intel.com>
Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
Acked-by: David Hunt <david.hunt@intel.com>
doc/guides/rel_notes/release_21_11.rst
lib/vhost/rte_vhost.h
lib/vhost/version.map
lib/vhost/vhost.c