[Qemu-devel] [PATCH V6 00/11] Xen PCI Passthrough

2012-02-13 Thread Anthony PERARD
ranslate and power-mgmt ad qdev property Allen Kay (2): Introduce Xen PCI Passthrough, qdevice (1/3) Introduce Xen PCI Passthrough, PCI config space helpers (2/3) Anthony PERARD (7): pci_ids: Add INTEL_82599_VF id. pci_regs: Fix value of PCI_EXP_TYPE_RC_EC. pci_regs: Add PCI_EXP_TYPE_PCI

[Qemu-devel] [PATCH V6 04/11] configure: Introduce --enable-xen-pci-passthrough.

2012-02-13 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- configure | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 763db24..0787992 100755 --- a/configure +++ b/configure @@ -132,6 +132,7 @@ vnc_png="" vnc_thread

[Qemu-devel] [PATCH V6 02/11] pci_regs: Fix value of PCI_EXP_TYPE_RC_EC.

2012-02-13 Thread Anthony PERARD
Value check in PCI Express Base Specification rev 1.1 Signed-off-by: Anthony PERARD --- hw/pci_regs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci_regs.h b/hw/pci_regs.h index e8357c3..6b42515 100644 --- a/hw/pci_regs.h +++ b/hw/pci_regs.h @@ -393,7 +393,7

[Qemu-devel] [PATCH V6 01/11] pci_ids: Add INTEL_82599_VF id.

2012-02-13 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index e8235a7..943106a 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -118,6 +118,7 @@ #define PCI_DEVICE_ID_INTEL_82801I_UHCI6 0x2939 #define

[Qemu-devel] [PATCH V6 06/11] pci.c: Add pci_check_bar_overlap

2012-02-13 Thread Anthony PERARD
From: Yuji Shimada This function helps Xen PCI Passthrough device to check for overlap. Signed-off-by: Yuji Shimada Signed-off-by: Anthony PERARD --- hw/pci.c | 47 +++ hw/pci.h |3 +++ 2 files changed, 50 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V6 08/11] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-02-13 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- hw/xen_pci_passthrough.c | 10 + hw/xen_pci_passthrough.h |2 + hw

[Qemu-devel] [PATCH V6 07/11] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-02-13 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- Makefile.target |2 + hw/xen_common.h |3 + hw

[Qemu-devel] [PATCH V6 11/11] pci: Do not check if a bus exist in pci_parse_devaddr.

2012-02-13 Thread Anthony PERARD
Actually, pci_parse_devaddr checks if the dom/bus of the PCI address exist. But this should be the jobs of a caller. In fact, the two callers of this function will try to retrieve the PCIBus related to the devaddr and return an error if they cannot. Signed-off-by: Anthony PERARD --- hw/pci.c

[Qemu-devel] [PATCH V6 10/11] Introduce Xen PCI Passthrough, MSI (3/3)

2012-02-13 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD --- Makefile.target |1 + hw/apic-msidef.h

[Qemu-devel] [PATCH V6 03/11] pci_regs: Add PCI_EXP_TYPE_PCIE_BRIDGE

2012-02-13 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_regs.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_regs.h b/hw/pci_regs.h index 6b42515..56a404b 100644 --- a/hw/pci_regs.h +++ b/hw/pci_regs.h @@ -392,6 +392,7 @@ #define PCI_EXP_TYPE_UPSTREAM 0x5 /* Upstream

[Qemu-devel] [PATCH V6 09/11] Introduce apic-msidef.h

2012-02-13 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD --- hw/apic-msidef.h | 28 hw/apic.c| 11 +-- 2 files changed, 29 insertions(+), 10 deletions(-) create mode

Re: [Qemu-devel] [PATCH V6 11/11] pci: Do not check if a bus exist in pci_parse_devaddr.

2012-02-13 Thread Anthony PERARD
On Mon, 13 Feb 2012, Michael S. Tsirkin wrote: > On Mon, Feb 13, 2012 at 12:20:13PM +0000, Anthony PERARD wrote: > > Actually, pci_parse_devaddr checks if the dom/bus of the PCI address exist. > > But > > this should be the jobs of a caller. In fact, the two callers

[Qemu-devel] [PATCH V6 05/11] Introduce HostPCIDevice to access a pci device on the host.

2012-02-13 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |3 + hw/host-pci-device.c | 278 ++ hw/host-pci-device.h | 75 ++ 3 files changed, 356 insertions(+), 0 deletions(-) create mode 100644 hw/host-pci-device.c create mode

Re: [Qemu-devel] [Xen-devel] [PATCH V6 10/11] Introduce Xen PCI Passthrough, MSI (3/3)

2012-02-14 Thread Anthony PERARD
On Tue, Feb 14, 2012 at 13:13, Jan Beulich wrote: >>>> On 13.02.12 at 13:20, Anthony PERARD wrote: >> From: Jiang Yunhong >> >> A more complete history can be found here: >> git://xenbits.xensource.com/qemu-xen-unstable.git > > This needs to b

