Re: [Xen-devel] [PATCH V3 2/6] libxl_read_file_contents: fix reading sysfs file

2015-05-18 Thread Ian Campbell
On Mon, 2015-05-18 at 15:23 +0100, Ian Jackson wrote: Perhaps the bulk should be made into libxl__read_file_contents_core which takes a boolean instructing whether to tolerate magically shrinking files ? Setting that boolean probably ought to arrange to insist that the function gets eof, in

Re: [Xen-devel] xen scheduler

2015-05-18 Thread Dario Faggioli
[Adding George. In future, if you are interested in getting feedback on a particular subsystem, look for it in the MAINTAINERS file, and Cc the address(es) you find there] On Mon, 2015-05-18 at 13:24 +0530, Rajendra Bele wrote: As per my knowledge. Credit scheduler sorts its queue of VCPUs with

Re: [Xen-devel] [PATCH v21 11/14] x86/VPMU: Handle PMU interrupts for PV(H) guests

2015-05-18 Thread Boris Ostrovsky
On 05/18/2015 05:43 AM, Dietmar Hahn wrote: Am Freitag 08 Mai 2015, 17:06:11 schrieb Boris Ostrovsky: +if ( !is_hvm_vcpu(sampling) ) +{ +/* PV(H) guest */ +const struct cpu_user_regs *cur_regs; +uint64_t *flags = vpmu-xenpmu_data-pmu.pmu_flags; +domid_t

Re: [Xen-devel] [PATCH v21 02/14] x86/VPMU: Add public xenpmu.h

2015-05-18 Thread Jan Beulich
On 08.05.15 at 23:06, boris.ostrov...@oracle.com wrote: --- /dev/null +++ b/xen/include/public/arch-x86/pmu.h @@ -0,0 +1,122 @@ +#ifndef __XEN_PUBLIC_ARCH_X86_PMU_H__ +#define __XEN_PUBLIC_ARCH_X86_PMU_H__ + +/* x86-specific PMU definitions */ + +/* AMD PMU registers and structures */

Re: [Xen-devel] [PATCH V3 2/6] libxl_read_file_contents: fix reading sysfs file

2015-05-18 Thread Wei Liu
On Mon, May 18, 2015 at 03:23:38PM +0100, Ian Jackson wrote: Chunyan Liu writes ([PATCH V3 2/6] libxl_read_file_contents: fix reading sysfs file): Sysfs file has size=4096 but actual file content is less than that. Wow. Is there any danger that the actual size might be 4096 ?

Re: [Xen-devel] [PATCH V3 2/6] libxl_read_file_contents: fix reading sysfs file

2015-05-18 Thread Ian Jackson
Chunyan Liu writes ([PATCH V3 2/6] libxl_read_file_contents: fix reading sysfs file): Sysfs file has size=4096 but actual file content is less than that. Wow. Is there any danger that the actual size might be 4096 ? Current libxl_read_file_contents will treat it as error when file size and

Re: [Xen-devel] [PATCH] tools: Fix wild memory allocations from c/s 250f0b4 and 85d78b4

2015-05-18 Thread Andrew Cooper
On 18/05/15 15:34, Boris Ostrovsky wrote: On 05/18/2015 10:09 AM, Andrew Cooper wrote: On 18/05/15 15:00, Boris Ostrovsky wrote: On 05/18/2015 08:57 AM, Andrew Cooper wrote: These changesets cause the respective libxc functions to unconditonally dereference their max_cpus/nodes parameters as

Re: [Xen-devel] [PATCH v2 10/41] arm/acpi : Print GIC information when MADT is parsed

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: From: Naresh Bhat naresh.b...@linaro.org When MADT is parsed, print GIC information to make the boot log look pretty. Signed-off-by: Hanjun Guo hanjun@linaro.org Signed-off-by: Tomasz Nowicki tomasz.nowi...@linaro.org Signed-off-by:

Re: [Xen-devel] [PATCH v2 11/41] arm/acpi : add GTDT support updated by ACPI 5.1

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: 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

[Xen-devel] RFC/Proposal: Partial `libxenctrl` API/ABI stabilisation

2015-05-18 Thread Ian Campbell
% Partial `libxenctrl` API/ABI stabilisation % Ian Campbell ian.campb...@citrix.com % Draft A # Introduction The low-level `libxenctrl` library currently has an unstable API and ABI and some of the hypervisor interfaces which it exposes are similarly unstable. However several external projects

[Xen-devel] [PATCH 4/4] libxl: fix HVM vNUMA

2015-05-18 Thread Wei Liu
This patch does two thing: The original code erroneously fills in xc_hvm_build_args before generating vmemranges. The effect is that guest memory is populated without vNUMA information. Move the hunk to right place to fix this. Move the subtraction of video ram to

[Xen-devel] [PATCH 1/4] libxc/libxl: fill xc_hvm_build_args in libxl

2015-05-18 Thread Wei Liu
When building HVM guests, originally some fields of xc_hvm_build_args are filled in xc_hvm_build (and buried in the wrong function), some are set in libxl__build_hvm before passing xc_hvm_build_args to xc_hvm_build. This is fragile. After examining the code in xc_hvm_build that sets those fields,

[Xen-devel] [PATCH 0/4] Fix HVM vNUMA

2015-05-18 Thread Wei Liu
Boris discovered that HVM vNUMA didn't actually work. This patch series fixes that. The first patch is a prerequisite patch for the actual fixes. The second patch is to help debugging. The fixes are in the last two patches, which can be squashed into one if necessary. Wei. Wei Liu (4):

Re: [Xen-devel] [OSSTEST Nested PATCH v10 3/9] Refactor installation of overlays

2015-05-18 Thread Robert Hu
On Mon, 2015-05-18 at 10:52 +0100, Ian Campbell wrote: On Thu, 2015-05-14 at 11:59 +0100, Ian Campbell wrote: On Wed, 2015-05-13 at 11:36 +0800, longtao.pang wrote: Based on Ian Campbell's v6_patch [04,05,06], I create this patch to refactor installation of overlays for guest as well as

[Xen-devel] [PATCH 4/4] x86: switch default mapping attributes to non-executable

2015-05-18 Thread Jan Beulich
Only a very limited subset of mappings need to be done as executable ones; in particular the direct mapping should not be executable to limit the damage attackers can cause by exploiting security relevant bugs. The EFI change at once includes an adjustment to set NX only when supported by the

[Xen-devel] [PATCH 3/4] x86: move I/O emulation stubs off the stack

2015-05-18 Thread Jan Beulich
This is needed as stacks are going to become non-executable. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/xen/arch/x86/traps.c +++ b/xen/arch/x86/traps.c @@ -2006,7 +2006,7 @@ static int emulate_privileged_op(struct ? (*(u32 *)regs-reg = (val)) \

Re: [Xen-devel] [PATCH 1/3] x86: support additional Broadwell model

2015-05-18 Thread Jan Beulich
The title (of course) was meant to be [PATCH 1/3] mwait-idle: support additional Broadwell model Jan On 18.05.15 at 14:54, jbeul...@suse.com wrote: Signed-off-by: Len Brown len.br...@intel.com [Linux commit bea57077e44ec9c1e6d3a3c142c8a3c0289e290d] Signed-off-by: Jan Beulich

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: diff --git a/xen/arch/arm/Makefile b/xen/arch/arm/Makefile index 935999e..096e9ef 100644 --- a/xen/arch/arm/Makefile +++ b/xen/arch/arm/Makefile @@ -2,6 +2,7 @@ subdir-$(arm32) += arm32 subdir-$(arm64) += arm64 subdir-y += platforms

Re: [Xen-devel] [PATCH v2 07/41] arm/acpi : Introduce ARM Boot Architecture Flags in FADT

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: 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

Re: [Xen-devel] [PATCH] tools: Fix wild memory allocations from c/s 250f0b4 and 85d78b4

2015-05-18 Thread Boris Ostrovsky
On 05/18/2015 10:09 AM, Andrew Cooper wrote: On 18/05/15 15:00, Boris Ostrovsky wrote: On 05/18/2015 08:57 AM, Andrew Cooper wrote: These changesets cause the respective libxc functions to unconditonally dereference their max_cpus/nodes parameters as part of initial memory allocations. It

Re: [Xen-devel] [PATCH v2 08/41] arm/acpi : Parse FADT table and get PSCI flags

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: 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

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-18 Thread Julien Grall
On 18/05/15 15:01, Jan Beulich wrote: On 18.05.15 at 15:26, julien.gr...@citrix.com wrote: On 17/05/15 21:03, Parth Dixit wrote: --- /dev/null +++ b/xen/arch/arm/acpi/lib.c @@ -0,0 +1,8 @@ +#include xen/acpi.h +#include asm/mm.h + +void __iomem * +acpi_os_map_iomem(acpi_physical_address

[Xen-devel] 4.5.1-rc1 has been tagged

2015-05-18 Thread Jan Beulich
All, aiming at a release with presumably (i.e. as usual) one more RC, please test! Thanks, Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-18 Thread Julien Grall
On 18/05/15 15:32, Jan Beulich wrote: On 18.05.15 at 16:20, julien.gr...@citrix.com wrote: Although, acpi_os_map_iomem is also part of the ACPI CA. Would a function arch_acpi_os_map_memory suit for you? Only if we - other than Linux - really need this to be arch dependent. The current

Re: [Xen-devel] [PATCH V3 2/6] libxl_read_file_contents: fix reading sysfs file

2015-05-18 Thread Wei Liu
On Sun, Apr 19, 2015 at 11:50:48AM +0800, Chunyan Liu wrote: Sysfs file has size=4096 but actual file content is less than that. Current libxl_read_file_contents will treat it as error when file size and actual file content differs, so reading sysfs file content with this function always

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-18 Thread Jan Beulich
On 18.05.15 at 16:20, julien.gr...@citrix.com wrote: Although, acpi_os_map_iomem is also part of the ACPI CA. Would a function arch_acpi_os_map_memory suit for you? Only if we - other than Linux - really need this to be arch dependent. Jan ___

Re: [Xen-devel] [PATCH v21 06/14] x86/VPMU: Initialize PMU for PV(H) guests

2015-05-18 Thread Jan Beulich
On 08.05.15 at 23:06, boris.ostrov...@oracle.com wrote: Code for initializing/tearing down PMU for PV guests Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Acked-by: Daniel De Graaf dgde...@tycho.nsa.gov Acked-by Jan Beulich jbeul...@suse.com

Re: [Xen-devel] [RFC v2 00/15] Add VT-d Posted-Interrupts support

2015-05-18 Thread Wu, Feng
-Original Message- From: Tian, Kevin Sent: Monday, May 18, 2015 1:33 PM To: Wu, Feng; xen-devel@lists.xen.org Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, Yang Z; george.dun...@eu.citrix.com Subject: RE: [RFC v2 00/15] Add VT-d Posted-Interrupts support

Re: [Xen-devel] [RFC 21/23] net/xen-netback: Make it running on 64KB page granularity

2015-05-18 Thread Julien Grall
Hi Wei, On 15/05/15 16:31, Wei Liu wrote: On Fri, May 15, 2015 at 01:35:42PM +0100, Julien Grall wrote: On 15/05/15 03:35, Wei Liu wrote: On Thu, May 14, 2015 at 06:01:01PM +0100, Julien Grall wrote: The PV network protocol is using 4KB page granularity. The goal of this patch is to allow a

[Xen-devel] [rumpuserxen test] 56663: regressions - FAIL

2015-05-18 Thread osstest service user
flight 56663 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/56663/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-rumpuserxen 5 rumpuserxen-build fail REGR. vs. 33866

[Xen-devel] [PATCH 0/3] x86: mwait-idle sync with recent Linux

2015-05-18 Thread Jan Beulich
1: support additional Broadwell model 2: update support for Silvermont Core in Baytrail SOC 3: add support for the Airmont Core in the Cherrytrail and Braswell SOCs Signed-off-by: Jan Beulich jbeul...@suse.com ___ Xen-devel mailing list

Re: [Xen-devel] [RFC v2] xSplice design

2015-05-18 Thread Daniel Kiper
On Mon, May 18, 2015 at 08:54:22PM +0800, Liuqiming (John) wrote: Hi Konrad, Will this design include hotpatch build tools chain? Such as how these .xplice_ section are created? How to handle xen symbols when creating hotpatch elf file? No, this is not a main goal of this project. However,

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread George Dunlap
On 05/18/2015 02:14 PM, Ian Campbell wrote: That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple may be fine. Currently we only have ts-*-build things which

Re: [Xen-devel] [OSSTEST Nested PATCH v10 3/9] Refactor installation of overlays

2015-05-18 Thread Ian Campbell
On Thu, 2015-05-14 at 11:59 +0100, Ian Campbell wrote: On Wed, 2015-05-13 at 11:36 +0800, longtao.pang wrote: Based on Ian Campbell's v6_patch [04,05,06], I create this patch to refactor installation of overlays for guest as well as host used. Link of Ian Campbell's patch:

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread Ian Campbell
On Mon, 2015-05-18 at 14:23 +0100, George Dunlap wrote: On 05/18/2015 02:14 PM, Ian Campbell wrote: That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the current output of xen.git. Starting simple

Re: [Xen-devel] [PATCH] [RFC] x86/domctl: Fix getpageframeinfo* handling.

2015-05-18 Thread Jan Beulich
On 18.05.15 at 15:24, andrew.coop...@citrix.com wrote: On 18/05/15 12:43, Jan Beulich wrote: On 18.05.15 at 12:59, andrew.coop...@citrix.com wrote: +if ( unlikely(num 1024) || + unlikely(num != domctl-u.getpageframeinfo3.num) ) +{ +ret = -E2BIG; +

[Xen-devel] Xen dom0 crash

2015-05-18 Thread Eggert, Lars
Hi, Roger asked me to send this bug report to xen-devel. I'm trying to bring up a Xen dom0 on a Fujitsu RX308, but it crashes when strying to start the kernel. Any ideas? Lars B2 __ _

Re: [Xen-devel] [PATCH v2 05/41] acpi : add helper function for mapping memory

2015-05-18 Thread Jan Beulich
On 18.05.15 at 15:26, julien.gr...@citrix.com wrote: On 17/05/15 21:03, Parth Dixit wrote: --- /dev/null +++ b/xen/arch/arm/acpi/lib.c @@ -0,0 +1,8 @@ +#include xen/acpi.h +#include asm/mm.h + +void __iomem * +acpi_os_map_iomem(acpi_physical_address phys, acpi_size size) +{ +return

Re: [Xen-devel] [PATCH V3 1/6] libxl: export some functions for pvusb use

2015-05-18 Thread Wei Liu
On Sun, Apr 19, 2015 at 11:50:47AM +0800, Chunyan Liu wrote: Signed-off-by: Chunyan Liu cy...@suse.com Signed-off-by: Simon Cao caobosi...@gmail.com On the basis that this can help reduce the length of libxl.c and improve maintainability by moving stuff out of libxl.c to dedicated files.

Re: [Xen-devel] [RFC v2 00/15] Add VT-d Posted-Interrupts support

2015-05-18 Thread Jan Beulich
On 18.05.15 at 12:22, feng...@intel.com wrote: -Original Message- From: Tian, Kevin Sent: Monday, May 18, 2015 1:33 PM To: Wu, Feng; xen-devel@lists.xen.org Cc: k...@xen.org; jbeul...@suse.com; andrew.coop...@citrix.com; Zhang, Yang Z; george.dun...@eu.citrix.com Subject: RE:

Re: [Xen-devel] [PATCH] libxl: Initialize valid_devs in output_topologyinfo()

2015-05-18 Thread Wei Liu
On Fri, May 15, 2015 at 11:06:57AM -0400, Boris Ostrovsky wrote: Commit e78e8b9bb649 (libxl: Add interface for querying hypervisor about PCI topology) neglected to initialize valid_devs. This may result in not printing a message to console if no IO topology information is available and, more

Re: [Xen-devel] [PATCH] xen/arm: gic-hip04: Resync the driver with the GICv2

2015-05-18 Thread Zoltan Kiss
On 15/05/15 22:08, Julien Grall wrote: Hi Zoltan, On 07/05/2015 13:37, Zoltan Kiss wrote: On 07/05/15 10:32, Ian Campbell wrote: On Thu, 2015-05-07 at 09:52 +0100, Zoltan Kiss wrote: Looks good at first glance, let me try it on a board. On 06/05/15 19:52, Julien Grall wrote: [...] I'm

Re: [Xen-devel] [PATCH v7 04/14] x86: maintain COS to CBM mapping for each socket

2015-05-18 Thread Jan Beulich
On 08.05.15 at 10:56, chao.p.p...@linux.intel.com wrote: @@ -237,6 +243,14 @@ static void cat_cpu_init(void) info-cbm_len = (eax 0x1f) + 1; info-cos_max = min(opt_cos_max, edx 0x); +info-cos_to_cbm = xzalloc_array(struct psr_cat_cbm, +

Re: [Xen-devel] [PATCH V3 3/6] libxl: add pvusb API

2015-05-18 Thread Olaf Hering
On Sun, Apr 19, Chunyan Liu wrote: +static int libxl__usbctrl_add_xenstore(libxl__gc *gc, uint32_t domid, + libxl_device_usbctrl *usbctrl) +{ +flexarray_append_pair(back, state, 1); +flexarray_append_pair(front, state, 1); This (and perhaps

[Xen-devel] [PATCH 0/4] x86: don't default to executable mappings

2015-05-18 Thread Jan Beulich
Particularly for the 1:1 mapping it was pointed out that in order to limit the damage from security issues we should avoid mapping things executable when they don't need to be. 1: move syscall trampolines off the stack 2: emul: move stubs off the stack 3: move I/O emulation stubs off the stack 4:

Re: [Xen-devel] [RFC 2/7] linux-stubdomain: Compile Linux

2015-05-18 Thread George Dunlap
On Thu, May 14, 2015 at 10:28 AM, Ian Campbell ian.campb...@citrix.com wrote: On Thu, 2015-05-14 at 10:08 +0100, George Dunlap wrote: On Fri, Feb 6, 2015 at 5:45 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote:

Re: [Xen-devel] [RFC 00/23] arm64: Add support for 64KB page granularity in Xen guest

2015-05-18 Thread Julien Grall
Hi David, On 15/05/15 16:45, David Vrabel wrote: On 14/05/15 18:00, Julien Grall wrote: Hi all, ARM64 Linux is supporting both 4KB and 64KB page granularity. Although, Xen hypercall interface and PV protocol are always based on 4KB page granularity. Any attempt to boot a Linux guest with

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread George Dunlap
On 05/18/2015 12:21 PM, Ian Campbell wrote: On Mon, 2015-05-18 at 11:54 +0100, George Dunlap wrote: On 05/18/2015 11:33 AM, Ian Campbell wrote: On Mon, 2015-05-18 at 11:08 +0100, George Dunlap wrote: On Wed, May 13, 2015 at 12:48 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote:

Re: [Xen-devel] [PATCH v21 11/14] x86/VPMU: Handle PMU interrupts for PV(H) guests

2015-05-18 Thread Dietmar Hahn
Am Freitag 08 Mai 2015, 17:06:11 schrieb Boris Ostrovsky: Add support for handling PMU interrupts for PV(H) guests. I have only some minor nits below. Reviewed-by: Dietmar Hahn dietmar.h...@ts.fujitsu.com VPMU for the interrupted VCPU is unloaded until the guest issues XENPMU_flush

Re: [Xen-devel] [PATCH v2 04/41] arm/acpi : add arm specific acpi header file

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: +#ifndef _ASM_ARM64_ACPI_H +#define _ASM_ARM64_ACPI_H s/_ASM_ARM64_ACPI_H/_ASM_ARM_ACPI_H/ + +#include xen/init.h + +#define COMPILER_DEPENDENT_INT64 long long +#define COMPILER_DEPENDENT_UINT64 unsigned long long + +extern bool_t

Re: [Xen-devel] [PATCH] [RFC] x86/domctl: Fix getpageframeinfo* handling.

2015-05-18 Thread Andrew Cooper
On 18/05/15 12:43, Jan Beulich wrote: On 18.05.15 at 12:59, andrew.coop...@citrix.com wrote: In tree, there is one single caller of XEN_DOMCTL_getpageframeinfo3 (xc_get_pfn_type_batch()), and no callers of the older variants. getpageframeinfo3 and getpageframeinfo2 are compatible if the

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread Ian Campbell
On Mon, 2015-05-18 at 14:33 +0100, Ian Jackson wrote: Ian Campbell writes (Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test): On Mon, 2015-05-18 at 14:05 +0100, George Dunlap wrote: That solves the most general case; but it sounds like you care mostly about the very

Re: [Xen-devel] [PATCH] tools: Fix wild memory allocations from c/s 250f0b4 and 85d78b4

2015-05-18 Thread Andrew Cooper
On 18/05/15 15:00, Boris Ostrovsky wrote: On 05/18/2015 08:57 AM, Andrew Cooper wrote: These changesets cause the respective libxc functions to unconditonally dereference their max_cpus/nodes parameters as part of initial memory allocations. It will fail at obtaining the correct number of

Re: [Xen-devel] [PATCH v2 06/41] arm/acpi : Add basic ACPI initialization

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: 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 naresh.b...@linaro.org Signed-off-by: Parth

Re: [Xen-devel] [PATCHv6 1/3] xen: use ticket locks for spin locks

2015-05-18 Thread Jan Beulich
On 14.05.15 at 13:21, david.vra...@citrix.com wrote: void _spin_lock(spinlock_t *lock) { +spinlock_tickets_t tickets = { .tail = 1, }; This breaks the build on gcc 4.3.x (due to tail being a member of an unnamed structure member of a union). Jan

Re: [Xen-devel] [PATCH v2 01/41] arm/acpi: Build numa for x86 only

2015-05-18 Thread Julien Grall
Hi Parth, On 17/05/15 21:03, Parth Dixit wrote: From: Naresh Bhat naresh.b...@linaro.org Numa is currently not supported for arm in xen. Configure and build numa for x86 architecture only. Signed-off-by: Naresh Bhat naresh.b...@linaro.org Signed-off-by: Parth Dixit parth.di...@linaro.org

Re: [Xen-devel] [PATCH] tools: Fix wild memory allocations from c/s 250f0b4 and 85d78b4

2015-05-18 Thread Wei Liu
On Mon, May 18, 2015 at 01:57:24PM +0100, Andrew Cooper wrote: These changesets cause the respective libxc functions to unconditonally dereference their max_cpus/nodes parameters as part of initial memory allocations. It will fail at obtaining the correct number of cpus/nodes from Xen, as the

Re: [Xen-devel] [PATCH v7 01/14] x86: add socket_to_cpumask

2015-05-18 Thread Jan Beulich
On 08.05.15 at 10:56, chao.p.p...@linux.intel.com wrote: --- a/xen/arch/x86/mpparse.c +++ b/xen/arch/x86/mpparse.c @@ -64,6 +64,9 @@ unsigned int __read_mostly boot_cpu_physical_apicid = BAD_APICID; static unsigned int __devinitdata num_processors; static unsigned int __initdata

Re: [Xen-devel] [PATCH v7 07/14] x86: dynamically get/set CBM for a domain

2015-05-18 Thread Jan Beulich
On 08.05.15 at 10:56, chao.p.p...@linux.intel.com wrote: +int psr_get_l3_cbm(struct domain *d, unsigned int socket, uint64_t *cbm) +{ +unsigned int cos; +struct psr_cat_socket_info *info; +int ret = get_cat_socket_info(socket, info); + +if ( ret ) +return ret; +

Re: [Xen-devel] [PATCH] tools: Fix wild memory allocations from c/s 250f0b4 and 85d78b4

2015-05-18 Thread Boris Ostrovsky
On 05/18/2015 08:57 AM, Andrew Cooper wrote: These changesets cause the respective libxc functions to unconditonally dereference their max_cpus/nodes parameters as part of initial memory allocations. It will fail at obtaining the correct number of cpus/nodes from Xen, as the guest handles will

[Xen-devel] [PATCH] x86/EFI: keep EFI runtime services top level page tables up-to-date

2015-05-18 Thread Jan Beulich
Updates to idle_pg_table[] need to be mirrored into the page tables used for invoking EFI runtime services. Signed-off-by: Jan Beulich jbeul...@suse.com --- This in particular is a prereq for the patch at http://lists.xenproject.org/archives/html/xen-devel/2015-05/msg02125.html to be correct.

Re: [Xen-devel] [xen-unstable test] 56456: regressions - FAIL

2015-05-18 Thread Jan Beulich
On 16.05.15 at 13:45, roger@citrix.com wrote: El 16/05/15 a les 10.51, osstest service user ha escrit: flight 56456 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/56456/ Regressions :-( This is my fault, paging_gva_to_gfn cannot be used to translate a PV

Re: [Xen-devel] [xen-unstable test] 56456: regressions - FAIL

2015-05-18 Thread Tim Deegan
At 09:34 +0100 on 18 May (1431941676), Jan Beulich wrote: On 16.05.15 at 13:45, roger@citrix.com wrote: El 16/05/15 a les 10.51, osstest service user ha escrit: flight 56456 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/56456/ Regressions :-( This is

Re: [Xen-devel] [PATCH v2 00/41] Add ACPI support for arm64 on Xen

2015-05-18 Thread Julien Grall
Hi Parth (You dropped xen-devel, re-cc it) On 18/05/15 10:59, Parth Dixit wrote: yes i tested with linux-next of 15th may and it is working fine with it,except mounting of root partiton because kernel is not able to detetct the partition i did not looked further into it but its presumably

[Xen-devel] [PATCH 2/4] x86emul: move stubs off the stack

2015-05-18 Thread Jan Beulich
This is needed as stacks are going to become non-executable. Signed-off-by: Jan Beulich jbeul...@suse.com --- a/tools/tests/x86_emulator/x86_emulate.c +++ b/tools/tests/x86_emulator/x86_emulate.c @@ -17,4 +17,8 @@ typedef bool bool_t; #define __packed __attribute__((packed)) #include

[Xen-devel] [OSSTEST PATCH] ts-host-install: die on unknown options

2015-05-18 Thread Ian Jackson
Signed-off-by: Ian Jackson ian.jack...@eu.citrix.com --- ts-host-install |2 ++ 1 file changed, 2 insertions(+) diff --git a/ts-host-install b/ts-host-install index b13f293..9d6a73c 100755 --- a/ts-host-install +++ b/ts-host-install @@ -37,6 +37,8 @@ while (@ARGV and $ARGV[0] =~ m/^-/) {

[Xen-devel] [PATCH 2/3] mwait-idle: update support for Silvermont Core in Baytrail SOC

2015-05-18 Thread Jan Beulich
On some Silvermont-Core/Baytrail-SOC systems, C1E latency is higher than original specifications. Although C1E is still enumerated in CPUID.MWAIT.EDX, we delete the state from intel_idle to avoid latency impact. Under some conditions, the latency of the C6N-BYT and C6S-BYT states may exceed the

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread Ian Campbell
On Mon, 2015-05-18 at 14:05 +0100, George Dunlap wrote: It sounds like you're saying just to have a base Xen build that would build what currently comes out of xen.git, and then base our other components on top of that. Correct, otherwise you get one big job which can fail due to any

Re: [Xen-devel] qemu device model question

2015-05-18 Thread George Dunlap
On Wed, May 13, 2015 at 10:30 AM, Ian Campbell ian.campb...@citrix.com wrote: On Wed, 2015-05-13 at 10:54 +0200, Juergen Gross wrote: Hi, while trying to build a pvusb backend in qemu I think I've found a general issue in xl: qemu for pv-domains is started only at domain creation and only if

Re: [Xen-devel] [PATCH v7 03/14] x86: detect and initialize Intel CAT feature

2015-05-18 Thread Jan Beulich
On 08.05.15 at 10:56, chao.p.p...@linux.intel.com wrote: --- a/xen/arch/x86/psr.c +++ b/xen/arch/x86/psr.c @@ -19,14 +19,26 @@ #include asm/psr.h #define PSR_CMT(10) +#define PSR_CAT(11) + +struct psr_cat_socket_info { +unsigned int cbm_len; +unsigned int

Re: [Xen-devel] Xen dom0 crash

2015-05-18 Thread Eggert, Lars
Forgot to CC the Intel folks... On 2015-5-18, at 15:55, Lars Eggert l...@netapp.com wrote: Hi, Roger asked me to send this bug report to xen-devel. I'm trying to bring up a Xen dom0 on a Fujitsu RX308, but it crashes when strying to start the kernel. Any ideas? Lars

Re: [Xen-devel] [PATCH] x86/EFI: keep EFI runtime services top level page tables up-to-date

2015-05-18 Thread Andrew Cooper
On 18/05/15 11:22, Jan Beulich wrote: Updates to idle_pg_table[] need to be mirrored into the page tables used for invoking EFI runtime services. Signed-off-by: Jan Beulich jbeul...@suse.com Reviewed-by: Andrew Cooper andrew.coop...@citrix.com --- This in particular is a prereq for the

Re: [Xen-devel] [libvirt] [PATCH 0/4] xenconfig: fix SPICE parsing/formatting

2015-05-18 Thread Michal Privoznik
On 09.05.2015 00:00, Jim Fehlig wrote: This series fixes several bugs related to SPICE parsing and formatting code in xenconfig. The bugs are mostly due to misinterpretation of the Xen documenation, which I failed to notice when reviewing the initial submission. Jim Fehlig (4):

Re: [Xen-devel] [xen-unstable test] 56456: regressions - FAIL

2015-05-18 Thread Jan Beulich
On 18.05.15 at 12:17, t...@xen.org wrote: At 09:34 +0100 on 18 May (1431941676), Jan Beulich wrote: On 16.05.15 at 13:45, roger@citrix.com wrote: El 16/05/15 a les 10.51, osstest service user ha escrit: flight 56456 xen-unstable real [real]

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread Ian Campbell
On Mon, 2015-05-18 at 11:08 +0100, George Dunlap wrote: On Wed, May 13, 2015 at 12:48 PM, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: On Wed, 13 May 2015, Ian Campbell wrote: On Tue, 2015-05-12 at 12:46 +0100, Stefano Stabellini wrote: Would a separate clone of the same

Re: [Xen-devel] [PATCH] MAINTAINERS: Remove Frediano Ziglio from HISILICON HIP04 Support

2015-05-18 Thread Ian Campbell
On Fri, 2015-05-15 at 22:09 +0100, Julien Grall wrote: Hi, On 07/05/2015 15:39, Zoltan Kiss wrote: Now the question of course is - is that really what we want to do? I.e. is it known that he no longer wants to be a maintainer of this code (or cannot be)? The mail address having become

[Xen-devel] [PATCH] tools: Fix wild memory allocations from c/s 250f0b4 and 85d78b4

2015-05-18 Thread Andrew Cooper
These changesets cause the respective libxc functions to unconditonally dereference their max_cpus/nodes parameters as part of initial memory allocations. It will fail at obtaining the correct number of cpus/nodes from Xen, as the guest handles will not be NULL. Signed-off-by: Andrew Cooper

Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test

2015-05-18 Thread Ian Jackson
Ian Campbell writes (Re: [Xen-devel] [PATCH v4] OSSTEST: introduce a raisin build test): On Mon, 2015-05-18 at 14:05 +0100, George Dunlap wrote: That solves the most general case; but it sounds like you care mostly about the very specific case of dealing with components that depend on the

Re: [Xen-devel] [PATCH V3 1/6] libxl: export some functions for pvusb use

2015-05-18 Thread George Dunlap
On 04/20/2015 05:25 PM, Olaf Hering wrote: On Sun, Apr 19, Chunyan Liu wrote: +++ b/tools/libxl/libxl_internal.h +_hidden int libxl__device_nextid(libxl__gc *gc, uint32_t domid, char *device); +_hidden int libxl__resolve_domid(libxl__gc *gc, const char *name, +

[Xen-devel] [linux-3.4 test] 56631: regressions - FAIL

2015-05-18 Thread osstest service user
flight 56631 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/56631/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl 9 debian-install fail REGR. vs. 52209-bisect test-amd64-amd64-pair

Re: [Xen-devel] [PATCH 5/5] xen: Write CR0, CR3 and CR4 in arch_set_info_guest()

2015-05-18 Thread Razvan Cojocaru
On 05/18/2015 11:05 AM, Jan Beulich wrote: On 18.05.15 at 09:58, rcojoc...@bitdefender.com wrote: On 05/18/2015 10:27 AM, Jan Beulich wrote: On 15.05.15 at 22:45, rcojoc...@bitdefender.com wrote: On 05/15/2015 06:57 PM, Jan Beulich wrote: On 06.05.15 at 19:12, rcojoc...@bitdefender.com wrote:

Re: [Xen-devel] [PATCH 0/6] x86: reduce paravirtualized spinlock overhead

2015-05-18 Thread Juergen Gross
On 05/17/2015 07:30 AM, Ingo Molnar wrote: * Juergen Gross jgr...@suse.com wrote: On 05/05/2015 07:21 PM, Jeremy Fitzhardinge wrote: On 05/03/2015 10:55 PM, Juergen Gross wrote: I did a small measurement of the pure locking functions on bare metal without and with my patches. spin_lock()

Re: [Xen-devel] [PATCH v2 00/41] Add ACPI support for arm64 on Xen

2015-05-18 Thread Parth Dixit
On 18 May 2015 at 13:55, Jan Beulich jbeul...@suse.com wrote: On 17.05.15 at 22:03, parth.di...@linaro.org wrote: Naresh Bhat (3): arm/acpi: Build numa for x86 only arm/acpi : Print GIC information when MADT is parsed xen: arm64: Add ACPI support Parth Dixit (38):

Re: [Xen-devel] [PATCH v5 1/3] xen/pvh: use a custom IO bitmap for PVH hardware domains

2015-05-18 Thread Tian, Kevin
From: Roger Pau Monne [mailto:roger@citrix.com] Sent: Thursday, May 07, 2015 10:54 PM Since a PVH hardware domain has access to the physical hardware create a custom more permissive IO bitmap. The permissions set on the bitmap are populated based on the contents of the ioports rangeset.

[Xen-devel] [xen-unstable test] 56630: regressions - FAIL

2015-05-18 Thread osstest service user
flight 56630 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/56630/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-multivcpu 14 guest-localmigrate fail REGR. vs. 56375 test-amd64-amd64-xl

[Xen-devel] [PATCH Remus v7 1/3] libxc/save: refactor of send_domain_memory_live()

2015-05-18 Thread Yang Hongyang
Split the send_domain_memory_live() into three helper function: - send_memory_live() do the actually live send - suspend_and_send_dirty() suspend the guest and send dirty pages - send_memory_verify() The motivation of this is that when we send checkpointed stream, we will skip the actually

Re: [Xen-devel] [PATCH 5/5] xen: Write CR0, CR3 and CR4 in arch_set_info_guest()

2015-05-18 Thread Razvan Cojocaru
On 05/17/2015 09:32 PM, Tamas K Lengyel wrote: I took the suggestion to mean at the time that we should have something like EVENT_CR3_PRE and EVENT_CR3_POST, where basically all we needed was for all events for which this applicable to be pre-write events. IMHO that's simpler and sufficient:

[Xen-devel] xen scheduler

2015-05-18 Thread Rajendra Bele
Dear Developers, As per my knowledge. Credit scheduler sorts its queue of VCPUs with priority based on credit value. It follows FCFS technique for equal priority if we apply SJF for equal priority will be helpful to reduce waiting time spend in the queue basically for the Under Priority

Re: [Xen-devel] [PATCH 5/5] xen: Write CR0, CR3 and CR4 in arch_set_info_guest()

2015-05-18 Thread Razvan Cojocaru
On 05/18/2015 10:27 AM, Jan Beulich wrote: On 15.05.15 at 22:45, rcojoc...@bitdefender.com wrote: On 05/15/2015 06:57 PM, Jan Beulich wrote: On 06.05.15 at 19:12, rcojoc...@bitdefender.com wrote: Arch_set_info_guest() doesn't set CR0, CR3 or CR4. Added code that does that. But you should

Re: [Xen-devel] [PATCH 5/5] xen: Write CR0, CR3 and CR4 in arch_set_info_guest()

2015-05-18 Thread Jan Beulich
On 18.05.15 at 09:58, rcojoc...@bitdefender.com wrote: On 05/18/2015 10:27 AM, Jan Beulich wrote: On 15.05.15 at 22:45, rcojoc...@bitdefender.com wrote: On 05/15/2015 06:57 PM, Jan Beulich wrote: On 06.05.15 at 19:12, rcojoc...@bitdefender.com wrote: Arch_set_info_guest() doesn't set CR0,

Re: [Xen-devel] [PATCH v2 20/41] arm : create generic uart initialization function

2015-05-18 Thread Jan Beulich
On 17.05.15 at 22:03, parth.di...@linaro.org wrote: --- a/xen/drivers/char/Makefile +++ b/xen/drivers/char/Makefile @@ -6,5 +6,5 @@ obj-$(HAS_EXYNOS4210) += exynos4210-uart.o obj-$(HAS_OMAP) += omap-uart.o obj-$(HAS_SCIF) += scif-uart.o obj-$(HAS_EHCI) += ehci-dbgp.o -obj-$(CONFIG_ARM)

[Xen-devel] [PATCH 2/4] libxc: print more error messages when failed

2015-05-18 Thread Wei Liu
No functional changes introduced. Signed-off-by: Wei Liu wei.l...@citrix.com Cc: Ian Campbell ian.campb...@citrix.com Cc: Ian Jackson ian.jack...@eu.citrix.com --- tools/libxc/xc_hvm_build_x86.c | 30 +++--- 1 file changed, 27 insertions(+), 3 deletions(-) diff --git

Re: [Xen-devel] [PATCH][RFC] libxl: use new qemu parameters for emulated qemuu disks

2015-05-18 Thread Wei Liu
On Fri, May 15, 2015 at 01:54:32PM +0200, Fabio Fantoni wrote: NOTES: This patch is a only a fast draft for testing. Some tests result: At xl create cdrom empty or not are both working, xl cd-insert is working, xl cd-eject seems working but on xl command in linux hvm domU return qmp error

Re: [Xen-devel] [RFC PATCH 12/13] xen-netfront: implement TX persistent grants

2015-05-18 Thread David Vrabel
On 12/05/15 18:18, Joao Martins wrote: Instead of grant/revoking the buffer related to the skb, it will use an already granted page and memcpy to it. The grants will be mapped by xen-netback and reused overtime, but only unmapped when the vif disconnects, as opposed to every packet. This

Re: [Xen-devel] [PATCH][RFC] libxl: use new qemu parameters for emulated qemuu disks

2015-05-18 Thread Fabio Fantoni
Il 18/05/2015 13:24, George Dunlap ha scritto: On Fri, May 15, 2015 at 12:54 PM, Fabio Fantoni fabio.fant...@m2r.biz wrote: NOTES: This patch is a only a fast draft for testing. Some tests result: At xl create cdrom empty or not are both working, xl cd-insert is working, xl cd-eject seems

Re: [Xen-devel] [PATCH v2][RFC] libxl: Add AHCI support for upstream qemu

2015-05-18 Thread Fabio Fantoni
Il 18/05/2015 17:53, Wei Liu ha scritto: On Thu, May 14, 2015 at 01:11:13PM +0200, Fabio Fantoni wrote: Usage: ahci=0|1 (default=0) If enabled adds ich9 disk controller in ahci mode and uses it with upstream qemu to emulate disks instead of ide. Is ICH9 available in our default setup? Why do

Re: [Xen-devel] [PATCH v2][RFC] libxl: Add AHCI support for upstream qemu

2015-05-18 Thread Fabio Fantoni
Il 18/05/2015 18:16, Ian Jackson ha scritto: Fabio Fantoni writes ([PATCH v2][RFC] libxl: Add AHCI support for upstream qemu): If enabled adds ich9 disk controller in ahci mode and uses it with upstream qemu to emulate disks instead of ide. I'm sorry for perhaps querying the obvious, but why

[Xen-devel] [PATCH 3/4] libxc: rework vnuma bits in setup_guest

2015-05-18 Thread Wei Liu
Make the setup process similar to PV counterpart. That is, to allocate a P2M array that covers the whole memory range and start from there. This is clearer than using an array with no holes in it. Also the dummy layout should take MMIO hole into consideration. We might end up having two

Re: [Xen-devel] [RFC PATCH 09/13] xen-netfront: move grant_{ref, page} to struct grant

2015-05-18 Thread David Vrabel
On 12/05/15 18:18, Joao Martins wrote: Refactors a little bit how grants are stored by moving grant_rx_ref/grant_tx_ref and grant_tx_page to its own structure, namely struct grant. Reviewed-by: David Vrabel david.vra...@citrix.com Although... --- a/drivers/net/xen-netfront.c +++

[Xen-devel] [linux-linus test] 56660: regressions - FAIL

2015-05-18 Thread osstest service user
flight 56660 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/56660/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail REGR. vs.

  1   2   >