From 76e3a30c318a37ffd715d1e1d0c8f0f0de3394a5 Mon Sep 17 00:00:00 2001 From: Samuel Ortiz Date: Wed, 14 Aug 2019 10:44:01 +0200 Subject: [PATCH] pci: Simplify PciDevice trait We do not use the on_device_sandboxed() and register_device_capabilities() methods. Signed-off-by: Samuel Ortiz --- pci/src/device.rs | 7 ------- 1 file changed, 7 deletions(-) diff --git a/pci/src/device.rs b/pci/src/device.rs index 1f416f359..381133874 100755 --- a/pci/src/device.rs +++ b/pci/src/device.rs @@ -70,11 +70,6 @@ pub trait PciDevice: BusDevice { Ok(Vec::new()) } - /// Register any capabilties specified by the device. - fn register_device_capabilities(&mut self) -> Result<()> { - Ok(()) - } - /// Gets a list of ioeventfds that should be registered with the running VM. The list is /// returned as a Vec of (eventfd, addr, datamatch) tuples. fn ioeventfds(&self) -> Vec<(&EventFd, u64, u64)> { @@ -95,6 +90,4 @@ pub trait PciDevice: BusDevice { /// * `addr` - The guest address inside the BAR. /// * `data` - The data to write. fn write_bar(&mut self, _base: u64, _offset: u64, _data: &[u8]) {} - /// Invoked when the device is sandboxed. - fn on_device_sandboxed(&mut self) {} }