[Qemu-devel] [PATCH] hw/piix_pci.c: Fix PIIX3-xen to initialize ids

2011-06-22 Thread anthony.perard
From: Anthony PERARD Signed-off-by: Anthony PERARD --- hw/piix_pci.c |3 +++ 1 files changed, 3 insertions(+), 0 deletions(-) diff --git a/hw/piix_pci.c b/hw/piix_pci.c index 26ce904..d08b31a 100644 --- a/hw/piix_pci.c +++ b/hw/piix_pci.c @@ -478,6 +478,9 @@ static PCIDeviceInfo i440fx_inf

[Qemu-devel] [PATCH V15 00/18] Xen device model support

2011-05-05 Thread anthony.perard
From: Anthony PERARD Hi all, Here is an update on the series that add the support of a Xen HVM guest to QEMU. change v14-v15: - add a patch to not initialise vmport with Xen. The change v13->v14: - Remove of ram_size parameter from pc_memory_init - set both below/above_4g_mem_size at the

[Qemu-devel] [PATCH V15 06/18] xen: Add xenfv machine

2011-05-05 Thread anthony.perard
From: Anthony PERARD Introduce the Xen FV (Fully Virtualized) machine to Qemu, some more Xen specific call will be added in further patches. Signed-off-by: Anthony PERARD --- hw/pc_piix.c | 41 +++-- hw/xen.h |6 ++ xen-all.c| 24

[Qemu-devel] [PATCH V15 04/18] xen: Add initialisation of Xen

2011-05-05 Thread anthony.perard
From: Anthony PERARD The xenpv machine use the common init function. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- Makefile.target |9 + hw/xen.h| 13 + hw/xen_backend.c|3 +-- hw/xen_machine_pv.c |1 + vl.c|

[Qemu-devel] [PATCH V15 05/18] pc_memory_init: Move memory calculation to the caller.

2011-05-05 Thread anthony.perard
From: Anthony PERARD This patch moves above_4g_mem_size and below_4g_mem_size calculation in the caller of pc_memory_init (pc_init1). And the prototype of pc_memory_init is changed because there is no need anymore to have variable pointer and the ram_size parameter. Signed-off-by: Anthony PERARD

[Qemu-devel] [PATCH V15 02/18] xen: Make Xen build once.

2011-05-05 Thread anthony.perard
From: Anthony PERARD xen_domainbuild and xen_machine_pv are built only for i386 targets. Signed-off-by: Anthony PERARD --- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index 21f864a..6873f76 100644 --- a/Makefile.ta

[Qemu-devel] [PATCH V15 09/18] xen: Introduce Xen Interrupt Controller

