[Xen-devel] [xen-4.5-testing baseline-only test] 38297: regressions - FAIL

2015-11-17 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38297 xen-4.5-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38297/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-multivcpu 10 debian-fixu

[Xen-devel] [PATCH v3 01/62] Revert "xen/arm: vgic-v2: Drop cbase from arch_domain"

2015-11-17 Thread shannon . zhao
From: Shannon Zhao This reverts commit 810a50db69703f715d199d6b3a5f08193155d48b. Signed-off-by: Shannon Zhao Conflicts: xen/arch/arm/vgic-v2.c --- xen/arch/arm/vgic-v2.c | 10 +- xen/include/asm-arm/domain.h | 1 + 2 files changed, 6 insertions(+), 5 deletions(-) diff

[Xen-devel] [PATCH v3 02/62] acpi/NUMA: Build NUMA for x86 only

2015-11-17 Thread shannon . zhao
From: Naresh Bhat NUMA is currently not supported for ARM in Xen. Add a new compilation option HAS_NUMA for NUMA. Configure and build NUMA only for x86 architecture now. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/x86/Rules.mk | 1 + xen

[Xen-devel] [PATCH v3 00/62] Add ACPI support for arm64 on Xen

2015-11-17 Thread shannon . zhao
From: Shannon Zhao This patch set adds ACPI support for arm64 on Xen. The design document could be found from [1]. Xen reads static tables described by ACPI standard (6.0) from uefi and configures timer, GIC and UART. ACPI tables are modified to enable PSCI, HVC and Xen specific information and

[Xen-devel] [PATCH v3 03/62] acpi/pmstat: Build pmstat for x86 only

2015-11-17 Thread shannon . zhao
From: Parth Dixit Pmstat is currently not supported for ARM in Xen. Configure and build pmstat for x86 architecture only. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/common/sysctl.c | 2 +- xen/drivers/acpi/Makefile | 2 +- 2 files changed, 2 insertions(+), 2 deletion

[Xen-devel] [PATCH v3 05/62] acpi: Don't do traditional BIOS table scan for ARM64

2015-11-17 Thread shannon . zhao
From: Shannon Zhao With the addition of ARM64 that does not have a traditional BIOS to scan, add a #ifdef option for x86 to do the traditional BIOS scanning for tables. Signed-off-by: Shannon Zhao --- xen/drivers/acpi/osl.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/xen/drivers/acpi

[Xen-devel] [PATCH v3 09/62] arm/acpi: Add basic ACPI initialization

2015-11-17 Thread shannon . zhao
From: Parth Dixit acpi_boot_table_init() will be called in start_xen to get the RSDP and all the table pointers. With this patch, we can get ACPI boot-time tables from firmware on ARM64. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/acpi/M

Re: [Xen-devel] [PATCH v8 01/21] xen/x86: add bitmap of enabled emulated devices

2015-11-17 Thread Jan Beulich
>>> On 16.11.15 at 19:33, wrote: > On 16/11/15 12:18, Jan Beulich wrote: > On 06.11.15 at 17:05, wrote: >>> --- a/xen/include/public/arch-x86/xen.h >>> +++ b/xen/include/public/arch-x86/xen.h >>> @@ -265,7 +265,31 @@ typedef struct arch_shared_info arch_shared_info_t; >>> * XEN_DOMCTL_INTER

[Xen-devel] [PATCH v3 08/62] arm/acpi: Add arm specific acpi header file

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Add architecture specific definitions and calls required for acpi in new header file. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/setup.c | 3 +++ xen/include/asm-arm/acpi.h | 38 ++ 2 files changed, 41

[Xen-devel] [PATCH v3 06/62] acpi: Refactor acpi_os_map_memory to be architecturally independent

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Current acpi_os_map_memory is specific to x86. Refactor it to be architecturally independent. Signed-off-by: Shannon Zhao --- xen/arch/x86/acpi/lib.c | 16 xen/drivers/acpi/osl.c | 12 +--- xen/include/xen/acpi.h | 2 ++ 3 files changed, 19 insert

[Xen-devel] [PATCH v3 07/62] arm/acpi: Add arch_acpi_os_map_memory helper function for ARM

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao --- xen/arch/arm/Makefile | 1 + xen/arch/arm/acpi/Makefile | 1 + xen/arch/arm/acpi/lib.c| 33 + 3 files changed, 35 insertions(+) create mode 100644 xen/arch/arm/acpi/Makefile create mode 100644 xen/ar

[Xen-devel] [PATCH v3 11/62] arm/acpi: Introduce ARM Boot Architecture Flags in FADT

2015-11-17 Thread shannon . zhao
From: Shannon Zhao The Power State Coordination Interface (PSCI) defines an API that can be used to coordinate power control amongst the various supervisory systems concurrently running on a device. ACPI support for this technology would require the addition of two flags: PSCI_COMPLIANT and PSCI_

