mirror of
https://github.com/kata-containers/kata-containers.git
synced 2025-04-28 11:44:38 +00:00
Dragonball: optimize the placement of dbs-upcall features
Currently, the dbs-upcall features have 2 problems that are needed to be fixed : There are redundant dbs-upcall features that are needed to be removed. Some place should be controlled by dbs-upcall but not being implemented. This commit will fix those two problems. fixes: #6878 Signed-off-by: Chao Wu <chaowu@linux.alibaba.com>
This commit is contained in:
parent
cf258090aa
commit
deed1b927d
@ -692,6 +692,7 @@ impl VmmService {
|
||||
));
|
||||
}
|
||||
|
||||
#[cfg(feature = "dbs-upcall")]
|
||||
vm.resize_vcpu(config, None).map_err(|e| {
|
||||
if let VcpuResizeError::UpcallServerNotReady = e {
|
||||
return VmmActionError::UpcallServerNotReady;
|
||||
|
@ -763,7 +763,6 @@ impl Vm {
|
||||
impl Vm {
|
||||
#[cfg(feature = "dbs-upcall")]
|
||||
/// initialize upcall client for guest os
|
||||
#[cfg(feature = "dbs-upcall")]
|
||||
fn new_upcall(&mut self) -> std::result::Result<(), StartMicroVmError> {
|
||||
// get vsock inner connector for upcall
|
||||
let inner_connector = self
|
||||
@ -805,7 +804,6 @@ impl Vm {
|
||||
|
||||
#[cfg(feature = "dbs-upcall")]
|
||||
/// Get upcall client.
|
||||
#[cfg(feature = "dbs-upcall")]
|
||||
pub fn upcall_client(&self) -> &Option<Arc<UpcallClient<DevMgrService>>> {
|
||||
&self.upcall_client
|
||||
}
|
||||
@ -825,7 +823,7 @@ impl Vm {
|
||||
}
|
||||
|
||||
/// Resize MicroVM vCPU number
|
||||
#[cfg(feature = "hotplug")]
|
||||
#[cfg(feature = "dbs-upcall")]
|
||||
pub fn resize_vcpu(
|
||||
&mut self,
|
||||
config: VcpuResizeInfo,
|
||||
|
Loading…
Reference in New Issue
Block a user