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

2015-08-10 Thread osstest service owner
flight 60646 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/60646/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl 14 guest-saverestore fail REGR. vs. 59254

Re: [Xen-devel] how can I find hypercall page address?

2015-08-10 Thread Dario Faggioli
On Sat, 2015-08-08 at 08:02 +0800, big strong wrote: I think I've stated clearly what I want to do. Well... |I want to locate the hypercall page address when creating a new domU, so as to locate hypercalls. Ok. What for? Dario -- This happens because I choose it to happen! (Raistlin

Re: [Xen-devel] [PATCH] x86: Allow PV guest set X86_CR4_PCE flag

2015-08-10 Thread Boris Ostrovsky
On 08/10/2015 10:37 AM, Andrew Cooper wrote: On 10/08/15 15:27, Boris Ostrovsky wrote: With added PV support for VPMU, guests may legitimately decide to set CR4's PCE flag. We should allow this when VPMU is enabled. Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Why? Even a PV

Re: [Xen-devel] [PATCH v2 01/23] x86/boot: remove unneeded instruction

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 27, 2015 at 09:46:08PM +0200, Daniel Kiper wrote: On Fri, Jul 24, 2015 at 12:22:57PM -0400, Konrad Rzeszutek Wilk wrote: On Mon, Jul 20, 2015 at 04:28:56PM +0200, Daniel Kiper wrote: Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Don't you use it in: /* Switch to

Re: [Xen-devel] [xen 4.6 retrospective] More public/easy to find information about the release schedule

2015-08-10 Thread Dario Faggioli
On Fri, 2015-08-07 at 17:36 +0200, Roger Pau Monné wrote: = Issue / Observation = The information about the release schedule is not clearly published anywhere apart from the mailing lists, which makes it hard for non-developers (or even for developers) given that the mailing list traffic

Re: [Xen-devel] About Xen bridged pci devices and suspend/resume for the X10SAE motherboard

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Aug 10, 2015 at 05:14:28PM +0300, M. Ivanov wrote: On Mon, 2015-08-10 at 09:58 -0400, Konrad Rzeszutek Wilk wrote: On Mon, Aug 10, 2015 at 02:11:38AM +0300, M. Ivanov wrote: Hello, excuse me for bothering you, but I've read an old thread on a mailing list about X10SAE

Re: [Xen-devel] [PATCHv1] xen/events/fifo: Handle linked events when closing a PIRQ port

2015-08-10 Thread linux
On 2015-08-10 16:24, David Vrabel wrote: Commit fcdf31a7c162de0c93a2bee51df4688ab0a348f8 (xen/events/fifo: Handle linked events when closing a port) did not handle closing a port bound to a PIRQ because these are closed from shutdown_pirq() which is called with interrupts disabled. Defer the

Re: [Xen-devel] [PATCH] x86: Allow PV guest set X86_CR4_PCE flag

2015-08-10 Thread Boris Ostrovsky
On 08/10/2015 11:02 AM, Andrew Cooper wrote: On 10/08/15 15:49, Boris Ostrovsky wrote: On 08/10/2015 10:37 AM, Andrew Cooper wrote: On 10/08/15 15:27, Boris Ostrovsky wrote: With added PV support for VPMU, guests may legitimately decide to set CR4's PCE flag. We should allow this when VPMU

Re: [Xen-devel] [PATCHv1] xen/events/fifo: Handle linked events when closing a PIRQ port

2015-08-10 Thread Boris Ostrovsky
On 08/10/2015 10:24 AM, David Vrabel wrote: Commit fcdf31a7c162de0c93a2bee51df4688ab0a348f8 (xen/events/fifo: Handle linked events when closing a port) did not handle closing a port bound to a PIRQ because these are closed from shutdown_pirq() which is called with interrupts disabled. Defer the

Re: [Xen-devel] [PATCH v2 07/23] x86/boot/reloc: Rename some variables and rearrange code a bit

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:02PM +0200, Daniel Kiper wrote: Rename mbi and mbi_old variables and rearrange code a bit to make s/mbi_old/mbi_in/ Perhaps you want to say: rename mbi_old with mbi_in, and mbi with mbi_out or better: Replace mbi with mbi_out and mbi_old with mbi_in and ... it

Re: [Xen-devel] [PATCH v2 06/23] x86/boot: use %ecx instead of %eax

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:01PM +0200, Daniel Kiper wrote: Use %ecx instead of %eax to store low memory upper limit from EBDA. This way we do not wipe multiboot protocol identifier. It is needed in reloc() to differentiate between multiboot (v1) and multiboot2 protocol. Signed-off-by:

Re: [Xen-devel] [PATCH RFC v2 0/5] Multi-queue support for xen-blkfront and xen-blkback

2015-08-10 Thread Jens Axboe
On 08/10/2015 05:03 AM, Rafal Mielniczuk wrote: On 01/07/15 04:03, Jens Axboe wrote: On 06/30/2015 08:21 AM, Marcus Granado wrote: Hi, Our measurements for the multiqueue patch indicate a clear improvement in iops when more queues are used. The measurements were obtained under the following

