[Qemu-devel] [PATCH v3] xen_pt: fix failure of attaching & detaching a PCI device to VM repeatedly.

2016-03-09 Thread Jianzhong,Chang
and affects the release of related objects. So, memory_region_ref/unref() is moved f rom xen_pt_region_add/del to xen_pt_region_update. Signed-off-by: Jianzhong,Chang --- hw/xen/xen_pt.c | 16 +++- 1 files changed, 11 insertions(+), 5 deletions(-) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen

[Qemu-devel] [PATCH v2] xen_pt: fix failure of attaching & detaching a PCI device to VM repeatedly

2015-12-08 Thread Jianzhong,Chang
ase of related objects. So, memory_region_ref/unref() is moved from xen_pt_region_add/del to xen_pt_region_update. Signed-off-by: Jianzhong,Chang --- hw/xen/xen_pt.c | 13 - 1 files changed, 8 insertions(+), 5 deletions(-) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen

[Qemu-devel] [PATCH] xen_pt: fix failure of attaching & detaching a PCI device to VM repeatedly

2015-12-08 Thread Jianzhong,Chang
n_update() checks it but memory_region_ref/unref() does not. This case causes obj->ref issue and affects the release of related objects. So, memory_region_ref/unref() is moved from xen_pt_region_add/del inside xen_pt_region_update. Signed-off-by: Jianzhong,Chang --- hw/xen/xen_pt.c | 10

[Qemu-devel] [PATCH] xen_pt: fix failure of attaching & detaching a PCI device to VM repeatedly

2015-12-03 Thread Jianzhong,Chang
From: jianzhong,Chang Add pci = [ '$VF_BDF', '$VF_BDF', '$VF_BDF'] in hvm guest configuration file. After the guest boot up, detach the VFs in sequence by "xl pci-detach $DOMID $VF_BDF", reattach the VFs by "xl pci-attach $VF_BDF" in sequence. A