[Xen-devel] [PATCH v3 04/62] arm/acpi: Emulate io ports for arm

2015-11-17 Thread shannon . zhao
From: Parth Dixit Add macros to emulate x86 style ports for arm. This avoids modification in common code for acpi. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/include/asm-arm/arm64/io.h | 14 ++ 1 file changed, 14 insertions(+) diff --git a/xen/include/asm-arm/

[Xen-devel] [PATCH v3 15/62] ACPICA: ACPI 6.0: Add changes for MADT table.

2015-11-17 Thread shannon . zhao
From: Bob Moore ACPICA commit 02cbb41232bccf7a91967140cab95d5f48291f21 New subtable type. Some additions to existing subtables. Link: https://github.com/acpica/acpica/commit/02cbb412 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki [Linux commit 0cff8dc0099f6

[Xen-devel] [PATCH v3 14/62] arm/acpi: Add Generic Interrupt and Distributor struct

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Add Generic Interrupt and Distributor (ACPI 5.0) structure. Add new features for MADT introduced by ACPI 5.1. Comment on the GIC ID field of the GIC structure which is replaced by CPU Interface Number. Add new fields: Redistributor Base Address, GICV, GICH, and MPIDR. Add new s

[Xen-devel] [PATCH v3 13/62] arm/acpi: Parse FADT table and get PSCI flags

2015-11-17 Thread shannon . zhao
From: Shannon Zhao There are two flags: PSCI_COMPLIANT and PSCI_USE_HVC. When set, the former signals to the OS that the hardware is PSCI compliant. The latter selects the appropriate conduit for PSCI calls by toggling between Hypervisor Calls (HVC) and Secure Monitor Calls (SMC). FADT table con

[Xen-devel] [PATCH v3 12/62] ACPICA: ACPI 6.0: Add changes for FADT table

2015-11-17 Thread shannon . zhao
From: Bob Moore ACPICA commit 72b0b6741990f619f6aaa915302836b7cbb41ac4 One new 64-bit field at the end of the table. FADT version is now 6. Link: https://github.com/acpica/acpica/commit/72b0b674 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki [Linux commit a

[Xen-devel] [PATCH v3 10/62] arm/acpi: Move end_boot_allocator after acpi_boot_table_init

2015-11-17 Thread shannon . zhao
From: Shannon Zhao If ACPI is initialized after the boot allocator has ended(the system state is not early boot), assert happens in acpi_os_zalloc_memory and acpi_boot_table_init will fail. So it needs to move end_boot_allocator after acpi_boot_table_init. Signed-off-by: Parth Dixit Signed-off-

[Xen-devel] [PATCH v3 16/62] ACPICA: ACPI 6.0: Add values for MADT GIC version field

2015-11-17 Thread shannon . zhao
From: Hanjun Guo ACPICA commit 4b100dc43e8baee8c8b4891b23bc7ad03eba6a28 Support for the new version field in the generic distributor subtable. Hanjun Guo Link: https://github.com/acpica/acpica/commit/4b100dc4 Signed-off-by: Hanjun Guo Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-

[Xen-devel] [PATCH v3 17/62] arm/acpi: Print GIC information when MADT is parsed

2015-11-17 Thread shannon . zhao
From: Naresh Bhat When MADT is parsed, print GIC information to make the boot log look pretty. Signed-off-by: Hanjun Guo Signed-off-by: Tomasz Nowicki Signed-off-by: Naresh Bhat Signed-off-by: Shannon Zhao --- xen/drivers/acpi/tables.c | 24 1 file changed, 24 inser

[Xen-devel] [PATCH v3 18/62] arm/acpi: Parse MADT to map logical cpu to MPIDR and get cpu_possible_map

2015-11-17 Thread shannon . zhao
From: Parth Dixit MADT contains the information for MPIDR which is essential for SMP initialization, parse the GIC cpu interface structures to get the MPIDR value and map it to cpu_logical_map(), and add enabled cpu with valid MPIDR into cpu_possible_map. Signed-off-by: Hanjun Guo Signed-off-by

[Xen-devel] [PATCH v3 21/62] arm/gic-v2: Refactor gicv2_init into generic and dt specific parts

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Refactor gic-v2 related functions into dt and generic parts. This will be helpful when adding acpi support for gic. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/gic-v2.c | 21 ++--- 1 file changed, 14 insertions(+), 7 deletions(-)

[Xen-devel] [PATCH v3 20/62] arm/acpi: Add ACPI support for SMP initialization

