[Qemu-devel] [v4][PATCH 1/2] libxl: introduce libxl__is_igd_vga_passthru

2015-09-18 Thread Tiejun Chen
. Signed-off-by: Tiejun Chen Acked-by: Ian Campbell --- tools/libxl/libxl_internal.h | 2 + tools/libxl/libxl_pci.c | 124 +++ 2 files changed, 126 insertions(+) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 5fa55a7

[Qemu-devel] [v4][PATCH 0/2] libxl: try to support IGD passthrough for qemu upstream

2015-09-18 Thread Tiejun Chen
and build_info.u.gfx_passthru_kind to IGD And note actually that option "-gfx_passthru" is just introduced to work for qemu-xen-traditional so we should get this away from libxl__build_device_model_args_new() in the case of qemu upstream.

[Qemu-devel] [v4][PATCH 2/2] libxl: introduce gfx_passthru_kind

2015-09-18 Thread Tiejun Chen
at table to need to pass that option to qemu. But if gfx_passthru_kind = "igd" we always force to pass that. And "-gfx_passthru" is just introduced to work for qemu-xen-traditional so we should get this away from libxl__build_device_model_args_new() in the case of qemu u

[Qemu-devel] [PATCH] hw/pci-host/piix: fix one file descriptor leak

2015-09-17 Thread Tiejun Chen
Commit 595a4f07d6bd (piix: create host bridge to passthrough) introduced to leak of one file descriptor, "config_fd", now just fix that. CC: Michael S. Tsirkin CC: Stefano Stabellini CC: Paolo Bonzini Acked-by: Stefano Stabellini Signed-off-by: Tiejun Chen --- hw/pci-host/piix.c

[Qemu-devel] [v10][PATCH 10/10] xen, gfx passthrough: add opregion mapping

2015-07-14 Thread Tiejun Chen
The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader Signed-off-by: Tiejun Chen Signed-of

[Qemu-devel] [v10][PATCH 08/10] xen, gfx passthrough: register a isa bridge

2015-07-14 Thread Tiejun Chen
Currently we just register this isa bridge when we use IGD passthrough in Xen side. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini --- v10: * Don't extern igd_passthrough_isa_bridge_create() in the include/hw/xen/xen.h file. Instead, move inside the include/hw/i386/pc.h fi