[Xen-devel] [PATCH] xen/xenbus: Don't leak memory when unmapping the ring on HVM backend

2015-08-10 Thread Julien Grall
The commit ccc9d90a9a8b5c4ad7e9708ec41f75ff9e98d61d xenbus_client: Extend interface to support multi-page ring removes the call to free_xenballooned_pages in xenbus_unmap_ring_vfree_hvm. This will result to not give back the pages to Linux and loose them forever. It only happens when the backends

Re: [Xen-devel] [PATCH] xen/xenbus: Don't leak memory when unmapping the ring on HVM backend

2015-08-10 Thread Boris Ostrovsky
On 08/10/2015 02:10 PM, Julien Grall wrote: The commit ccc9d90a9a8b5c4ad7e9708ec41f75ff9e98d61d xenbus_client: Extend interface to support multi-page ring removes the call to free_xenballooned_pages in xenbus_unmap_ring_vfree_hvm. This will result to not give back the pages to Linux and loose

Re: [Xen-devel] [PATCHv1] xen/events/fifo: Handle linked events when closing a PIRQ port

2015-08-10 Thread David Vrabel
On 10/08/15 17:47, li...@eikelenboom.it wrote: On 2015-08-10 16:24, David Vrabel wrote: Commit fcdf31a7c162de0c93a2bee51df4688ab0a348f8 (xen/events/fifo: Handle linked events when closing a port) did not handle closing a port bound to a PIRQ because these are closed from shutdown_pirq() which

Re: [Xen-devel] [PATCH] xen/xenbus: Don't leak memory when unmapping the ring on HVM backend

2015-08-10 Thread Wei Liu
On Mon, Aug 10, 2015 at 07:10:38PM +0100, Julien Grall wrote: The commit ccc9d90a9a8b5c4ad7e9708ec41f75ff9e98d61d xenbus_client: Extend interface to support multi-page ring removes the call to free_xenballooned_pages in xenbus_unmap_ring_vfree_hvm. This will result to not give back the pages

Re: [Xen-devel] [PATCH] x86: Allow PV guest set X86_CR4_PCE flag

2015-08-10 Thread Andrew Cooper
On 10/08/15 15:27, Boris Ostrovsky wrote: With added PV support for VPMU, guests may legitimately decide to set CR4's PCE flag. We should allow this when VPMU is enabled. Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Why? Even a PV guest using VPMU should know that it doesn't

Re: [Xen-devel] [PATCH RFC for-4.6 1/4] libxl: Move check for local access to a funciton

2015-08-10 Thread George Dunlap
On Mon, Aug 10, 2015 at 8:11 PM, George Dunlap george.dun...@eu.citrix.com wrote: Move pygrub checks for local access ability into a separate function. Also reorganize libxl__device_disk_local_initiate_attach so that we don't initialize dls-disk unless we actually end up doing a local attach.

Re: [Xen-devel] [PATCH v2 20/23] x86: add multiboot2 protocol support for EFI platforms

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:15PM +0200, Daniel Kiper wrote: Signed-off-by: Daniel Kiper daniel.ki...@oracle.com --- v2 - suggestions/fixes: - generate multiboot2 header using macros (suggested by Jan Beulich), - switch CPU to x86_32 mode before jumping to 32-bit code

Re: [Xen-devel] [PATCH v2 21/23] x86/boot: implement early command line parser in C

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:16PM +0200, Daniel Kiper wrote: Current early command line parser implementation in assembler is very difficult to change to relocatable stuff using segment registers. This requires a lot of changes in very weird and fragile code. So, reimplement this

Re: [Xen-devel] [PATCH] x86: Allow PV guest set X86_CR4_PCE flag

2015-08-10 Thread Andrew Cooper
On 10/08/15 15:49, Boris Ostrovsky wrote: On 08/10/2015 10:37 AM, Andrew Cooper wrote: On 10/08/15 15:27, Boris Ostrovsky wrote: With added PV support for VPMU, guests may legitimately decide to set CR4's PCE flag. We should allow this when VPMU is enabled. Signed-off-by: Boris Ostrovsky

Re: [Xen-devel] Developing Desktop Window Integration

2015-08-10 Thread Dario Faggioli
On Fri, 2015-08-07 at 12:55 -0400, hanji unit wrote: I have started looking at what would be required. It looks like a full graphical stack implementation, including userland, kernelmode, and possibly even VGA device code. For these reasons, I think it will be a large undertaking and want to

[Xen-devel] OVMF BoF @ KVM Forum 2015

2015-08-10 Thread Laszlo Ersek
Hi. Let's do an OVMF BoF at this year's KVM Forum too. Paolo will present Securing secure boot: system management mode in KVM and Tiano Core on Thursday, August 20, in the 5:00pm - 5:30pm time slot. Right after that, the BoF section starts at 5:30pm:

Re: [Xen-devel] [PATCH v2 04/23] x86/boot: call reloc() using cdecl calling convention

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:28:59PM +0200, Daniel Kiper wrote: Suggested-by: Jan Beulich jbeul...@suse.com Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- xen/arch/x86/boot/head.S |4 +++- xen/arch/x86/boot/reloc.c |

