Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-12 Thread Shannon Zhao
On 2014/11/11 23:11, Pawel Moll wrote: On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-13 Thread Shannon Zhao
On 2014/11/13 2:33, Pawel Moll wrote: On Wed, 2014-11-12 at 08:32 +, Shannon Zhao wrote: On 2014/11/11 23:11, Pawel Moll wrote: On Tue, 2014-11-04 at 09:35 +, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Shannon Zhao
On 2014/11/6 19:09, Michael S. Tsirkin wrote: On Thu, Nov 06, 2014 at 05:54:54PM +0800, Shannon Zhao wrote: On 2014/11/6 17:34, Michael S. Tsirkin wrote: On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features

[RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-04 Thread Shannon Zhao
? is there other ways to make virtio-mmio support multiple irq? Hope for feedback. Thanks. Signed-off-by: Shannon Zhao zhaoshengl...@huawei.com --- drivers/virtio/virtio_mmio.c | 234 -- 1 files changed, 203 insertions(+), 31 deletions(-) diff --git

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
On 2014/11/4 17:35, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net and irqfd supporting. Hi Joel, Peter, Mst, Some virtio-net

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
to the HOST to see how far we are from a native configuration... Agree! Also, I assume a pending Qemu patch is necessary to assign multiple irqs ? I'm correct ? Yes, the patch is on it's way :) Thanks a lot, Best regards Rémy -Message d'origine- De : Shannon Zhao [mailto:zhaoshengl

Re: [Qemu-devel] [RFC PATCH 0/2] virtio-mmio: add irqfd support for vhost-net based on virtio-mmio

2014-11-05 Thread Shannon Zhao
On 2014/11/5 16:43, Eric Auger wrote: On 10/27/2014 12:23 PM, Li Liu wrote: On 2014/10/27 17:37, Peter Maydell wrote: On 25 October 2014 09:24, john.liuli john.li...@huawei.com wrote: To get the interrupt reason to support such VIRTIO_NET_F_STATUS features I add a new register offset