[Qemu-devel] [v10][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-07-14 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang Acked-by: Stefano Stabellini --- v10: * Nothing is changed. v9: * Just rebase on the latest

[Qemu-devel] [v10][PATCH 03/10] piix: create host bridge to passthrough

2015-07-14 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen Acked-by: Michael S. Tsirkin --- v10: * Nothing is changed. v9: * Just rebase on the

[Qemu-devel] [v10][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough

2015-07-14 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini --- v10: * Nothing is changed. v9: * Simplify pc_xen_hvm_init_pci() hw/i386/pc_piix.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw

[Qemu-devel] [v10][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-07-14 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen Acked-by: Michael S. Tsirkin --- v10: * Nothing is changed. v9: * Just rebase on the latest. hw/i386

[Qemu-devel] [v10][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-07-14 Thread Tiejun Chen
bably don't matter to the Gfx driver, but obviously any difference in display port connections will so it should be fine with any PCH in case of passthrough. So currently use one PCH version, 0x8c4e, to cover all HSW(Haswell) scenarios, 0x9cc3 for BDW(Broadwell). Signed-off-by: Tiejun Chen

[Qemu-devel] [v10][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-07-14 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini --- v10: * Nothing is

[Qemu-devel] [v10][PATCH 02/10] pc_init1: pass parameters just with types

2015-07-14 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen Acked-by: Michael S. Tsirkin --- v10: * Nothing is changed. v9: * Just rebase on the latest. hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386

[Qemu-devel] [v10][PATCH 01/10] i440fx: make types configurable at run-time

2015-07-14 Thread Tiejun Chen
From: "Michael S. Tsirkin" IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- v10: * Nothing is changed. v9: * Just rebase on the latest. hw/i386

[Qemu-devel] [v10][PATCH 00/10] xen: add Intel IGD passthrough

2015-07-14 Thread Tiejun Chen
arate machine to support current IGD passthrough. Michael S. Tsirkin (1): i440fx: make types configurable at run-time Tiejun Chen (9): pc_init1: pass parameters just with types piix: create host bridge to passthrough hw/pci-assig

[Qemu-devel] [v9][PATCH 08/10] xen, gfx passthrough: register a isa bridge

2015-07-06 Thread Tiejun Chen
Currently we just register this isa bridge when we use IGD passthrough in Xen side. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini --- v9: * Move is_igd_vga_passthrough(dev)) from xen_igd_passthrough_isa_bridge_create() into xen_pt_initfn(). hw/xen/xen_pt.c | 21

[Qemu-devel] [v9][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough

2015-07-06 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini --- v9: * Simplify pc_xen_hvm_init_pci() hw/i386/pc_piix.c | 15 +-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386

[Qemu-devel] [v9][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-07-06 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen Acked-by: Michael S. Tsirkin --- v9: * Just rebase on the latest. hw/i386/Makefile.objs | 1 + hw

[Qemu-devel] [v9][PATCH 10/10] xen, gfx passthrough: add opregion mapping

2015-07-06 Thread Tiejun Chen
The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader Signed-off-by: Tiejun Chen Signed-of

[Qemu-devel] [v9][PATCH 01/10] i440fx: make types configurable at run-time

2015-07-06 Thread Tiejun Chen
From: "Michael S. Tsirkin" IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- v9: * Just rebase on the latest. hw/i386/pc_piix.c| 4 +++- h

[Qemu-devel] [v9][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-07-06 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen Acked-by: Stefano Stabellini --- v9: * Just rebase on

[Qemu-devel] [v9][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-07-06 Thread Tiejun Chen
bably don't matter to the Gfx driver, but obviously any difference in display port connections will so it should be fine with any PCH in case of passthrough. So currently use one PCH version, 0x8c4e, to cover all HSW(Haswell) scenarios, 0x9cc3 for BDW(Broadwell). Signed-off-by: Tiejun Chen

[Qemu-devel] [v9][PATCH 03/10] piix: create host bridge to passthrough

2015-07-06 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen Acked-by: Michael S. Tsirkin --- v9: * Just rebase on the latest. hw/pci-host/piix.c

[Qemu-devel] [v9][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-07-06 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang Acked-by: Stefano Stabellini --- v9: * Just rebase on the latest. hw/core/machine.c

[Qemu-devel] [v9][PATCH 00/10] xen: add Intel IGD passthrough

2015-07-06 Thread Tiejun Chen
i386-softmmu/qemu-system-i386 -hda test.img -m 2560 -boot c -machine pc As we discussed we need to create a separate machine to support current IGD passthrough. Michael S. Tsirkin (1): i440fx: make types configurable at run-

[Qemu-devel] [v9][PATCH 02/10] pc_init1: pass parameters just with types

2015-07-06 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen Acked-by: Michael S. Tsirkin --- v9: * Just rebase on the latest. hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index dda58ad..6810ca2

[Qemu-devel] [v8][RESEND][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-06-05 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/Makefile.objs | 1 + hw/i386/kvm/pci-assign.c | 82

[Qemu-devel] [v8][RESEND][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough

2015-06-05 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 27 +-- 1 file changed, 25 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 6054b5a..938b1be 100644 --- a/hw/i386

[Qemu-devel] [v8][RESEND][PATCH 00/10] xen: add Intel IGD passthrough

2015-06-05 Thread Tiejun Chen
t with a preinstalled ubuntu 14.04 ./i386-softmmu/qemu-system-i386 -hda test.img -m 2560 -boot c -machine pc As we discussed we need to create a separate machine to support current IGD passthrough. Michael S. Tsirkin (1): i440fx:

[Qemu-devel] [v8][RESEND][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-06-05 Thread Tiejun Chen
bably don't matter to the Gfx driver, but obviously any difference in display port connections will so it should be fine with any PCH in case of passthrough. So currently use one PCH version, 0x8c4e, to cover all HSW(Haswell) scenarios, 0x9cc3 for BDW(Broadwell). Signed-off-by: Tiejun Che

[Qemu-devel] [v8][RESEND][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-06-05 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 10 ++ hw/xen

[Qemu-devel] [v8][RESEND][PATCH 10/10] xen, gfx passthrough: add opregion mapping

2015-06-05 Thread Tiejun Chen
The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader Signed-off-by: Tiejun Chen Signed-of

[Qemu-devel] [v8][RESEND][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-06-05 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang --- hw/core/machine.c| 20 hw/xen/Makefile.objs | 1 + hw/xen/xen

[Qemu-devel] [v8][RESEND][PATCH 08/10] xen, gfx passthrough: register a isa bridge

2015-06-05 Thread Tiejun Chen
Currently we just register this isa bridge when we use IGD passthrough in Xen side. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 18 ++ include/hw/xen/xen.h | 1 + 2 files changed, 19 insertions(+) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index 3bf2233..fff169d

[Qemu-devel] [v8][RESEND][PATCH 03/10] piix: create host bridge to passthrough

2015-06-05 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen --- hw/pci-host/piix.c | 82 include

[Qemu-devel] [v8][RESEND][PATCH 02/10] pc_init1: pass parameters just with types

2015-06-05 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index c05b7c7..3e2fc04 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -75,7

[Qemu-devel] [v8][RESEND][PATCH 01/10] i440fx: make types configurable at run-time

2015-06-05 Thread Tiejun Chen
From: "Michael S. Tsirkin" IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c| 4 +++- hw/pci-host/piix.c | 9 - inclu

[Qemu-devel] [v8][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-06-05 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 10 ++ hw/xen

[Qemu-devel] [v8][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-06-05 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/Makefile.objs | 1 + hw/i386/kvm/pci-assign.c | 82

[Qemu-devel] [v8][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-06-05 Thread Tiejun Chen
bably don't matter to the Gfx driver, but obviously any difference in display port connections will so it should be fine with any PCH in case of passthrough. So currently use one PCH version, 0x8c4e, to cover all HSW(Haswell) scenarios, 0x9cc3 for BDW(Broadwell). Signed-off-by: Tiejun Che

[Qemu-devel] [v8][PATCH 00/10] xen: add Intel IGD passthrough

2015-06-05 Thread Tiejun Chen
t with a preinstalled ubuntu 14.04 ./i386-softmmu/qemu-system-i386 -hda test.img -m 2560 -boot c -machine pc As we discussed we need to create a separate machine to support current IGD passthrough. Michael S. Tsirkin (1): i440fx:

[Qemu-devel] [v8][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-06-05 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang --- hw/core/machine.c| 20 hw/xen/Makefile.objs | 1 + hw/xen/xen

[Qemu-devel] [v8][PATCH 02/10] pc_init1: pass parameters just with types

2015-06-05 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 14 -- 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index c05b7c7..3e2fc04 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c @@ -75,7

[Qemu-devel] [v8][PATCH 03/10] piix: create host bridge to passthrough

2015-06-05 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen --- hw/pci-host/piix.c | 82 include

[Qemu-devel] [v8][PATCH 01/10] i440fx: make types configurable at run-time

2015-06-05 Thread Tiejun Chen
From: "Michael S. Tsirkin" IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c| 4 +++- hw/pci-host/piix.c | 9 - inclu

[Qemu-devel] [v3][PATCH 2/2] libxl: introduce gfx_passthru_kind

2015-03-22 Thread Tiejun Chen
at table to need to pass that option to qemu. But if gfx_passthru_kind = "igd" we always force to pass that. And "-gfx_passthru" is just introduced to work for qemu-xen-traditional so we should get this away from libxl__build_device_model_args_new() in the case of qemu u

[Qemu-devel] [v3][PATCH 1/2] libxl: introduce libxl__is_igd_vga_passthru

2015-03-22 Thread Tiejun Chen
. Signed-off-by: Tiejun Chen Acked-by: Ian Campbell --- tools/libxl/libxl_internal.h | 2 + tools/libxl/libxl_pci.c | 124 +++ 2 files changed, 126 insertions(+) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 934465a

[Qemu-devel] [v3][PATCH 0/2] libxl: try to support IGD passthrough for qemu upstream

2015-03-22 Thread Tiejun Chen
traditional so we should get this away from libxl__build_device_model_args_new() in the case of qemu upstream. Tiejun Chen (2): libxl: introduce libxl__is_igd_vga_passthru libxl: introduce gfx_passthru_kind docs/man/xl.cfg.pod.5| 11 ++-- tools/libxl

[Qemu-devel] [v7][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-03-18 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/Makefile.objs | 1 + hw/i386/kvm/pci-assign.c | 82

[Qemu-devel] [v7][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough

2015-03-18 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 8fbfc09..eae2d20 100644 --- a/hw/i386/pc_piix.c +++ b

[Qemu-devel] [v7][PATCH 10/10] xen, gfx passthrough: add opregion mapping

2015-03-18 Thread Tiejun Chen
The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader Signed-off-by: Tiejun Chen Signed-of

[Qemu-devel] [v7][PATCH 02/10] pc_init1: pass parameters just with types

2015-03-18 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 07faec9..cea3a5c 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c

[Qemu-devel] [v7][PATCH 03/10] piix: create host bridge to passthrough

2015-03-18 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. And we also just expose a minimal real host bridge pci configuration subset. Signed-off-by: Tiejun Chen --- hw/pci-host/piix.c | 82 include

[Qemu-devel] [v7][PATCH 07/10] igd gfx passthrough: create a isa bridge

2015-03-18 Thread Tiejun Chen
bably don't matter to the Gfx driver, but obviously any difference in display port connections will so it should be fine with any PCH in case of passthrough. So currently use one PCH version, 0x8c4e, to cover all HSW(Haswell) scenarios, 0x9cc3 for BDW(Broadwell). Signed-off-by: Tiejun Che

[Qemu-devel] [v7][PATCH 08/10] xen, gfx passthrough: register a isa bridge

2015-03-18 Thread Tiejun Chen
Currently we just register this isa bridge when we use IGD passthrough in Xen side. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 18 ++ include/hw/xen/xen.h | 1 + 2 files changed, 19 insertions(+) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index fcc9f1c..2d5cebb

[Qemu-devel] [v7][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-03-18 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang --- hw/core/machine.c| 20 hw/xen/Makefile.objs | 1 + hw/xen/xen

[Qemu-devel] [v7][PATCH 01/10] i440fx: make types configurable at run-time

2015-03-18 Thread Tiejun Chen
From: "Michael S. Tsirkin" IGD passthrough wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c| 4 +++- hw/pci-host/piix.c | 9 - inclu

[Qemu-devel] [v7][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-03-18 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 10 ++ hw/xen

[Qemu-devel] [v7][PATCH 00/10] xen: add Intel IGD passthrough support

2015-03-18 Thread Tiejun Chen
test.img -m 2560 -boot c -machine pc As we discussed we need to create a separate machine to support current IGD passthrough. Michael S. Tsirkin (1): i440fx: make types configurable at run-time Tiejun Chen (9): pc_init1: pass pa

[Qemu-devel] [v2][PATCH 2/2] libxl: introduce gfx_passthru_kind

2015-03-10 Thread Tiejun Chen
at table to need to pass that option to qemu. But if gfx_passthru_kind = "igd" we always force to pass that. And "-gfx_passthru" is just introduced to work for qemu-xen-traditional so we should get this away from libxl__build_device_model_args_new() in the case of qemu up

[Qemu-devel] [v2][PATCH 0/2] libxl: try to support IGD passthrough for qemu upstream

2015-03-10 Thread Tiejun Chen
GD And note actually that option "-gfx_passthru" is just introduced to work for qemu-xen-traditional so we should get this away from libxl__build_device_model_args_new() in the case of qemu upstream. Tiejun Chen (2):

[Qemu-devel] [v2][PATCH 1/2] libxl: introduce libxl__is_igd_vga_passthru

2015-03-10 Thread Tiejun Chen
. Signed-off-by: Tiejun Chen --- tools/libxl/libxl_internal.h | 2 + tools/libxl/libxl_pci.c | 124 +++ 2 files changed, 126 insertions(+) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 934465a..c97c62d 100644 --- a

[Qemu-devel] [PATCH 2/2] libxl: introduce gfx_passthru_kind

2015-03-06 Thread Tiejun Chen
at table to need to pass that option to qemu. But if gfx_passthru_kind = "igd" we always force to pass that. Signed-off-by: Tiejun Chen --- tools/libxl/libxl_dm.c | 13 + tools/libxl/libxl_types.idl | 6 ++ tools/libxl/xl_cmdimpl.c| 19 +-- 3

[Qemu-devel] [PATCH 0/2] libxl: try to support IGD passthrough for qemu upstream

2015-03-06 Thread Tiejun Chen
e and build_info.u.gfx_passthru_kind to IGD ---- Tiejun Chen (2): libxl: introduce libxl__is_igd_vga_passthru libxl: introduce gfx_passthru_kind tools/libxl/libxl_dm.c | 13 +

[Qemu-devel] [PATCH 1/2] libxl: introduce libxl__is_igd_vga_passthru

2015-03-06 Thread Tiejun Chen
. Signed-off-by: Tiejun Chen --- tools/libxl/libxl_internal.h | 2 + tools/libxl/libxl_pci.c | 124 +++ 2 files changed, 126 insertions(+) diff --git a/tools/libxl/libxl_internal.h b/tools/libxl/libxl_internal.h index 934465a..8b952b8 100644 --- a

[Qemu-devel] [v2][RFC][PATCH] virtio: uniform virtio device IDs

2015-02-05 Thread Tiejun Chen
Actually we define these device IDs in virtio standard, so we'd better put them into one common place to manage conveniently. Here I also add VIRTIO_ID_RESERVE according to virtio spec. Signed-off-by: Tiejun Chen --- hw/9pfs/virtio-9p.h| 2 -- include/hw/virtio/virtio-ball

[Qemu-devel] [RFC][PATCH] virtio: uniform virtio device IDs

2015-02-05 Thread Tiejun Chen
Actually we define these device IDs in virtio standard, so we'd better put them into one common place to manage conveniently. Here I also add VIRTIO_ID_RESERVE according to virtio spec. Signed-off-by: Tiejun Chen --- hw/9pfs/virtio-9p.h| 2 -- include/hw/virtio/virtio-ball

[Qemu-devel] [v2][PATCH] libxl: add one machine property to support IGD GFX passthrough

2015-02-01 Thread Tiejun Chen
When we're working to support IGD GFX passthrough with qemu upstream, instead of "-gfx_passthru" we'd like to make that a machine option, "-machine xxx,-igd-passthru=on". This need to bring a change on tool side. Signed-off-by: Tiejun Chen --- v2: * Based on some

[Qemu-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough

2015-01-20 Thread Tiejun Chen
When we're working to support IGD GFX passthrough with qemu upstream, instead of "-gfx_passthru" we'd like to make that a machine option, "-machine xxx,gfx_passthru=on". This need to bring several changes on tool side. Signed-off-by: Tiejun Chen --

[Qemu-devel] [v6][PATCH 10/10] xen, gfx passthrough: add opregion mapping

2015-01-19 Thread Tiejun Chen
The OpRegion shouldn't be mapped 1:1 because the address in the host can't be used in the guest directly. This patch traps read and write access to the opregion of the Intel GPU config space (offset 0xfc). The original patch is from Jean Guyader Signed-off-by: Tiejun Chen Signed-of

[Qemu-devel] [v6][PATCH 08/10] xen, gfx passthrough: support Intel IGD passthrough with VT-D

2015-01-19 Thread Tiejun Chen
Some registers of Intel IGD are mapped in host bridge, so it needs to passthrough these registers of physical host bridge to guest because emulated host bridge in guest doesn't have these mappings. Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang --- hw/pci-host/piix.c | 3 +

[Qemu-devel] [v6][PATCH 06/10] xen, gfx passthrough: retrieve VGA BIOS to work

2015-01-19 Thread Tiejun Chen
Now we retrieve VGA bios like kvm stuff in qemu but we need to fix Device Identification in case if its not matched with the real IGD device since Seabios is always trying to compare this ID to work out VGA BIOS. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 10 ++ hw/xen

[Qemu-devel] [v6][PATCH 07/10] xen, gfx passthrough: register a isa bridge

2015-01-19 Thread Tiejun Chen
bably don't matter to the Gfx driver, but obviously any difference in display port connections will so it should be fine with any PCH in case of passthrough. So currently use one PCH version, 0x8c4e, to cover all HSW(Haswell) scenarios, 0x9cc3 for BDW(Broadwell). Signed-off-by: Tiejun Chen -

[Qemu-devel] [v6][PATCH 02/10] pc_init1: pass parameters just with types

2015-01-19 Thread Tiejun Chen
Pass types to configure pc_init1(). Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 17 +++-- 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index cc10f72..4148028 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386/pc_piix.c

[Qemu-devel] [v6][PATCH 05/10] xen, gfx passthrough: basic graphics passthrough support

2015-01-19 Thread Tiejun Chen
basic gfx passthrough support: - add a vga type for gfx passthrough - register/unregister legacy VGA I/O ports and MMIOs for passthrough GFX Signed-off-by: Tiejun Chen Signed-off-by: Yang Zhang --- hw/xen/Makefile.objs | 1 + hw/xen/xen-host-pci-device.c | 5 ++ hw/xen/xen-host-pci

[Qemu-devel] [v6][PATCH 09/10] xen, gfx passthrough: register host bridge specific to passthrough

2015-01-19 Thread Tiejun Chen
Just register that pci host bridge specific to passthrough. Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 19 +-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 4148028..f015238 100644 --- a/hw/i386/pc_piix.c +++ b

[Qemu-devel] [v6][PATCH 04/10] hw/pci-assign: split pci-assign.c

2015-01-19 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/Makefile.objs | 1 + hw/i386/kvm/pci-assign.c | 82

[Qemu-devel] [v6][PATCH 00/10] xen: add Intel IGD passthrough support

2015-01-19 Thread Tiejun Chen
assthrough. Michael S. Tsirkin (1): i440fx: make types configurable at run-time Tiejun Chen (9): pc_init1: pass parameters just with types piix: create host bridge to passthrough hw/pci-assign: split pci-assign.c

[Qemu-devel] [v6][PATCH 01/10] i440fx: make types configurable at run-time

2015-01-19 Thread Tiejun Chen
From: "Michael S. Tsirkin" Xen wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c| 4 +++- hw/pci-host/piix.c | 9 - include/hw/i38

[Qemu-devel] [v6][PATCH 03/10] piix: create host bridge to passthrough

2015-01-19 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. Signed-off-by: Tiejun Chen --- hw/pci-host/piix.c | 16 include/hw/i386/pc.h | 2 ++ 2 files changed, 18 insertions(+) diff --git a/hw/pci-host/piix.c b/hw/pci-host/piix.c

[Qemu-devel] [Bug 1408152] Re: latest qemu git doesn't load

2015-01-06 Thread Tiejun Chen
This issue seems to be similar to 1406706 and 1407454. Looks Marcel is working on a fix, and he also posted something to first address USB stuff, https://www.mail-archive.com/qemu-devel@nongnu.org/msg272607.html -- You received this bug notification because you are a member of qemu- devel-ml, wh

[Qemu-devel] [Bug 1406706] Re: guest will be destroyed when create guest with parameter "-usbdevice tablet".

2015-01-04 Thread Tiejun Chen
Could you test this? Signed-off-by: Tiejun Chen --- util/qemu-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-option.c b/util/qemu-option.c index a708241..7cb3601 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -377,7 +377,7 @@ static bool

[Qemu-devel] [Bug 1407454] Re: assertion failed when using "-usb" option

2015-01-04 Thread Tiejun Chen
Could you test this? Signed-off-by: Tiejun Chen --- util/qemu-option.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/qemu-option.c b/util/qemu-option.c index a708241..7cb3601 100644 --- a/util/qemu-option.c +++ b/util/qemu-option.c @@ -377,7 +377,7 @@ static bool

[Qemu-devel] [RFC][PATCH] qemu_opt_get_bool_helper: back finding desc by name just if !opt->desc

2015-01-04 Thread Tiejun Chen
mu-option.c:387: qemu_opt_get_bool_helper: \ Assertion `opt->desc && opt->desc->type == QEMU_OPT_BOOL' failed. Aborted (core dumped) So inside qemu_opt_get_bool_helper, we need to call find_desc_by_name() to work parse_option_bool() out just in case of !opt->desc. Signed-off-by: Tiejun Chen

[Qemu-devel] [PATCH] kvm_irqchip_assign_irqfd: just set irqfd in case of kvm_irqfds_enabled()

2014-12-26 Thread Tiejun Chen
We should avoid to set irqfd{} unconditionally. Signed-off-by: Tiejun Chen --- kvm-all.c | 18 +- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/kvm-all.c b/kvm-all.c index 18cc6b4..5b9786b 100644 --- a/kvm-all.c +++ b/kvm-all.c @@ -1257,21 +1257,21 @@ int

[Qemu-devel] [RFC][PATCH 2/2] xen:i386:pc_piix: create isa bridge specific to IGD passthrough

2014-11-04 Thread Tiejun Chen
Currently IGD drivers always need to access PCH by 1f.0, and PCH vendor/device id is used to identify the card. Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 28 +++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c

[Qemu-devel] [RFC][PATCH 1/2] hw:xen:xen_pt: register isa bridge specific to IGD passthrough

2014-11-04 Thread Tiejun Chen
We need this instance to passthrough some config fields of PCH. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 112 1 file changed, 112 insertions(+) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index c1bf357..403c33f 100644 --- a/hw

[Qemu-devel] [v3][PATCH 0/1] qemu:pci-assign: try to pci-assign.c

2014-09-01 Thread Tiejun Chen
g VBIOS!\n"); +rc = -1; +goto out; +} ... -------- Tiejun Chen (1): hw/pci-assign: split pci-assign.c hw/i386/kvm/pci-assign.c| 46 ++ include/hw/pci/pci-assign.h | 16 2 fi

[Qemu-devel] [v3][PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-09-01 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/kvm/pci-assign.c| 46 + include/hw/pci/pci

[Qemu-devel] [PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-08-31 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/kvm/pci-assign.c| 136 +--- include/hw/pci/pci

[Qemu-devel] [PATCH 0/1] qemu:pci-assign: try to pci-assign.c

2014-08-31 Thread Tiejun Chen
ios, dev); +if (!bios || !bios_size) { +XEN_PT_ERR(NULL, "VGA: getting VBIOS!\n"); +rc = -1; +goto out; +} ... ---- Tiejun Chen (1): hw/pci-assign: split

[Qemu-devel] [PATCH 0/1] qemu:pci-assign: try to pci-assign.c

2014-08-27 Thread Tiejun Chen
OS!\n"); +rc = -1; +goto out; +} ... ---- Tiejun Chen (1): hw/pci-assign: split pci-assign.c hw/i386/kvm/pci-assign.c| 170 +++--

[Qemu-devel] [PATCH 1/1] hw/pci-assign: split pci-assign.c

2014-08-27 Thread Tiejun Chen
We will try to reuse assign_dev_load_option_rom in xen side, and especially its a good beginning to unify pci assign codes both on kvm and xen in the future. Signed-off-by: Tiejun Chen --- hw/i386/kvm/pci-assign.c| 170 +--- include/hw/pci/pci_assign.h | 204

[Qemu-devel] [PATCH 2/2] xen:i386:pc_piix: create isa bridge specific to IGD passthrough

2014-08-20 Thread Tiejun Chen
Currenjly this ISA bridge should be fixed at 1f.0, and pass the real vendor/device ids as the driver expect. Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 24 +++- 1 file changed, 23 insertions(+), 1 deletion(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index

[Qemu-devel] [PATCH 0/2] qemu:xen: implement isa bridge specific to IGD passthrough

2014-08-20 Thread Tiejun Chen
This is a subset to support IGD passthrough with qemu/xen, and this should be based on http://lists.nongnu.org/archive/html/qemu-devel/2014-08/msg02166.html We will register to create isa bridge specific to IGD passthrough. Tiejun

[Qemu-devel] [PATCH 1/2] hw:xen:xen_pt: register isa bridge specific to IGD passthrough

2014-08-20 Thread Tiejun Chen
We need this instance to passthrough some config fields of PCH. Signed-off-by: Tiejun Chen --- hw/xen/xen_pt.c | 21 + 1 file changed, 21 insertions(+) diff --git a/hw/xen/xen_pt.c b/hw/xen/xen_pt.c index c1bf357..bf72719 100644 --- a/hw/xen/xen_pt.c +++ b/hw/xen/xen_pt.c

[Qemu-devel] [v5][PATCH 3/4] xen:hw:pci-host:piix: create host bridge to passthrough

2014-08-12 Thread Tiejun Chen
Implement a pci host bridge specific to passthrough. Actually this just inherits the standard one. Signed-off-by: Tiejun Chen --- hw/pci-host/piix.c | 15 +++ include/hw/i386/pc.h | 2 ++ 2 files changed, 17 insertions(+) v5: * Simplify to make sure its really inherited from

[Qemu-devel] [v5][PATCH 1/4] i440fx: make types configurable at run-time

2014-08-12 Thread Tiejun Chen
From: "Michael S. Tsirkin" Xen wants to supply a different pci and host devices, inheriting i440fx devices. Make types configurable. Signed-off-by: Michael S. Tsirkin Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c| 4 +++- hw/pci-host/piix.c | 9 - include/hw/i38

[Qemu-devel] [v5][PATCH 0/4] xen: introduce new machine for IGD passthrough

2014-08-12 Thread Tiejun Chen
-machine pc As we discussed we need to create a separate machine to support current IGD passthrough. Michael S. Tsirkin (1): i440fx: make types configurable at run-time Tiejun Chen (3): pc_init1: pass parameters just with

[Qemu-devel] [v5][PATCH 4/4] xen:hw:i386:pc_piix: introduce new machine for IGD passthrough

2014-08-12 Thread Tiejun Chen
Now we can introduce a new machine, xenigd, specific to IGD passthrough. This can avoid involving other common codes. Signed-off-by: Tiejun Chen --- hw/i386/pc_piix.c | 43 +++ 1 file changed, 43 insertions(+) v5: * Nothing is changed. v4: * Rebase

  1   2   >