[Xen-devel] [linux-3.18 test] 60642: regressions - FAIL

2015-08-10 Thread osstest service owner
flight 60642 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/60642/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-pvh-intel 11 guest-start fail REGR. vs. 58581 Regressions which are

Re: [Xen-devel] [PATCH 3.2 110/110] x86/ldt: Make modify_ldt synchronous

2015-08-10 Thread Andy Lutomirski
On Mon, Aug 10, 2015 at 3:12 AM, Ben Hutchings b...@decadent.org.uk wrote: 3.2.71-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski l...@kernel.org commit 37868fe113ff2ba814b3b4eb12df214df555f8dc upstream. Unfortunately, this

Re: [Xen-devel] [PATCH v2 11/23] efi: split out efi_init()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:06PM +0200, Daniel Kiper wrote: ..which initializes basic EFI variables. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com

Re: [Xen-devel] [PATCH v2 12/23] efi: split out efi_console_set_mode()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:07PM +0200, Daniel Kiper wrote: ..which sets console mode. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- v2 -

Re: [Xen-devel] [PATCH v2 13/23] efi: split out efi_get_gop()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:08PM +0200, Daniel Kiper wrote: ..which gets pointer to GOP device. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com ---

Re: [Xen-devel] [PATCH v2 18/23] efi: split out efi_exit_boot()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:13PM +0200, Daniel Kiper wrote: ..which gets memory map and calls ExitBootServices(). We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk

[Xen-devel] [PATCH RFC for-4.6 4/4] libxl: Allow local access for block devices with hotplug scripts

2015-08-10 Thread George Dunlap
pygrub and qemuu need to be able to access a VM's disks locally in order to be able to pull out the kernel and provide emulated disk access, respectively. This can be done either by accessing the local disk directly, or by plugging the target disk into dom0 to allow access. Unfortunately, while

Re: [Xen-devel] [PATCH v2 09/23] efi: create efi_enabled()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:04PM +0200, Daniel Kiper wrote: We need more fine grained knowledge about EFI environment and check for EFI platform and EFI loader separately to properly support multiboot2 protocol. In general Xen loaded by this protocol uses memory mappings and loaded modules

Re: [Xen-devel] [PATCH v2 15/23] efi: split out efi_tables()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:10PM +0200, Daniel Kiper wrote: ..which collects system tables data. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com ---

[Xen-devel] Clarification regarding xen toolstack for booting a pv guest

2015-08-10 Thread sainath grandhi
Hello all, I was measuring amount of time taken on host by the Xen toolstack while launching a PV guest. I notice that there is around 2-3 seconds of time spent on dom0 by toolstack before guest starts executing. Significant amount of time is taken in the function xc_dom_boot_mem_init, around

[Xen-devel] [PATCH RFC for-4.6 2/4] libxl: Share logic for finding path between qemuu and pygrub

2015-08-10 Thread George Dunlap
qemu can also access disks which will be provided with a qdisk backend directly; add a flag to libxl__device_disk_find_local_path to indicate whether to check for qdisk direct access. Reorganize the qemuu disk argument code to make a clean separation between finding a file to use (if any), and

[Xen-devel] [PATCH RFC for-4.6 3/4] tools/hotplug: Add a dummy hotplug script for testing

2015-08-10 Thread George Dunlap
Testing the hotplug external script path at the moment involves actually setting up one of the alternate datapaths (blktap, iscsi, c). Simplify testing by making a script which does a simple loopback, but still has a target that can't be used directly. To use:

[Xen-devel] [PATCH RFC for-4.6 1/4] libxl: Move check for local access to a funciton

2015-08-10 Thread George Dunlap
Move pygrub checks for local access ability into a separate function. Also reorganize libxl__device_disk_local_initiate_attach so that we don't initialize dls-disk unless we actually end up doing a local attach. Signed-off-by: George Dunlap george.dun...@eu.citrix.com --- CC: Ian Campbell

[Xen-devel] [PATCH v7 6/7] xen/PMU: PMU emulation code

2015-08-10 Thread Boris Ostrovsky
Add PMU emulation code that runs when we are processing a PMU interrupt. This code will allow us not to trap to hypervisor on each MSR/LVTPC access (of which there may be quite a few in the handler). Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Reviewed-by: David Vrabel

[Xen-devel] [PATCH v7 1/7] xen: xensyms support

2015-08-10 Thread Boris Ostrovsky
Export Xen symbols to dom0 via /proc/xen/xensyms (similar to /proc/kallsyms). Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Reviewed-by: David Vrabel david.vra...@citrix.com --- drivers/xen/Kconfig | 8 +++ drivers/xen/xenfs/Makefile | 1 +

[Xen-devel] [PATCH v7 2/7] xen/PMU: Sysfs interface for setting Xen PMU mode

2015-08-10 Thread Boris Ostrovsky
Set Xen's PMU mode via /sys/hypervisor/pmu/pmu_mode. Add XENPMU hypercall. Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- Documentation/ABI/testing/sysfs-hypervisor-pmu | 23 + arch/x86/include/asm/xen/hypercall.h

[Xen-devel] [PATCH v7 0/7] xen/PMU: PMU support for Xen PV(H) guests