[Qemu-devel] [PATCH V7 02/11] pci_regs: Fix value of PCI_EXP_TYPE_RC_EC.

2012-02-17 Thread Anthony PERARD
Value check in PCI Express Base Specification rev 1.1 Signed-off-by: Anthony PERARD --- hw/pci_regs.h |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/hw/pci_regs.h b/hw/pci_regs.h index e8357c3..6b42515 100644 --- a/hw/pci_regs.h +++ b/hw/pci_regs.h @@ -393,7 +393,7

[Qemu-devel] [PATCH V7 03/11] pci_regs: Add PCI_EXP_TYPE_PCIE_BRIDGE

2012-02-17 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_regs.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_regs.h b/hw/pci_regs.h index 6b42515..56a404b 100644 --- a/hw/pci_regs.h +++ b/hw/pci_regs.h @@ -392,6 +392,7 @@ #define PCI_EXP_TYPE_UPSTREAM 0x5 /* Upstream

[Qemu-devel] [PATCH V7 00/11] Xen PCI Passthrough

2012-02-17 Thread Anthony PERARD
rough, qdevice (1/3) Introduce Xen PCI Passthrough, PCI config space helpers (2/3) Anthony PERARD (6): pci_ids: Add INTEL_82599_VF id. pci_regs: Fix value of PCI_EXP_TYPE_RC_EC. pci_regs: Add PCI_EXP_TYPE_PCIE_BRIDGE configure: Introduce --enable-xen-pci-passthrough. Introduce HostPCID

[Qemu-devel] [PATCH V7 08/11] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-02-17 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- hw/xen_pci_passthrough.c | 10 + hw/xen_pci_passthrough.h |2 + hw

[Qemu-devel] [PATCH V7 11/11] xen passthrough: clean up MSI-X table handling

2012-02-17 Thread Anthony PERARD
: Anthony PERARD --- hw/xen_pci_passthrough.c | 80 -- hw/xen_pci_passthrough.h | 11 +- hw/xen_pci_passthrough_msi.c | 62 3 files changed, 78 insertions(+), 75 deletions(-) diff --git a/hw

[Qemu-devel] [PATCH V7 10/11] Introduce Xen PCI Passthrough, MSI (3/3)

2012-02-17 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD --- Makefile.target |1 + hw/apic-msidef.h

[Qemu-devel] [PATCH V7 01/11] pci_ids: Add INTEL_82599_VF id.

2012-02-17 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index e8235a7..943106a 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -118,6 +118,7 @@ #define PCI_DEVICE_ID_INTEL_82801I_UHCI6 0x2939 #define

[Qemu-devel] [PATCH V7 06/11] pci.c: Add pci_check_bar_overlap

2012-02-17 Thread Anthony PERARD
From: Yuji Shimada This function helps Xen PCI Passthrough device to check for overlap. Signed-off-by: Yuji Shimada Signed-off-by: Anthony PERARD --- hw/pci.c | 47 +++ hw/pci.h |3 +++ 2 files changed, 50 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V7 05/11] Introduce HostPCIDevice to access a pci device on the host.

2012-02-17 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |3 + hw/host-pci-device.c | 278 ++ hw/host-pci-device.h | 75 ++ 3 files changed, 356 insertions(+), 0 deletions(-) create mode 100644 hw/host-pci-device.c create mode

[Qemu-devel] [PATCH V7 04/11] configure: Introduce --enable-xen-pci-passthrough.

2012-02-17 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- configure | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 68f9ee6..e2c8d3f 100755 --- a/configure +++ b/configure @@ -132,6 +132,7 @@ vnc_png="" vnc_thread

[Qemu-devel] [PATCH V7 07/11] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-02-17 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- Makefile.target |2 + hw/xen_common.h |3 + hw

[Qemu-devel] [PATCH V7 09/11] Introduce apic-msidef.h

2012-02-17 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD --- hw/apic-msidef.h | 28 hw/apic.c| 11 +-- 2 files changed, 29 insertions(+), 10 deletions(-) create mode

Re: [Qemu-devel] [PATCH] Fix xen pci passthrough

