virtio-devices: Remove write_config implementations

Remove the write_config() implementations that only generate a warning
as that is now done at the VirtioDevice level.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford 2020-07-16 09:49:35 +01:00 committed by Sebastien Boeuf
parent 6ba1c4318e
commit e3dc620146
6 changed files with 0 additions and 25 deletions

View File

@ -486,10 +486,6 @@ impl VirtioDevice for Balloon {
}
}
fn write_config(&mut self, _offset: u64, _data: &[u8]) {
warn!("virtio-balloon device configuration is read-only");
}
fn activate(
&mut self,
mem: GuestMemoryAtomic<GuestMemoryMmap>,

View File

@ -521,10 +521,6 @@ impl VirtioDevice for Console {
}
}
fn write_config(&mut self, _offset: u64, _data: &[u8]) {
warn!("No device specific configration requires write");
}
fn activate(
&mut self,
mem: GuestMemoryAtomic<GuestMemoryMmap>,

View File

@ -988,11 +988,6 @@ impl VirtioDevice for Iommu {
.unwrap();
}
}
fn write_config(&mut self, _offset: u64, _data: &[u8]) {
warn!("virtio-iommu device configuration is read-only");
}
fn activate(
&mut self,
mem: GuestMemoryAtomic<GuestMemoryMmap>,

View File

@ -885,10 +885,6 @@ impl VirtioDevice for Mem {
}
}
fn write_config(&mut self, _offset: u64, _data: &[u8]) {
warn!("virtio-mem device configuration is read-only");
}
fn activate(
&mut self,
mem: GuestMemoryAtomic<GuestMemoryMmap>,

View File

@ -478,10 +478,6 @@ impl VirtioDevice for Pmem {
}
}
fn write_config(&mut self, _offset: u64, _data: &[u8]) {
warn!("virtio-pmem device configuration is read-only");
}
fn activate(
&mut self,
mem: GuestMemoryAtomic<GuestMemoryMmap>,

View File

@ -292,10 +292,6 @@ impl VirtioDevice for Rng {
warn!("No currently device specific configration defined");
}
fn write_config(&mut self, _offset: u64, _data: &[u8]) {
warn!("No currently device specific configration defined");
}
fn activate(
&mut self,
mem: GuestMemoryAtomic<GuestMemoryMmap>,