2015-08-10 Thread Boris Ostrovsky
Changes in v7: * Added patch 7 to prevent passing CR4's PCE bit to the hypervisor. * Replaced WARN_ONCE()s with pr_warn_once() since stacks/registers are not especially interesting at those sites (and because other places use pr_() routines too) (patches 3 and 6) * Made xensyms_next_sym

[Xen-devel] [PATCH v7 5/7] xen/PMU: Intercept PMU-related MSR and APIC accesses

2015-08-10 Thread Boris Ostrovsky
Provide interfaces for recognizing accesses to PMU-related MSRs and LVTPC APIC and process these accesses in Xen PMU code. (The interrupt handler performs XENPMU_flush right away in the beginning since no PMU emulation is available. It will be added with a later patch). Signed-off-by: Boris

[Xen-devel] [PATCH v7 3/7] xen/PMU: Initialization code for Xen PMU

2015-08-10 Thread Boris Ostrovsky
Map shared data structure that will hold CPU registers, VPMU context, V/PCPU IDs of the CPU interrupted by PMU interrupt. Hypervisor fills this information in its handler and passes it to the guest for further processing. Set up PMU VIRQ. Now that perf infrastructure will assume that PMU is

[Xen-devel] [PATCH v7 4/7] xen/PMU: Describe vendor-specific PMU registers

2015-08-10 Thread Boris Ostrovsky
AMD and Intel PMU register initialization and helpers that determine whether a register belongs to PMU. This and some of subsequent PMU emulation code is somewhat similar to Xen's PMU implementation. Signed-off-by: Boris Ostrovsky boris.ostrov...@oracle.com Reviewed-by: David Vrabel

Re: [Xen-devel] [PATCH v2 08/23] x86: add multiboot2 protocol support

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:03PM +0200, Daniel Kiper wrote: Add multiboot2 protocol support. Alter min memory limit handling as we now may not find it from either multiboot (v1) or multiboot2. This way we are laying the foundation for EFI + GRUB2 + Xen development. Signed-off-by: Daniel

Re: [Xen-devel] [PATCH v2 10/23] efi: build xen.gz with EFI code

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:05PM +0200, Daniel Kiper wrote: Build xen.gz with EFI code. We need this to support multiboot2 protocol on EFI platforms. If we wish to load not ELF file using multiboot (v1) or multiboot2 then it must contain linear (or flat) representation of code and data.

Re: [Xen-devel] [PATCH v2 14/23] efi: split out efi_find_gop_mode()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:09PM +0200, Daniel Kiper wrote: ..which finds suitable GOP mode. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- v2 -

Re: [Xen-devel] [PATCH v2 17/23] efi: split out efi_set_gop_mode()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:12PM +0200, Daniel Kiper wrote: ..which sets chosen GOP mode. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com --- v2 -

Re: [Xen-devel] [PATCH v2 16/23] efi: split out efi_variables()

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:11PM +0200, Daniel Kiper wrote: ..which collects variable store parameters. We want to re-use this code to support multiboot2 protocol on EFI platforms. Signed-off-by: Daniel Kiper daniel.ki...@oracle.com Reviewed-by: Konrad Rzeszutek Wilk konrad.w...@oracle.com

Re: [Xen-devel] [PATCH v2 19/23] x86/efi: create new early memory allocator

2015-08-10 Thread Konrad Rzeszutek Wilk
On Mon, Jul 20, 2015 at 04:29:14PM +0200, Daniel Kiper wrote: There is a problem with place_string() which is used as early memory allocator. It gets memory chunks starting from start symbol and going down. Sadly this does not work when Xen is loaded using multiboot2 protocol because start

Re: [Xen-devel] Design doc of adding ACPI support for arm64 on Xen - version 2

2015-08-10 Thread Shannon Zhao
Hi Julien, On 2015/8/7 18:33, Julien Grall wrote: Hi Shannon, Just some clarification questions. On 07/08/15 03:11, Shannon Zhao wrote: 3. Dom0 gets grant table and event channel irq information --- As said above, we assign the

Re: [Xen-devel] how can I find hypercall page address?

2015-08-10 Thread big strong
My goal is to intercept hyprcalls to detect malicious calls. So I need firstly find where the hypercalls are. My plan is to locate hypercall page first, then walk through the hypercall page to get address of hyperccalls. If there is any other solutions, please let me know. Thanks very much.

Re: [Xen-devel] Clarification regarding xen toolstack for booting a pv guest

2015-08-10 Thread Wei Liu
On Mon, Aug 10, 2015 at 05:00:51PM -0700, sainath grandhi wrote: Hello all, I was measuring amount of time taken on host by the Xen toolstack while launching a PV guest. I notice that there is around 2-3 seconds of time spent on dom0 by toolstack before guest starts executing.

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

2015-08-10 Thread osstest service owner
flight 60644 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/60644/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-win7-amd64 6 xen-boot fail REGR. vs. 30511 Tests which are

Re: [Xen-devel] Does Xen project have test suites for testing xc/xl/hypercall and so on?

