Skip to content

Commit 8c2141e

Browse files
committed
Responding to comments and build errors
1 parent c21cfa4 commit 8c2141e

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

vm/devices/pci/pci_core/src/capabilities/pci_express.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ impl PciExpressState {
3636
}
3737

3838
#[derive(Inspect)]
39-
/// PCI Express capability with Function Level Reset support.
39+
/// Configurable PCI Express capability.
4040
pub struct PciExpressCapability {
4141
device_capabilities: pci_express::DeviceCapabilities,
4242
state: Arc<Mutex<PciExpressState>>,
@@ -97,7 +97,7 @@ impl PciCapability for PciExpressCapability {
9797
// PCIe Capabilities Register (16 bits) + Next Pointer (8 bits) + Capability ID (8 bits)
9898
// For basic endpoint: Version=2, Device/Port Type=0 (PCI Express Endpoint)
9999
let pcie_caps: u16 = 0x0002; // Version 2, Device/Port Type 0
100-
(pcie_caps as u32) << 16 | (0x00 << 8) | CapabilityId::PCI_EXPRESS.0 as u32
100+
(pcie_caps as u32) << 16 | CapabilityId::PCI_EXPRESS.0 as u32
101101
}
102102
PciExpressCapabilityHeader::DEVICE_CAPS => self.device_capabilities.into_bits(),
103103
PciExpressCapabilityHeader::DEVICE_CTL_STS => {

vm/devices/storage/nvme_test/src/tests/controller_tests.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ use pal_async::DefaultDriver;
2626
use pal_async::async_test;
2727
use pci_core::msi::MsiInterruptSet;
2828
use pci_core::test_helpers::TestPciInterruptController;
29-
use std::sync::Arc;
3029
use user_driver::backoff::Backoff;
3130
use vmcore::vm_task::SingleDriverBackend;
3231
use vmcore::vm_task::VmTaskDriverSource;

0 commit comments

Comments
 (0)