[Xen-devel] [PATCH v2] tools/hvmloader: Use base instead of pci_mem_start for find_next_rmrr()

2017-08-27 Thread Xiong Zhang
he first rmrr, then check_overlap() couldn't find the overlap. Finally assign a wrong address to bar. This patch using aligned new base to find the next rmrr, could fix the above case and find all the overlapped rmrr with new base. Signed-off-by: Xiong Zhang --- Changes since v1: - Reduce the sc

[Xen-devel] [PATCH] tools/hvmloader: Use base instead of pci_mem_start for find_next_rmrr()

2017-08-21 Thread Xiong Zhang
he first rmrr, then check_overlap() couldn't find the overlap. Finally assign a wrong bar address to bar. This patch using aligned new base to find the next rmrr, could fix the above case and find all the overlapped rmrr with new base. Signed-off-by: Xiong Zhang --- tools/firmw

[Xen-devel] [PATCH] tools/libxl: Fix a segment fault when mmio_hole is set in hvm.cfg

2017-07-12 Thread Xiong Zhang
When valid mmio_hole is set in hvm.cfg, segment fault happens at accessing localents pointer. Because the size of localents pointer isn't enough to store appended mmio_hole_size parameter. Signed-off-by: Xiong Zhang --- tools/libxl/libxl_create.c | 2 +- 1 file changed, 1 insertion(

[Xen-devel] [PATCH] hw/xen: Set emu_mask for igd_opregion register

2017-07-07 Thread Xiong Zhang
, and couldn't access it anymore. This patch set emu_mask for igd_opregion register, so guest won't set guest opregion base address to host. Signed-off-by: Xiong Zhang --- hw/xen/xen_pt_config_init.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/xen/xen_pt_config_

[Xen-devel] [PATCH v2 1/2] tools/libxl/libxl_pci.c: Extract sysfs_dev_get_class from libxl__grant_vga_iomem_permission

2017-07-02 Thread Xiong Zhang
No functional change. Just extract this function for next patch and avoid code repetition. Signed-off-by: Xiong Zhang --- Changes in v2: -Add No functional change in commit message -Use 'goto out' style error handling --- tools/libxl/libxl_

[Xen-devel] [PATCH v2 2/2] tools/libxl/libxl_pci.c: Judge igd through class code instead of device ID

2017-07-02 Thread Xiong Zhang
ld support both the old and new intel graphics, and reduce maintain work in future. Signed-off-by: Xiong Zhang Acked-by: Wei Liu --- Changes in v2: -Add Acked-by: Wei Liu --- tools/libxl/libxl_pci.c | 59 - 1 file changed, 9 inserti

[Xen-devel] [PATCH 1/2] tools/libxl/libxl_pci.c: Extract sysfs_dev_get_class from libxl__grant_vga_iomem_permission

2017-06-30 Thread Xiong Zhang
Signed-off-by: Xiong Zhang --- tools/libxl/libxl_pci.c | 45 +++-- 1 file changed, 27 insertions(+), 18 deletions(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/libxl_pci.c index b14df16..cefd7d8 100644 --- a/tools/libxl/libxl_pci.c +++ b/tools

[Xen-devel] [PATCH 2/2] tools/libxl/libxl_pci.c: Judge igd through class code instead of device ID

2017-06-30 Thread Xiong Zhang
ld support both the old and new intel graphics, and reduce maintain work in future. Signed-off-by: Xiong Zhang --- tools/libxl/libxl_pci.c | 59 - 1 file changed, 9 insertions(+), 50 deletions(-) diff --git a/tools/libxl/libxl_pci.c b/tools/libxl/l

[Xen-devel] [PATCH] hw/pt-graphics.c: Gave guest iomem permission for host opregion in qemu-xen-traditional

2017-06-27 Thread Xiong Zhang
ff-by: Xiong Zhang --- hw/pt-graphics.c | 12 +++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hw/pt-graphics.c b/hw/pt-graphics.c index 7302b25..893bf12 100644 --- a/hw/pt-graphics.c +++ b/hw/pt-graphics.c @@ -78,10 +78,20 @@ void igd_write_opregion(struct pt_dev *rea

[Xen-devel] [PATCH V5] x86/ioreq_server: Make p2m_finish_type_change actually work

2017-05-12 Thread Xiong Zhang
commit 6d774a951696 ("x86/ioreq server: synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps")' Signed-off-by: Xiong Zhang Signed-off-by: Yu Zhang Reviewed-by: George Dunlap Reviewed-by: Jan Beulich --- v1: Add ioreq_pre_recalc query flag t

[Xen-devel] [PATCH V4] x86/ioreq_server: Make p2m_finish_type_change actually work

2017-05-11 Thread Xiong Zhang
commit 6d774a951696 ("x86/ioreq server: synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps")' Signed-off-by: Xiong Zhang Signed-off-by: Yu Zhang Reviewed-by: George Dunlap --- v1: Add ioreq_pre_recalc query flag to get the old p2m_type.(Jan)

[Xen-devel] [PATCH V3] x86/ioreq_server: Make p2m_finish_type_change actually work

2017-05-09 Thread Xiong Zhang
commit 6d774a951696 ("x86/ioreq server: synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps")' v1: Add ioreq_pre_recalc query flag to get the old p2m_type.(Jan) v2: Add p2m->recalc() hook to change gfn p2m_type. (George) v3: Make commit message cl

[Xen-devel] [PATCH V2] x86/ioreq server: Fix XenGT couldn't reboot when XenGT use p2m_ioreq_server p2m_type

2017-05-08 Thread Xiong Zhang
ding p2m_ioreq_server entries when an ioreq server unmaps")' v1: Add ioreq_pre_recalc query flag to get the old p2m_type.(Jan) v2: Add p2m->recalc() hook to change gfn p2m_type. (George) Signed-off-by: Xiong Zhang Signed-off-by: Yu Zhang --- xen/arch/x86/hvm/dm.c | 3 +-- xen/ar

[Xen-devel] [PATCH] x86/ioreq server: Fix DomU couldn't reboot when using p2m_ioreq_server p2m_type

2017-05-04 Thread Xiong Zhang
inally change mem type through set_entry. Fix: 'commit 6d774a951696 ("x86/ioreq server: synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps")' Signed-off-by: Xiong Zhang Signed-off-by: Yu Zhang --- xen/arch/x86/mm/p2m-ept.c | 7 +--

[Xen-devel] [PATCH] x86/ioreq server: Fix DomU reboot couldn't work when using p2m_ioreq_server p2m_type

2017-05-02 Thread Xiong Zhang
x27;t been written. The actual type change happens in recalc funciton. Fix: 'commit 6d774a951696 ("x86/ioreq server: synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps")' Signed-off-by: Xiong Zhang Signed-off-by: Yu Zhang --- xen/ar