Re: [Xen-devel] Xen/arm: Virtual ITS command queue handling

2015-05-15 Thread Vijay Kilari
On Fri, May 15, 2015 at 4:58 PM, Ian Campbell wrote: > On Wed, 2015-05-13 at 21:57 +0530, Vijay Kilari wrote: >> > * On receipt of an interrupt notification arising from Xen's own use >> > of `INT`; (see discussion under Completion) >> >> If INT not

Re: [Xen-devel] Xen/arm: Virtual ITS command queue handling

2015-05-15 Thread Vijay Kilari
On Fri, May 15, 2015 at 4:29 PM, Ian Campbell wrote: > On Wed, 2015-05-13 at 15:26 +0100, Julien Grall wrote: >> >>> on that vits; >> >>> * On receipt of an interrupt notification arising from Xen's own use >> >>> of `INT`; (see discussion under Completion) >> >>> * On any interrupt injection

Re: [Xen-devel] Xen/arm: Virtual ITS command queue handling

2015-05-13 Thread Vijay Kilari
Hi Ian, Few thoughts.. On Tue, May 12, 2015 at 8:32 PM, Ian Campbell wrote: > On Tue, 2015-05-05 at 17:44 +0530, Vijay Kilari wrote: >> Hi, >> >>As discussed, here is the design doc/txt. > > There seems to be no consideration of multiple guests or VCPUs all &

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

2015-05-11 Thread Vijay Kilari
On Mon, May 11, 2015 at 7:55 PM, Julien Grall wrote: > On 11/05/15 15:25, Julien Grall wrote: >> Hi Vijay, >> >> On 11/05/15 15:14, Vijay Kilari wrote: >>> On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell >>> wrote: >>>> On Thu, 2015-03-19 at 20

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

2015-05-11 Thread Vijay Kilari
On Wed, Apr 1, 2015 at 5:10 PM, Ian Campbell wrote: > On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: >> From: Vijaya Kumar K >> >> Add helper functions to decode ITS command >> This will be useful for Virtual ITS driver > > It depends slightly on the answer to the quesiton I ask

Re: [Xen-devel] Xen/arm: Virtual ITS command queue handling

2015-05-05 Thread Vijay Kilari
On Tue, May 5, 2015 at 7:39 PM, Julien Grall wrote: > On 05/05/15 13:14, Vijay Kilari wrote: >> Hi, >> > > Hi Vijay, > >>As discussed, here is the design doc/txt. > > I will comment on the proposal 2 as it seems to be the preferred one > assu

Re: [Xen-devel] Xen/arm: Virtual ITS command queue handling

2015-05-05 Thread Vijay Kilari
On Tue, May 5, 2015 at 7:21 PM, Stefano Stabellini wrote: > On Tue, 5 May 2015, Vijay Kilari wrote: >> Proposal 2: >> >> Here when guest writes command to vITS queue and updates CWRITER registers, >> it is trapped in XEN and below steps are foll

[Xen-devel] Xen/arm: Virtual ITS command queue handling

2015-05-05 Thread Vijay Kilari
Hi, As discussed, here is the design doc/txt. ARM GICv3 provides ITS (Interrupt Translation Service) feature to handle MSIx interrupts. Below are various mechanisms to handle ITS commands. ITS command completion detection mechanism: ---

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

2015-05-05 Thread Vijay Kilari
On Tue, May 5, 2015 at 5:17 PM, Julien Grall wrote: > On 05/05/15 12:06, Vijay Kilari wrote: >>One MSI per domain is always consumed because each domain during >> ITS initialization creates Virtual ITS and sends basic initialization >> commands (MAPC) > > AFAICT, MA

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

2015-05-05 Thread Vijay Kilari
On Tue, May 5, 2015 at 4:38 PM, Julien Grall wrote: > On 05/05/15 11:28, Stefano Stabellini wrote: >> On Mon, 4 May 2015, Julien Grall wrote: >>> Hi Vijay, >>> >>> On 04/05/2015 16:19, Vijay Kilari wrote: >>>>>>>> H

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