2015-08-10 Thread Lars Kurth
There is some very minimal functionality in Raisin for testing, which Stefano is working on. See https://blog.xenproject.org/2015/06/28/project-raisin-raise-xen/ Lars On 10 Aug 2015, at 13:18, Andrew Cooper andrew.coop...@citrix.com wrote: On 07/08/15 09:47, Jinjian (Ken) wrote: Hi all,

Re: [Xen-devel] [xen 4.6 retrospective] More public/easy to find information about the release schedule

2015-08-10 Thread Lars Kurth
On 10 Aug 2015, at 10:40, Fabio Fantoni fabio.fant...@m2r.biz wrote: Il 10/08/2015 11:06, Lars Kurth ha scritto: On 10 Aug 2015, at 09:33, Wei Liu wei.l...@citrix.com wrote: On Fri, Aug 07, 2015 at 05:36:57PM +0200, Roger Pau Monné wrote: = Issue / Observation = The information about

Re: [Xen-devel] [PATCH v3 09/20] xen/biomerge: Don't allow biovec to be merge when Linux is not using 4KB page

2015-08-10 Thread David Vrabel
On 10/08/15 12:32, Julien Grall wrote: On 10/08/15 12:25, Stefano Stabellini wrote: yes and page/pages: xen/biomerge: Don't allow biovec's to be merged when Linux is not using 4KB pages Why the ' in biovec's ? Shouldn't we says biovecs directly? Pluralizing named C structures with

Re: [Xen-devel] [PATCH v3 20/20] arm/xen: Add support for 64KB page granularity

2015-08-10 Thread Stefano Stabellini
On Fri, 7 Aug 2015, Julien Grall wrote: The hypercall interface is always using 4KB page granularity. This is requiring to use xen page definition macro when we deal with hypercall. Note that pfn_to_gfn is working with a Xen pfn (i.e 4KB). We may want to rename pfn_gfn to make this explicit.

Re: [Xen-devel] [PATCH v3 12/20] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-08-10 Thread Stefano Stabellini
On Mon, 10 Aug 2015, Julien Grall wrote: Hi Stefano, On 10/08/15 12:18, Stefano Stabellini wrote: /* Link back into the page tables if not highmem. */ @@ -396,14 +413,15 @@ static enum bp_state increase_reservation(unsigned long nr_pages) static enum bp_state

Re: [Xen-devel] [PATCH v3 19/20] xen/privcmd: Add support for Linux 64KB page granularity

