• B
    fix segfault during virsh save in pv guest · 91d1911c
    Bamvor Jian Zhang 提交于
    this patch fix the wrong sequence for fd and timeout register. the sequence
    was right in dfa1e1dd for fd register, but it changed in e0622ca2.
    in this patch, set priv, xl_priv in info and increase info->priv ref count
    before virEventAddHandle. if do this after virEventAddHandle, the fd
    callback or fd deregister maybe got the empty priv, xl_priv or wrong ref
    count.
    
    after apply this patch, test more than 100 rounds passed compare to fail
    within 3 rounds without this patch. each round includes define -> start ->
    destroy -> create -> suspend -> resume -> reboot -> shutdown -> save ->
    resotre -> dump -> destroy -> create -> setmem -> setvcpus -> destroy.
    Signed-off-by: NBamvor Jian Zhang <bjzhang@suse.com>
    91d1911c
libxl_driver.c 124.6 KB