hypervisor: aarch64: drop set_its_device

The field can be set directly.

This eliminates one place where dyn Device is used outside of KVM
aarch64 code.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
This commit is contained in:
Wei Liu
2022-07-20 15:21:43 +00:00
committed by Liu Wei
parent 422bf89d4d
commit 0856ebbd42
2 changed files with 2 additions and 9 deletions

View File

@@ -187,7 +187,7 @@ impl KvmGicV3Its {
0,
)?;
self.set_its_device(Some(its_fd));
self.its_device = Some(its_fd);
/* We need to tell the kernel how many irqs to support with this vgic.
* See the `layout` module for details.
@@ -315,10 +315,6 @@ impl Vgic for KvmGicV3Its {
[self.msi_addr, self.msi_size]
}
fn set_its_device(&mut self, its_device: Option<Arc<dyn Device>>) {
self.its_device = its_device;
}
fn set_gicr_typers(&mut self, vcpu_states: &[CpuState]) {
let gicr_typers = construct_gicr_typers(vcpu_states);
self.gicr_typers = gicr_typers;