mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-18 15:28:43 +00:00
dm: virtio: add support for VBS-K device reset
A new ioctl is introduced in VBS-K to issue reset command to kernel VBS-K driver. This is used to support VBS-K S3. When FE enters S3 reset command is sent to device model. Backend driver in device model should use this ioctl to inform the VBS-K drvier in kernel. Signed-off-by: Jian Jun Chen <jian.jun.chen@intel.com> Reviewed-by: Shuo Liu <shuo.a.liu@intel.com> Acked-by: Yu Wang <yu1.wang@intel.com>
This commit is contained in:
@@ -38,7 +38,7 @@ vbs_kernel_init(int fd)
|
||||
int
|
||||
vbs_kernel_reset(int fd)
|
||||
{
|
||||
return VIRTIO_SUCCESS;
|
||||
return ioctl(fd, VBS_K_RESET_DEV, NULL);
|
||||
}
|
||||
|
||||
/*
|
||||
|
Reference in New Issue
Block a user