2015-11-17 Thread shannon . zhao
From: Shannon Zhao ACPI 5.1 only has two explicit methods to boot up SMP, PSCI and Parking protocol, but the Parking protocol is only specified for ARMv7 now, so make PSCI as the only way for the SMP boot protocol before some updates for the ACPI spec or the Parking protocol spec. Signed-off-by:

[Xen-devel] [PATCH v3 22/62] arm/gic-v3: Refactor gicv3_init into generic and dt specific parts

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Refactor gic-v3 related functions into dt and generic parts. This will be helpful when adding acpi support for gic-v3. Signed-off-by: Shannon Zhao --- xen/arch/arm/gic-v3.c | 95 +++ 1 file changed, 51 insertions(+), 44 deletio

[Xen-devel] [PATCH v3 23/62] acpi/table: Introduce acpi_parse_entries

2015-11-17 Thread shannon . zhao
From: Parth Dixit Add new function acpi_parse_entries which takes acpi table as argument. This will avoid fetching table everytime in acpi_table_parse_entries. This function will be used in acpi_gicv2_init within another patch. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit Signed-off-b

[Xen-devel] [PATCH v3 19/62] arm/smpboot: Move dt specific code in smp to seperate functions

2015-11-17 Thread shannon . zhao
From: Parth Dixit Partition smp initialization functions into generic and dt specific parts, this will be useful when introducing new functions for smp initialization based on acpi. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/arm64/smpboot.c | 7 ++- xen/arch/

[Xen-devel] [PATCH v3 25/62] acpi/table: Introduce acpi_get_entry to get specified entry

2015-11-17 Thread shannon . zhao
From: Shannon Zhao When constructing MADT table for Dom0, it needs to create GICC subtable according to the dom0_max_vcpus. This function could be used for get the specified entry. Signed-off-by: Shannon Zhao --- xen/drivers/acpi/tables.c | 45 + xen

[Xen-devel] [PATCH v3 24/62] arm: Introduce a generic way to use a device from acpi

2015-11-17 Thread shannon . zhao
From: Parth Dixit Add generic way to use device from acpi similar to the way it is supported in device tree. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/device.c| 19 +++ xen/arch/arm/xen.lds.S | 7 +++ xen/include/asm-arm/device.

[Xen-devel] [PATCH v3 27/62] arm/gic-v3: Add ACPI boot support for GICv3

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Like GICv2, ACPI on Xen hypervisor uses MADT table for proper GICv3 initialization. Parse GIC distributor subtable, redistributor subtable and interrupt subtable. Signed-off-by: Shannon Zhao --- xen/arch/arm/gic-v3.c | 182 +-

[Xen-devel] [PATCH v3 26/62] arm/gic-v2: Add ACPI boot support for GICv2