Re: [Qemu-devel] [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-05 Thread Shannon Zhao
On 2014/11/5 23:27, Joel Schopp wrote: On 11/05/2014 03:12 AM, Shannon Zhao wrote: Hi Rémy, On 2014/11/5 16:26, GAUGUEY Rémy 228890 wrote: Hi Shannon, Type of backend bandwith(GBytes/sec) virtio-net 0.66 vhost-net 1.49 vhost-net with irqfd2.01

Re: [RFC PATCH] virtio-mmio: support for multiple irqs

2014-11-06 Thread Shannon Zhao
On 2014/11/6 17:34, Michael S. Tsirkin wrote: On Tue, Nov 04, 2014 at 05:35:12PM +0800, Shannon Zhao wrote: As the current virtio-mmio only support single irq, so some advanced features such as vhost-net with irqfd are not supported. And the net performance is not the best without vhost-net

Re: [PATCH v9 20/21] Documentation: ACPI for ARM64

2015-02-27 Thread Shannon Zhao
On 2015/2/25 16:40, Hanjun Guo wrote: From: Graeme Gregory graeme.greg...@linaro.org Add documentation for the guidelines of how to use ACPI on ARM64. Reviewed-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Reviewed-by: Yi Li phoenix.l...@huawei.com Reviewed-by: Mark Langsdorf

Re: [PATCH v9 00/21] Introduce ACPI for ARM64 based on ACPI 5.1

2015-02-27 Thread Shannon Zhao
On 2015/2/27 16:37, Hanjun Guo wrote: Hi Timur, On 2015年02月27日 11:20, Timur Tabi wrote: On 02/25/2015 02:39 AM, Hanjun Guo wrote: Changes since v8: I'm still debugging it, but v9 on the 4.0-rc1 kernel crashes after calling the UEFI boot time services exit function. That is, this line:

Re: [PATCH v9 20/21] Documentation: ACPI for ARM64

2015-02-27 Thread Shannon Zhao
On 2015/2/27 18:53, Shannon Zhao wrote: On 2015/2/25 16:40, Hanjun Guo wrote: From: Graeme Gregory graeme.greg...@linaro.org Add documentation for the guidelines of how to use ACPI on ARM64. Reviewed-by: Suravee Suthikulpanit suravee.suthikulpa...@amd.com Reviewed-by: Yi Li phoenix.l

Re: [PATCH v9 20/21] Documentation: ACPI for ARM64

2015-02-27 Thread Shannon Zhao
On 2015/2/25 16:40, Hanjun Guo wrote: +Authors +--- +Al Stone al.st...@linaro.org +Graeme Gregory graeme.greg...@linaro.org +Hanjun Guo hanjun@linaro.org + +Grant Likely grant.lik...@linaro.org, for the Why ACPI on ARM? section + It's here at the end of the file. Redundant blank

Re: [PATCH v9 21/21] ARM64 / ACPI: additions of ACPI documentation for arm64

2015-02-27 Thread Shannon Zhao
On 2015/2/25 16:40, Hanjun Guo wrote: +Not yet implemented are: + + -- Section 10: power source and power meter devices + + -- Section 11: thermal management + + -- Section 12: embedded controllers interface + + -- Section 13: SMBus interfaces + + -- Section 17: NUMA

Re: [PATCH] virtio_mmio: add ACPI probing

2015-07-28 Thread Shannon Zhao
On 2015/7/29 5:10, Peter Maydell wrote: On 28 July 2015 at 21:28, G Gregory graeme.greg...@linaro.org wrote: On 28 July 2015 at 21:12, Peter Maydell peter.mayd...@linaro.org wrote: Mmm. I'm not terribly happy about stuff being in QEMU before the ACPI spec for it has been finalised. We

Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio

2015-07-29 Thread Shannon Zhao
On 2015/7/30 3:16, Michael S. Tsirkin wrote: ACPI spec 5.0 allows the use of PCI vendor IDs. But virtio-mmio is not a PCI device, it's a platform device. Why do we drop the previous way using QEMU? Something I missed? Since we have one for virtio, it seems neater to use that rather

Re: [Qemu-devel] [PATCH v2] arm: change vendor ID for virtio-mmio

2015-07-30 Thread Shannon Zhao
On 2015/7/30 16:04, Michael S. Tsirkin wrote: On Thu, Jul 30, 2015 at 09:23:20AM +0800, Shannon Zhao wrote: On 2015/7/30 3:16, Michael S. Tsirkin wrote: ACPI spec 5.0 allows the use of PCI vendor IDs. But virtio-mmio is not a PCI device, it's a platform device. Yes. ACPI spec 5.0 says

Re: [PATCH 0/3] Add AMBA bus probing support to ACPI

2015-10-29 Thread Shannon Zhao
On 2015/9/30 18:38, Graeme Gregory wrote: As discussed when Shannon Zhao sent a patch to add platform_device support to pl061 driver. Russel and other maintainers prefered that ACPI learned how to create AMBA devices rather than converting/adding platform_device support to AMBA drivers. http

[PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

2015-09-10 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> These EFI stub parameters are used to internal communication between EFI stub and Linux kernel and EFI stub creates these parameters. But for Xen on ARM when booting with UEFI, Xen will create a minimal DT providing these parameters for Dom0 an

Re: [PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

2015-09-17 Thread Shannon Zhao
ove this patch forward? Then I could continue working on adding ARM ACPI support on Xen. Any comments? Thanks, -- Shannon On 2015/9/10 16:41, Shannon Zhao wrote: > From: Shannon Zhao <shannon.z...@linaro.org> > > These EFI stub parameters are used to internal communication

Re: [PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

2015-09-14 Thread Shannon Zhao
expected >> state of the firmware, i.e., that ExitBootServices() has been called, >> and that the memory map has been populated with virtual address, which >> have been installed using SetVirtualAddressMap() if they differ from >> the physical addresses. (The curren

Re: [PATCH] efi/libstub/fdt: Standardize the names of EFI stub parameters

2015-09-14 Thread Shannon Zhao
On 2015/9/14 17:09, Ard Biesheuvel wrote: > On 14 September 2015 at 10:42, Shannon Zhao <zhaoshengl...@huawei.com> wrote: > [..] > >> >> It only needs to apply following patch to fix a bug in Linux kernel when >> mapping EFI_MEMORY_RUNTIME memory. >&g

[PATCH v4 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v4 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v4 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v4 16/17] FDT: Add a helper to get specified name subnode

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sometimes it needs to check if there is a node in FDT by full path. Introduce this helper to get the specified name subnode if it exists. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- CC: Rob Herring <r...@kernel.org> ---

[PATCH v4 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v4 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@l

[PATCH v4 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Rob Herring <r...@kernel.org> --- CC:

[PATCH v4 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v4 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interfac

[PATCH v4 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v4 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus

[PATCH v4 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v4 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --

[PATCH v4 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com>

[PATCH v4 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When booting with ACPI, it could get the event-channel irq through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- arch/arm/xe

[PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. Signed-off-by: Shannon Zhao <shannon.z...@l

[PATCH v4 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v4 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-02-04 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new delivery type: val[63:56] == 3: val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 0 stands the interrupt mode is edge(1) or level(0) and bit 1 stands the interrupt polarity is active low(1) or high(0). Signed-off-by: Shanno

Re: [PATCH v3 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-01-26 Thread Shannon Zhao
On 2016/1/26 19:31, Stefano Stabellini wrote: > On Tue, 26 Jan 2016, Shannon Zhao wrote: >> > On 2016/1/26 0:44, Stefano Stabellini wrote: >>> > > On Sat, 23 Jan 2016, Shannon Zhao wrote: >>>>> > >> > From: Shannon Zhao <shannon.z...@linar

Re: [PATCH v3 16/17] FDT: Add a helper to get specified name subnode

2016-01-26 Thread Shannon Zhao
On 2016/1/26 20:11, Stefano Stabellini wrote: > On Sat, 23 Jan 2016, Shannon Zhao wrote: >> > From: Shannon Zhao <shannon.z...@linaro.org> >> > >> > Sometimes it needs to check if there is a node in FDT by full path. >> > Introduce this helper t

Re: [PATCH v3 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-01-26 Thread Shannon Zhao
On 2016/1/26 0:44, Stefano Stabellini wrote: > On Sat, 23 Jan 2016, Shannon Zhao wrote: >> > From: Shannon Zhao <shannon.z...@linaro.org> >> > >> > Move x86 specific codes to architecture directory and export those EFI >> > runtime service functions.

Re: [PATCH v4 16/17] FDT: Add a helper to get specified name subnode

2016-02-23 Thread Shannon Zhao
On 2016/2/9 13:04, Rob Herring wrote: > On Thu, Feb 4, 2016 at 9:05 PM, Shannon Zhao <zhaoshengl...@huawei.com> wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> Sometimes it needs to check if there is a node in FDT by full path. > > I'm c

Re: [PATCH v4 01/17] Xen: ACPI: Hide UART used by Xen

2016-02-28 Thread Shannon Zhao
> On Mon, 8 Feb 2016, Rafael J. Wysocki wrote: >>>>> > > > > On Monday, February 08, 2016 10:57:01 AM Stefano Stabellini wrote: >>>>>> > > > > > On Sat, 6 Feb 2016, Rafael J. Wysocki wrote: >>>>>>> > >

Re: [Xen-devel] [PATCH v2 16/16] ARM64: XEN: Initialize Xen specific UEFI runtime services

2016-01-21 Thread Shannon Zhao
On 2016/1/19 1:03, Stefano Stabellini wrote: > On Fri, 15 Jan 2016, Shannon Zhao wrote: >> > From: Shannon Zhao <shannon.z...@linaro.org> >> > >> > When running on Xen hypervisor, runtime services are supported through >> > hypercall. So call Xen spe

Re: [PATCH v3 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-01-27 Thread Shannon Zhao
On 2016/1/27 16:27, Hanjun Guo wrote: > Hi Shannon, > > On 2016/1/23 11:19, Shannon Zhao wrote: >> From: Shannon Zhao <shannon.z...@linaro.org> >> >> When it's a Xen domain0 booting with ACPI, it will supply a /chosen and >> a /hypervisor node in

[PATCH v3 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus

[PATCH v3 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Rob Herring <r...@kernel.org> --- CC:

[PATCH v3 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new delivery type: val[63:56] == 3: val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 0 stands the interrupt mode is edge(1) or level(0) and bit 1 stands the interrupt polarity is active low(1) or high(0). Signed-off-by: Shanno

[PATCH v3 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- arch/arm/xen

[PATCH v3 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Use page_to_xen_pfn in case of 64KB page. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- drivers/xen/xlate_mmu.c | 26 -- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/drivers/xen/x

[PATCH v3 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- CC: Hanjun Guo <hanjun@linaro.org&g

[PATCH v3 16/17] FDT: Add a helper to get specified name subnode

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sometimes it needs to check if there is a node in FDT by full path. Introduce this helper to get the specified name subnode if it exists. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- CC: Rob Herring <r...@kernel.org> ---

[PATCH v3 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- arch/x86/xen/ef

[PATCH v3 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- arch/arm64/include/asm/xen/xe

[PATCH v3 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.or

[PATCH v3 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interfac

[PATCH v3 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- include/xen/interface/hvm/p

[PATCH v3 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v3 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com>

[PATCH v3 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --

[PATCH v3 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v3 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When booting with ACPI, it could get the event-channel irq through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> --- arch/arm/xen/enlighten.c | 36 +++- 1 file changed, 3

[PATCH v3 01/17] Xen: ACPI: Hide UART used by Xen

2016-01-22 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. Signed-off-by: Shannon Zhao <shannon.z...@l

[PATCH v6 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-03-18 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Rob Herring <r...@kernel.org> Rev

[PATCH v6 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-03-18 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@l

[PATCH v6 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-03-18 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --

[PATCH v6 16/17] FDT: Add a helper to get the subnode by given name

2016-03-18 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sometimes it needs to check if there is a subnode of given node in FDT by given name. Introduce this helper to get the subnode if it exists. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org>

[PATCH v6 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-03-18 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v6 01/17] Xen: ACPI: Hide UART used by Xen

2016-03-18 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. Signed-off-by: Shannon Zhao <shannon.z...@l

[PATCH v6 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v6 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v6 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com>

[PATCH v6 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v6 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus

[PATCH v6 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When booting with ACPI, it could get the event-channel irq through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> --- arch/arm/xe

[PATCH v6 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This new delivery type which is for ARM shares the same value with HVM_PARAM_CALLBACK_TYPE_VECTOR which is for x86. val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 8 stands the interrupt mode is edge(1) or level(0) and bit 9

[PATCH v11 17/17] Xen: EFI: Parse DT parameters for Xen specific UEFI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new function to parse DT parameters for Xen specific UEFI just like the way for normal UEFI. Then it could reuse the existing codes. If Xen supports EFI, initialize runtime services. CC: Matt Fleming <m...@codeblueprint.co.uk>

[PATCH v11 15/17] ARM64: XEN: Add a function to initialize Xen specific UEFI runtime services

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When running on Xen hypervisor, runtime services are supported through hypercall. Add a Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v11 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen ACPI on ARM64 design document could be found from [1]. This patch set adds a new FDT node "uefi" under /hypervisor to pass UEFI information. Introduce a bus

[PATCH v11 12/17] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> When it's a Xen domain0 booting with ACPI, it will supply a /chosen and a /hypervisor node in DT. So check if it needs to enable ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v11 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v11 14/17] XEN: EFI: Move x86 specific codes to architecture directory

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move x86 specific codes to architecture directory and export those EFI runtime service functions. This will be useful for initializing runtime service on ARM later. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v11 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for platform bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com>

[PATCH v11 07/17] Xen: ARM: Add support for mapping AMBA device mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a bus_notifier for AMBA bus device in order to map the device mmio regions when DOM0 booting with ACPI. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> R

[PATCH v11 16/17] FDT: Add a helper to get the subnode by given name

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sometimes it needs to check if there is a subnode of given node in FDT by given name. Introduce this helper to get the subnode if it exists. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org>

[PATCH v11 01/17] Xen: ACPI: Hide UART used by Xen

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> ACPI 6.0 introduces a new table STAO to list the devices which are used by Xen and can't be used by Dom0. On Xen virtual platforms, the physical UART is used by Xen. So here it hides UART from Dom0. CC: "Rafael J. Wysocki" <

[PATCH v11 09/17] xen/hvm/params: Add a new delivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> This new delivery type which is for ARM shares the same value with HVM_PARAM_CALLBACK_TYPE_VECTOR which is for x86. val[15:8] is flag: val[7:0] is a PPI. To the flag, bit 8 stands the interrupt mode is edge(1) or level(0) and bit 9

[PATCH v11 05/17] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a new type of Xen map space for Dom0 to map device's MMIO region. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Julien Grall <julien.gr...@arm.com> --- include/xen/interface/memory.h | 1 + 1 file ch

[PATCH v11 02/17] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table. Rename it to xen_xlate_map_ballooned_pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <

[PATCH v11 03/17] Xen: xlate: Use page_to_xen_pfn instead of page_to_pfn

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Make xen_xlate_map_ballooned_pages work with 64K pages. In that case Kernel pages are 64K in size but Xen pages remain 4K in size. Xen pfns refer to 4K pages. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefan

[PATCH v11 08/17] Xen: public/hvm: sync changes of HVM_PARAM_CALLBACK_VIA ABI from Xen

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Sync the changes of HVM_PARAM_CALLBACK_VIA ABI introduced by Xen commit (public/hvm: export the HVM_PARAM_CALLBACK_VIA ABI in the API). Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

[PATCH v11 13/17] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Add a "uefi" node under /hypervisor node in FDT, then Linux kernel could scan this to get the UEFI information. CC: Rob Herring <r...@kernel.org> Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Rob Herrin

[PATCH v11 11/17] ARM: XEN: Move xen_early_init() before efi_init()

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Move xen_early_init() before efi_init(), then when calling efi_init() could initialize Xen specific UEFI. Check if it runs on Xen hypervisor through the flat dts. Cc: Russell King <li...@arm.linux.org.uk> Signed-off-by: Shannon Zha

[PATCH v11 10/17] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2016-04-07 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> The kernel will get the event-channel IRQ through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Reviewed-by: Stefano Stabellini <stefano.stabell...@eu.citrix.com> Reviewed-by: Julien Grall <

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-07 Thread Shannon Zhao
On 2016/4/7 18:32, Julien Grall wrote: > Hi Shannon, > > On 07/04/16 02:37, Shannon Zhao wrote: >> >> >> On 2016/4/6 20:16, Julien Grall wrote: >>>> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >>>

Re: [PATCH v10 00/17] Add ACPI support for Xen Dom0 on ARM64

2016-04-06 Thread Shannon Zhao
Hi Julien, On 2016/4/6 19:32, Julien Grall wrote: > Hi Shannon, > > On 01/04/2016 16:48, Shannon Zhao wrote: >> This patch set adds ACPI support for Xen Dom0 on ARM64. The relevant Xen >> ACPI on ARM64 design document could be found from [1]. >> >> This patch set

Re: [PATCH v10 06/17] Xen: ARM: Add support for mapping platform device mmio

2016-04-06 Thread Shannon Zhao
On 2016/4/6 20:16, Julien Grall wrote: >> +gpfns[j] = XEN_PFN_DOWN(r->start) + j; >> +idxs[j] = XEN_PFN_DOWN(r->start) + j; >> +} >> + >> +xatp.domid = DOMID_SELF; >> +xatp.size = nr; >> +xatp.space = XENMAPSPACE_dev_mmio; >> + >> +

[PATCH v6 04/17] arm/xen: Use xen_xlate_map_ballooned_pages to setup grant table

2016-03-19 Thread Shannon Zhao
From: Shannon Zhao <shannon.z...@linaro.org> Use xen_xlate_map_ballooned_pages to setup grant table. Then it doesn't rely on DT or ACPI to pass the start address and size of grant table. Signed-off-by: Shannon Zhao <shannon.z...@linaro.org> Acked-by: Stefano Stabellini <

  1   2   3   4   5   >