mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-23 00:11:16 +00:00
virtio-devices: vhost_user: fs: Remove write_config() implementation
All the configuration fields for virtio-fs are read only for the driver. Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
parent
15d5cc62ff
commit
580739f776
@ -421,18 +421,6 @@ impl VirtioDevice for Fs {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn write_config(&mut self, offset: u64, data: &[u8]) {
|
|
||||||
let config_slice = self.config.as_mut_slice();
|
|
||||||
let data_len = data.len() as u64;
|
|
||||||
let config_len = config_slice.len() as u64;
|
|
||||||
if offset + data_len > config_len {
|
|
||||||
error!("Failed to write config space");
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
let (_, right) = config_slice.split_at_mut(offset as usize);
|
|
||||||
right.copy_from_slice(&data[..]);
|
|
||||||
}
|
|
||||||
|
|
||||||
fn activate(
|
fn activate(
|
||||||
&mut self,
|
&mut self,
|
||||||
mem: GuestMemoryAtomic<GuestMemoryMmap>,
|
mem: GuestMemoryAtomic<GuestMemoryMmap>,
|
||||||
|
Loading…
Reference in New Issue
Block a user