2015-08-10 Thread Stefano Stabellini
On Mon, 10 Aug 2015, David Vrabel wrote: On 10/08/15 13:03, Stefano Stabellini wrote: On Fri, 7 Aug 2015, Julien Grall wrote: - rc = HYPERVISOR_memory_op(XENMEM_add_to_physmap_range, xatp); - return rc 0 ? rc : err; + for (i = 0; i nr_gfn; i++) { + if ((i %

Re: [Xen-devel] Does Xen project have test suites for testing xc/xl/hypercall and so on?

2015-08-10 Thread Stefano Stabellini
Hi Jinjian, validating changes made by contributors before submitting their patches to xen-devel, is exactly the reason why I introduced raise test in raisin. However the number of tests available is still very limited and the functionality pretty immature. Of course I would be happy to take

[Xen-devel] [PATCH for-4.6 v2 4/4] oxenstored: move sd_notify_ready out of main loop

2015-08-10 Thread Wei Liu
Oxenstored only needs to notify systemd its readiness state once. Move sd_notify_ready out of main loop. Signed-off-by: Wei Liu wei.l...@citrix.com Acked-by: Dave Scott dave.sc...@eu.citrix.com --- For 4.6: avoid wasting CPU cycles, easy to reason its correctness. There is a small risk that

[Xen-devel] [PATCH for-4.6 v2 1/4] cxenstored: fix systemd socket activation

2015-08-10 Thread Wei Liu
There were two problems with original code: 1. sd_booted() was used to determined if the process was started by systemd, which was wrong. 2. Exit with error if pidfile was specified, which was too harsh. These two combined made cxenstored unable to start by hand if it ran on a system which

[Xen-devel] [PATCH for-4.6 v2 3/4] oxenstored: fix systemd socket activation

2015-08-10 Thread Wei Liu
Use the correct API sd_listen_fds to determine whether the process is started by systemd. Change sd_booted to launched_by_systemd to avoid confusion with systemd's API. Signed-off-by: Wei Liu wei.l...@citrix.com Acked-by: Dave Scott dave.sc...@eu.citrix.com Acked-by: Ian Campbell

[Xen-devel] [PATCH for-4.6 v2 0/4] Patches for c/oxenstored

2015-08-10 Thread Wei Liu
Wei Liu (4): cxenstored: fix systemd socket activation cxenstored: document a bunch of short options in help string oxenstored: fix systemd socket activation oxenstored: move sd_notify_ready out of main loop tools/ocaml/xenstored/systemd.ml | 2 +- tools/ocaml/xenstored/systemd.mli

[Xen-devel] [PATCH for-4.6 v2 2/4] cxenstored: document a bunch of short options in help string

2015-08-10 Thread Wei Liu
Signed-off-by: Wei Liu wei.l...@citrix.com Acked-by: Ian Campbell ian.campb...@citrix.com --- For 4.6: pure doc changes, risk free. --- tools/xenstore/xenstored_core.c | 30 +++--- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git

Re: [Xen-devel] [RFC 1/4] HVM x86 deprivileged mode: Page allocation helper

2015-08-10 Thread Tim Deegan
Hi, At 10:57 +0100 on 07 Aug (1438945038), Ben Catterall wrote: On 06/08/15 20:22, Andrew Cooper wrote: On 06/08/15 17:45, Ben Catterall wrote: This allocation function is used by the deprivileged mode initialisation code to allocate pages for the new page table mappings and page frames

Re: [Xen-devel] [xen 4.6 retrospective] More public/easy to find information about the release schedule

2015-08-10 Thread Lars Kurth
On 10 Aug 2015, at 09:33, Wei Liu wei.l...@citrix.com wrote: On Fri, Aug 07, 2015 at 05:36:57PM +0200, Roger Pau Monné wrote: = Issue / Observation = The information about the release schedule is not clearly published anywhere apart from the mailing lists, which makes it hard for

Re: [Xen-devel] [xen 4.6 retrospective] More public/easy to find information about the release schedule

2015-08-10 Thread Fabio Fantoni
Il 10/08/2015 11:06, Lars Kurth ha scritto: On 10 Aug 2015, at 09:33, Wei Liu wei.l...@citrix.com wrote: On Fri, Aug 07, 2015 at 05:36:57PM +0200, Roger Pau Monné wrote: = Issue / Observation = The information about the release schedule is not clearly published anywhere apart from the mailing

Re: [Xen-devel] Can I xc_await_suspend() for a suspend event caused by another application?

2015-08-10 Thread Andrew Cooper
On 10/08/15 10:28, Razvan Cojocaru wrote: I've noticed that the xc_suspend_evtchn_init() functions in xenguest.h connect the client application to a guest suspend event channel, and that it's possible to subscribe to these events, in theory even if you never signal the channel (i.e. even if

Re: [Xen-devel] [PATCH v3 1/2] Differentiate IO/mem resources tracked by ioreq server

2015-08-10 Thread Wei Liu
On Mon, Aug 10, 2015 at 11:33:40AM +0800, Yu Zhang wrote: Currently in ioreq server, guest write-protected ram pages are tracked in the same rangeset with device mmio resources. Yet unlike device mmio, which can be in big chunks, the guest write- protected pages may be discrete ranges with 4K

[Xen-devel] OSSTest-- Leases::check_ip() ignore guest free IP

2015-08-10 Thread Hu, Robert
Hi, Say such a leases file: lease 192.168.199.124 { starts 4 2015/08/06 08:46:50; ends 4 2015/08/06 08:58:50; cltt 4 2015/08/06 08:46:50; binding state active; next binding state free; hardware ethernet 5e:36:0e:f5:00:02; uid \001^6\016\365\000\002; } lease 192.168.199.242 {

Re: [Xen-devel] [RFC 3/4] HVM x86 deprivileged mode: Code for switching into/out of deprivileged mode

2015-08-10 Thread Tim Deegan
Hi, At 17:45 +0100 on 06 Aug (1438883118), Ben Catterall wrote: The process to switch into and out of deprivileged mode can be likened to setjmp/longjmp. To enter deprivileged mode, we take a copy of the stack from the guest's registers up to the current stack pointer. This copy is pretty

[Xen-devel] [xen-unstable test] 60639: tolerable FAIL

2015-08-10 Thread osstest service owner
flight 60639 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/60639/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-i386-xl-qemut-stubdom-debianhvm-amd64-xsm 9 debian-hvm-install fail like 60624

Re: [Xen-devel] [PATCH v3 1/2] Differentiate IO/mem resources tracked by ioreq server

2015-08-10 Thread Paul Durrant
-Original Message- From: Wei Liu [mailto:wei.l...@citrix.com] Sent: 10 August 2015 09:26 To: Yu Zhang Cc: xen-devel@lists.xen.org; Paul Durrant; Ian Jackson; Stefano Stabellini; Ian Campbell; Wei Liu; Keir (Xen.org); jbeul...@suse.com; Andrew Cooper; Kevin Tian;

Re: [Xen-devel] [xen 4.6 retrospective] More public/easy to find information about the release schedule

2015-08-10 Thread Wei Liu
On Fri, Aug 07, 2015 at 05:36:57PM +0200, Roger Pau Monné wrote: = Issue / Observation = The information about the release schedule is not clearly published anywhere apart from the mailing lists, which makes it hard for non-developers (or even for developers) given that the mailing list

Re: [Xen-devel] [RFC 1/4] HVM x86 deprivileged mode: Page allocation helper

2015-08-10 Thread Tim Deegan
At 09:50 +0100 on 10 Aug (1439200241), Tim Deegan wrote: Hi, At 10:57 +0100 on 07 Aug (1438945038), Ben Catterall wrote: On 06/08/15 20:22, Andrew Cooper wrote: On 06/08/15 17:45, Ben Catterall wrote: This allocation function is used by the deprivileged mode initialisation code

Re: [Xen-devel] [RFC 1/4] HVM x86 deprivileged mode: Page allocation helper

2015-08-10 Thread Andrew Cooper
On 10/08/2015 09:52, Tim Deegan wrote: At 09:50 +0100 on 10 Aug (1439200241), Tim Deegan wrote: Hi, At 10:57 +0100 on 07 Aug (1438945038), Ben Catterall wrote: On 06/08/15 20:22, Andrew Cooper wrote: On 06/08/15 17:45, Ben Catterall wrote: This allocation function is used by the

Re: [Xen-devel] Linux 4.2-rc5:

2015-08-10 Thread Ross Lagerwall
On 08/06/2015 08:51 PM, li...@eikelenboom.it wrote: Hi Ross, On my dom0 with a linux 4.2-rc5 kernel i encoutered the splat below. It's probably related to your patch that went in just for 4.2-rc5: xen/events/fifo: Handle linked events when closing a port -- Sander [ 49.020173] [

Re: [Xen-devel] Can I xc_await_suspend() for a suspend event caused by another application?

2015-08-10 Thread Razvan Cojocaru
I've noticed that the xc_suspend_evtchn_init() functions in xenguest.h connect the client application to a guest suspend event channel, and that it's possible to subscribe to these events, in theory even if you never signal the channel (i.e. even if you don't issue a suspend request). But

Re: [Xen-devel] [PATCH v3 18/20] net/xen-netback: Make it running on 64KB page granularity

2015-08-10 Thread Julien Grall
Hi Wei, On 08/08/2015 15:55, Wei Liu wrote: struct xenvif_rx_meta { int id; @@ -80,16 +81,18 @@ struct xenvif_rx_meta { /* Discriminate from any valid pending_idx value. */ #define INVALID_PENDING_IDX 0x -#define MAX_BUFFER_OFFSET PAGE_SIZE +#define MAX_BUFFER_OFFSET

Re: [Xen-devel] [PATCH v4 31/31] libxl: allow the creation of HVM domains without a device model.

2015-08-10 Thread Paul Durrant
-Original Message- From: xen-devel-boun...@lists.xen.org [mailto:xen-devel- boun...@lists.xen.org] On Behalf Of Andrew Cooper Sent: 07 August 2015 19:42 To: Wei Liu; Roger Pau Monne Cc: xen-de...@lists.xenproject.org; Ian Jackson; Ian Campbell; Stefano Stabellini Subject: Re:

Re: [Xen-devel] [PATCH v6 0/6] xen/PMU: PMU support for Xen PV(H) guests

2015-08-10 Thread Stefano Stabellini
On Sun, 9 Aug 2015, Boris Ostrovsky wrote: Changes in v6: * Fix ARM builds (as suggested by Julien): o Make XEN_SYMS depend on X86 (patch 1) o Add CONFIG_XEN_HAVE_PVMMU and use it in drivers/xen/sys-hypervisor.c (patch 2) * Adjust release dates in

Re: [Xen-devel] [PATCH v3 9/9] xen/xenbus: Rename the variable xen_store_mfn to xen_store_gfn

2015-08-10 Thread Stefano Stabellini
On Fri, 7 Aug 2015, Julien Grall wrote: The variable xen_store_mfn is effectively storing a GFN and not an MFN. Signed-off-by: Julien Grall julien.gr...@citrix.com Reviewed-by: Stefano Stabellini stefano.stabell...@eu.citrix.com Cc: Konrad Rzeszutek Wilk konrad.w...@oracle.com Cc: Boris

Re: [Xen-devel] [PATCH V5 3/7] libxl: add pvusb API

2015-08-10 Thread George Dunlap
On 08/07/2015 03:31 AM, Chun Yan Liu wrote: +(devid, libxl_devid), +(version, integer), +(ports, integer), +(backend_domid, libxl_domid), +(backend_domname, string), + ]) + +libxl_device_usb = Struct(device_usb, [ +(ctrl, libxl_devid),

[Xen-devel] [PATCH 3.2 109/110] x86/xen: Probe target addresses in set_aliased_prot() before the hypercall

2015-08-10 Thread Ben Hutchings
3.2.71-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski l...@kernel.org commit aa1acff356bbedfd03b544051f5b371746735d89 upstream. The update_va_mapping hypercall can fail if the VA isn't present in the guest's page tables. Under

[Xen-devel] [PATCH V6 1/7] libxl: export some functions for pvusb use

2015-08-10 Thread Chunyan Liu
Signed-off-by: Chunyan Liu cy...@suse.com Signed-off-by: Simon Cao caobosi...@gmail.com --- tools/libxl/libxl.c | 4 ++-- tools/libxl/libxl_internal.h | 3 +++ 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/tools/libxl/libxl.c b/tools/libxl/libxl.c index 083f099..006e8da

[Xen-devel] [PATCH V6 3/7] libxl: add pvusb API

2015-08-10 Thread Chunyan Liu
Add pvusb APIs, including: - attach/detach (create/destroy) virtual usb controller. - attach/detach usb device - list usb controller and usb devices - some other helper functions Signed-off-by: Chunyan Liu cy...@suse.com Signed-off-by: Simon Cao caobosi...@gmail.com --- changes: - Address

[Xen-devel] [PATCH V6 6/7] xl: add usb-assignable-list command

2015-08-10 Thread Chunyan Liu
Add xl usb-assignable-list command to list assignable USB devices. Assignable USB device means the USB device type is assignable and it's not assigned to any guest yet. Signed-off-by: Chunyan Liu cy...@suse.com --- Same as libxl: add libxl_device_usb_assignable_list API patch, this patch

[Xen-devel] [PATCH V6 7/7] domcreate: support pvusb in configuration file

2015-08-10 Thread Chunyan Liu
Add code to support pvusb in domain config file. One could specify usbctrl and usb in domain's configuration file and create domain, then usb controllers will be created and usb device would be attached to guest automatically. One could specify usb controllers and usb devices in config file like

[Xen-devel] [PATCH V6 2/7] libxl_read_file_contents: add new entry to read sysfs file

2015-08-10 Thread Chunyan Liu
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 fails. Add a new entry libxl_read_sysfs_file_contents to handle sysfs

Re: [Xen-devel] [PATCH v3 03/20] xen: Add Xen specific page definition

2015-08-10 Thread Stefano Stabellini
On Fri, 7 Aug 2015, Julien Grall wrote: The Xen hypercall interface is always using 4K page granularity on ARM and x86 architecture. With the incoming support of 64K page granularity for ARM64 guest, it won't be possible to re-use the Linux page definition in Xen drivers. Introduce Xen

Re: [Xen-devel] [RFC 1/4] HVM x86 deprivileged mode: Page allocation helper

2015-08-10 Thread Tim Deegan
At 09:55 +0100 on 10 Aug (1439200516), Andrew Cooper wrote: On 10/08/2015 09:52, Tim Deegan wrote: Whie I agree that it would be good to account this to the domain, paging-alloc_page() is an internal _paging assistance_ helper. :) This new allocation is nothing to do with

Re: [Xen-devel] [PATCH v3 02/20] arm/xen: Drop pte_mfn and mfn_pte

2015-08-10 Thread Stefano Stabellini
On Fri, 7 Aug 2015, Julien Grall wrote: They are not used in common code expect in one place in balloon.c which is only compiled when Linux is using PV MMU. It's not the case on ARM. Rather than worrying how to handle the 64KB case, drop them. Signed-off-by: Julien Grall

Re: [Xen-devel] [RFC 3/4] HVM x86 deprivileged mode: Code for switching into/out of deprivileged mode

2015-08-10 Thread Andrew Cooper
On 10/08/15 10:49, Tim Deegan wrote: Hi, At 17:45 +0100 on 06 Aug (1438883118), Ben Catterall wrote: The process to switch into and out of deprivileged mode can be likened to setjmp/longjmp. To enter deprivileged mode, we take a copy of the stack from the guest's registers up to the

[Xen-devel] [PATCH 3.2 110/110] x86/ldt: Make modify_ldt synchronous

2015-08-10 Thread Ben Hutchings
3.2.71-rc1 review patch. If anyone has any objections, please let me know. -- From: Andy Lutomirski l...@kernel.org commit 37868fe113ff2ba814b3b4eb12df214df555f8dc upstream. modify_ldt() has questionable locking and does not synchronize threads. Improve it: redesign the

[Xen-devel] [PATCH V6 0/7] xen pvusb toolstack work

2015-08-10 Thread Chunyan Liu
This patch series is to add pvusb toolstack work, supporting hot add|remove USB device to|from guest and specify USB device in domain configuration file. Changes to V5: * Address George's comments on libxl API and Ian's comments on libxl_read_sysfs_file_content V5 is here:

[Xen-devel] [PATCH V6 4/7] libxl: add libxl_device_usb_assignable_list API

2015-08-10 Thread Chunyan Liu
Add API for listing assignable USB devices info. Assignable USB device means the USB device type is assignable and it's not assigned to any guest yet. Signed-off-by: Chunyan Liu cy...@suse.com --- This could be squashed with previous patch. Split because there is some dispute on this. If this is

Re: [Xen-devel] [PATCH v3 19/20] xen/privcmd: Add support for Linux 64KB page granularity

2015-08-10 Thread Julien Grall
Hi Stefano, On 10/08/15 13:57, Stefano Stabellini wrote: On Mon, 10 Aug 2015, David Vrabel wrote: On 10/08/15 13:03, Stefano Stabellini wrote: On Fri, 7 Aug 2015, Julien Grall wrote: - rc = HYPERVISOR_memory_op(XENMEM_add_to_physmap_range, xatp); - return rc 0 ? rc : err; + for (i = 0;

Re: [Xen-devel] [PATCH v3 12/20] xen/balloon: Don't rely on the page granularity is the same for Xen and Linux

2015-08-10 Thread Julien Grall
On 10/08/15 13:55, Stefano Stabellini wrote: If your only concern is the size of the array, we could decrease the number of frames by batch. Or allocation the variable once a boot time. Yes, that is my only concern. Allocating only nr_pages new struct page* would be good enough I guess.

  1   2   >