Commit aa6e96bf authored by jiangdongxu's avatar jiangdongxu Committed by Jiang Dongxu
Browse files

vdpa: add device state operations

virt inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/I86ITO



----------------------------------------------------------------------

Introduce several interfaces to allow vdpa device save/load device
status when guest machine resume and suspend.

The get_dev_buffer_size interface is used to get the buffer size
of vdpa device status.

The get_dev_buffer interface is used to get the device buffer from
vdpa device, and VMM can save it.

The set_dev_buffer interface is used to set the device status from
userspace.

These operations are optional. If they are not implemented, return
EOPNOTSUPP.

Signed-off-by: default avatarjiangdongxu <jiangdongxu1@huawei.com>
parent 8d0da7a4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment