Re: [PATCH v5 00/18] SMMUv3 nested translation support

2024-07-19 Thread Julien Grall
Hi, On 18/07/2024 10:43, Julien Grall wrote: Hi Eric, On 17/07/2024 18:43, Eric Auger wrote: Hi Peter, Richard, On 7/17/24 17:09, Jean-Philippe Brucker wrote: On Mon, Jul 15, 2024 at 08:45:00AM +, Mostafa Saleh wrote: Currently, QEMU supports emulating either stage-1 or stage-2 SMMUs

Re: [PATCH v5 00/18] SMMUv3 nested translation support

2024-07-18 Thread Julien Grall
nesting mode with virtio-net/vhost and I have not noticed any regression. Would be nice if someone could send his T-b for the nested part though (Julien?). I haven't yet tried the latest version. I will do that in the next couple of days. Cheers, -- Julien Grall

Re: [RFC PATCH v3 18/18] hw/arm/virt: Set SMMU OAS based on CPU PARANGE

2024-05-24 Thread Julien Grall
ted in target/arm/cpu.c). Cheers, -- Julien Grall

Re: [RFC PATCH v3 00/18] SMMUv3 nested translation support

2024-05-13 Thread Julien Grall
cloning a bunch of stuff and also observing traces. https://android-kvm.googlesource.com/linux/+log/refs/heads/smostafa/android15-6.6-smmu-nesting-wip I also modified the Linux driver to test with mixed granules/levels. We have tested the series as well: Tested-by: Julien Grall Cheers

Re: [RFC PATCH 07/12] hw/arm/smmu-common: Support nested translation

2024-03-25 Thread Julien Grall
ranslated_addr); + +/* parent_perm has s2 perm while perm has s1 perm. */ +tlbe->parent_perm = tlbe_s2->entry.perm; +return; +} + +/* That was not nested, use the s2. */ +memcpy(tlbe, tlbe_s2, sizeof(*tlbe)); +} Cheers, -- Julien Grall

Re: [QEMU][PATCH v2 10/11] hw/arm: introduce xenpv machine

2022-12-17 Thread Julien Grall
is that scalable? Cheers, -- Julien Grall

Re: [PATCH v1 10/12] hw/arm: introduce xenpv machine

2022-12-02 Thread Julien Grall
On 02/12/2022 03:24, Garhwal, Vikram wrote: Hi Julien, Hi Vikram, I am having trouble to differentiate your answers from my remark. For instance... From: Julien Grall Date: Sunday, October 16, 2022 at 10:48 AM To: Garhwal, Vikram , qemu-devel@nongnu.org Cc: Stabellini, Stefano

Re: [PATCH v1 10/12] hw/arm: introduce xenpv machine

2022-10-28 Thread Julien Grall
ild QEMU for every Xen versions (or possibly every guest if we ever allow dynamic layout in Xen)? Cheers, -- Julien Grall

Re: [PATCH v1 10/12] hw/arm: introduce xenpv machine

2022-10-19 Thread Julien Grall
Hi Stefano, On 19/10/2022 01:15, Stefano Stabellini wrote: On Tue, 18 Oct 2022, Julien Grall wrote: On 18/10/2022 02:26, Stefano Stabellini wrote: On Sun, 16 Oct 2022, Julien Grall wrote: Hi, There seem to be some missing patches on xen-devel (including the cover letter). Is that expected

Re: [PATCH v1 10/12] hw/arm: introduce xenpv machine

2022-10-18 Thread Julien Grall
Hi Stefano, On 18/10/2022 02:26, Stefano Stabellini wrote: On Sun, 16 Oct 2022, Julien Grall wrote: Hi, There seem to be some missing patches on xen-devel (including the cover letter). Is that expected? On 15/10/2022 06:07, Vikram Garhwal wrote: Add a new machine xenpv which creates a IOREQ

Re: [PATCH v1 06/12] xen-hvm: move common functions to hw/xen/xen-hvm-common.c

2022-10-16 Thread Julien Grall
o create a new function to register backends. Cheers, -- Julien Grall

Re: [PATCH v1 07/12] include/hw/xen/xen_common: return error from xen_create_ioreq_server

