mirror of
https://git.proxmox.com/git/qemu-server
synced 2025-08-08 07:45:31 +00:00
ivmshmem: comment deletion of shm on VM stop in code
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
e3c27a6afe
commit
4c5a6a2419
@ -5506,6 +5506,10 @@ sub vm_stop_cleanup {
|
|||||||
|
|
||||||
if ($conf->{ivshmem}) {
|
if ($conf->{ivshmem}) {
|
||||||
my $ivshmem = PVE::JSONSchema::parse_property_string($ivshmem_fmt, $conf->{ivshmem});
|
my $ivshmem = PVE::JSONSchema::parse_property_string($ivshmem_fmt, $conf->{ivshmem});
|
||||||
|
# just delete it for now, VMs which have this already open do not
|
||||||
|
# are affected, but new VMs will get a separated one. If this
|
||||||
|
# becomes an issue we either add some sort of ref-counting or just
|
||||||
|
# add a "don't delete on stop" flag to the ivshmem format.
|
||||||
unlink '/dev/shm/pve-shm-' . ($ivshmem->{name} // $vmid);
|
unlink '/dev/shm/pve-shm-' . ($ivshmem->{name} // $vmid);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user