mirror of
https://github.com/kata-containers/kata-containers.git
synced 2026-07-01 22:50:54 +00:00
kata-types: Introduce independent IO thread for virtio-blk devices
The 'indep_iothreads' field is introduced in Hypervisor to make it configurable for number of independent IO threads for virtio-blk devices. When set to a value greater than 0, creates independent IO threads that can be attached to virtio-blk devices during hotplug. Note that it requires 'enable_iothreads' to be true for virtio-blk devices to use these threads. Signed-off-by: Alex Lyn <alex.lyn@antgroup.com>
This commit is contained in:
committed by
Fabiano Fidêncio
parent
8f5b898e6d
commit
d086d324e0
@@ -1720,11 +1720,19 @@ pub struct Hypervisor {
|
||||
|
||||
/// Enables the use of iothreads (data-plane).
|
||||
///
|
||||
/// When enabled, I/O operations are handled in a separate I/O thread.
|
||||
/// This is currently only implemented for SCSI devices.
|
||||
/// This is currently implemented for SCSI devices and for virtio-blk
|
||||
/// hotplug when `indep_iothreads` is greater than 0.
|
||||
#[serde(default)]
|
||||
pub enable_iothreads: bool,
|
||||
|
||||
/// Number of independent IO threads for virtio-blk-pci devices.
|
||||
///
|
||||
/// When set to a value greater than 0, creates independent IO threads
|
||||
/// that can be attached to virtio-blk-pci devices during hotplug.
|
||||
/// Requires enable_iothreads to be true for virtio-blk-pci devices to use these threads.
|
||||
#[serde(default)]
|
||||
pub indep_iothreads: u32,
|
||||
|
||||
/// Block device configuration information.
|
||||
#[serde(default, flatten)]
|
||||
pub blockdev_info: BlockDeviceInfo,
|
||||
|
||||
Reference in New Issue
Block a user