2011-05-05 Thread anthony.perard
From: Anthony PERARD Every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/pc_piix.c |8 ++-- hw/xen.h |2 ++ xen-all.c| 12 xen-stub.c |5 + 4 files changed, 25 insertions(+), 2 deletions(

[Qemu-devel] [PATCH V15 10/18] xen: Introduce the Xen mapcache

2011-05-05 Thread anthony.perard
From: Jun Nakajima On IA32 host or IA32 PAE host, at present, generally, we can't create an HVM guest with more than 2G memory, because generally it's almost impossible for Qemu to find a large enough and consecutive virtual address space to map an HVM guest's whole physical address space. The at

[Qemu-devel] [PATCH V15 07/18] pc, Disable vmport initialisation with Xen.

2011-05-05 Thread anthony.perard
From: Anthony PERARD This is because there is not synchronisation of the vcpu register between Xen and QEMU, so vmport can't work properly. This patch introduces no_vmport parameter to pc_basic_device_init. Signed-off-by: Anthony PERARD --- hw/pc.c | 11 --- hw/pc.h |3

[Qemu-devel] [PATCH V15 03/18] xen: Support new libxc calls from xen unstable.

2011-05-05 Thread anthony.perard
From: Anthony PERARD This patch updates the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. We check libxenctrl version in configure, from Xen 3.3.0 to Xen unstable. Signed-off-by: Anthony PERARD Signed-off-by: St

[Qemu-devel] [PATCH V15 11/18] xen: Adds a cap to the number of map cache entries.

2011-05-05 Thread anthony.perard
From: John Baboval Adds a cap to the number of map cache entries. This prevents the map cache from overwhelming system memory. I also removed the bitmap macros and #included bitmap.h instead. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- xen-mapcache.c | 37 +++-

[Qemu-devel] [PATCH V15 17/18] xen: Set running state in xenstore.

2011-05-05 Thread anthony.perard
From: Anthony PERARD This tells to the xen management tool that the machine can begin run. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- xen-all.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index e849a38..

[Qemu-devel] [PATCH V15 08/18] piix_pci: Introduces Xen specific call for irq.

2011-05-05 Thread anthony.perard
From: Anthony PERARD This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/pc.h |1 + hw/pc_piix.c |6 +- hw/

[Qemu-devel] [PATCH V15 13/18] configure: Always use 64bits target physical addresses with xen enabled.

2011-05-05 Thread anthony.perard
From: Anthony PERARD With MapCache, we can handle a 64b target, even with a 32b host/qemu. So, we need to have target_phys_addr_t to 64bits. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure

[Qemu-devel] [PATCH V15 12/18] Introduce qemu_put_ram_ptr

2011-05-05 Thread anthony.perard
From: Anthony PERARD This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After a call to qemu_put_ram_ptr, the pointer may be unmap from QEMU when used with Xen. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- cpu-common.h |1 + exec.c | 38 ++

[Qemu-devel] [PATCH V15 15/18] vl.c: Introduce getter for shutdown_requested and reset_requested.

2011-05-05 Thread anthony.perard
From: Anthony PERARD Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- sysemu.h |2 ++ vl.c | 1

[Qemu-devel] [PATCH V15 14/18] pci: Use of qemu_put_ram_ptr in pci_add_option_rom.

2011-05-05 Thread anthony.perard
From: John Baboval Prevent a deadlock caused by leaving a map cache bucket locked by the preceding qemu_get_ram_ptr() call. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- hw/pci.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c inde

[Qemu-devel] [PATCH V15 16/18] xen: Initialize event channels and io rings

2011-05-05 Thread anthony.perard
From: Arun Sharma Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Arun Sharma Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/xen_common.h |2 + xen-all.c | 417 ++

[Qemu-devel] [PATCH V15 18/18] xen: Add Xen hypercall for sleep state in the cmos_s3 callback.

2011-05-05 Thread anthony.perard
From: Anthony PERARD Signed-off-by: Anthony PERARD --- hw/pc_piix.c |6 +- hw/xen.h |1 + xen-all.c|9 + xen-stub.c |4 4 files changed, 19 insertions(+), 1 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 62cdf71..9a22a8a 100644 --- a/hw/p

[Qemu-devel] [PATCH V3 0/2] Xen VGA dirtybit support

2011-05-24 Thread anthony.perard
From: Anthony PERARD Hi, This two patches provides the support for sync dirty bitmap, especially useful for the VGA output. The sync dirty bitmap is not provided for Xen 3.3. Change v2 -> v3: * use the new log_dirty parameter of set_memory clients. * fix some mistakes related to the use of

[Qemu-devel] [PATCH V3 1/2] xen: Add xc_domain_add_to_physmap to xen_interface.

2011-05-24 Thread anthony.perard
From: Anthony PERARD This function will be used to support sync dirty bitmap. This come with a check against every Xen release, and special implementation for Xen version that doesn't have this specific call. This function will not be usable with Xen 3.3 because the behavior is different. Sign

[Qemu-devel] [PATCH V3 2/2] xen: Introduce VGA sync dirty bitmap support

2011-05-24 Thread anthony.perard
From: Anthony PERARD This patch introduces phys memory client for Xen. Only sync dirty_bitmap and set_memory are actually implemented. migration_log will stay empty for the moment. Xen can only log one range for bit change, so only the range in the first call will be synced. Signed-off-by: Ant

[Qemu-devel] [PATCH V13 00/17] Xen device model support

2011-04-18 Thread anthony.perard
From: Anthony PERARD Hi all, Here is the few change made since the v12: - There are few changes in the xen init code. A xen_hvm_init function is new in this patch set and is call from xenfv:machine->init. -> So "-xen-create -M xenpv" will continue to work as before this patch series.

[Qemu-devel] [PATCH V13 02/17] xen: Make Xen build once.

2011-04-18 Thread anthony.perard
From: Anthony PERARD xen_domainbuild and xen_machine_pv are built only for i386 targets. Signed-off-by: Anthony PERARD --- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index d5761b7..6ce6987 100644 --- a/Makefile.ta

[Qemu-devel] [PATCH V13 05/17] pc_memory_init: Move memory calculation to the caller.

2011-04-18 Thread anthony.perard
From: Anthony PERARD This patch moves above_4g_mem_size and below_4g_mem_size calculation in the caller of pc_memory_init (pc_init1). And the prototype of pc_memory_init is changed because there is no need anymore to have variable pointer. Signed-off-by: Anthony PERARD --- hw/pc.c | 14

[Qemu-devel] [PATCH V13 08/17] xen: Introduce Xen Interrupt Controller

2011-04-18 Thread anthony.perard
From: Anthony PERARD Every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/pc_piix.c |8 ++-- hw/xen.h |2 ++ xen-all.c| 12 xen-stub.c |5 + 4 files changed, 25 insertions(+), 2 deletions(

[Qemu-devel] [PATCH V13 09/17] xen: Introduce the Xen mapcache

2011-04-18 Thread anthony.perard
From: Jun Nakajima On IA32 host or IA32 PAE host, at present, generally, we can't create an HVM guest with more than 2G memory, because generally it's almost impossible for Qemu to find a large enough and consecutive virtual address space to map an HVM guest's whole physical address space. The at

[Qemu-devel] [PATCH V13 06/17] xen: Add xenfv machine

2011-04-18 Thread anthony.perard
From: Anthony PERARD Introduce the Xen FV (Fully Virtualized) machine to Qemu, some more Xen specific call will be added in further patches. Signed-off-by: Anthony PERARD --- hw/pc_piix.c | 41 +++-- hw/xen.h |6 ++ xen-all.c| 24

[Qemu-devel] [PATCH V13 10/17] xen: Adds a cap to the number of map cache entries.

2011-04-18 Thread anthony.perard
From: John Baboval Adds a cap to the number of map cache entries. This prevents the map cache from overwhelming system memory. I also removed the bitmap macros and #included bitmap.h instead. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- xen-mapcache.c | 37 +++-

[Qemu-devel] [PATCH V13 03/17] xen: Support new libxc calls from xen unstable.

2011-04-18 Thread anthony.perard
From: Anthony PERARD This patch updates the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. We check libxenctrl version in configure, from Xen 3.3.0 to Xen unstable. Signed-off-by: Anthony PERARD Signed-off-by: St

[Qemu-devel] [PATCH V13 13/17] pci: Use of qemu_put_ram_ptr in pci_add_option_rom.

2011-04-18 Thread anthony.perard
From: John Baboval Prevent a deadlock caused by leaving a map cache bucket locked by the preceding qemu_get_ram_ptr() call. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- hw/pci.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c inde

[Qemu-devel] [PATCH V13 04/17] xen: Add initialisation of Xen

2011-04-18 Thread anthony.perard
From: Anthony PERARD The xenpv machine use the common init function. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- Makefile.target |9 + hw/xen.h| 13 + hw/xen_backend.c|3 +-- hw/xen_machine_pv.c |1 + vl.c|

[Qemu-devel] [PATCH V13 17/17] xen: Add Xen hypercall for sleep state in the cmos_s3 callback.

2011-04-18 Thread anthony.perard
From: Anthony PERARD Signed-off-by: Anthony PERARD --- hw/pc_piix.c |6 +- hw/xen.h |1 + xen-all.c|9 + xen-stub.c |4 4 files changed, 19 insertions(+), 1 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 27d3253..d2ecd19 100644 --- a/hw/p

[Qemu-devel] [PATCH V13 07/17] piix_pci: Introduces Xen specific call for irq.

2011-04-18 Thread anthony.perard
From: Anthony PERARD This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/pc.h |1 + hw/pc_piix.c |6 +- hw/

[Qemu-devel] [PATCH V13 15/17] xen: Initialize event channels and io rings

2011-04-18 Thread anthony.perard
From: Arun Sharma Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Arun Sharma Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/xen_common.h |2 + xen-all.c | 417 ++

[Qemu-devel] [PATCH V13 11/17] Introduce qemu_put_ram_ptr

2011-04-18 Thread anthony.perard
From: Anthony PERARD This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After a call to qemu_put_ram_ptr, the pointer may be unmap from QEMU when used with Xen. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- cpu-common.h |1 + exec.c | 38 ++

[Qemu-devel] [PATCH V13 16/17] xen: Set running state in xenstore.

2011-04-18 Thread anthony.perard
From: Anthony PERARD This tells to the xen management tool that the machine can begin run. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- xen-all.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index e849a38..

[Qemu-devel] [PATCH V13 12/17] configure: Always use 64bits target physical addresses with xen enabled.

2011-04-18 Thread anthony.perard
From: Anthony PERARD With MapCache, we can handle a 64b target, even with a 32b host/qemu. So, we need to have target_phys_addr_t to 64bits. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure

[Qemu-devel] [PATCH V13 14/17] vl.c: Introduce getter for shutdown_requested and reset_requested.

2011-04-18 Thread anthony.perard
From: Anthony PERARD Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- sysemu.h |2 ++ vl.c | 1

[Qemu-devel] [PATCH V14 00/17] Xen device model support

2011-04-20 Thread anthony.perard
From: Anthony PERARD Hi all, Update of the patch series that address comment from Jan Kiszka. The change v13->v14: - Remove of ram_size parameter from pc_memory_init - set both below/above_4g_mem_size at the same place in the code. Change v12->v13: - There are few changes in the xen init

[Qemu-devel] [PATCH V14 02/17] xen: Make Xen build once.

2011-04-20 Thread anthony.perard
From: Anthony PERARD xen_domainbuild and xen_machine_pv are built only for i386 targets. Signed-off-by: Anthony PERARD --- Makefile.target |2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/Makefile.target b/Makefile.target index d5761b7..6ce6987 100644 --- a/Makefile.ta

[Qemu-devel] [PATCH V14 05/17] pc_memory_init: Move memory calculation to the caller.

2011-04-20 Thread anthony.perard
From: Anthony PERARD This patch moves above_4g_mem_size and below_4g_mem_size calculation in the caller of pc_memory_init (pc_init1). And the prototype of pc_memory_init is changed because there is no need anymore to have variable pointer and the ram_size parameter. Signed-off-by: Anthony PERARD

[Qemu-devel] [PATCH V14 04/17] xen: Add initialisation of Xen

2011-04-20 Thread anthony.perard
From: Anthony PERARD The xenpv machine use the common init function. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- Makefile.target |9 + hw/xen.h| 13 + hw/xen_backend.c|3 +-- hw/xen_machine_pv.c |1 + vl.c|

[Qemu-devel] [PATCH V14 07/17] piix_pci: Introduces Xen specific call for irq.

2011-04-20 Thread anthony.perard
From: Anthony PERARD This patch introduces Xen specific call in piix_pci. The specific part for Xen is in write_config, set_irq and get_pirq. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/pc.h |1 + hw/pc_piix.c |6 +- hw/

[Qemu-devel] [PATCH V14 06/17] xen: Add xenfv machine

2011-04-20 Thread anthony.perard
From: Anthony PERARD Introduce the Xen FV (Fully Virtualized) machine to Qemu, some more Xen specific call will be added in further patches. Signed-off-by: Anthony PERARD --- hw/pc_piix.c | 41 +++-- hw/xen.h |6 ++ xen-all.c| 24

[Qemu-devel] [PATCH V14 12/17] configure: Always use 64bits target physical addresses with xen enabled.

2011-04-20 Thread anthony.perard
From: Anthony PERARD With MapCache, we can handle a 64b target, even with a 32b host/qemu. So, we need to have target_phys_addr_t to 64bits. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- configure |1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/configure

[Qemu-devel] [PATCH V14 14/17] vl.c: Introduce getter for shutdown_requested and reset_requested.

2011-04-20 Thread anthony.perard
From: Anthony PERARD Introduce two functions qemu_shutdown_requested_get and qemu_reset_requested_get to get the value of shutdown/reset_requested without reset it. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- sysemu.h |2 ++ vl.c | 1

[Qemu-devel] [PATCH V14 03/17] xen: Support new libxc calls from xen unstable.

2011-04-20 Thread anthony.perard
From: Anthony PERARD This patch updates the libxenctrl calls in Qemu to use the new interface, otherwise Qemu wouldn't be able to build against new versions of the library. We check libxenctrl version in configure, from Xen 3.3.0 to Xen unstable. Signed-off-by: Anthony PERARD Signed-off-by: St

[Qemu-devel] [PATCH V14 08/17] xen: Introduce Xen Interrupt Controller

2011-04-20 Thread anthony.perard
From: Anthony PERARD Every set_irq call makes a Xen hypercall. Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini --- hw/pc_piix.c |8 ++-- hw/xen.h |2 ++ xen-all.c| 12 xen-stub.c |5 + 4 files changed, 25 insertions(+), 2 deletions(

[Qemu-devel] [PATCH V14 16/17] xen: Set running state in xenstore.

2011-04-20 Thread anthony.perard
From: Anthony PERARD This tells to the xen management tool that the machine can begin run. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- xen-all.c | 23 +++ 1 files changed, 23 insertions(+), 0 deletions(-) diff --git a/xen-all.c b/xen-all.c index e849a38..

[Qemu-devel] [PATCH V14 11/17] Introduce qemu_put_ram_ptr

2011-04-20 Thread anthony.perard
From: Anthony PERARD This function allows to unlock a ram_ptr give by qemu_get_ram_ptr. After a call to qemu_put_ram_ptr, the pointer may be unmap from QEMU when used with Xen. Signed-off-by: Anthony PERARD Acked-by: Alexander Graf --- cpu-common.h |1 + exec.c | 38 ++

[Qemu-devel] [PATCH V14 15/17] xen: Initialize event channels and io rings

2011-04-20 Thread anthony.perard
From: Arun Sharma Open and bind event channels; map ioreq and buffered ioreq rings. Signed-off-by: Arun Sharma Signed-off-by: Anthony PERARD Signed-off-by: Stefano Stabellini Acked-by: Alexander Graf --- hw/xen_common.h |2 + xen-all.c | 417 ++

[Qemu-devel] [PATCH V14 10/17] xen: Adds a cap to the number of map cache entries.

2011-04-20 Thread anthony.perard
From: John Baboval Adds a cap to the number of map cache entries. This prevents the map cache from overwhelming system memory. I also removed the bitmap macros and #included bitmap.h instead. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- xen-mapcache.c | 37 +++-

[Qemu-devel] [PATCH V14 17/17] xen: Add Xen hypercall for sleep state in the cmos_s3 callback.

2011-04-20 Thread anthony.perard
From: Anthony PERARD Signed-off-by: Anthony PERARD --- hw/pc_piix.c |6 +- hw/xen.h |1 + xen-all.c|9 + xen-stub.c |4 4 files changed, 19 insertions(+), 1 deletions(-) diff --git a/hw/pc_piix.c b/hw/pc_piix.c index 72864fc..4ff4a55 100644 --- a/hw/p

[Qemu-devel] [PATCH V14 13/17] pci: Use of qemu_put_ram_ptr in pci_add_option_rom.

2011-04-20 Thread anthony.perard
From: John Baboval Prevent a deadlock caused by leaving a map cache bucket locked by the preceding qemu_get_ram_ptr() call. Signed-off-By: John Baboval Signed-off-by: Anthony PERARD --- hw/pci.c |2 ++ 1 files changed, 2 insertions(+), 0 deletions(-) diff --git a/hw/pci.c b/hw/pci.c inde

[Qemu-devel] [PATCH V14 09/17] xen: Introduce the Xen mapcache

2011-04-20 Thread anthony.perard
From: Jun Nakajima On IA32 host or IA32 PAE host, at present, generally, we can't create an HVM guest with more than 2G memory, because generally it's almost impossible for Qemu to find a large enough and consecutive virtual address space to map an HVM guest's whole physical address space. The at