Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-05-04 Thread Vijay Kilari
On Mon, May 4, 2015 at 6:34 PM, Julien Grall julien.gr...@citrix.com wrote: On 04/05/2015 13:58, Vijay Kilari wrote: On Thu, Apr 30, 2015 at 7:59 PM, Julien Grall julien.gr...@citrix.com wrote: Hi, On 30/04/15 14:47, Stefano Stabellini wrote: If the devid is not within this range

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-05-04 Thread Vijay Kilari
On Mon, May 4, 2015 at 7:24 PM, Julien Grall julien.gr...@citrix.com wrote: On 04/05/2015 14:44, Julien Grall wrote: Hi Vijay, On 04/05/2015 14:27, Vijay Kilari wrote: On Mon, May 4, 2015 at 6:34 PM, Julien Grall julien.gr...@citrix.com wrote: On 04/05/2015 13:58, Vijay Kilari wrote

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-04-30 Thread Vijay Kilari
On Thu, Apr 30, 2015 at 3:45 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Thu, 30 Apr 2015, Julien Grall wrote: Hi Stefano, On 30/04/2015 11:02, Stefano Stabellini wrote: On Wed, 29 Apr 2015, Julien Grall wrote: On 29/04/15 17:30, Vijay Kilari wrote: On Wed, Apr

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-04-29 Thread Vijay Kilari
On Wed, Apr 29, 2015 at 9:56 PM, Vijay Kilari vijay.kil...@gmail.com wrote: Hi Julien, On Wed, Apr 29, 2015 at 7:05 PM, Julien Grall julien.gr...@citrix.com wrote: On 29/04/15 12:56, Julien Grall wrote: As the 2 suggested approach don't seem to fit our usage, we need to find another approach

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-04-29 Thread Vijay Kilari
Hi Julien, On Wed, Apr 29, 2015 at 7:05 PM, Julien Grall julien.gr...@citrix.com wrote: On 29/04/15 12:56, Julien Grall wrote: As the 2 suggested approach don't seem to fit our usage, we need to find another approach. I think I have another approach which doesn't require interrupt neither

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-04-28 Thread Vijay Kilari
On Tue, Apr 28, 2015 at 4:05 PM, Julien Grall julien.gr...@citrix.com wrote: Hi, On 28/04/15 10:56, Stefano Stabellini wrote: On Tue, 28 Apr 2015, Vijay Kilari wrote: Approach 1: (Using completion interrupt) 1) Create dummy device for each virtual ITS when virtual its

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-04-28 Thread Vijay Kilari
On Tue, Apr 28, 2015 at 9:45 PM, Julien Grall julien.gr...@citrix.com wrote: Hi Vijay, On 28/04/15 12:36, Vijay Kilari wrote: On Tue, Apr 28, 2015 at 4:05 PM, Julien Grall julien.gr...@citrix.com wrote: If you properly manage the device with struct pci_dev or struct device (which

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-04-28 Thread Vijay Kilari
On Thu, Apr 2, 2015 at 7:17 PM, Julien Grall julien.grall@gmail.com wrote: Hi Ian, On 02/04/2015 12:18, Ian Campbell wrote: On Thu, 2015-04-02 at 12:06 +0100, Julien Grall wrote: Can we just enqueue with the hardware and use the guest vcpu polling loop to trigger us to check for

Re: [Xen-devel] preparing for 4.5.1

2015-04-14 Thread Vijay Kilari
On Tue, Apr 14, 2015 at 6:42 PM, Ian Campbell ian.campb...@citrix.com wrote: On Mon, 2015-04-13 at 09:35 +0100, Jan Beulich wrote: On 02.04.15 at 12:01, ian.campb...@citrix.com wrote: On Thu, 2015-03-26 at 17:07 +, Jan Beulich wrote: having been released mid January, it is time to get

Re: [Xen-devel] [RFC PATCH v2 06/22] xen/arm: its: Port ITS driver to xen

2015-04-02 Thread Vijay Kilari
On Wed, Apr 1, 2015 at 5:04 PM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch just makes ITS driver taken from linux compiles in xen environment. What is your

Re: [Xen-devel] [RFC PATCH v2 06/22] xen/arm: its: Port ITS driver to xen

2015-04-02 Thread Vijay Kilari
On Thu, Apr 2, 2015 at 2:55 PM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-04-02 at 13:55 +0530, Vijay Kilari wrote: On Wed, Apr 1, 2015 at 5:04 PM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K

Re: [Xen-devel] [RFC PATCH v2 12/22] xen/arm: its: Update irq descriptor for LPIs support

2015-03-30 Thread Vijay Kilari
Hi Julien, On Fri, Mar 20, 2015 at 10:14 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 19/03/2015 14:37, vijay.kil...@gmail.com wrote: diff --git a/xen/include/asm-arm/irq.h b/xen/include/asm-arm/irq.h index 435dfcd..f091739 100644 --- a/xen/include/asm-arm/irq.h +++

Re: [Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-03-30 Thread Vijay Kilari
Hi Julien, On Tue, Mar 24, 2015 at 5:18 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, More questions/remarks about command processing. On 19/03/2015 14:38, vijay.kil...@gmail.com wrote: +int vgic_its_process_cmd(struct vcpu *v, struct vgic_its *vits) +{ +struct

Re: [Xen-devel] VM Migration on ARM

2015-03-27 Thread Vijay Kilari
Hi Andrew, On Wed, Mar 25, 2015 at 9:32 PM, Andrew Cooper andrew.coop...@citrix.com wrote: On 20/03/15 13:17, Vijay Kilari wrote: Hi Andrew, On Wed, Mar 11, 2015 at 4:21 PM, Andrew Cooper andrew.coop...@citrix.com wrote: On 11/03/15 05:32, Vijay Kilari wrote: Hi Andrew, From Ian

[Xen-devel] xen/arm: VCPUOP_register_vcpu_info fails with CONFIG_ARM64_64K_PAGES

2015-03-25 Thread Vijay Kilari
Hi, Dom0 fails to boot with Xen with CONFIG_ARM64_64K_PAGES enabled because of map_vcpu_info() make check of page offset based of PAGE_SIZE which is 4K in Xen. Is this know issue that is fixed?. I am using 4.5 rc1 Xen code base. Log below: (XEN) DOM0: [0.173539] If your platform has any

[Xen-devel] [PATCH v4] xen/arm: Add RESERVE option to reserve non-leaf level table entries

2015-03-24 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com On x86, for the pages mapped with PAGE_HYPERVISOR attribute non-leaf page tables are allocated with valid pte entries. and with MAP_SMALL_PAGES attribute only non-leaf page tables are allocated with invalid (valid bit set to 0) pte entries.

Re: [Xen-devel] [RFC PATCH v2 00/22] xen/arm: Add ITS support

2015-03-23 Thread Vijay Kilari
On Fri, Mar 20, 2015 at 9:53 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Vijay, On 19/03/2015 14:37, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add ITS support for arm. Following major features are supported - GICv3 ITS support for arm64

Re: [Xen-devel] [RFC PATCH v2 06/22] xen/arm: its: Port ITS driver to xen

2015-03-23 Thread Vijay Kilari
Hi Julien, On Fri, Mar 20, 2015 at 8:36 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 19/03/2015 14:37, vijay.kil...@gmail.com wrote: static LIST_HEAD(its_nodes); static DEFINE_SPINLOCK(its_lock); -static struct device_node *gic_root_node; -static struct rdists

Re: [Xen-devel] [RFC PATCH v2 00/22] xen/arm: Add ITS support

2015-03-23 Thread Vijay Kilari
On Mon, Mar 23, 2015 at 9:00 PM, Julien Grall julien.gr...@linaro.org wrote: On 23/03/15 15:18, Vijay Kilari wrote: The ITS still have to manage in someway the device. There is lots of information that doesn't need to be created at every mapd (such as the number of MSI). First assumption

Re: [Xen-devel] VM Migration on ARM

2015-03-20 Thread Vijay Kilari
Hi Andrew, On Wed, Mar 11, 2015 at 4:21 PM, Andrew Cooper andrew.coop...@citrix.com wrote: On 11/03/15 05:32, Vijay Kilari wrote: Hi Andrew, From Ian Stefano, I came to know that you have introduced Migration framework v2 under below patch series http://marc.info/?l=xen-develm

[Xen-devel] [RFC PATCH v2 09/22] xen/arm: its: Add helper functions to decode ITS Command

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add helper functions to decode ITS command This will be useful for Virtual ITS driver Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/include/asm-arm/gic-its.h | 45 + 1 file

[Xen-devel] [RFC PATCH v2 00/22] xen/arm: Add ITS support

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add ITS support for arm. Following major features are supported - GICv3 ITS support for arm64 platform - Supports multi ITS node - LPI descriptors are allocated on-demand - Only ITS Dom0 is supported Tested with single ITS node. Major

[Xen-devel] [RFC PATCH v2 08/22] xen/arm: its: Remove unused code in ITS driver

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS driver does not require functionality to create/free device. This will be handled by virtual ITS driver. The functionality of ITS driver will be limited to initialization, physical lpi allocation, sending ITS commands received from Virtual

[Xen-devel] [RFC PATCH v2 02/22] Use linked list accessors for page_list helper function

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Use newly introduced linked list helper functions in page_list* functions Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com CC: Jan Beulich jbeul...@suse.com --- xen/include/xen/mm.h | 10 -- 1 file changed, 4

[Xen-devel] [RFC PATCH v2 15/22] xen/arm: its: Add support to emulate GICR register for LPIs

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com With this patch add emulation of GICR registers for LPIs. Also add LPI property table emulation. Domain's LPI property table is unmapped during domain init on LPIPROPBASE update and trapped on LPI property table read and write Signed-off-by:

[Xen-devel] [RFC PATCH v2 03/22] xen/arm: Add bitmap_find_next_zero_area helper function

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com bitmap_find_next_zero_area helper function will be used by physical ITS driver imported from linux Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/arm64/lib/find_next_bit.c | 39

[Xen-devel] [RFC PATCH v2 12/22] xen/arm: its: Update irq descriptor for LPIs support

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Introduce new fields in arch_irq_desc for to hold virtual irq number and pointer to its device. Also introduced helper function to read and update device pointer in arch_irq_desc Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com

[Xen-devel] [RFC PATCH v2 06/22] xen/arm: its: Port ITS driver to xen

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch just makes ITS driver taken from linux compiles in xen environment. The following changes are done - memory allocation apis are changed - raw spin lock api's changed to normal spin lock api's - debug prints changed to xen

[Xen-devel] [RFC PATCH v2 01/22] add linked list apis

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add missing linked list apis from kernel Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com CC: Jan Beulich jbeul...@suse.com --- v2: Add additional linked apis like list_last_entry_or_null, list_next_entry and list_prev_entry

[Xen-devel] [RFC PATCH v2 16/22] xen/arm: its: implement hw_irq_controller for LPIs

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch implements hw_irq_controller api's required to handle LPI's. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v2: - Reused hw_irq_controller ops of gicv3 for LPIs --- xen/arch/arm/gic-v3-its.c | 103

[Xen-devel] [RFC PATCH v2 07/22] xen/arm: its: Move ITS command encode helper functions

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS command encode functions are moved to header file gits-its.h and made as inline functions. This will be useful later in virtual its driver Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c |

[Xen-devel] [RFC PATCH v2 13/22] xen/arm: its: Add virtual ITS command support

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add Virtual ITS command processing support to Virtual ITS driver. Also add API's to in physical ITS driver to send commands from Virtual ITS driver. In this patch, following are done -Physical ITS driver will allocate physical LPI for

[Xen-devel] [RFC PATCH v2 11/22] xen/arm: its: Move its_device structure to header file

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com The its_device structure can be reused in virtual ITS driver. So move this to gic-its.h file Also the physical LPI allocation code of physical ITS driver is used. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ---

[Xen-devel] [RFC PATCH v2 18/22] xen/arm: its: Dynamic allocation of LPI descriptors

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Number of LPIs supported by GICv3 is huge. Boot time allocation of irq descriptors and pending_irq descritors is not viable. With this patch, allocate irq/pending_irq descritors for LPIs on-demand and manage using radix tree Signed-off-by:

[Xen-devel] [RFC PATCH v2 19/22] xen/arm: its: Support ITS interrupt handling

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add support for handling ITS(LPI) interrupts. The LPI interrupts are handled by physical ITS driver. nested LPI interrupt handling is not tested and enabled. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v2: - Removed

[Xen-devel] [RFC PATCH v2 17/22] xen/arm: its: Map ITS translation space

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS translation space contains GITS_TRANSLATOR register which is written by device to raise LPI. This space needs to mapped to every domain address space for all physical ITS available, so that device can access GITS_TRANSLATOR register using

[Xen-devel] [RFC PATCH v2 14/22] xen/arm: its: Add emulation of ITS control registers

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add support for emulating GITS_* registers Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v2: - Each Virtual ITS is attached to Physical ITS. - Introduce helper function to lock and unlock virtual ITS lock. -

[Xen-devel] [RFC PATCH v2 21/22] xen/arm: its: Initialize virtual and physical ITS driver

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Intialize physical ITS driver and virtual ITS driver based on HW support information available in GICD_TYPER register. Based on outcome of lpi_supported() and gic_nr_id_bits() functions ITS driver is initialized Signed-off-by: Vijaya Kumar K

[Xen-devel] [RFC PATCH v2 04/22] xen/arm: its: Import GICv3 ITS driver from linux

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This is actual GICv3 ITS driver from linux (4.0_rc4) with latest commit id: 4559fbb3a9b1bde46afc739fa6c300826acdc19c No xen related changes are made and is not compiled. This helps to import any issues found in linux Signed-off-by: Vijaya

[Xen-devel] [RFC PATCH v2 05/22] xen/arm: gicv3: Refactor redistributor information

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Separate redistributor information into rdist and rdist_prop structures. The rdist_prop holds the redistributor common information and rdist holds the per cpu specific information. This percpu rdist defined as global and shared with ITS

[Xen-devel] [RFC PATCH v2 22/22] xen/arm: its: Generate ITS dt node for DomU

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Generate ITS device tree node for DomU. This patch generate ITS node outside the GICv3 node for DomU. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- tools/libxl/libxl_arm.c | 36

[Xen-devel] [RFC PATCH v2 20/22] xen/arm: its: Generate ITS node for Dom0

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Parse host dt and generate ITS node for Dom0. ITS node resides inside GIC node so when GIC node is encountered look for ITS node. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v2: - Generate all available ITS node in host

Re: [Xen-devel] [PATCH v2 2/4] xen/arm: Add GSER region to ThunderX platform mapping

2015-03-17 Thread Vijay Kilari
Hi Ian, On Thu, Mar 5, 2015 at 10:40 PM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-03-05 at 16:46 +, Ian Campbell wrote: On Wed, 2015-03-04 at 11:36 +0530, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add GSER region to thunderx

Re: [Xen-devel] [RFC PATCH 02/19] xen/arm: its: Import GICv3 ITS driver from linux

2015-03-16 Thread Vijay Kilari
On Mon, Mar 16, 2015 at 6:45 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Vijay, On 16/03/15 09:55, Vijay Kilari wrote: On Fri, Mar 13, 2015 at 4:05 PM, Julien Grall julien.gr...@linaro.org wrote: On 13/03/2015 10:24, Julien Grall wrote: Hello Vijay, On 02/03/2015 12:30

Re: [Xen-devel] [RFC PATCH 03/19] xen/arm: its: Port ITS driver to xen

2015-03-16 Thread Vijay Kilari
Hi Julien, On Fri, Mar 13, 2015 at 5:16 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 02/03/2015 12:30, vijay.kil...@gmail.com wrote: @@ -228,10 +242,10 @@ static struct its_collection *its_build_mapd_cmd(struct its_cmd_block *cmd,

Re: [Xen-devel] [RFC PATCH 00/19] xen/arm: Add ITS support

2015-03-16 Thread Vijay Kilari
On Fri, Mar 13, 2015 at 3:43 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Vijay, On 13/03/2015 04:48, Vijay Kilari wrote: The changes that I envisage for supporting Multiple ITS is - Generate as many number of ITS dt nodes for Dom0 that host DT contains. - For DomU always

Re: [Xen-devel] [RFC PATCH 02/19] xen/arm: its: Import GICv3 ITS driver from linux

2015-03-16 Thread Vijay Kilari
On Fri, Mar 13, 2015 at 4:05 PM, Julien Grall julien.gr...@linaro.org wrote: On 13/03/2015 10:24, Julien Grall wrote: Hello Vijay, On 02/03/2015 12:30, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This is actual GICv3 ITS driver from linux. No xen

Re: [Xen-devel] [RFC PATCH 03/19] xen/arm: its: Port ITS driver to xen

2015-03-16 Thread Vijay Kilari
On Mon, Mar 16, 2015 at 7:50 PM, Julien Grall julien.gr...@linaro.org wrote: On 16/03/15 14:06, Vijay Kilari wrote: @@ -343,17 +357,23 @@ static int its_queue_full(struct its_node *its) static struct its_cmd_block *its_allocate_entry(struct its_node *its) { struct its_cmd_block *cmd

Re: [Xen-devel] [RFC PATCH 00/19] xen/arm: Add ITS support

2015-03-12 Thread Vijay Kilari
Hi Julien, On Mon, Mar 9, 2015 at 11:46 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 09/03/2015 14:57, Vijay Kilari wrote: On Tue, Mar 3, 2015 at 5:13 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 03/03/2015 03:55, Vijay Kilari wrote: On Mon, Mar

Re: [Xen-devel] [PATCH v3] xen/arm: Do not allocate pte entries for MAP_SMALL_PAGES

2015-03-10 Thread Vijay Kilari
On Tue, Mar 10, 2015 at 5:22 PM, Ian Campbell ian.campb...@citrix.com wrote: On Tue, 2015-03-10 at 11:45 +, Julien Grall wrote: On 09/03/15 16:08, Vijay Kilari wrote: On Mon, Mar 9, 2015 at 5:46 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Vijay, Given the introduction

[Xen-devel] VM Migration on ARM

2015-03-10 Thread Vijay Kilari
Hi Andrew, From Ian Stefano, I came to know that you have introduced Migration framework v2 under below patch series http://marc.info/?l=xen-develm=141036915311145 I have few queries: 1) Is there any plans/timeline to support for ARM32/ARM64?. 2) Also does the Domain Image format

Re: [Xen-devel] [RFC PATCH 13/19] xen/arm: its: implement hw_irq_controller for LPIs

2015-03-09 Thread Vijay Kilari
On Tue, Mar 3, 2015 at 10:58 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 2 Mar 2015, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch implements hw_irq_controller api's required to handle LPI's. Signed-off-by: Vijaya

Re: [Xen-devel] [RFC PATCH 00/19] xen/arm: Add ITS support

2015-03-09 Thread Vijay Kilari
On Tue, Mar 3, 2015 at 5:13 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 03/03/2015 03:55, Vijay Kilari wrote: On Mon, Mar 2, 2015 at 6:49 PM, Julien Grall julien.gr...@linaro.org wrote: On 02/03/15 12:30, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku

Re: [Xen-devel] [PATCH v3] xen/arm: Do not allocate pte entries for MAP_SMALL_PAGES

2015-03-09 Thread Vijay Kilari
On Mon, Mar 9, 2015 at 5:46 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Vijay, Given the introduction of the new helper, the title looks wrong to me. On 09/03/2015 08:59, vijay.kil...@gmail.com wrote: diff --git a/xen/arch/arm/mm.c b/xen/arch/arm/mm.c index 7d4ba0c..e0be36b 100644

Re: [Xen-devel] [RFC PATCH 13/19] xen/arm: its: implement hw_irq_controller for LPIs

2015-03-09 Thread Vijay Kilari
On Mon, Mar 9, 2015 at 9:39 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 9 Mar 2015, Vijay Kilari wrote: On Tue, Mar 3, 2015 at 10:58 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Mon, 2 Mar 2015, vijay.kil...@gmail.com wrote: From: Vijaya Kumar

[Xen-devel] [PATCH v3] xen/arm: Do not allocate pte entries for MAP_SMALL_PAGES

2015-03-09 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com On x86, for the pages mapped with PAGE_HYPERVISOR attribute non-leaf page tables are allocated with valid pte entries. and with MAP_SMALL_PAGES attribute only non-leaf page tables are allocated with invalid (valid bit set to 0) pte entries.

[Xen-devel] [PATCH v2] xen/arm: Do not allocate pte entries for MAP_SMALL_PAGES

2015-03-04 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com On x86, for the pages mapped with PAGE_HYPERVISOR attribute non-leaf page tables are allocated with valid pte entries. and with MAP_SMALL_PAGES attribute only non-leaf page tables are allocated with invalid (valid bit set to 0) pte entries.

[Xen-devel] [PATCH v3 4/4] xen/arm: Don't pass the PSCI-0.2 node to DOM0

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com psci node is generated by xen for dom0. if the host device tree has psci-0.2 skip parsing this node and avoid copying from host device tree to dom0 device tree. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Acked-by: Ian

[Xen-devel] [PATCH v3 1/4] xen/arm: Add ThunderX platform support

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add basic support for Cavium ThunderX platform Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- v3 changes: - Made Thunderx specific mappings as separate patch - Improved printk error message v2 changes: - Update

[Xen-devel] [PATCH v2 2/4] xen/arm: Add GSER region to ThunderX platform mapping

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add GSER region to thunderx platfrom specific mappings. This region is not mentioned in DT. This is required by PCI driver to detect and configure pci devices attached. In future we can remove this mapping, if pci driver in Dom does not

[Xen-devel] [PATCH v3 0/4] Add ThunderX platform support

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Changes in v3: - Made ThunderX GSER region mapping as separate patch - Updated patch 3 commit message Changes in v2: - Updated patch 3 commit message - Updated processor_implementers[] with implementor info in xen/arch/arm/setup.c

[Xen-devel] [PATCH v3 3/4] xen/arm: Add early printk support for ThunderX platform

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ThunderX platform uses pl011 uart. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Acked-by: Ian Campbell ian.campb...@citrix.com --- xen/arch/arm/Rules.mk |4 1 file changed, 4 insertions(+) diff --git

Re: [Xen-devel] [PATCH v2 1/3] xen/arm: Add ThunderX platform support

2015-03-03 Thread Vijay Kilari
On Tue, Mar 3, 2015 at 2:33 PM, Ian Campbell ian.campb...@citrix.com wrote: On Tue, 2015-03-03 at 10:39 +0530, Vijay Kilari wrote: On Mon, Feb 23, 2015 at 11:21 PM, Ian Campbell ian.campb...@citrix.com wrote: On Wed, 2015-02-18 at 12:38 +, Julien Grall wrote: +uint64_t addr, size

Re: [Xen-devel] [PATCH v1] xen/arm: Do not allocate pte entries for MAP_SMALL_PAGES

2015-03-02 Thread Vijay Kilari
On Tue, Feb 24, 2015 at 6:29 PM, Julien Grall julien.gr...@linaro.org wrote: On 24/02/15 10:26, Ian Campbell wrote: On Tue, 2015-02-24 at 09:38 +, Julien Grall wrote: Hi Ian, On 24/02/2015 09:31, Ian Campbell wrote: On Wed, 2015-02-18 at 13:03 +, Julien Grall wrote: +

Re: [Xen-devel] [RFC PATCH 00/19] xen/arm: Add ITS support

2015-03-02 Thread Vijay Kilari
Hi Julien, On Mon, Mar 2, 2015 at 6:49 PM, Julien Grall julien.gr...@linaro.org wrote: Hi Vijay, On 02/03/15 12:30, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add ITS support for arm. Following major features are supported - GICv3 ITS support for

Re: [Xen-devel] [PATCH v2 1/3] xen/arm: Add ThunderX platform support

2015-03-02 Thread Vijay Kilari
On Mon, Feb 23, 2015 at 11:21 PM, Ian Campbell ian.campb...@citrix.com wrote: On Wed, 2015-02-18 at 12:38 +, Julien Grall wrote: +uint64_t addr, size; Please use paddr_t and PRIpaddr etc. +res = map_mmio_regions(d, + paddr_to_pfn(addr PAGE_MASK),

[Xen-devel] [RFC PATCH 13/19] xen/arm: its: implement hw_irq_controller for LPIs

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch implements hw_irq_controller api's required to handle LPI's. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c | 104 - xen/arch/arm/gic.c

[Xen-devel] [RFC PATCH 10/19] xen/arm: its: Add virtual ITS command support

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add Virtual ITS command processing support to Virtual ITS driver. Also add API's to in physical ITS driver to send commands from Virtual ITS driver. For now, this driver can handle one physical ITS node. If platform has more than one physical

[Xen-devel] [RFC PATCH 11/19] xen/arm: its: Add emulation of ITS control registers

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add support for emulating GITS_* registers Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c |9 + xen/arch/arm/vgic-v3-its.c| 369 -

[Xen-devel] [RFC PATCH 12/19] xen/arm: its: Add support to emulate GICR register for LPIs

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com With this patch add emulation of GICR registers for LPIs. Also add LPI property table emulation. Domain's LPI property table is unmapped during domain init on LPIPROPBASE update and trapped on LPI property table read and write Signed-off-by:

[Xen-devel] [RFC PATCH 14/19] xen/arm: vits: Map ITS translation space

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS translation space contains GITS_TRANSLATOR register which is written by device to raise LPI. This space needs to mapped to every domain address space so that device can access GITS_TRANSLATOR register using SMMU Signed-off-by: Vijaya Kumar

[Xen-devel] [RFC PATCH 02/19] xen/arm: its: Import GICv3 ITS driver from linux

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This is actual GICv3 ITS driver from linux. No xen related changes are made and is not compiled. This helps to import any issues found in linux Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c |

[Xen-devel] [RFC PATCH 09/19] xen/arm: Update irq descriptor for LPIs support

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Introduce new fields in irq descriptors for LPI support. data field to hold irq related data and virq to hold virtual lpi number for the corresponding irq Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/irq.c

[Xen-devel] [RFC PATCH 07/19] xen/arm: vits: Move LPI handling to basic virtual its driver

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com The LPI allocation is handled by virtual ITS driver on receiving ITS commands from domain. So move this functionality from physical ITS driver to Virtual ITS driver. This patch does not add any virtual its funtionality except moving required

[Xen-devel] [RFC PATCH 08/19] xen/arm: Add helper function to get domain page

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Given the physical address of the page, get the maddr to map in Xen to access domain's memory. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/p2m.c| 24

[Xen-devel] [RFC PATCH 19/19] xen/arm: its: Initialize virtual and physical ITS driver

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Intialize physical ITS driver and virtual ITS driver based on HW support information available in GICD_TYPER register. Based on outcome of lpi_supported() and gic_nr_id_bits() functions ITS driver is initialized Signed-off-by: Vijaya Kumar K

[Xen-devel] [RFC PATCH 18/19] xen/arm: its: Generate ITS node for Dom0

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Parse host dt and generate ITS node for Dom0. ITS node resides inside GIC node so when GIC node is encountered look for ITS node. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/domain_build.c | 59

[Xen-devel] [RFC PATCH 17/19] xen/arm: its: Support ITS interrupt handling

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add support for handling ITS(LPI) interrupts. The LPI interrupts are handled by physical ITS driver. nested LPI interrupt handling is not tested and enabled. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ---

[Xen-devel] [RFC PATCH 15/19] xen/arm: gicv3: Refactor redistributor information

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Separate redistributor information into rdist and rdist_prop structures. The rdist_prop holds the redistributor common information and rdist holds the per cpu specific information. This percpu rdist defined as global and shared with ITS

[Xen-devel] [RFC PATCH 16/19] xen/arm: its: Dynamic allocation of LPI descriptors

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Number of LPIs supported by GICv3 is huge. Boot time allocation of irq descriptors and pending_irq descritors is not viable. With this patch, allocate irq/pending_irq descritors for LPIs on-demand and manage using radix tree Signed-off-by:

[Xen-devel] [RFC PATCH 04/19] xen/arm: its: Move ITS command encode helper functions

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS command encode functions are moved to header file gits-its.h and made as inline functions. This will be useful later in virtual its driver Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/gic-v3-its.c |

[Xen-devel] [RFC PATCH 01/19] xen/arm: add linked list apis

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add missing linked list apis from kernel Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com CC: Jan Beulich jbeul...@suse.com --- xen/include/xen/list.h | 33 + 1 file changed, 33 insertions(+)

[Xen-devel] [RFC PATCH 03/19] xen/arm: its: Port ITS driver to xen

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com This patch just makes ITS driver taken from linux compiles in xen environment. The following changes are done - memory allocation apis are changed - raw spin lock api's changed to normal spin lock api's - debug prints changed to xen debug

[Xen-devel] [RFC PATCH 05/19] xen/arm: its: Remove unused code in ITS driver

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ITS driver does not require functionality to create/free device. This will be handled by virtual ITS driver. The functionality of ITS driver will be limited to initialization, sending ITS commands received from Virtual ITS driver and ITS

[Xen-devel] [RFC PATCH 06/19] xen/arm: its: Add helper functions to decode ITS Command

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add helper functions to decode ITS command This will be useful for Virtual ITS driver Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/include/asm-arm/gic-its.h | 45 + 1 file

[Xen-devel] [RFC PATCH 00/19] xen/arm: Add ITS support

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add ITS support for arm. Following major features are supported - GICv3 ITS support for arm64 platform - Supports only single ITS node - LPI descriptors are allocated on-demand - Only ITS Dom0 is supported Vijaya Kumar K (19): xen/arm:

Re: [Xen-devel] RFC: [PATCH 1/3] Enhance platform support for PCI

2015-02-26 Thread Vijay Kilari
On Wed, Feb 25, 2015 at 3:50 PM, Ian Campbell ian.campb...@citrix.com wrote: On Wed, 2015-02-25 at 08:03 +0530, Manish Jaggi wrote: On 24/02/15 7:13 pm, Julien Grall wrote: On 24/02/15 00:23, Manish Jaggi wrote: Because you have to parse all the device tree to remove the reference to the

Re: [Xen-devel] [PATCH] xen/arm: Implement dynamic allocation of irq descriptors

2015-02-23 Thread Vijay Kilari
On Thu, Feb 19, 2015 at 7:33 PM, Julien Grall julien.gr...@linaro.org wrote: On 19/02/15 07:17, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com For arm memory for 1024 irq descriptors are allocated statically irrespective of number of interrupt supported by

Re: [Xen-devel] [PATCH] xen/arm: Implement dynamic allocation of irq descriptors

2015-02-23 Thread Vijay Kilari
Hi Julien, On Mon, Feb 23, 2015 at 9:10 PM, Julien Grall julien.gr...@linaro.org wrote: Hello Vijay, On 23/02/15 13:04, Vijay Kilari wrote: On Thu, Feb 19, 2015 at 7:33 PM, Julien Grall julien.gr...@linaro.org wrote: On 19/02/15 07:17, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K

Re: [Xen-devel] [PATCH v3 00/15] xen/arm: Bug fixes for the vGIC

2015-02-20 Thread Vijay Kilari
On Fri, Feb 20, 2015 at 3:44 PM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-02-19 at 18:01 +, Julien Grall wrote: Based on the discussion, what about waiting until someone complain about GICv3 support on Xen 4.5? That sounds like a reasonable compromise. If Xen 4.5 claims

Re: [Xen-devel] [PATCH v3 00/15] xen/arm: Bug fixes for the vGIC

2015-02-20 Thread Vijay Kilari
On Fri, Feb 20, 2015 at 4:45 PM, Julien Grall julien.gr...@linaro.org wrote: On 20/02/15 10:44, Ian Campbell wrote: On Fri, 2015-02-20 at 15:56 +0530, Vijay Kilari wrote: On Fri, Feb 20, 2015 at 3:44 PM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-02-19 at 18:01 +, Julien

[Xen-devel] [PATCH] xen/arm: Implement dynamic allocation of irq descriptors

2015-02-18 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com For arm memory for 1024 irq descriptors are allocated statically irrespective of number of interrupt supported by the platform. With this patch, irq descriptors are allocated at run time and managed using red-black tree. Functions to insert,

[Xen-devel] [PATCH v2 0/3] Add ThunderX platform support

2015-02-18 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Changes in v2: - Updated patch 3 commit message - Updated processor_implementers[] with implementor info in xen/arch/arm/setup.c Changes in v1: - Add support for ThunderX platform - Add early printk support - Add psci-0.2 check while

[Xen-devel] [PATCH v2 2/3] xen/arm: Add early printk support for ThunderX platform

2015-02-18 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ThunderX platform uses pl011 uart. Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/Rules.mk |4 1 file changed, 4 insertions(+) diff --git a/xen/arch/arm/Rules.mk b/xen/arch/arm/Rules.mk index

[Xen-devel] [PATCH v2 1/3] xen/arm: Add ThunderX platform support

2015-02-18 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Add basic support for Cavium ThunderX platform Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com --- xen/arch/arm/platforms/Makefile |1 + xen/arch/arm/platforms/thunderx.c | 66 +

[Xen-devel] [PATCH v2 3/3] xen/arm: Skip parsing psci-0.2 from host device tree

2015-02-18 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com psci node is generated by xen for dom0. if the host device tree has psci-0.2 skip parsing this node and avoid copying from host device tree to dom0 device tree Signed-off-by: Vijaya Kumar K vijaya.ku...@caviumnetworks.com ---

[Xen-devel] [RFC PATCH] xen/arm: Vmap allocator fails to allocate beyond 128M

2015-02-16 Thread Vijay Kilari
In vmap_init, map_pages_to_xen() is called for mapping vm_bitmap. Initially one page of vm_bitmap is allocated and mapped using PAGE_HYPERVISOR attribute. For the rest of vm_bitmap pages, MAP_SMALL_PAGES attribute is used to map. In ARM for both PAGE_HYPERVISOR and MAP_SMALL_PAGES, valid bit is

Re: [Xen-devel] Vmap allocator fails to allocate beyond 128MB

2015-02-16 Thread Vijay Kilari
On Mon, Feb 16, 2015 at 3:58 PM, Julien Grall julien.gr...@linaro.org wrote: On 16/02/15 10:17, Vijay Kilari wrote: Hello Vijay, For ThunderX/arm64 this issue needs to be fixed. Could you please comment on this? AFAICS, x86 is also using a 1G area for the vmap. Does it mean that x86

[Xen-devel] [PATCH v1 0/3] ThunderX platform support

2015-02-16 Thread vijay . kilari
From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Changes in v1: - Add support for ThunderX platform - Add early printk support - Add psci-0.2 check while parsing dt node Vijaya Kumar K (3): xen/arm: Add ThunderX platform support xen/arm: Add early printk support for ThunderX platform

Re: [Xen-devel] [PATCH v1 0/3] ThunderX platform support

2015-02-16 Thread Vijay Kilari
Please ignore this series. I have missed to update processor_implementers[] with cavium in xen/arch/arm/setup.c Sending v2 version On Mon, Feb 16, 2015 at 2:36 PM, vijay.kil...@gmail.com wrote: From: Vijaya Kumar K vijaya.ku...@caviumnetworks.com Changes in v1: - Add support for ThunderX

<    1   2   3   4   5   6   >