2015-11-17 Thread shannon . zhao
From: Parth Dixit ACPI on Xen hypervisor uses MADT table for proper GIC initialization. First get the GIC version from GIC Distributor. Then parse GIC related subtables, collect CPU interface and distributor addresses and call driver initialization function (which is hardware abstraction agnostic

[Xen-devel] [PATCH v3 28/62] arm/gic: Add ACPI support for GIC preinit

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Since ACPI 6.0 defines that GIC Distributor Structure contains the GIC version filed, it could get GIC version from that. According to the version, call different preinit functions. Signed-off-by: Shannon Zhao --- xen/arch/arm/gic.c | 55 +

[Xen-devel] [PATCH v3 30/62] arm/irq: Add helper function for setting interrupt type

2015-11-17 Thread shannon . zhao
From: Parth Dixit Add a helper function to set edge/level type information for an interrupt. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/irq.c| 22 +++--- xen/include/asm-arm/irq.h | 2 ++ 2 files changed, 17 insertions(+), 7 deletions(-)

[Xen-devel] [PATCH v3 29/62] arm/acpi: Add GTDT support updated by ACPI 5.1

2015-11-17 Thread shannon . zhao
From: Parth Dixit With ACPI 5.0, we got per-processor timer support in GTDT, and ACPI 5.1 introduced the support for platform (memory-mapped) timers: GT Block and SBSA watchdog timer, add the code needed for the spec change. Signed-off-by: Hanjun Guo Signed-off-by: Naresh Bhat Signed-off-by: P

[Xen-devel] [PATCH v3 31/62] arm/acpi: Add a helper function to get interrupt type

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Add a helper funtion to get the type of interrupts in ACPI table. Signed-off-by: Shannon Zhao --- xen/arch/arm/acpi/lib.c| 27 +++ xen/include/asm-arm/acpi.h | 39 +++ 2 files changed, 66 insertions(+) diff --g

[Xen-devel] [PATCH v3 33/62] arm/uart: Create generic uart initialization function

2015-11-17 Thread shannon . zhao
From: Parth Dixit Rename dt-uart.c to arm-uart.c and create new generic uart init function. Move dt_uart_init to arm_uart_init. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/setup.c| 2 +- xen/drivers/char/Makefile | 2 +- xen/drivers/char/arm-uart.c |

[Xen-devel] [PATCH v3 32/62] arm/acpi: Parse GTDT to initialize timer

2015-11-17 Thread shannon . zhao
From: Parth Dixit Parse GTDT (Generic Timer Descriptor Table) to initialize timer. Using the information presented by GTDT to initialize the arch timer (not memory-mapped). Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/time.c | 73

[Xen-devel] [PATCH v3 37/62] arm/acpi: Define a enum for reserved tables

2015-11-17 Thread shannon . zhao
From: Shannon Zhao It needs to copy and change the contents of some ACPI and EFI tables for Dom0. Here define a enum for those tables. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/include/asm-arm/acpi.h | 12 1 file changed, 12 insertions(+) diff --git a/xen/in

[Xen-devel] [PATCH v3 35/62] serial: Rename SERHND_DTUART to SERHND_UART

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Rename SERHND_DTUART to SERHND_UART in order to reuse it when booting with ACPI. Signed-off-by: Shannon Zhao --- xen/arch/arm/vuart.c | 2 +- xen/drivers/char/cadence-uart.c| 2 +- xen/drivers/char/exynos4210-uart.c | 2 +- xen/drivers/char/omap-uart.c

[Xen-devel] [PATCH v3 34/62] pl011: Refactor pl011 driver to dt and common initialization parts

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Refactor pl011 driver to dt and common initialization parts. This will be useful later when acpi specific uart initialization function is introduced. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/drivers/char/pl011.c | 64 ---

[Xen-devel] [PATCH v3 41/62] arm/acpi: Add a helper function to get the acpi table offset

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao --- xen/arch/arm/acpi/lib.c| 13 + xen/include/asm-arm/acpi.h | 6 ++ 2 files changed, 19 insertions(+) diff --git a/xen/arch/arm/acpi/lib.c b/xen/arch/arm/acpi/lib.c index 47f4c6a..d6044ef 100644 --- a/xen/arch/arm/acpi/lib.c

[Xen-devel] [PATCH v3 39/62] arm/acpi: Read acpi memory info from uefi

2015-11-17 Thread shannon . zhao
From: Parth Dixit ACPI memory is seperate from conventional memory and should be marked as reserved while passing to DOM0. Create a new meminfo structure to store all the acpi tables listed in uefi. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/efi/efi-boot.h | 23 ++

[Xen-devel] [PATCH v3 38/62] arm/acpi: Add placeholder for efi and acpi load address

2015-11-17 Thread shannon . zhao
From: Shannon Zhao EFI table, memory description table and some of acpi tables will be placed after DOM0 memory space. Add placeholder for the starting address for loading in DOM0 and the size of new added tables. Also add a placeholder to store the new created tables. Signed-off-by: Parth Dixit

[Xen-devel] [PATCH v3 42/62] arm/acpi: Prepare FADT table for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Copy and modify FADT table before passing it to Dom0. Set PSCI_COMPLIANT and PSCI_USE_HVC. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 45 + 1 file changed, 45 insertions(+) diff --git a/xen/arch/arm/domain_build

[Xen-devel] [PATCH v3 36/62] arm/acpi: Initialize serial port from ACPI SPCR table

2015-11-17 Thread shannon . zhao
From: Parth Dixit Parse ACPI SPCR (Serial Port Console Redirection table) table and initialize the serial port pl011. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/drivers/char/pl011.c | 37 + xen/include/acpi/a

[Xen-devel] [PATCH v3 43/62] arm/acpi: Prepare MADT table for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Copy and modify MADT table before passing it to Dom0. Copy dom0_max_vcpus of GICCs and GICD as well. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 98 + 1 file changed, 98 insertions(+) diff --git a/xen/arch/arm/do

[Xen-devel] [PATCH v3 40/62] arm/acpi: Estimate memory required for acpi/efi tables

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Estimate the memory required for loading acpi/efi tables in Dom0. Alloc the pages to store the new created EFI and ACPI tables and free these pages when destroying domain. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/domain.c | 4 +++ xen/a

[Xen-devel] [PATCH v3 44/62] ACPICA: ACPI 6.0: Add support for STAO table

2015-11-17 Thread shannon . zhao
From: Bob Moore ACPICA commit 532bf402a503061afd9d80a23e1d3c8fd99b052c _STA override table. Link: https://github.com/acpica/acpica/commit/532bf402 Signed-off-by: Bob Moore Signed-off-by: Lv Zheng Signed-off-by: Rafael J. Wysocki [Linux commit 37e12657f8922ebc62f696494c56c81db509053e] Signed-

[Xen-devel] [PATCH v3 45/62] arm/acpi: Prepare STAO table for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Create STAO table for Dom0. This table is used to tell Dom0 whether it should ignore UART defined in SPCR table or the ACPI namespace names. Look at below url for details: http://wiki.xenproject.org/mediawiki/images/0/02/Status-override-table.pdf Signed-off-by: Parth Dixit S

[Xen-devel] [PATCH v3 47/62] arm/p2m: Add helper functions to map memory regions

2015-11-17 Thread shannon . zhao
From: Parth Dixit Create a helper function for mapping with cached attributes. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/p2m.c| 26 ++ xen/include/asm-arm/p2m.h | 10 ++ 2 files changed, 36 insertions(+) diff --git a/xen/a

[Xen-devel] [PATCH v3 49/62] arm/acpi: Map rest tables for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Map other reused tables for Dom0. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 25 + 1 file changed, 25 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/arm/domain_build.c index 6ae5761..da4e271 100644 --- a/xen/arch

[Xen-devel] [PATCH v3 48/62] arm/acpi: Prepare RSDP table for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Copy RSDP table and replace rsdp->xsdt_physical_address with new address of XSDT table, so it can point to the right XSDT table. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 36 1 file changed, 36 insertions(+) diff --gi

[Xen-devel] [PATCH v3 50/62] xen/efi: store EFI system table in efi structure

2015-11-17 Thread shannon . zhao
From: Shannon Zhao When preparing EFI tables for Dom0, it needs the information of EFI system table. Here store it in efi structure. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/common/efi/boot.c | 2 ++ xen/include/xen/efi.h | 1 + 2 files changed, 3 insertions(+) diff --g

[Xen-devel] [PATCH v3 52/62] arm/acpi: Prepare EFI memory descriptor for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Create a few EFI memory descriptors to tell Dom0 the RAM region information, ACPI table regions and EFI tables reserved resions. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 2 ++ xen/common/efi/boot.c | 48

[Xen-devel] [PATCH v3 46/62] arm/acpi: Prepare XSDT table for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Copy and modify XSDT table before passing it to Dom0. Repalce the entry value of the copied table. Add a new entry for STAO table as well. And keep entry value of other reused tables unchanged. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 71

[Xen-devel] [PATCH v3 54/62] arm/acpi: Create min DT stub for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Create a DT for Dom0 for ACPI-case only. DT contains minimal required informations such as Dom0 bootargs, initrd, efi description table and address of uefi memory table. Signed-off-by: Naresh Bhat Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/doma

[Xen-devel] [PATCH v3 53/62] arm/acpi: Map the new created EFI and ACPI tables to Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Here we map these new created EFI and ACPI tables to the non-RAM space of Dom0. Then Dom0 could visit them. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 15 +++ 1 file changed, 15 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch

[Xen-devel] [PATCH v3 51/62] arm/acpi: Prepare EFI system table for Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 2 ++ xen/common/efi/boot.c | 64 + xen/include/asm-arm/setup.h | 3 +++ 3 files changed, 69 insertions(+) diff --git a/xen/arch/arm/

[Xen-devel] [PATCH v3 55/62] arm/acpi: Route all Xen unused SPIs to Dom0

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Route all SPIs to Dom0 except the interrupts that Xen uses. Since Xen already uses the uart interrupt, the desc->action will not be NULL, so it will skip it. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 33 + 1 file changed, 3

[Xen-devel] [PATCH v3 60/62] arm/acpi: Configure interrupts dynamically

2015-11-17 Thread shannon . zhao
From: Parth Dixit Interrupt information is described in DSDT and is not available at the time of booting. Configure the interrupts dynamically when requested by Dom0 Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/vgic.c | 19 +++ 1 file changed, 19 ins

[Xen-devel] [PATCH v3 58/62] xen/acpi: Fix event-channel interrupt when booting with ACPI

2015-11-17 Thread shannon . zhao
From: Shannon Zhao When booting with ACPI, store the event-channel interrupt number and flag in HVM parameter HVM_PARAM_CALLBACK_IRQ. Then Dom0 could get it through hypercall HVMOP_get_param. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 45 -

[Xen-devel] [PATCH v3 57/62] hvm/params: Add a new dilivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Add a new dilivery 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: Shannon Zhao --- xen/include/public/hvm/par

[Xen-devel] [PATCH v3 56/62] arm/acpi: Deny MMIO access of UART

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Firstly it permits full MMIO capabilities for Dom0. Then deny MMIO access of UART device. Signed-off-by: Shannon Zhao --- xen/arch/arm/domain_build.c | 30 ++ 1 file changed, 30 insertions(+) diff --git a/xen/arch/arm/domain_build.c b/xen/arch/ar

[Xen-devel] [linux-3.14 test] 64435: regressions - FAIL

2015-11-17 Thread osstest service owner
flight 64435 linux-3.14 real [real] http://logs.test-lab.xenproject.org/osstest/logs/64435/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf-pvops 5 kernel-build fail REGR. vs. 62648 Tests which are failin

[Xen-devel] [PATCH v3 62/62] xen/arm64: Add ACPI support

2015-11-17 Thread shannon . zhao
From: Naresh Bhat Add ACPI support on arm64 xen hypervisor. Enable EFI support on ARM. Signed-off-by: Naresh Bhat Signed-off-by: Shannon Zhao --- config/arm64.mk | 1 + xen/common/efi/runtime.c | 2 +- xen/include/asm-arm/config.h | 5 + 3 files changed, 7 insertions(+),

[Xen-devel] [PATCH v3 59/62] xen/arm: Add a hypercall for device mmio mapping

2015-11-17 Thread shannon . zhao
From: Shannon Zhao It needs to map platform or amba device mmio to Dom0 on ARM. But when booting with ACPI, it can't get the mmio region in Xen due to lack of AML interpreter to parse DSDT table. Therefore, let Dom0 call a hypercall to map mmio region when it adds the devices. Signed-off-by: Sha

[Xen-devel] [PATCH v3 61/62] arm/acpi: Add acpi parameter to enable/disable acpi

2015-11-17 Thread shannon . zhao
From: Parth Dixit ACPI will be disabled by default. Define new command line parameter "acpi" for enabling it. Signed-off-by: Parth Dixit Signed-off-by: Shannon Zhao --- xen/arch/arm/setup.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/xen/arch/arm/setup.c b/xen/

Re: [Xen-devel] [PATCH v3 04/62] arm/acpi: Emulate io ports for arm

2015-11-17 Thread Arnd Bergmann
On Tuesday 17 November 2015 17:40:03 shannon.z...@linaro.org wrote: > +/* > + * Emulate x86 io ports for arm. > + */ > +#define __armio(addr) ( (void __iomem *)addr ) > + > +#define inb(c) ( readb( __armio(c) ) ) > +#define inw(c) ( readw( __armio(c) ) ) > +#define inl(c) ( readl( __armio(c) ) ) >

Re: [Xen-devel] [OSSTEST PATCH 1/2] Nested hosts: Provide hostnamepath and hostnamepath_list

2015-11-17 Thread Ian Campbell
On Tue, 2015-11-17 at 02:14 +, Hu, Robert wrote: > > -Original Message- > > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > > Sent: Monday, November 16, 2015 11:21 PM > > To: xen-de...@lists.xenproject.org > > Cc: Ian Campbell ; Ian Jackson > > ; Ian Jackson ; > > Hu, > > Robert

Re: [Xen-devel] [PATCH v4 2/4] docs: Introduce xenstore paths for PV driver information

2015-11-17 Thread Paul Durrant
> -Original Message- > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > Sent: 16 November 2015 17:56 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; Ian Campbell; Jan Beulich; Keir (Xen.org); > Tim (Xen.org) > Subject: RE: [PATCH v4 2/4] docs: Introduce xenstore paths for PV

[Xen-devel] [PATCH 00/13] Add ACPI support for Xen Dom0 on ARM64

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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 notifier of AMBA and Platform bus to map the ne

[Xen-devel] [PATCH 03/13] arm/xen: Use xlated_setup_gnttab_pages to setup grant table

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Use xlated_setup_gnttab_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 --- arch/arm/xen/enlighten.c | 10 +- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/ar

[Xen-devel] [PATCH 02/13] xen/grant-table: Move xlated_setup_gnttab_pages to common place

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Move xlated_setup_gnttab_pages to common place, so it can be reused by ARM to setup grant table when booting with ACPI. Signed-off-by: Shannon Zhao --- arch/x86/xen/grant-table.c | 51 -- drivers/xen/grant-table.c | 49 +++

[Xen-devel] [PATCH 04/13] xen: memory : Add new XENMAPSPACE type XENMAPSPACE_dev_mmio

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Signed-off-by: Shannon Zhao --- include/xen/interface/memory.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/xen/interface/memory.h b/include/xen/interface/memory.h index 2ecfe4f..9aa8988 100644 --- a/include/xen/interface/memory.h +++ b/include/xen/interface/me

[Xen-devel] [PATCH 01/13] Xen : Hide UART used by Xen

2015-11-17 Thread shannon . zhao
From: Shannon Zhao According to the STAO table, hide UART used by Xen from Dom0. Signed-off-by: Shannon Zhao --- drivers/acpi/bus.c | 22 ++ 1 file changed, 22 insertions(+) diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c index a212cef..e93806b 100644 --- a/drivers/ac

[Xen-devel] [PATCH 06/13] Xen: ARM: Add support for mapping amba device mmio

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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 --- drivers/xen/Makefile | 1 + drivers/xen/amba.c | 99 2 files changed, 100 inser

[Xen-devel] [PATCH 07/13] ARM: Xen: Document UEFI support on Xen ARM virtual platforms

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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 --- Documentation/devicetree/bindings/arm/xen.txt | 25 + 1 file changed, 25 insertions(+) diff --git a/Docume

[Xen-devel] [PATCH 05/13] Xen: ARM: Add support for mapping platform device mmio

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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 --- drivers/xen/Makefile | 1 + drivers/xen/platform.c | 104 + 2 files changed, 10

[Xen-devel] [PATCH 08/13] Xen: EFI: Parse DT parameters for Xen specific UEFI

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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. Signed-off-by: Shannon Zhao --- drivers/firmware/efi/efi.c | 67 ++ 1 file changed, 62 inser

[Xen-devel] [PATCH 11/13] xen/hvm/params: Add a new dilivery type for event-channel in HVM_PARAM_CALLBACK_IRQ

2015-11-17 Thread shannon . zhao
From: Shannon Zhao Add a new dilivery 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: Shannon Zhao --- include/xen/interface/hvm/

[Xen-devel] [PATCH 12/13] arm/xen: Get event-channel irq through HVM_PARAM when booting with ACPI

2015-11-17 Thread shannon . zhao
From: Shannon Zhao When booting with ACPI, it could get the event-channel irq through HVM_PARAM_CALLBACK_IRQ. Signed-off-by: Shannon Zhao --- arch/arm/xen/enlighten.c | 23 +++ 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/arch/arm/xen/enlighten.c b/arch/ar

[Xen-devel] [PATCH 09/13] ARM: Xen: Initialize Xen specific UEFI runtime services

2015-11-17 Thread shannon . zhao
From: Shannon Zhao When running on Xen hypervisor, runtime services are supported through hypercall. So call Xen specific function to initialize runtime services. Signed-off-by: Shannon Zhao --- arch/arm/include/asm/xen/hypercall.h | 1 + arch/arm/xen/enlighten.c | 1 + arch/arm/

[Xen-devel] [PATCH 10/13] ARM64: ACPI: Check if it runs on Xen to enable or disable ACPI

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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 --- arch/arm64/kernel/acpi.c | 12 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ar

Re: [Xen-devel] [PATCH v8 01/21] xen/x86: add bitmap of enabled emulated devices

2015-11-17 Thread Juergen Gross
On 17/11/15 10:42, Jan Beulich wrote: On 16.11.15 at 19:33, wrote: >> On 16/11/15 12:18, Jan Beulich wrote: >> On 06.11.15 at 17:05, wrote: --- a/xen/include/public/arch-x86/xen.h +++ b/xen/include/public/arch-x86/xen.h @@ -265,7 +265,31 @@ typedef struct arch_shared_info

[Xen-devel] [PATCH 13/13] ARM: XEN: Move xen_early_init() before efi_init()

2015-11-17 Thread shannon . zhao
From: Shannon Zhao 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 --- arch/arm/xen/enlighten.c | 62 ---

Re: [Xen-devel] [osstest test] 38290: regressions - FAIL

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 21:47 +, Platform Team regression test user wrote: > flight 38290 osstest real [real] > http://osstest.xs.citrite.net/~osstest/testlogs/logs/38290/ > > Regressions :-( > > Tests which did not succeed and are blocking, > including tests which could not be run: >  build-am

Re: [Xen-devel] [PATCH] ns16550: limit mapped MMIO size

2015-11-17 Thread Jan Beulich
>>> On 16.11.15 at 17:52, wrote: > On Thu, 2015-11-12 at 08:52 -0700, Jan Beulich wrote: >> There's no point in mapping more than the memory we actually may need >> to touch, and in fact the too large region could actually extend into >> another device's one (which currently is benign on x86 since

Re: [Xen-devel] [OSSTEST PATCH 1/7] Nested hosts: Print L0 as well as L1 parent name in selectguest

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > Now that we have hostnamepath_list, we can remove the ad-hoc > expansion "$gn on $...{Name}" with a recipe which ascends through the > applicable nesting levels. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell _

Re: [Xen-devel] [OSSTEST PATCH 2/7] Nested hosts: Use full hostnamepath in various paths

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > Replace some (but not all) interpolations of $ho->{Name} in filenames > with hostnamepath($ho). > > I searched the tree for `{Host}' and `{Name}', looking for paths which > need (or might need) to be qualified with an L0 hostname in an L1 or

Re: [Xen-devel] [PATCH 00/10] x86/hvm: pkeys, add memory protection-key support

2015-11-17 Thread Jan Beulich
>>> On 16.11.15 at 18:45, wrote: > Furthermore, it is unclear (given the unwritten ABI) whether it is even > safe to move _PAGE_GNTTAB out of the way, as this is visible to a PV guest. It seems pretty clear to me that this would be unsafe: It being part of L1_DISALLOW_MASK, if it moved and a gues

Re: [Xen-devel] [OSSTEST PATCH 3/7] Log capture pathnames: Include host name (and nested L0 name)

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > Rather than using $gho->{Name} (and, sometimes, separately > $ho->{Name}), use hostnamepath(). > > This means that the hostname is always included in the standard way. > The filename structure for xenctx and console snapshots changes > slight

Re: [Xen-devel] [OSSTEST PATCH 4/7] logm: Introduce $logm_prefix, and annotate nested guest messages

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > This allows code elsewhere to annotate log messages which might > otherwise be confusing.  The variable should be localised, and the > value should always start with a space, if not empty. > > Use this to annotate the calls to selecthost and

Re: [Xen-devel] [OSSTEST PATCH 5/7] Nested: Do not attempt to look up nested host ownership in DB

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [OSSTEST PATCH 6/7] Nested: Make Osstest::PDU::guest idempotent

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > These methods are supposed to succeed, silently, if the host is > already in the required power state. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing list Xen-devel

Re: [Xen-devel] [PATCH v8 01/21] xen/x86: add bitmap of enabled emulated devices

2015-11-17 Thread Andrew Cooper
On 17/11/15 09:58, Juergen Gross wrote: > On 17/11/15 10:42, Jan Beulich wrote: > On 16.11.15 at 19:33, wrote: >>> On 16/11/15 12:18, Jan Beulich wrote: >>> On 06.11.15 at 17:05, wrote: > --- a/xen/include/public/arch-x86/xen.h > +++ b/xen/include/public/arch-x86/xen.h > @@ -2

Re: [Xen-devel] [xen-4.6-testing test] 64270: regressions - FAIL

2015-11-17 Thread Ian Jackson
Jan Beulich writes ("Re: [Xen-devel] [xen-4.6-testing test] 64270: regressions - FAIL"): > On 16.11.15 at 13:01, wrote: > > I think if the 4.6 release cycle is at a suitable point we should backport > > the Cofnig.mk change to switch to the combined trees. If that would be > > inappropriate right

Re: [Xen-devel] [OSSTEST PATCH 7/7] ts-logs-capture: Attempt to power up a host before capturing its logs

2015-11-17 Thread Ian Campbell
On Mon, 2015-11-16 at 17:54 +, Ian Jackson wrote: > If for any reason it's powered down, this is useful. > > (In theory for a nested host, we could get the logs by grobbling in > its parent's view of its filesystem, but that is too much work.) > > We do not trap the errors from this, so that

Re: [Xen-devel] [osstest test] 38290: regressions - FAIL

2015-11-17 Thread Ian Jackson
Ian Campbell writes ("Re: [osstest test] 38290: regressions - FAIL"): > I'm unsure why this is only affecting this flight and (apparently) no others. This is probably Citrix's intercepting web proxy again. > I ran "git update-server-info" manually on the repo on xenbits, but > ovmf.git/hooks/post

Re: [Xen-devel] [PATCH v4 4/4] docs: Introduce xenstore paths for guest network address information

2015-11-17 Thread Paul Durrant
> -Original Message- > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > Sent: 16 November 2015 17:39 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; Ian Campbell; Jan Beulich; Keir (Xen.org); > Tim (Xen.org) > Subject: Re: [PATCH v4 4/4] docs: Introduce xenstore paths for gue

Re: [Xen-devel] [OSSTEST PATCH 1/2] Nested hosts: Provide hostnamepath and hostnamepath_list

2015-11-17 Thread Hu, Robert
> -Original Message- > From: Ian Campbell [mailto:ian.campb...@citrix.com] > Sent: Tuesday, November 17, 2015 5:51 PM > To: Hu, Robert ; Ian Jackson > ; xen-de...@lists.xenproject.org > Subject: Re: [OSSTEST PATCH 1/2] Nested hosts: Provide hostnamepath and > hostnamepath_list > > On Tue,

Re: [Xen-devel] [PATCH] ns16550: limit mapped MMIO size

2015-11-17 Thread Ian Campbell
On Tue, 2015-11-17 at 03:19 -0700, Jan Beulich wrote: > > > > On 16.11.15 at 17:52, wrote: > > On Thu, 2015-11-12 at 08:52 -0700, Jan Beulich wrote: > > > There's no point in mapping more than the memory we actually may need > > > to touch, and in fact the too large region could actually extend in

  1   2   3   >