wrote:
>On Mon, Apr 13, 2020 at 05:32:38PM +0800, thomas.kuang wrote:
>> HI, everyone:
>>
>>
>> My target deal with network hotplug use virDomainDetachDeviceFlags. Because
>> when the API return ,the network maybe doesn’t remove from my vm guest os.
>>
HI, everyone:
My target deal with network hotplug use virDomainDetachDeviceFlags. Because
when the API return ,the network maybe doesn’t remove from my vm guest os.
So I use virConnectDomainEventRegisterAny to register an event ID:
VIR_DOMAIN_EVENT_ID_DEVICE_REMOVED ,
my process as follow:
hi, all
I do a hotplug detach a network in a thread, because
virDomainDetachDeviceFlags maybe asynchronous, so I do like follow:
cb_para->cluster_id = info->cluster_id;
cb_para->group_id = info->group_id;
cb_para->vsys_id = info->vsysid;
cb_para->vnf_id = info->vnf_id;
cb_
hi, all:
I create a vm with six nic, after the vm start, i delete tree nics.
all the three nic delete logic will happen in a thread , every nic delete
has the following process:
int vnf_control_del_network(void *arg)
{
。
call_id = virConnectDomainEventRegisterAny(conn, dom,
VIR_DOMA
HI, all
My daemon exists a libvirt API call:
virEventRegisterDefaultImpl();
once I called the virEventRegisterDefaultImpl() ,must be core ,the bt stack is:
(gdb) bt
#0 free (ptr=0x1) at include/jemalloc/internal/arena.h:652
#1 0x7f57690a488a in virFree () from /lib64/libvirt.so.0
#2
hi,every one
I have some trouble with the virsh to get vm mem-usage in guest os.
[root@localhost ~]# virsh list --all
Id Name State
1 wwl_centos7_1708 running
2 windows-virtio-template running
I create two vms one guest os is centos, the other is window 7
virsh dommemstat wwl_centos7_1708
actual