2022-10-16 Thread Julien Grall
rc; } *ioservid = 0; use_default_ioreq_server = true; trace_xen_default_ioreq_server(); + +return rc; } static inline void xen_destroy_ioreq_server(domid_t dom, Cheers, -- Julien Grall

Re: [PATCH v1 10/12] hw/arm: introduce xenpv machine

2022-10-16 Thread Julien Grall
.h @@ -1,3 +1,5 @@ #if defined(TARGET_I386) || defined(TARGET_X86_64) #include "hw/i386/xen_arch_hvm.h" +#elif defined(TARGET_ARM) || defined(TARGET_ARM_64) +#include "hw/arm/xen_arch_hvm.h" #endif Cheers, -- Julien Grall

Re: [PATCH] xen-bus/block: explicitly assign event channels to an AioContext

2020-01-29 Thread Julien Grall
to manage this. Reported-by: Julien Grall Signed-off-by: Paul Durrant Reviewed-by: Anthony PERARD I can't find the patch in QEMU upstream. Are we missing any ack/review for this patch? Tested against an HVM debian guest with a QCOW2 image as system disk, and as a hot-plugged/unplgged

xen-block: race condition when stopping the device (WAS: Re: [Xen-devel] [xen-4.13-testing test] 144736: regressions - FAIL)

2019-12-13 Thread Julien Grall
Hi Paul, On 13/12/2019 15:55, Durrant, Paul wrote: -Original Message- From: Xen-devel On Behalf Of Julien Grall Sent: 13 December 2019 15:37 To: Ian Jackson Cc: Jürgen Groß ; xen-de...@lists.xenproject.org; Stefano Stabellini ; osstest service owner ; Anthony Perard Subject: Re: [Xen

Re: [Qemu-devel] [kvmtool test PATCH 22/24] kvmtool: arm64: Add support for guest physical address size

2018-07-05 Thread Julien Grall
Hi Will, On 04/07/18 16:52, Will Deacon wrote: On Wed, Jul 04, 2018 at 04:00:11PM +0100, Julien Grall wrote: On 04/07/18 15:09, Will Deacon wrote: On Fri, Jun 29, 2018 at 12:15:42PM +0100, Suzuki K Poulose wrote: Add an option to specify the physical address size used by this VM. Signed-off

Re: [Qemu-devel] [kvmtool test PATCH 22/24] kvmtool: arm64: Add support for guest physical address size

2018-07-04 Thread Julien Grall
o specify the position of the RAM [1]. With that series in mind, I think the user would not really need to specify the maximum physical shift. Instead we could automatically find it. Cheers, [1] http://archive.armlinux.org.uk/lurker/message/20180510.140428.1c295b5b.en.html Will -- Julien Grall

[Qemu-devel] Question about unbind MSI in xen_pt_msi.c

2015-04-01 Thread Julien Grall
by the function. I'm not familiar with x86 passthrough but this looks wrong to me. Am I right? Shouldn't we replace this call by xc_domain_unbind_msi_irq? Regards, -- Julien Grall

Re: [Qemu-devel] Question about unbind MSI in xen_pt_msi.c

2015-04-01 Thread Julien Grall
Hi, On 01/04/2015 16:32, Stefano Stabellini wrote: On Wed, 1 Apr 2015, Julien Grall wrote: Hi, I'm looking to replace any call to xc_domain_bind_pt_irq and xc_domain_unbind_pt_irq by specific IRQ type helpers. I found one strange call which will always fail in xen_pt_msix_update_remap

Re: [Qemu-devel] [Linaro-acpi] [RFC PATCH 0/7] hw/arm/virt: Dynamic ACPI v5.1 table generation

2014-11-12 Thread Julien Grall
this solution wouldn't fit to support ACPI on other OS (i.e *BSD) without requiring specific implementation/parsing of the command line. The DT solution would be cleaner and the bindings are already standardize (and starting to be used on other OS such as FreeBSD). Regards, -- Julien Grall

Re: [Qemu-devel] [PATCH 6/6] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-11 Thread Julien Grall
On 01/11/2013 11:50 AM, Andreas Färber wrote: Am 11.01.2013 10:18, schrieb Stefan Hajnoczi: From: Julien Grall julien.gr...@citrix.com The commit 258711 introduced MemoryRegion to replace ioport_region* for ioport 80h and F0h. A MemoryRegion needs to have both read and write callback

Re: [Qemu-devel] [PATCH 6/6] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-11 Thread Julien Grall
From: Julien Grall julien.gr...@citrix.com The commit 258711 introduced MemoryRegion to replace ioport_region* for ioport 80h and F0h. A MemoryRegion needs to have both read and write callback otherwise a segfault will occur when an access is made. The previous behaviour of this both ioport

[Qemu-devel] [PATCH] hw/pc.c: add ULL suffix in ioport80_read and ioportF0_read return value

2013-01-11 Thread Julien Grall
The commit c02e1eac887b1b0aee7361b1fcf889e7d47fed9d broke the compilation for i386. ULL need to be specify for uint64_t value. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c |4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/pc.c b/hw/pc.c index

Re: [Qemu-devel] buildbot failure in qemu on default_i386_rhel61

2013-01-11 Thread Julien Grall
I sent a patch on the mailing-list one hour ago. http://www.mail-archive.com/qemu-devel@nongnu.org/msg148708.html On Fri, Jan 11, 2013 at 11:47 PM, Andreas Färber afaer...@suse.de wrote: Am 11.01.2013 23:06, schrieb q...@buildbot.b1-systems.de: The Buildbot has detected a new failure on

Re: [Qemu-devel] [Bug 108996 V2] hw/dma.c: Fix converting of ioport_register* to MemoryRegion

2013-01-09 Thread Julien Grall
On Wed, Dec 19, 2012 at 12:09 PM, Julien Grall julien.gr...@citrix.com wrote: The commit 582299336879504353e60c7937fbc70fea93f3da introduced a 1-shift for some offset in dma emulation. Before the previous commit, which converted ioport_register_* to MemoryRegion, the DMA controller registered

[Qemu-devel] [PATCH] hw/pc.c: Fix converting of ioport_register* to MemoryRegion

2013-01-09 Thread Julien Grall
this behaviour. Reported-by: Adam Lackorzynski a...@os.inf.tu-dresden.de Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 12 1 file changed, 12 insertions(+) diff --git a/hw/pc.c b/hw/pc.c index df0c48e..90b1bf7 100644 --- a/hw/pc.c +++ b/hw/pc.c @@ -103,6 +103,11

[Qemu-devel] [Bug 108996 V2] hw/dma.c: Fix converting of ioport_register* to MemoryRegion

2012-12-19 Thread Julien Grall
-by: Andreas Färber afaer...@suse.de Reported-by: Andreas Gustafsson g...@gson.org Signed-off-by: Julien Grall julien.gr...@citrix.com --- Modification between V1 and V2: * Modify the commit message to explain the problem. hw/dma.c | 22 +++--- 1 file changed, 11 insertions(+), 11

Re: [Qemu-devel] [PATCH] fix dma.c MemoryRegion convertion

2012-12-15 Thread Julien Grall
On Fri, Dec 14, 2012 at 11:39 PM, Marcelo Tosatti mtosa...@redhat.com wrote: The high byte of the ioport address is necessary to compute the register address, see 82371AB PCI ISA IDE Xcelerator (PIIX4) document, eg: 4.2.1.1. DCOM—DMA Command Register (IO) I/O Address: Channels 0–3—08h;

Re: [Qemu-devel] [[Bug 108996]] hw/dma.c: Fix conversion ioport_register* to MemoryRegion

2012-12-15 Thread Julien Grall
On Fri, Dec 14, 2012 at 5:30 PM, Andreas Färber afaer...@suse.de wrote: Am 14.12.2012 10:52, schrieb Julien Grall: The commit 582299336879504353e60c7937fbc70fea93f3da introduced a bug in dma emulation due to a bad conversion between ioport_register* and MemoryRegion. Cc: 1089

[Qemu-devel] [[Bug 108996]] hw/dma.c: Fix conversion ioport_register* to MemoryRegion

2012-12-14 Thread Julien Grall
The commit 582299336879504353e60c7937fbc70fea93f3da introduced a bug in dma emulation due to a bad conversion between ioport_register* and MemoryRegion. Cc: 1089...@bugs.launchpad.net Reported-by: Andreas Gustafsson g...@gson.org Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c

Re: [Qemu-devel] [PATCH V10 2/8] hw/apm.c: replace register_ioport*

2012-12-03 Thread Julien Grall
On 11/27/2012 08:46 PM, Jason Baron wrote: On Tue, Nov 27, 2012 at 01:10:16AM +0100, Andreas Färber wrote: Am 19.09.2012 13:50, schrieb Julien Grall: This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added

Re: [Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-11-30 Thread Julien Grall
On 11/27/2012 01:14 AM, Andreas Färber wrote: Am 26.11.2012 15:25, schrieb Gerd Hoffmann: On 11/25/12 16:01, Andreas Färber wrote: Am 25.11.2012 10:10, schrieb Avi Kivity: On 09/19/2012 02:50 PM, Julien Grall wrote: This is the tenth version of patch series about ioport registration. Some

Re: [Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-11-25 Thread Julien Grall
On Sun, Nov 25, 2012 at 3:01 PM, Andreas Färber afaer...@suse.de wrote: Thanks, queued for the v1.4 merge window: https://github.com/afaerber/qemu-cpu/commits/memory-ioport Julien: When pinging a patch series, please make sure it actually still applies. This needed to be rebased both onto

Re: [Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-11-23 Thread Julien Grall
ping ? On Mon, Oct 8, 2012 at 5:53 PM, Julien Grall julien.gr...@citrix.comwrote: On 09/19/2012 12:50 PM, Julien Grall wrote: This is the tenth version of patch series about ioport registration. Some part of QEMU still use register_ioport* functions to register ioport

Re: [Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-10-08 Thread Julien Grall
On 09/19/2012 12:50 PM, Julien Grall wrote: This is the tenth version of patch series about ioport registration. Some part of QEMU still use register_ioport* functions to register ioport. These functions doesn't allow to use Memory Listener on it. Modifications between V1 and V2

[Qemu-devel] [PATCH V10 1/8] isa: add isa_address_space_io

2012-09-19 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |9 + hw/isa.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V10 0/8] memory: unify ioport registration

2012-09-19 Thread Julien Grall
string in hw/dma.c; - Rebase on master as hw/pc.c and hw/cirrus_vga.c was modified. Julien Grall (8): isa: add isa_address_space_io hw/apm.c: replace register_ioport* smb: replace_register_ioport* hw/acpi_piix4.c: replace register_ioport* hw/cirrus_vga.c: replace register_ioport* hw

[Qemu-devel] [PATCH V10 6/8] hw/serial.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

[Qemu-devel] [PATCH V10 3/8] smb: replace_register_ioport*

2012-09-19 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 18 -- hw/pm_smbus.c |7

[Qemu-devel] [PATCH V10 8/8] hw/dma.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V10 2/8] hw/apm.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V10 7/8] hw/pc.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 49 - 1 files changed, 40 insertions(+), 9

[Qemu-devel] [PATCH V10 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 154 +-- 1 files changed, 116 insertions(+), 38

[Qemu-devel] [PATCH V10 5/8] hw/cirrus_vga.c: replace register_ioport*

2012-09-19 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 48 1 files changed, 28 insertions(+), 20 deletions(-) diff

Re: [Qemu-devel] [PATCH V9 0/8] memory: unify ioport registration

2012-09-11 Thread Julien Grall
On 09/11/2012 10:25 AM, Avi Kivity wrote: On 09/11/2012 12:15 PM, Avi Kivity wrote: On 09/04/2012 06:13 PM, Julien Grall wrote: This is the nineth version of patch series about ioport registration. Some part of QEMU still use register_ioport* functions to register ioport

Re: [Qemu-devel] [PATCH] pc: Don't listen on debug ports by default

2012-09-11 Thread Julien Grall
On 09/11/2012 12:57 PM, Jan Kiszka wrote: On 2012-09-11 13:48, Jan Kiszka wrote: On 2012-09-11 13:27, Julien Grall wrote: On 09/11/2012 10:25 AM, Avi Kivity wrote: On 09/11/2012 12:15 PM, Avi Kivity wrote: On 09/04/2012 06:13 PM, Julien Grall wrote: This is the nineth version

Re: [Qemu-devel] [PATCH V9 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-10 Thread Julien Grall
On 09/09/2012 03:22 PM, Avi Kivity wrote: On 09/04/2012 06:13 PM, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. @@ -200,8 +212,11 @@ static void pm_io_space_update(PIIX4PMState *s

Re: [Qemu-devel] [PATCH V9 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-10 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 154 +-- 1 files changed, 116 insertions

[Qemu-devel] [PATCH V9 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-10 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 154 +-- 1 files changed, 116 insertions(+), 38

Re: [Qemu-devel] [PATCH V7 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-04 Thread Julien Grall
On 09/04/2012 08:24 AM, Jan Kiszka wrote: On 2012-09-03 12:03, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Gralljulien.gr...@citrix.com --- hw/acpi_piix4.c | 151

[Qemu-devel] [PATCH V8 5/8] hw/cirrus_vga.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 50 ++ 1 files changed, 30 insertions(+), 20 deletions

[Qemu-devel] [PATCH V8 3/8] smb: replace_register_ioport*

2012-09-04 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 18 -- hw/pm_smbus.c |7

[Qemu-devel] [PATCH V8 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 145 +++ 1 files changed, 113 insertions(+), 32

[Qemu-devel] [PATCH V8 8/8] hw/dma.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V8 0/8] memory: unify ioport registration

2012-09-04 Thread Julien Grall
version; - Register pm io region at initialization with default value instead of at first call to pm_io_space_update (reported by Jan). Julien Grall (8): isa: add isa_address_space_io hw/apm.c: replace register_ioport* smb: replace_register_ioport* hw/acpi_piix4.c: replace

[Qemu-devel] [PATCH V8 6/8] hw/serial.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

[Qemu-devel] [PATCH V8 7/8] hw/pc.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [PATCH V8 2/8] hw/apm.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V8 1/8] isa: add isa_address_space_io

2012-09-04 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |9 + hw/isa.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff

Re: [Qemu-devel] [PATCH V8 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-04 Thread Julien Grall
On 09/04/2012 04:15 PM, Jan Kiszka wrote: On 2012-09-04 09:28, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Gralljulien.gr...@citrix.com --- hw/acpi_piix4.c | 145

[Qemu-devel] [PATCH V9 5/8] hw/cirrus_vga.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 50 ++ 1 files changed, 30 insertions(+), 20 deletions

Re: [Qemu-devel] [PATCH V9 0/8] memory: unify ioport registration

2012-09-04 Thread Julien Grall
My apologies for this double post, I made a typing error on Jan's email. On 09/04/2012 04:13 PM, Julien Grall wrote: This is the nineth version of patch series about ioport registration. Some part of QEMU still use register_ioport* functions to register ioport. These functions doesn't allow

[Qemu-devel] [PATCH V9 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 145 +++ 1 files changed, 113 insertions(+), 32

[Qemu-devel] [PATCH V9 3/8] smb: replace_register_ioport*

2012-09-04 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 18 -- hw/pm_smbus.c |7

[Qemu-devel] [PATCH V9 7/8] hw/pc.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [PATCH V9 2/8] hw/apm.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V9 0/8] memory: unify ioport registration

2012-09-04 Thread Julien Grall
version; - Register pm io region at initialization with default value instead of at first call to pm_io_space_update (reported by Jan). Modifications between V8 and V9: - Fix size constraint in pm_io_ops (reported by Jan). Julien Grall (8): isa: add isa_address_space_io hw/apm.c

[Qemu-devel] [PATCH V9 1/8] isa: add isa_address_space_io

2012-09-04 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |9 + hw/isa.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V9 8/8] hw/dma.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V9 6/8] hw/serial.c: replace register_ioport*

2012-09-04 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

Re: [Qemu-devel] [PATCH V6 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-03 Thread Julien Grall
On 09/01/2012 08:44 AM, Jan Kiszka wrote: On 2012-08-29 05:01, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Doesn't build. As the previous patch series, this patch depends on patches 7

Re: [Qemu-devel] [PATCH V6 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-03 Thread Julien Grall
On 09/03/2012 12:19 PM, Avi Kivity wrote: On 08/29/2012 06:01 AM, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. diff --git a/hw/acpi_piix4.c b/hw/acpi_piix4.c @@ -28,6 +28,7 @@ #include range.h

Re: [Qemu-devel] [PATCH V6 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-03 Thread Julien Grall
On 09/03/2012 01:56 PM, Jan Kiszka wrote: On 2012-09-03 14:56, Julien Grall wrote: On 09/01/2012 08:44 AM, Jan Kiszka wrote: On 2012-08-29 05:01, Julien Grall wrote: This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff

[Qemu-devel] [PATCH V7 0/8] memory: unify ioport registration

2012-09-03 Thread Julien Grall
by Avi). - Fix device endianess in acpi_piix4 (reported by Avi). - Avoid dependencies between patches and reorder it (reported by Jan). Some code moved from acpi_piix4 patch to smb/apm patches. Julien Grall (8): isa: add isa_address_space_io hw/apm.c: replace register_ioport* smb

[Qemu-devel] [PATCH V7 2/8] hw/apm.c: replace register_ioport*

2012-09-03 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4

[Qemu-devel] [PATCH V7 3/8] smb: replace_register_ioport*

2012-09-03 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 18 -- hw/pm_smbus.c |7

[Qemu-devel] [PATCH V7 4/8] hw/acpi_piix4.c: replace register_ioport*

2012-09-03 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 151 +++ 1 files changed, 119 insertions(+), 32

[Qemu-devel] [PATCH V7 5/8] hw/cirrus_vga.c: replace register_ioport*

2012-09-03 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 50 ++ 1 files changed, 30 insertions(+), 20 deletions

[Qemu-devel] [PATCH V7 6/8] hw/serial.c: replace register_ioport*

2012-09-03 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

[Qemu-devel] [PATCH V7 7/8] hw/pc.c: replace register_ioport*

2012-09-03 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [PATCH V7 1/8] isa: add isa_address_space_io

2012-09-03 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |9 + hw/isa.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V7 8/8] hw/dma.c: replace register_ioport*

2012-09-03 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V6 8/8] smb: replace_register_ioport*

2012-08-29 Thread Julien Grall
This patch fix smb_ioport_* to be compliant with read/write memory callback. Moreover it replaces all register_ioport* which use theses functions by the new Memory API. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pm_smbus.c |7 --- hw/pm_smbus.h |6 -- hw/vt82c686

[Qemu-devel] [PATCH V6 6/8] hw/dma.c: replace register_ioport*

2012-08-29 Thread Julien Grall
This patch replaces all register_ioport* be the new memory API functions. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/dma.c | 108 + 1 files changed, 72 insertions

[Qemu-devel] [PATCH V6 0/8] memory: unify ioport registration

2012-08-29 Thread Julien Grall
in acpi_piix4.c (wrong conversion during port). - Rewrite isa_address_space_io to use ISA bus address space. - Fix compilation in vt82c686.c Julien Grall (8): isa: add isa_address_space_io hw/acpi_piix4.c: replace register_ioport* hw/cirrus_vga.c: replace register_ioport* hw/serial.c

[Qemu-devel] [PATCH V6 3/8] hw/cirrus_vga.c: replace register_ioport*

2012-08-29 Thread Julien Grall
This patch replaces all register_ioport* with portio_*. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/cirrus_vga.c | 50 ++ 1 files changed, 30 insertions(+), 20 deletions

[Qemu-devel] [PATCH V6 2/8] hw/acpi_piix4.c: replace register_ioport*

2012-08-29 Thread Julien Grall
This patch replaces all register_ioport* with the new memory API. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/acpi_piix4.c | 170 +++ 1 files changed, 134 insertions(+), 36

[Qemu-devel] [PATCH V6 7/8] hw/apm.c: replace register_ioport*

2012-08-29 Thread Julien Grall
This patch replaces all register_ioport* by a MemorySection. It permits to use the new Memory stuff like listener. Moreover, the PCI is added as an argument for apm_init, so we can register IO inside the pci IO address space. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/apm.c

[Qemu-devel] [PATCH V6 1/8] isa: add isa_address_space_io

2012-08-29 Thread Julien Grall
This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/isa-bus.c |9 + hw/isa.h |1 + 2 files changed, 10 insertions(+), 0 deletions(-) diff

[Qemu-devel] [PATCH V6 5/8] hw/pc.c: replace register_ioport*

2012-08-29 Thread Julien Grall
This patch replaces all register_ioport* with portio_* or isa_register_portio_list. It permits to use the new Memory stuff like listener. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/pc.c | 58 +++--- 1 files changed, 43

[Qemu-devel] [PATCH V6 4/8] hw/serial.c: replace register_ioport*

2012-08-29 Thread Julien Grall
This patch replaces all register_ioport* with a MemoryRegion. It permits to use the new Memory stuff like listener. For more flexibility, the IO address space is passed as an argument. Signed-off-by: Julien Grall julien.gr...@citrix.com --- hw/mips_mipssim.c |3 ++- hw/pc.h |2

Re: [Qemu-devel] [PATCH V5 1/8] isa: add isa_address_space_io

2012-08-28 Thread Julien Grall
On 08/24/2012 05:10 PM, Andreas Färber wrote: Am 22.08.2012 14:27, schrieb Julien Grall: This function permits to retrieve ISA IO address space. It will be usefull when we need to pass IO address space as argument. Signed-off-by: Julien Gralljulien.gr...@citrix.com --- hw/isa-bus.c

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 11/17] xc: modify save/restore to support multiple device models

2012-08-24 Thread Julien Grall
On 08/23/2012 08:52 PM, Ian Campbell wrote: On Thu, 2012-08-23 at 20:13 +0100, Julien Grall wrote: On 08/23/2012 02:27 PM, Ian Campbell wrote: @@ -103,6 +103,9 @@ static ssize_t rdexact(xc_interface *xch, struct restore_ctx *ctx, #else #define RDEXACT read_exact

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 01/17] hvm: Modify interface to support multiple ioreq server

2012-08-24 Thread Julien Grall
On 08/23/2012 02:26 PM, Keir Fraser wrote: On 23/08/2012 14:18, Ian Campbellian.campb...@citrix.com wrote: diff --git a/xen/include/public/hvm/ioreq.h b/xen/include/public/hvm/ioreq.h index 4022a1d..87aacd3 100644 --- a/xen/include/public/hvm/ioreq.h +++ b/xen/include/public/hvm/ioreq.h

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 12/17] xl: Add interface to handle qemu disaggregation

2012-08-24 Thread Julien Grall
On 08/23/2012 02:30 PM, Ian Campbell wrote: On Wed, 2012-08-22 at 13:31 +0100, Julien Grall wrote: This patch modifies libxl interface for qemu disaggregation. I'd rather see the interfaces changes in the same patch as the implementation of the new interfaces. For the moment

Re: [Qemu-devel] [QEMU][RFC V2 06/10] xen-pci: register PCI device in Xen and handle IOREQ_TYPE_PCI_CONFIG

2012-08-24 Thread Julien Grall
On 08/23/2012 03:41 PM, Stefano Stabellini wrote: On Wed, 22 Aug 2012, Julien Grall wrote: With QEMU disaggregation QEMU needs to specify which PCI device it's able to handle. It will use the device place in the topology (domain, bus, device, function). When Xen will trap an access

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 14/17] xl-parsing: Parse new device_models option

2012-08-24 Thread Julien Grall
On 08/23/2012 02:35 PM, Ian Campbell wrote: On Wed, 2012-08-22 at 13:32 +0100, Julien Grall wrote: Add new option device_models. The user can specify the capability of the QEMU (ui, vifs, ...). This option only works with QEMU upstream (qemu-xen). For instance: device_models= [ 'name=all

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 12/17] xl: Add interface to handle qemu disaggregation

2012-08-24 Thread Julien Grall
On 08/24/2012 02:03 PM, Ian Campbell wrote: @@ -246,6 +246,20 @@ libxl_domain_sched_params = Struct(domain_sched_params,[ (extratime,integer, {'init_val': 'LIBXL_DOMAIN_SCHED_PARAM_EXTRATIME_DEFAULT'}), ]) +libxl_dm_cap = Enumeration(dm_cap, [ +(1, UI), # Emulate all UI

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 15/17] xl: support spawn/destroy on multiple device model

2012-08-24 Thread Julien Grall
On 08/23/2012 02:56 PM, Ian Campbell wrote: On Wed, 2012-08-22 at 13:32 +0100, Julien Grall wrote: @@ -991,12 +1057,11 @@ static void domcreate_launch_dm(libxl__egc *egc, libxl__multidev *multidev, libxl__device_console_dispose(console); if (need_qemu

Re: [Qemu-devel] [Xen-devel] [XEN][RFC PATCH V2 15/17] xl: support spawn/destroy on multiple device model

2012-08-24 Thread Julien Grall
On 08/24/2012 03:09 PM, Ian Campbell wrote: On Fri, 2012-08-24 at 14:51 +0100, Julien Grall wrote: @@ -1044,7 +1044,8 @@ int libxl__wait_for_device_model(libxl__gc *gc, void *check_callback_userdata) { char *path; -path = libxl__sprintf(gc

  1   2   3   >