From 82d3cfdeda8ce36ebcf625307e76d1d94c4b15b2 Mon Sep 17 00:00:00 2001 From: "alex.lyn" Date: Fri, 22 Dec 2023 10:35:38 +0800 Subject: [PATCH] runtime-rs: Make VhostUserConfig's field pci_path type more specific Make VhostUserConfig pci_path's type more specific, change it from Option to Option. Fixes: #8665 Signed-off-by: alex.lyn --- .../crates/hypervisor/src/device/driver/vhost_user.rs | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/runtime-rs/crates/hypervisor/src/device/driver/vhost_user.rs b/src/runtime-rs/crates/hypervisor/src/device/driver/vhost_user.rs index 53258821c5..43b21a1756 100644 --- a/src/runtime-rs/crates/hypervisor/src/device/driver/vhost_user.rs +++ b/src/runtime-rs/crates/hypervisor/src/device/driver/vhost_user.rs @@ -4,6 +4,8 @@ // SPDX-License-Identifier: Apache-2.0 // +use crate::device::pci_path::PciPath; + #[derive(Debug, Clone)] pub enum VhostUserType { /// Blk - represents a block vhostuser device type @@ -50,8 +52,8 @@ pub struct VhostUserConfig { pub device_type: VhostUserType, /// guest block driver pub driver_option: String, - /// pci_addr is the PCI address used to identify the slot at which the drive is attached. - pub pci_addr: Option, + /// pci_path is the PCI Path used to identify the slot at which the device is attached. + pub pci_path: Option, /// Block index of the device if assigned /// type u64 is not OK