2012-07-10 Thread Anthony PERARD
..9f30f5f 100644 --- a/monitor.c +++ b/monitor.c @@ -165,7 +165,7 @@ struct Monitor { int reset_seen; int flags; int suspend_cnt; -uint8_t outbuf[1024]; +uint8_t outbuf[2048]; int outbuf_index; ReadLineState *rs; MonitorControl *mc; -- Anthony PERARD

[Qemu-devel] [PATCH V3 4/5] exec, memory: Call to xen_modified_memory.

2012-09-20 Thread Anthony PERARD
This patch add some calls to xen_modified_memory to notify Xen about dirtybits during migration. Signed-off-by: Anthony PERARD --- exec.c | 1 + memory.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exec.c b/exec.c index 209ac1c..844a73c 100644 --- a/exec.c +++ b/exec.c @@ -3429,6

[Qemu-devel] [PATCH V3 5/5] xen: Set the vram dirty when an error occur.

2012-09-20 Thread Anthony PERARD
If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all the video ram. This case happens during migration, but we don't need a special case for live migration with patch. Signed-off-by: Anthony PERARD --- xen-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 del

[Qemu-devel] [PATCH V3 2/5] xen: Introduce xen_modified_memory.

2012-09-20 Thread Anthony PERARD
This function is to be used during live migration. Every write access to the guest memory should call this funcion so the Xen tools knows which pages are dirty. Signed-off-by: Anthony PERARD --- hw/xen.h | 1 + xen-all.c | 21 + xen-stub.c | 4 3 files changed, 26

[Qemu-devel] [PATCH V3 0/5] Xen, introducing dirty log for migration.

2012-09-20 Thread Anthony PERARD
dirty if the xen call fails, instead of only during migration. Change v1-v2: - New patch to set dirty if not, in exec.c => only one place to add the xen call in exec.c Thanks for your reviews, Anthony PERARD (5): QMP, Introduce xen-set-global-dirty-log command. xen: Introd

[Qemu-devel] [PATCH V3 3/5] exec: Introduce helper to set dirty flags.

2012-09-20 Thread Anthony PERARD
This new helper/hook is used in the next patch to add an extra call in a single place. Signed-off-by: Anthony PERARD --- exec.c | 52 +--- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/exec.c b/exec.c index f22e9e6..209ac1c

[Qemu-devel] [PATCH V3 1/5] QMP, Introduce xen-set-global-dirty-log command.

2012-09-20 Thread Anthony PERARD
This command is used during a migration of a guest under Xen. It calls memory_global_dirty_log_start or memory_global_dirty_log_stop according to the argument pass to the command. Signed-off-by: Anthony PERARD Reviewed-by: Luiz Capitulino --- qapi-schema.json | 13 + qmp

Re: [Qemu-devel] [PATCH V3 2/5] xen: Introduce xen_modified_memory.

2012-09-21 Thread Anthony PERARD
t;> +rc = xc_hvm_modified_memory(xen_xc, xen_domid, start_pfn, nb_pages); >> +if (rc) { >> +fprintf(stderr, "%s failed for "RAM_ADDR_FMT" ("RAM_ADDR_FMT >> +"): %i, %s\n", __func__, >> +start, nb_pages, rc, strerror(-rc)); > > a would prefer a more sane way of splitting this sentence in lines Will do. -- Anthony PERARD

Re: [Qemu-devel] [PATCH V3 5/5] xen: Set the vram dirty when an error occur.

2012-09-21 Thread Anthony PERARD
On Thu, Sep 20, 2012 at 1:31 PM, Stefano Stabellini wrote: > On Thu, 20 Sep 2012, Anthony PERARD wrote: >> If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all >> the >> video ram. This case happens during migration, but we don't need a sp

[Qemu-devel] [PATCH V4 3/5] exec: Introduce helper to set dirty flags.

2012-09-27 Thread Anthony PERARD
This new helper/hook is used in the next patch to add an extra call in a single place. Signed-off-by: Anthony PERARD Reviewed-by: Avi Kivity --- exec.c | 52 +--- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/exec.c b/exec.c

[Qemu-devel] [PATCH V4 5/5] xen: Set the vram dirty when an error occur.

2012-09-27 Thread Anthony PERARD
If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all the video ram. This case happens during migration. Signed-off-by: Anthony PERARD --- xen-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen-all.c b/xen-all.c index b11542c..e6308be 100644

[Qemu-devel] [PATCH V4 4/5] exec, memory: Call to xen_modified_memory.

2012-09-27 Thread Anthony PERARD
This patch add some calls to xen_modified_memory to notify Xen about dirtybits during migration. Signed-off-by: Anthony PERARD --- exec.c | 1 + memory.c | 2 ++ 2 files changed, 3 insertions(+) diff --git a/exec.c b/exec.c index 366684c..1114a09 100644 --- a/exec.c +++ b/exec.c @@ -3427,6

[Qemu-devel] [PATCH V4 1/5] QMP, Introduce xen-set-global-dirty-log command.

2012-09-27 Thread Anthony PERARD
This command is used during a migration of a guest under Xen. It calls memory_global_dirty_log_start or memory_global_dirty_log_stop according to the argument pass to the command. Signed-off-by: Anthony PERARD Reviewed-by: Luiz Capitulino --- qapi-schema.json | 13 + qmp

[Qemu-devel] [PATCH V4 2/5] xen: Introduce xen_modified_memory.

2012-09-27 Thread Anthony PERARD
This function is to be used during live migration. Every write access to the guest memory should call this funcion so the Xen tools knows which pages are dirty. Signed-off-by: Anthony PERARD --- hw/xen.h | 1 + xen-all.c | 21 + xen-stub.c | 4 3 files changed, 26

[Qemu-devel] [PATCH V4 0/5] Xen, introducing dirty log for migration.

2012-09-27 Thread Anthony PERARD
set_dirty_helper to invalidate_and_set_dirty. - in the last patch, set vram as dirty if the xen call fails, instead of only during migration. Change v1-v2: - New patch to set dirty if not, in exec.c => only one place to add the xen call in exec.c Thanks for your reviews, Anthony PERARD

Re: [Qemu-devel] [PATCH V4 4/5] exec, memory: Call to xen_modified_memory.

2012-10-02 Thread Anthony PERARD
On 10/02/2012 11:25 AM, Avi Kivity wrote: > On 10/01/2012 12:36 PM, Stefano Stabellini wrote: >> On Thu, 27 Sep 2012, Anthony PERARD wrote: >>> This patch add some calls to xen_modified_memory to notify Xen about dirtybits >>> during migration. >>> >>>

[Qemu-devel] [PATCH V5 2/5] xen: Introduce xen_modified_memory.

2012-10-02 Thread Anthony PERARD
This function is to be used during live migration. Every write access to the guest memory should call this funcion so the Xen tools knows which pages are dirty. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/xen.h | 1 + xen-all.c | 21 + xen-stub.c

[Qemu-devel] [PATCH V5 3/5] exec: Introduce helper to set dirty flags.

2012-10-02 Thread Anthony PERARD
This new helper/hook is used in the next patch to add an extra call in a single place. Signed-off-by: Anthony PERARD Reviewed-by: Avi Kivity --- exec.c | 52 +--- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/exec.c b/exec.c

[Qemu-devel] [PATCH V5 1/5] QMP, Introduce xen-set-global-dirty-log command.

2012-10-02 Thread Anthony PERARD
This command is used during a migration of a guest under Xen. It calls memory_global_dirty_log_start or memory_global_dirty_log_stop according to the argument pass to the command. Signed-off-by: Anthony PERARD Reviewed-by: Luiz Capitulino --- qapi-schema.json | 13 + qmp

[Qemu-devel] [PATCH V5 4/5] exec, memory: Call to xen_modified_memory.

2012-10-02 Thread Anthony PERARD
This patch add some calls to xen_modified_memory to notify Xen about dirtybits during migration. Signed-off-by: Anthony PERARD --- exec-obsolete.h | 2 ++ exec.c | 1 + 2 files changed, 3 insertions(+) diff --git a/exec-obsolete.h b/exec-obsolete.h index c099256..286e2f7 100644 --- a

[Qemu-devel] [PATCH V5 0/5] Xen, introducing dirty log for migration.

2012-10-02 Thread Anthony PERARD
: - New patch to set dirty if not, in exec.c => only one place to add the xen call in exec.c Anthony PERARD (5): QMP, Introduce xen-set-global-dirty-log command. xen: Introduce xen_modified_memory. exec: Introduce helper to set dirty flags. exec, memory: Call to xen_modified_memory.

[Qemu-devel] [PATCH V5 5/5] xen: Set the vram dirty when an error occur.

2012-10-02 Thread Anthony PERARD
If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all the video ram. This case happens during migration. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- xen-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen-all.c b/xen-all.c

Re: [Qemu-devel] [PATCH V5 1/5] QMP, Introduce xen-set-global-dirty-log command.

2012-10-02 Thread Anthony PERARD

[Qemu-devel] [PATCH V5 4/5] exec, memory: Call to xen_modified_memory.

2012-10-02 Thread Anthony PERARD
This patch add some calls to xen_modified_memory to notify Xen about dirtybits during migration. Signed-off-by: Anthony PERARD Reviewed-by: Avi Kivity --- exec-obsolete.h | 2 ++ exec.c | 1 + 2 files changed, 3 insertions(+) diff --git a/exec-obsolete.h b/exec-obsolete.h index

[Qemu-devel] [PATCH V5 5/5] xen: Set the vram dirty when an error occur.

2012-10-02 Thread Anthony PERARD
If the call to xc_hvm_track_dirty_vram() fails, then we set dirtybit on all the video ram. This case happens during migration. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- xen-all.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen-all.c b/xen-all.c

[Qemu-devel] [PATCH V5 0/5] Xen, introducing dirty log for migration.

2012-10-02 Thread Anthony PERARD
vram as dirty if the xen call fails, instead of only during migration. Change v1-v2: - New patch to set dirty if not, in exec.c => only one place to add the xen call in exec.c Anthony PERARD (5): QMP, Introduce xen-set-global-dirty-log command. xen: Introduce xen_modified_mem

[Qemu-devel] [PATCH V5 1/5] QMP, Introduce xen-set-global-dirty-log command.

2012-10-02 Thread Anthony PERARD
This command is used during a migration of a guest under Xen. It calls memory_global_dirty_log_start or memory_global_dirty_log_stop according to the argument pass to the command. Signed-off-by: Anthony PERARD Reviewed-by: Luiz Capitulino --- qapi-schema.json | 13 + qmp

[Qemu-devel] [PATCH V5 2/5] xen: Introduce xen_modified_memory.

2012-10-02 Thread Anthony PERARD
This function is to be used during live migration. Every write access to the guest memory should call this funcion so the Xen tools knows which pages are dirty. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/xen.h | 1 + xen-all.c | 21 + xen-stub.c

[Qemu-devel] [PATCH V5 3/5] exec: Introduce helper to set dirty flags.

2012-10-02 Thread Anthony PERARD
This new helper/hook is used in the next patch to add an extra call in a single place. Signed-off-by: Anthony PERARD Reviewed-by: Avi Kivity --- exec.c | 52 +--- 1 file changed, 17 insertions(+), 35 deletions(-) diff --git a/exec.c b/exec.c

[Qemu-devel] [PATCH] xen: Fix, no unplug of pt device by platform device.

2012-09-19 Thread Anthony PERARD
The Xen platform device will unplug any NICs if requested by the guest (PVonHVM) including a NIC that would have been passthrough. This patch makes sure that a passthrough device will not be unplug. Reported-by: "Zhang, Yang Z" Signed-off-by: Anthony PERARD --- hw/xen_plat

[Qemu-devel] [PATCH for v1.6] pc: Fix initialization of the ram_memory variable.

2013-08-16 Thread Anthony PERARD
In some cases (Xen), it will not be initialized before to be used. This leads to segv. Signed-off-by: Anthony PERARD --- It works with this simple initialization to NULL, but would it be necessary (or better) to assign a proper value to this variables ? --- hw/i386/pc_piix.c | 2 +- 1 file

Re: [Qemu-devel] Buildbot Failures

2013-08-29 Thread Anthony PERARD
ib/ xen42: /home/build/install/xen-4.2.x/lib/ xen_unstable: /home/build/install/xen-unstable/lib/ Thanks for locking at this. -- Anthony PERARD

Re: [Qemu-devel] [PATCH V2] qemu-xen: HVM domain S3 bugfix

2013-08-30 Thread Anthony PERARD
gt;suspend.notify = xen_suspend_notifier; > qemu_register_suspend_notifier(&state->suspend); > > +state->wakeup_later.notify = xen_wakeup_later_notifier; > +qemu_register_wakeup_later_notifier(&state->wakeup_later); > + > xc_get_hvm_param(xen_xc, xen_domid, HVM_PARAM_IOREQ_PFN, &ioreq_pfn); > DPRINTF("shared page at pfn %lx\n", ioreq_pfn); > state->shared_page = xc_map_foreign_range(xen_xc, xen_domid, > XC_PAGE_SIZE, > Could you break this path into two? One which add the notifier list and a second one with the Xen specific part? Thanks, -- Anthony PERARD

[Qemu-devel] [PATCH v2 2/2] pc_q35: Initialize Xen.

2013-09-02 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Right now, starting an HVM with Q35 chipset those not works because HVMLoader (the Xen pre-bios) look for the standard chipset i440FX. Especialy the PCI/ISA bridge. Error message from HVMLoader: assertion '(devfn != PCI_ISA_DEVFN) || ((vendor_id == 0

[Qemu-devel] [PATCH v2 1/2] pc: Initializing ram_memory under Xen.

2013-09-02 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/i386/pc_piix.c| 2 +- include/hw/xen/xen.h | 4 +--- xen-all.c| 7 --- 3 files changed, 6 insertions(+), 7 deletions(-) diff --git a/hw/i386/pc_piix.c b/hw/i386/pc_piix.c index 3c36a2a..a5ea582 100644 --- a/hw/i386/pc_piix.c +++ b/hw/i386

[Qemu-devel] [PATCH v2 0/2] Fix ram_memory initialization under Xen

2013-09-02 Thread Anthony PERARD
PERARD (2): pc: Initializing ram_memory under Xen. pc_q35: Initialize Xen. hw/i386/pc_piix.c| 2 +- hw/i386/pc_q35.c | 5 + include/hw/xen/xen.h | 4 +--- xen-all.c| 7 --- 4 files changed, 11 insertions(+), 7 deletions(-) -- Anthony PERARD

Re: [Qemu-devel] [PATCH 1/2] qem-xen: add later wakeup logic when qemu wakeup

2013-09-03 Thread Anthony PERARD
pus(); > +notifier_list_notify(&later_wakeup_notifiers, NULL); > monitor_protocol_event(QEVENT_WAKEUP, NULL); > } > if (qemu_powerdown_requested()) { > The patch those not apply properly to QEMU (upstream) but it just because the file sysemu.h have been moved to include/sysemu/sysemu.h Once this is fix: Acked-by: Anthony PERARD -- Anthony PERARD

Re: [Qemu-devel] [PATCH 2/2] qemu-xen: add qemu xen logic for HVM S3 resume

2013-09-03 Thread Anthony PERARD
;ioreq_pfn); > DPRINTF("shared page at pfn %lx\n", ioreq_pfn); > state->shared_page = xc_map_foreign_range(xen_xc, xen_domid, > XC_PAGE_SIZE, > Acked-by: Anthony PERARD -- Anthony PERARD

[Qemu-devel] Bug: VNC not refreshing the screen properly

2014-06-12 Thread Anthony PERARD
thing different (which can be another part). After a quick bisect, the first commit where this bug appear is: 38ee14f4f33f8836fc0e209ca59c6ae8c6edf380 vnc: fix use-after-free in vnc_update_client_sync Any solution for that ? Thanks, -- Anthony PERARD

Re: [Qemu-devel] [PATCH] vnc: fix screen updates

2014-06-13 Thread Anthony PERARD
On Fri, Jun 13, 2014 at 10:25:23AM +0200, Gerd Hoffmann wrote: > Bug was added by 38ee14f4f33f8836fc0e209ca59c6ae8c6edf380. > vnc_jobs_join call is missing in one code path. > > Reported-by: Anthony PERARD > Signed-off-by: Gerd Hoffmann I've tested the patch, it works.

Re: [Qemu-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-20 Thread Anthony PERARD
compatible with those old xen version. And especially, how to guarantee no > one occupy 00:02.0 in the future with auto assign? Hi, Libxl knows how to create a guest without xen-platform, but I think this can work only from QEMU 1.6 (which Xen 4.4 use). So, using the options below with libxl would put the xen-platform device away from the 00:02 slot. xen_platform_pci=0 device_model_args_hvm = [ '-device', 'xen-platform,addr=0x3' ] -- Anthony PERARD

Re: [Qemu-devel] [Xen-devel] [v2][PATCH 4/8] xen, gfx passthrough: reserve 00:02.0 for INTEL IGD

2014-05-23 Thread Anthony PERARD
7;xenfv' machine is not applied for > some reason. > > I'd suggest to investigate a reason why compat properties don't work > for xenfv machine. This is because, to be able to remove the xen-platform device, we switch the -machine from xenfv to pc,accel=xen. So in that case ,the compat property is not applied... -- Anthony PERARD

Re: [Qemu-devel] 回复: debuging about qemu-dm in xen 3.4.2

2011-12-20 Thread Anthony PERARD
With the latest Xen (4.1 and unstable), you can specifie a different device model in the config file instead of remplacing the default binary. Regards, -- Anthony PERARD

Re: [Qemu-devel] [PATCH V2 1/5] vl.c: Do not save RAM state when Xen is used.

2011-12-20 Thread Anthony PERARD
On Sun, 18 Dec 2011, Avi Kivity wrote: > On 12/15/2011 05:12 PM, Anthony Liguori wrote: > > On 12/09/2011 03:54 PM, Anthony PERARD wrote: > >> In Xen case, the guest RAM is not handle by QEMU, and it is saved by > >> Xen tools. > >> So, we just avoid to

[Qemu-devel] [PATCH] xen: Fix after recent change in dirty bitmap tracking.

2012-01-04 Thread Anthony PERARD
the Xen call failed. Signed-off-by: Anthony PERARD --- xen-all.c | 38 ++ 1 files changed, 18 insertions(+), 20 deletions(-) diff --git a/xen-all.c b/xen-all.c index dc23265..2aa8c03 100644 --- a/xen-all.c +++ b/xen-all.c @@ -403,9 +403,9 @@ static void

[Qemu-devel] [PATCH V2] xen: Fix after recent change in dirty bitmap tracking.

2012-01-05 Thread Anthony PERARD
the Xen call failed. Signed-off-by: Anthony PERARD --- xen-all.c | 38 ++ 1 files changed, 18 insertions(+), 20 deletions(-) diff --git a/xen-all.c b/xen-all.c index dc23265..2aa8c03 100644 --- a/xen-all.c +++ b/xen-all.c @@ -403,9 +403,9 @@ static void

Re: [Qemu-devel] [PATCH V2 3/5] Introduce premigrate RunState.

2012-01-05 Thread Anthony PERARD
On Tue, Jan 3, 2012 at 19:05, Luiz Capitulino wrote: > On Mon, 19 Dec 2011 17:27:55 + > Anthony PERARD wrote: > >> On Thu, 15 Dec 2011, Luiz Capitulino wrote: >> >> > On Thu, 15 Dec 2011 09:14:00 -0600 >> > Anthony Liguori wrote: >> > >

[Qemu-devel] [PATCH V8 RESEND 1/8] pci_ids: Add INTEL_82599_VF id.

2012-03-16 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index e8235a7..943106a 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -118,6 +118,7 @@ #define PCI_DEVICE_ID_INTEL_82801I_UHCI6 0x2939 #define

[Qemu-devel] [PATCH V8 RESEND 4/8] pci.c: Add pci_check_bar_overlap

2012-03-16 Thread Anthony PERARD
From: Yuji Shimada This function helps Xen PCI Passthrough device to check for overlap. Signed-off-by: Yuji Shimada Signed-off-by: Anthony PERARD --- hw/pci.c | 50 ++ hw/pci.h |5 + 2 files changed, 55 insertions(+), 0 deletions

[Qemu-devel] [PATCH V8 RESEND 7/8] Introduce apic-msidef.h

2012-03-16 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD --- hw/apic-msidef.h | 30 ++ hw/apic.c| 11 +-- 2 files changed, 31 insertions(+), 10 deletions(-) create

[Qemu-devel] [PATCH V8 RESEND 8/8] Introduce Xen PCI Passthrough, MSI (3/3)

2012-03-16 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD --- Makefile.target |1 + hw/xen_pci_passthrough.c

[Qemu-devel] [PATCH V8 RESEND 5/8] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-03-16 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- Makefile.target |2 + hw/xen_common.h |3 + hw

[Qemu-devel] [PATCH V8 RESEND 0/8] Xen PCI Passthrough

2012-03-16 Thread Anthony PERARD
roduce Xen PCI Passthrough, qdevice (1/3) Introduce Xen PCI Passthrough, PCI config space helpers (2/3) Anthony PERARD (4): pci_ids: Add INTEL_82599_VF id. configure: Introduce --enable-xen-pci-passthrough. Introduce HostPCIDevice to access a pci device on the host. Introduce apic-msidef.h

[Qemu-devel] [PATCH V8 RESEND 6/8] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-03-16 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD --- hw/xen_pci_passthrough.c | 10 + hw/xen_pci_passthrough.h |2 + hw

[Qemu-devel] [PATCH V8 RESEND 2/8] configure: Introduce --enable-xen-pci-passthrough.

2012-03-16 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- configure | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/configure b/configure index afe7395..1d1204a 100755 --- a/configure +++ b/configure @@ -136,6 +136,7 @@ vnc_png="" vnc_thread

[Qemu-devel] [PATCH V8 RESEND 3/8] Introduce HostPCIDevice to access a pci device on the host.

2012-03-16 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- Makefile.target |3 + hw/host-pci-device.c | 278 ++ hw/host-pci-device.h | 75 ++ 3 files changed, 356 insertions(+), 0 deletions(-) create mode 100644 hw/host-pci-device.c create mode

[Qemu-devel] [PATCH] exec, Fix guest memory access.

2012-03-19 Thread Anthony PERARD
guest. Signed-off-by: Anthony PERARD --- exec.c |4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/exec.c b/exec.c index be392e2..be08930 100644 --- a/exec.c +++ b/exec.c @@ -3851,8 +3851,8 @@ void cpu_physical_memory_rw(target_phys_addr_t addr, uint8_t *buf

Re: [Qemu-devel] [PATCH V8 RESEND 1/8] pci_ids: Add INTEL_82599_VF id.

2012-03-19 Thread Anthony PERARD
On 19/03/12 11:50, Stefano Stabellini wrote: On Fri, 16 Mar 2012, Anthony PERARD wrote: Signed-off-by: Anthony PERARD --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index e8235a7..943106a 100644 --- a/hw/pci_ids.h +++ b

Re: [Qemu-devel] [PATCH V8 RESEND 4/8] pci.c: Add pci_check_bar_overlap

2012-03-19 Thread Anthony PERARD
On 19/03/12 13:15, Michael S. Tsirkin wrote: On Fri, Mar 16, 2012 at 04:54:18PM +, Anthony PERARD wrote: From: Yuji Shimada This function helps Xen PCI Passthrough device to check for overlap. Signed-off-by: Yuji Shimada Signed-off-by: Anthony PERARD It seems that what's called for

[Qemu-devel] [PATCH V9 7/8] Introduce apic-msidef.h

2012-03-21 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/apic-msidef.h | 30 ++ hw/apic.c| 11 +-- 2 files changed, 31 insertions

[Qemu-devel] [PATCH V9 3/8] Introduce HostPCIDevice to access a pci device on the host.

2012-03-21 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- Makefile.target |3 + hw/host-pci-device.c | 278 ++ hw/host-pci-device.h | 75 ++ 3 files changed, 356 insertions(+), 0 deletions(-) create mode 100644 hw

[Qemu-devel] [PATCH V9 2/8] configure: Introduce --enable-xen-pci-passthrough.

2012-03-21 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- configure | 25 + 1 files changed, 25 insertions(+), 0 deletions(-) diff --git a/configure b/configure index 8b4e3c1..f61bd48 100755 --- a/configure +++ b/configure @@ -136,6 +136,7 @@ vnc_png

[Qemu-devel] [PATCH V9 5/8] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-03-21 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- Makefile.target |2 + hw/xen_common.h

[Qemu-devel] [PATCH V9 6/8] Introduce Xen PCI Passthrough, PCI config space helpers (2/3)

2012-03-21 Thread Anthony PERARD
From: Allen Kay A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Allen Kay Signed-off-by: Guy Zana Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/xen_pci_passthrough.c | 10 + hw

[Qemu-devel] [PATCH V9 0/8] Xen PCI Passthrough

2012-03-21 Thread Anthony PERARD
rough, qdevice (1/3) Introduce Xen PCI Passthrough, PCI config space helpers (2/3) Anthony PERARD (5): pci_ids: Add INTEL_82599_VF id. configure: Introduce --enable-xen-pci-passthrough. Introduce HostPCIDevice to access a pci device on the host. pci.c: Add opaque argument to pci_for_each_

Re: [Qemu-devel] [PATCH V9 3/8] Introduce HostPCIDevice to access a pci device on the host.

2012-03-21 Thread Anthony PERARD
device? These functions are not very Xen specific and just provide a layer to access to a pci device. -- Anthony PERARD

[Qemu-devel] [PATCH V9 4/8] pci.c: Add opaque argument to pci_for_each_device.

2012-03-21 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci.c | 11 +++ hw/pci.h |4 +++- hw/xen_platform.c |8 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 77001fa..49f1bf0 100644 --- a/hw/pci.c +++ b/hw/pci.c @@ -1123,7

[Qemu-devel] [PATCH V9 8/8] Introduce Xen PCI Passthrough, MSI (3/3)

2012-03-21 Thread Anthony PERARD
From: Jiang Yunhong A more complete history can be found here: git://xenbits.xensource.com/qemu-xen-unstable.git Signed-off-by: Jiang Yunhong Signed-off-by: Shan Haitao Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- Makefile.target |1 + hw

[Qemu-devel] [PATCH V9 1/8] pci_ids: Add INTEL_82599_SFP_VF id.

2012-03-21 Thread Anthony PERARD
Signed-off-by: Anthony PERARD --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index e8235a7..649e6b3 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -118,6 +118,7 @@ #define PCI_DEVICE_ID_INTEL_82801I_UHCI6 0x2939 #define

Re: [Qemu-devel] [PATCH V9 5/8] Introduce Xen PCI Passthrough, qdevice (1/3)

2012-03-22 Thread Anthony PERARD
On Wed, Mar 21, 2012 at 20:46, Michael S. Tsirkin wrote: > On Wed, Mar 21, 2012 at 06:29:02PM +0000, Anthony PERARD wrote: >> diff --git a/hw/xen_pci_passthrough.h b/hw/xen_pci_passthrough.h >> new file mode 100644 >> index 000..2c5e83d >> --- /dev/null >&g

Re: [Qemu-devel] [PATCH V9 3/8] Introduce HostPCIDevice to access a pci device on the host.

2012-03-23 Thread Anthony PERARD
On Wed, Mar 21, 2012 at 20:30, Michael S. Tsirkin wrote: > On Wed, Mar 21, 2012 at 06:29:00PM +0000, Anthony PERARD wrote: >> Signed-off-by: Anthony PERARD >> Acked-by: Stefano Stabellini > > So this interface is really LinuxSysfsPCIDevice. > For example the assumptio

[Qemu-devel] [PATCH V10 1/8] pci_ids: Add INTEL_82599_SFP_VF id.

2012-03-28 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/pci_ids.h |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/hw/pci_ids.h b/hw/pci_ids.h index e8235a7..649e6b3 100644 --- a/hw/pci_ids.h +++ b/hw/pci_ids.h @@ -118,6 +118,7 @@ #define

[Qemu-devel] [PATCH V10 7/8] Introduce apic-msidef.h

2012-03-28 Thread Anthony PERARD
This patch move the msi definition from apic.c to apic-msidef.h. So it can be used also by other .c files. Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/apic-msidef.h | 30 ++ hw/apic.c| 11 +-- 2 files changed, 31 insertions

[Qemu-devel] [PATCH V10 4/8] pci.c: Add opaque argument to pci_for_each_device.

2012-03-28 Thread Anthony PERARD
Signed-off-by: Anthony PERARD Acked-by: Stefano Stabellini --- hw/pci.c | 11 +++ hw/pci.h |4 +++- hw/xen_platform.c |8 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/hw/pci.c b/hw/pci.c index 77001fa..49f1bf0 100644 --- a/hw/pci.c

  1   2   3   4   5   6   7   8   9   10   >