2015-05-05 Thread Vijay Kilari
On Tue, May 5, 2015 at 3:58 PM, Stefano Stabellini wrote: > On Mon, 4 May 2015, Julien Grall wrote: >> Hi Vijay, >> >> On 04/05/2015 16:19, Vijay Kilari wrote: >> > > > > > How did you implement the interrupt mode? Could it be improve? >> >

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 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 >>> wrote:

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 wrote: > > > On 04/05/2015 13:58, Vijay Kilari wrote: >> >> On Thu, Apr 30, 2015 at 7:59 PM, Julien Grall >> wrote: >>> >>> Hi, >>> >>> On 30/04/15 14:47, Stefano Stabellini wrote: >>

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

2015-05-04 Thread Vijay Kilari
On Thu, Apr 30, 2015 at 7:59 PM, Julien Grall wrote: > Hi, > > On 30/04/15 14:47, Stefano Stabellini wrote: > > If the devid is not within this range, the ITS won't recognize the value > and > won't be able to send the interrupt. > > So this is clearly not the right value.

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 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

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 wrote: > Hi Julien, > > On Wed, Apr 29, 2015 at 7:05 PM, Julien Grall 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

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 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 > polling in EL2.

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 wrote: > Hi Vijay, > > On 28/04/15 12:36, Vijay Kilari wrote: >> On Tue, Apr 28, 2015 at 4:05 PM, Julien Grall >> wrote: >>> If you properly manage the device with struct pci_dev or struct device >>> (which is

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 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 v

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 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 completion? >>>

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 wrote: > On Mon, 2015-04-13 at 09:35 +0100, Jan Beulich wrote: >> >>> On 02.04.15 at 12:01, wrote: >> > On Thu, 2015-03-26 at 17:07 +, Jan Beulich wrote: >> >> having been released mid January, it is time to get ready for 4.5.1-rc1. >> >> Please r

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 wrote: > On Thu, 2015-04-02 at 13:55 +0530, Vijay Kilari wrote: >> On Wed, Apr 1, 2015 at 5:04 PM, Ian Campbell 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 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 wrote: > On Thu, 2015-03-19 at 20:07 +0530, vijay.kil...@gmail.com wrote: >> From: Vijaya Kumar K >> >> This patch just makes ITS driver taken from linux >> compiles in xen environment. > > What is your intention wrt future updates to this driver? > >

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 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 its_cmd_block virt

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 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 >> +++ b/xen/include/

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 wrote: > On 20/03/15 13:17, Vijay Kilari wrote: >> >> Hi Andrew, >> >> On Wed, Mar 11, 2015 at 4:21 PM, Andrew Cooper >> wrote: >>> >>> On 11/03/15 05:32, Vijay Kilari wrote: >&g

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

2015-03-24 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 n

[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 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. However on arm this is not the case

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 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 M

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 6:41 PM, Julien Grall wrote: > On 23/03/15 12:37, Vijay Kilari wrote: >> On Fri, Mar 20, 2015 at 9:53 PM, Julien Grall >> wrote: >>> Hi Vijay, >>> >>> On 19/03/2015 14:37, vijay.kil...@gmail.com wrote: >>>> >&g

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 wrote: > Hi Vijay, > > On 19/03/2015 14:37, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar K >> >> Add ITS support for arm. Following major features >> are supported >> - GICv3 ITS support for arm64 platform >> - Supports multi ITS node >>

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 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 *gic_rdists; >>

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 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

[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 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 --- v2: - Generate all available ITS node in host DT for Dom0 - its_node structure will hold pointer to ITS dt

[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 Generate ITS device tree node for DomU. This patch generate ITS node outside the GICv3 node for DomU. Signed-off-by: Vijaya Kumar K --- tools/libxl/libxl_arm.c | 36 xen/arch/arm/gic-v3-its.c |7 ++- xen/include/publ

[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 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 Kumar K --- v2: Import GIC ITS dri

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

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K 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 driver Signed-off-by: Vijaya Kumar K

[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 Add support for emulating GITS_* registers Signed-off-by: Vijaya Kumar K --- v2: - Each Virtual ITS is attached to Physical ITS. - Introduce helper function to lock and unlock virtual ITS lock. - Introduced helper to get virtual ITS structure pointer bas

[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 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 --- v2: Multi-ITS support ---

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

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K 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 SMMU. Signed-off-by: Vijaya Kuma

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

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K 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 --- v2: - Removed interrupt handler in ITS driver and reused existing interrupt

[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 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: Vijaya Kumar K --- xen/arch/arm/

[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 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 --- xen/arch/arm/gic-v3-its.c | 16 xen/include/asm-arm/

[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 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 prints - remove msi chip fun

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

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K Add missing linked list apis from kernel Signed-off-by: Vijaya Kumar K CC: Jan Beulich --- v2: Add additional linked apis like list_last_entry_or_null, list_next_entry and list_prev_entry --- xen/include/xen/list.h | 60 ++

[Xen-devel] [RFC PATCH v2 10/22] xen/arm: Add helper function to get domain page

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K 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 --- xen/arch/arm/p2m.c| 24 xen/include/asm-arm/p2m.h |3 +++ 2 files changed, 27 insertions(+) diff --git a

[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 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 --- xen/arch/arm/irq.c| 26 ++

[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 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: Vijaya Kumar K --- xen/arch/ar

[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 bitmap_find_next_zero_area helper function will be used by physical ITS driver imported from linux Signed-off-by: Vijaya Kumar K --- xen/arch/arm/arm64/lib/find_next_bit.c | 39 xen/include/asm-arm/arm64/bitops.h | 15

[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 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 virtual LPI request. - The Device ID

[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 This patch implements hw_irq_controller api's required to handle LPI's. Signed-off-by: Vijaya Kumar K --- v2: - Reused hw_irq_controller ops of gicv3 for LPIs --- xen/arch/arm/gic-v3-its.c | 103 ++--- xen/arch/arm/gic-v3.c

[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 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 --- xen/arch/arm/gic-v3-its.c | 71 +--- xen/include/asm-arm/gic-its.h

[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 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 ITS driver and ITS interrupt ha

[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 Add helper functions to decode ITS command This will be useful for Virtual ITS driver Signed-off-by: Vijaya Kumar K --- xen/include/asm-arm/gic-its.h | 45 + 1 file changed, 45 insertions(+) diff --git a/xen/include/asm-arm/gic-it

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

2015-03-19 Thread vijay . kilari
From: Vijaya Kumar K 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 changes in v2: - Added Multi ITS s

[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 Use newly introduced linked list helper functions in page_list* functions Signed-off-by: Vijaya Kumar K CC: Jan Beulich --- xen/include/xen/mm.h | 10 -- 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/xen/include/xen/mm.h b/xen/include/xen/mm.h in

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 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 >> > >> > Add GSER region to thunderx platfrom specific mappings. >> > This region i

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 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) >>>>

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 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, >>st

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 wrote: > Hi Vijay, > > On 16/03/15 09:55, Vijay Kilari wrote: >> On Fri, Mar 13, 2015 at 4:05 PM, Julien Grall >> wrote: >>> >>> >>> On 13/03/2015 10:24, Julien Grall wrote: >>>>

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 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. >

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 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 >>> >>> This is actual GICv3 ITS driver from linux. >>> No xen related changes are made and

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 wrote: > Hello Vijay, > > On 09/03/2015 14:57, Vijay Kilari wrote: >> >> On Tue, Mar 3, 2015 at 5:13 PM, Julien Grall >> wrote: >>> >>> Hello Vijay, >>> >>> On 03/03/2015 03:

[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-devel&m=141036915311145 I have few queries: 1) Is there any plans/timeline to support for ARM32/ARM64?. 2) Also does the Domain Image format specifi

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 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 >> > wrote: >> >> Hi Vijay, >> >> >&g

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 wrote: > On Mon, 9 Mar 2015, Vijay Kilari wrote: >> On Tue, Mar 3, 2015 at 10:58 PM, Stefano Stabellini >> wrote: >> > On Mon, 2 Mar 2015, vijay.kil...@gmail.com wrote: >> >> From: Vijaya Kumar

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 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 >> --- a/xen

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 wrote: > On Mon, 2 Mar 2015, vijay.kil...@gmail.com wrote: >> From: Vijaya Kumar K >> >> This patch implements hw_irq_controller api's required >> to handle LPI's. >> >> Signed-off-by: Vijaya Kumar K >> --- >> xen/arch/arm/gic-v3-its.c | 104

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 wrote: > Hello Vijay, > > On 03/03/2015 03:55, Vijay Kilari wrote: >> >> On Mon, Mar 2, 2015 at 6:49 PM, Julien Grall >> wrote: >>> >>> On 02/03/15 12:30, vijay.kil...@gmail.com wrote: >>>> >

[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 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. However on arm this is not the case

[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 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. However on arm this is not the case

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

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K Add basic support for Cavium ThunderX platform Signed-off-by: Vijaya Kumar K --- v3 changes: - Made Thunderx specific mappings as separate patch - Improved printk error message v2 changes: - Update processor_implementers[] --- xen/arch/arm/platforms/Makefile |1 +

[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 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 require this. Signed-off-by: Vijaya K

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

2015-03-03 Thread vijay . kilari
From: Vijaya Kumar K 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 Changes in v1: - Add support for Th

[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 ThunderX platform uses pl011 uart. Signed-off-by: Vijaya Kumar K Acked-by: Ian Campbell --- 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 c7bd227..54efa91 100644 --- a/xen/arch/arm/Rule

[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 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 Acked-by: Ian Campbell --- v3 changes: - Updated commit message --- xen/arch/arm

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 wrote: > On Tue, 2015-03-03 at 10:39 +0530, Vijay Kilari wrote: >> On Mon, Feb 23, 2015 at 11:21 PM, Ian Campbell >> wrote: >> > On Wed, 2015-02-18 at 12:38 +, Julien Grall wrote: >> >> > +uint64_t addr,

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 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] [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 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), >> > +

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

2015-03-02 Thread Vijay Kilari
Hi Ian, On Mon, Mar 2, 2015 at 11:09 PM, Ian Campbell wrote: > Forgot one series (albeit of a single patch): > > On Mon, 2015-03-02 at 14:53 +, Ian Campbell wrote: >> There's quite a few series out there right now from you guys, with quite >> a number of patches in each, so I think we need to

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 wrote: > Hi Vijay, > > On 02/03/15 12:30, vijay.kil...@gmail.com wrote: >> From: Vijaya Kumar K >> >> Add ITS support for arm. Following major features >> are supported >> - GICv3 ITS support for arm64 platform >> - Supports only single I

[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 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/arch/arm/gic-v3-its.c

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 --- xen/arch/arm/domain_build.c | 59 - xen/arch/arm/gic-v3-its.c

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 --- xen/arch/arm/gic-v3-its.c | 31 +++ xen/arch/arm/

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 driver Signed-off-by: Vijaya Kumar K

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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: Vijaya Kumar K --- xen/arch/arm/

[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 This patch implements hw_irq_controller api's required to handle LPI's. Signed-off-by: Vijaya Kumar K --- xen/arch/arm/gic-v3-its.c | 104 - xen/arch/arm/gic.c| 11 + xen/include/asm-arm/gic.h |8 +++- 3 files

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 ITS node, it need changes at the

[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 Add support for emulating GITS_* registers Signed-off-by: Vijaya Kumar K --- xen/arch/arm/gic-v3-its.c |9 + xen/arch/arm/vgic-v3-its.c| 369 - xen/include/asm-arm/gic-its.h |2 + 3 files changed, 379 insertions(+),

[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 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: Vijaya Kumar K --- xen/arch/ar

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 K --- xen/arch/arm/vgic-v3-it

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 --- xen/arch/arm/irq.c| 18 ++ xen/include/asm-arm/irq.h |

[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 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 code for handling LPIs Signed-of

[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 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 --- xen/arch/arm/gic-v3-its.c | 1348 + 1 file changed

[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 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 --- xen/arch/arm/p2m.c| 24 xen/include/asm-arm/p2m.h |3 +++ 2 files changed, 27 insertions(+) diff --git a

[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 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 interrupt handling. The following fu

[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 Add helper functions to decode ITS command This will be useful for Virtual ITS driver Signed-off-by: Vijaya Kumar K --- xen/include/asm-arm/gic-its.h | 45 + 1 file changed, 45 insertions(+) diff --git a/xen/include/asm-arm/gic-it

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K Add missing linked list apis from kernel Signed-off-by: Vijaya Kumar K CC: Jan Beulich --- xen/include/xen/list.h | 33 + 1 file changed, 33 insertions(+) diff --git a/xen/include/xen/list.h b/xen/include/xen/list.h index 59cf571..0e1c6b

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

2015-03-02 Thread vijay . kilari
From: Vijaya Kumar K 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 prints - remove msi chip functio

[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 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 --- xen/arch/arm/gic-v3-its.c | 71 +--- xen/include/asm-arm/gic-its.h

<    1   2   3   4   5   6   >