B #3964: Clear PCI address from VM (#4602)

This commit is contained in:
Christian González authored and GitHub committed 2020-04-24 12:52:10 +02:00
1 parent b3795a470f
commit 90605d15be
2 files changed
+5 -2

No files matched your search

+3
View File
@@ -211,6 +211,9 @@ void HostSharePCI::del(const vector<VectorAttribute *> &devs)
{
pci_it->second->vmid = -1;
pci_it->second->attrs->replace("VMID",-1);
// Clean address from VM as it's not using it anymore
(*it)->remove("ADDRESS");
}
}
};
+2 -2
View File
@@ -938,12 +938,12 @@ void LifeCycleManager::epilog_success_action(int vid)
vmpool->update_history(vm);
vmpool->update(vm);
vm->get_capacity(sr);
hpool->del_capacity(vm->get_hid(), sr);
vmpool->update(vm);
//----------------------------------------------------
dm->trigger(action,vid);