[Xen-devel] [libvirt test] 33834: tolerable FAIL - PUSHED

2015-01-27 Thread xen . org
flight 33834 libvirt real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/33834/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 9 guest-start fail never pass test-amd64-i386-libvirt 9 guest-start

[Xen-devel] [linux-3.10 test] 33831: regressions - FAIL

2015-01-27 Thread xen . org
flight 33831 linux-3.10 real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/33831/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-libvirt 5 xen-boot fail REGR. vs. 26303 test-amd64-i386-qemuu-

[Xen-devel] [PATCH 3/5] xen: add some __init and static annotations in arch/x86/xen/setup.c

2015-01-27 Thread Juergen Gross
Some more functions in arch/x86/xen/setup.c can be made "__init". xen_ignore_unusable() can be made "static". Signed-off-by: Juergen Gross --- arch/x86/xen/setup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/arch/x86/xen/setup.c b/arch/x86/xen/setup.c index 4dcc608.

[Xen-devel] [PATCH 2/5] xen: use correct types for addresses in arch/x86/xen/setup.c

2015-01-27 Thread Juergen Gross
In many places in arch/x86/xen/setup.c wrong types are used for physical addresses (u64 or unsigned long long). Use phys_addr_t instead. Use macros already defined instead of open coding them. Correct some other type mismatches. Signed-off-by: Juergen Gross --- arch/x86/xen/setup.c | 25 ++

[Xen-devel] [PATCH 5/5] xen: cleanup arch/x86/xen/mmu.c

2015-01-27 Thread Juergen Gross
Remove a nested ifdef. Signed-off-by: Juergen Gross --- arch/x86/xen/mmu.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 6a8bbf4..adca9e2 100644 --- a/arch/x86/xen/mmu.c +++ b/arch/x86/xen/mmu.c @@ -1734,10 +1734,8 @@ static void __init xen_ma

[Xen-devel] [PATCH 4/5] xen: add some __init annotations in arch/x86/xen/mmu.c

2015-01-27 Thread Juergen Gross
The file arch/x86/xen/mmu.c has some functions that can be annotated with "__init". Signed-off-by: Juergen Gross --- arch/x86/xen/mmu.c | 15 --- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/arch/x86/xen/mmu.c b/arch/x86/xen/mmu.c index 5c1f9ac..6a8bbf4 100644 --- a/

[Xen-devel] [PATCH 0/5] xen: various cleanups

2015-01-27 Thread Juergen Gross
Several cleanups in xen kernel files: - move declarations to header file - delete not needed lines - annotate functions as __init - make functions static - use correct types for addresses No functional changes. Juergen Gross (5): xen: cleanup arch/x86/xen/setup.c xen: use correct types for ad

[Xen-devel] [PATCH 1/5] xen: cleanup arch/x86/xen/setup.c

2015-01-27 Thread Juergen Gross
Remove extern declarations in arch/x86/xen/setup.c which are either not used or redundant. Move needed other extern declarations to xen-ops.h Signed-off-by: Juergen Gross --- arch/x86/xen/setup.c | 10 -- arch/x86/xen/xen-ops.h | 6 ++ 2 files changed, 6 insertions(+), 10 deletion

Re: [Xen-devel] [xs-devel] Xen Project Document Day this Wednesday, January 28: The Great 4.5 Clean-Up

2015-01-27 Thread Jesse Benedict
All, While I am waiting for my account to process, one item I wanted to add was related to creating a VM using vga=std | leave VM template alone to default to Cirrus. I thought *maybe* it could fit into this document (http://wiki.xen.org/wiki/XCP_PV_templates_start) ? Reason is that XAPI is r

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Andreas Herrmann
FYI, I am not actively working on the SMMU driver anymore. Andreas -- Pawns in the Game (W.G. Carr). Think twice: People addicted to media (all?) who believe w/o questioning all personalized information presented to them, are massively manipulable via social media and designed plots might becom

[Xen-devel] [Question] Using backend snapshots with a storage repository

2015-01-27 Thread Mike Tutkowski
Hi, I'm a software engineer at a data-storage company in Boulder called SolidFire. I work on the Apache CloudStack project on behalf of my company to help drive CloudStack's storage architecture forward. I have a question with regards to storage repositories and backend (SAN, in this case) snaps

Re: [Xen-devel] [v3 3/5] Qemu-Xen-vTPM: Register Xen stubdom vTPM frontend driver

2015-01-27 Thread Xu, Quan
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: Tuesday, January 20, 2015 1:19 AM > To: Xu, Quan > Cc: qemu-de...@nongnu.org; xen-devel@lists.xen.org; > stefano.stabell...@eu.citrix.com > Subject: Re: [v3 3/5] Qemu-Xen-vTPM: Register Xen s

Re: [Xen-devel] [RESEND Patch V2 1/4] xen: build infrastructure for generating hypercall depending symbols

2015-01-27 Thread Juergen Gross
*Ping* David wants a comment from the x86 maintainers. Juergen On 01/21/2015 08:49 AM, Juergen Gross wrote: Today there are several places in the kernel which build tables containing one entry for each possible Xen hypercall. Create an infrastructure to be able to generate these tables at bui

Re: [Xen-devel] [PATCH] libxl: Wait for ballooning if free memory is increasing

2015-01-27 Thread Mike Latimer
On Wednesday, January 21, 2015 10:22:53 PM Mike Latimer wrote: > During domain startup, all required memory ballooning must complete > within a maximum window of 33 seconds (3 retries, 11 seconds of delay). > If not, domain creation is aborted with a 'failed to free memory' error. > > In order to

Re: [Xen-devel] Xen Project Document Day this Wednesday, January 28: The Great 4.5 Clean-Up

2015-01-27 Thread Russ Pavlicek
Document Day is here! Please help us clean up the Wiki to properly reflect the 4.5 release. On Mon, Jan 26, 2015 at 11:38 AM, Russ Pavlicek wrote: > We want to begin this year by making sure that our documentation is > correct for the recent 4.5 release. > > Do you have new feature information?

Re: [Xen-devel] [PATCH RFC] p2m: p2m_mmio_direct set RW permissions

2015-01-27 Thread Tian, Kevin
> From: Elena Ufimtseva [mailto:elena.ufimts...@oracle.com] > Sent: Tuesday, January 27, 2015 11:06 PM > > On Tue, Jan 27, 2015 at 06:41:39AM +, Tian, Kevin wrote: > > > From: Elena Ufimtseva [mailto:elena.ufimts...@oracle.com] > > > Sent: Tuesday, January 27, 2015 1:31 AM > > > > > > On Mon,

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

2015-01-27 Thread xen . org
flight 33830 xen-unstable real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/33830/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-rumpuserxen-amd64 11 rumpuserxen-demo-xenstorels/xenstorels fail REGR. vs. 33637

Re: [Xen-devel] [PATCH v4 00/14] Enable vTPM subsystem on TPM 2.0

2015-01-27 Thread Xu, Quan
> -Original Message- > From: Stefano Stabellini [mailto:stefano.stabell...@eu.citrix.com] > Sent: Tuesday, January 27, 2015 11:48 PM > To: Xu, Quan > Cc: Stefano Stabellini; k...@xen.org; ian.campb...@citrix.com; t...@xen.org; > ian.jack...@eu.citrix.com; xen-devel@lists.xen.org; jbeul...

Re: [Xen-devel] [Qemu-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough

2015-01-27 Thread Chen, Tiejun
On 2015/1/27 22:40, Ian Jackson wrote: Chen, Tiejun writes ("Re: [Qemu-devel] [RFC][PATCH 1/1] libxl: add one machine property to support IGD GFX passthrough"): On 2015/1/23 8:43, Chen, Tiejun wrote: On 2015/1/22 8:51, Chen, Tiejun wrote: At this point I just concern here if we still use 'gfx

Re: [Xen-devel] backport a4dba130891271084344c12537731542ec77cb85 to 3.16+

2015-01-27 Thread Greg KH
On Mon, Jan 12, 2015 at 06:09:33PM +, Stefano Stabellini wrote: > Hi all, > I would like to request a backport of the following commit: > > > commit a4dba130891271084344c12537731542ec77cb85 > Author: Stefano Stabellini > Date: Fri Nov 21 11:07:39 2014 + > > xen/arm/arm64: introduc

Re: [Xen-devel] [PATCH] misc/xenmicrocode: Upload /lib/firmware/ to the hypervisor

2015-01-27 Thread Andrew Cooper
On 27/01/2015 23:17, Borislav Petkov wrote: > On Tue, Jan 27, 2015 at 10:26:00PM +, Andrew Cooper wrote: >> I am not convinced of the safely of permitting microcode updates at >> runtime. We have seen in the past that having mismatched microcode on >> different halfs of an AMD cluster causes s

Re: [Xen-devel] [PATCH] misc/xenmicrocode: Upload /lib/firmware/ to the hypervisor

2015-01-27 Thread Borislav Petkov
On Tue, Jan 27, 2015 at 10:26:00PM +, Andrew Cooper wrote: > I am not convinced of the safely of permitting microcode updates at > runtime. We have seen in the past that having mismatched microcode on > different halfs of an AMD cluster causes system crashes when non-root What kind of CPU mix

Re: [Xen-devel] [PATCH v2 04/12] xen/arm: device: Rename device_type into device_match

2015-01-27 Thread Julien Grall
On 27/01/2015 16:13, Stefano Stabellini wrote: On Tue, 27 Jan 2015, Julien Grall wrote: Hi Stefano, On 27/01/15 16:05, Stefano Stabellini wrote: On Fri, 16 Jan 2015, Julien Grall wrote: This enum was used for matching a specific device and not to get the type of device. Hence the name devi

Re: [Xen-devel] [PATCH] misc/xenmicrocode: Upload /lib/firmware/ to the hypervisor

2015-01-27 Thread Andrew Cooper
On 27/01/2015 20:11, Luis R. Rodriguez wrote: > From: Konrad Rzeszutek Wilk > > There are several ways that a Xen system can update the > CPU microcode on a pvops kernel [0] now, the preferred way > is through the early microcode update mechanism. At run > time folks should use this new xenmicroco

Re: [Xen-devel] [PATCH v3] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Julien Grall
Hi Oleksandr, Thank you for the quick change. On 27/01/2015 18:59, Oleksandr Tyshchenko wrote: Create preinit_xen_time() and move to it minimum required subset of operations needed to properly initialized cpu_khz and boot_count vars. This is allow us to use udelay() immediately after the call.

Re: [Xen-devel] [PATCH] misc/xenmicrocode: Upload /lib/firmware/ to the hypervisor

2015-01-27 Thread Luis R. Rodriguez
On Tue, Jan 27, 2015 at 04:25:09PM -0500, Boris Ostrovsky wrote: > On 01/27/2015 03:11 PM, Luis R. Rodriguez wrote: >> +fbuf = mmap(0, len, PROT_READ, MAP_PRIVATE, fd, 0); >> + >> +if ((xc_handle = xc_interface_open(0,0,0)) == 0) >> +{ >> +fprintf(stderr, "Error opening xc inter

[Xen-devel] [rumpuserxen test] 33833: all pass - PUSHED

2015-01-27 Thread xen . org
flight 33833 rumpuserxen real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/33833/ Perfect :-) All tests in this flight passed version targeted for testing: rumpuserxen a14a97d4d127b3a50d01e0171df3aec665d377a6 baseline version: rumpuserxen 598ceb54916b2a87c8646c96a23e

Re: [Xen-devel] EFI GetNextVariableName crashes when running under Xen, but not under Linux. efi-rs=0 works. No memmap issues

2015-01-27 Thread Konrad Rzeszutek Wilk
On Tue, Jan 27, 2015 at 09:18:58PM +0100, Daniel Kiper wrote: > On Tue, Jan 27, 2015 at 07:54:30AM +, Jan Beulich wrote: > > (re-adding xen-devel) > > > > >>> On 27.01.15 at 01:32, wrote: > > > On 27/01/2015 00:02, Daniel Kiper wrote: > > >> On Mon, Jan 26, 2015 at 05:00:41PM +, Jan Beulic

Re: [Xen-devel] [PATCH] misc/xenmicrocode: Upload /lib/firmware/ to the hypervisor

2015-01-27 Thread Boris Ostrovsky
On 01/27/2015 03:11 PM, Luis R. Rodriguez wrote: +fbuf = mmap(0, len, PROT_READ, MAP_PRIVATE, fd, 0); + +if ((xc_handle = xc_interface_open(0,0,0)) == 0) +{ +fprintf(stderr, "Error opening xc interface: %d (%s)\n", +errno, strerror(errno)); +return 1; +

[Xen-devel] [PATCH] ocaml/xenctrl: Check return values from hypercalls

2015-01-27 Thread Andrew Cooper
rather than blindly continuing and possibly using negative values. Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson CC: Wei Liu CC: Dave Scott --- Found with XenServers Coverity scanning. We have the sensitivity turned up higher than Coverity Scan, which does not flag these iss

[Xen-devel] [PATCH] tools/libxl: Correct static pattern rule for pkgconfig files

2015-01-27 Thread Andrew Cooper
Attempting to build libxl causes Make to emit the following warnings andrewcoop@andrewcoop:xen.git$ make -C tools/libxl all ... Makefile:253: target `xenlight.pc' doesn't match the target pattern Makefile:253: target `xlutil.pc' doesn't match the target pattern ... because the static pattern rule

Re: [Xen-devel] EFI GetNextVariableName crashes when running under Xen, but not under Linux. efi-rs=0 works. No memmap issues

2015-01-27 Thread Daniel Kiper
On Tue, Jan 27, 2015 at 07:54:30AM +, Jan Beulich wrote: > (re-adding xen-devel) > > >>> On 27.01.15 at 01:32, wrote: > > On 27/01/2015 00:02, Daniel Kiper wrote: > >> On Mon, Jan 26, 2015 at 05:00:41PM +, Jan Beulich wrote: > >> On 26.01.15 at 17:27, wrote: > Anyhow I am bit stu

Re: [Xen-devel] [PATCH v5 2/2] x86/xen: allow privcmd hypercalls to be preempted on 64-bit

2015-01-27 Thread Luis R. Rodriguez
On Tue, Jan 27, 2015 at 10:06:44AM +, David Vrabel wrote: > On 27/01/15 08:35, Jan Beulich wrote: > On 27.01.15 at 02:51, wrote: > > > > Even if David told you this would be acceptable, I have to question > > an abstract model of fixing issues on only 64-bit kernels - this may > > be acc

[Xen-devel] [PATCH] misc/xenmicrocode: Upload /lib/firmware/ to the hypervisor

2015-01-27 Thread Luis R. Rodriguez
From: Konrad Rzeszutek Wilk There are several ways that a Xen system can update the CPU microcode on a pvops kernel [0] now, the preferred way is through the early microcode update mechanism. At run time folks should use this new xenmicrocode tool and use the same CPU microcode file as present on

Re: [Xen-devel] [PATCH v3 0/2] x86/arm64: add xenconfig

2015-01-27 Thread Luis R. Rodriguez
On Fri, Jan 23, 2015 at 03:19:25PM +, Stefano Stabellini wrote: > On Fri, 23 Jan 2015, Luis R. Rodriguez wrote: > > On Wed, Jan 14, 2015 at 11:33:45AM -0800, Luis R. Rodriguez wrote: > > > From: "Luis R. Rodriguez" > > > > > > This v3 addresses Stefano's feedback from the v2 series, namely >

Re: [Xen-devel] [PATCH] ioreq-server: handle IOREQ_TYPE_PCI_CONFIG in assist function

2015-01-27 Thread Andrew Cooper
On 27/01/15 19:06, Wei Liu wrote: > QEMU stubdom will read PCI config space when enumerating PCI devices. > Xen should return ~0 when there is no suitable ioreq server to dispatch > the request. > > Without this patch, QEMU stubdom will fail to start because hvmloader > fails following assertion: >

[Xen-devel] [PATCH] ioreq-server: handle IOREQ_TYPE_PCI_CONFIG in assist function

2015-01-27 Thread Wei Liu
QEMU stubdom will read PCI config space when enumerating PCI devices. Xen should return ~0 when there is no suitable ioreq server to dispatch the request. Without this patch, QEMU stubdom will fail to start because hvmloader fails following assertion: 118 ASSERT((devfn != PCI_ISA_DEVFN) |

[Xen-devel] [PATCH v3] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
Create preinit_xen_time() and move to it minimum required subset of operations needed to properly initialized cpu_khz and boot_count vars. This is allow us to use udelay() immediately after the call. Signed-off-by: Oleksandr Tyshchenko CC: Julien Grall --- Changes in v2: 1. Move timer_ids out o

Re: [Xen-devel] [PATCH v2] libxc: introduce a per architecture scratch pfn for temporary grant mapping

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH v2] libxc: introduce a per architecture scratch pfn for temporary grant mapping"): > Ian, Julien has suggested this for backport to 4.5 but not 4.4. Queued, thanks. Ian. ___ Xen-devel mailing list Xen-devel@lists.xen.o

Re: [Xen-devel] EFI GetNextVariableName crashes when running under Xen, but not under Linux. efi-rs=0 works. No memmap issues

2015-01-27 Thread Konrad Rzeszutek Wilk
On Tue, Jan 27, 2015 at 04:17:05PM +, Jan Beulich wrote: > >>> On 27.01.15 at 15:26, wrote: > > On Tue, Jan 27, 2015 at 07:54:30AM +, Jan Beulich wrote: > >> (re-adding xen-devel) > >> > >> >>> On 27.01.15 at 01:32, wrote: > >> > On 27/01/2015 00:02, Daniel Kiper wrote: > >> >> On Mon, J

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
On Tue, Jan 27, 2015 at 8:00 PM, Julien Grall wrote: > On 27/01/15 17:52, Oleksandr Tyshchenko wrote: >> On Tue, Jan 27, 2015 at 7:09 PM, Julien Grall >> wrote: >>> Hi Oleksandr, >> Hi Julien >> >>> >>> On 27/01/15 13:39, Oleksandr Tyshchenko wrote: -/* Set up the timer on the boot CPU */ >

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Julien Grall
On 27/01/15 17:52, Oleksandr Tyshchenko wrote: > On Tue, Jan 27, 2015 at 7:09 PM, Julien Grall wrote: >> Hi Oleksandr, > Hi Julien > >> >> On 27/01/15 13:39, Oleksandr Tyshchenko wrote: >>> -/* Set up the timer on the boot CPU */ >>> -int __init init_xen_time(void) >>> +static const struct dt_dev

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
On Tue, Jan 27, 2015 at 7:09 PM, Julien Grall wrote: > Hi Oleksandr, Hi Julien > > On 27/01/15 13:39, Oleksandr Tyshchenko wrote: >> -/* Set up the timer on the boot CPU */ >> -int __init init_xen_time(void) >> +static const struct dt_device_match timer_ids[] __initconst = >> +{ >> + DT_MATCH

Re: [Xen-devel] [PATCH v2 12/12] xen/iommu: smmu: Add Xen specific code to be able to use the driver

2015-01-27 Thread Stefano Stabellini
On Tue, 27 Jan 2015, Julien Grall wrote: > On 27/01/15 16:46, Stefano Stabellini wrote: > > On Fri, 16 Jan 2015, Julien Grall wrote: > >> The main goal is to modify as little the Linux code to be able to port > >> easily new feature added in Linux repo for the driver. > > > > Agreed. > > > > > >

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Julien Grall
On 27/01/15 17:44, Ian Campbell wrote: > On Tue, 2015-01-27 at 17:33 +, Julien Grall wrote: >> On 27/01/15 17:02, Stefano Stabellini wrote: >>> On Tue, 27 Jan 2015, Julien Grall wrote: On 27/01/15 16:30, Stefano Stabellini wrote: > On Fri, 16 Jan 2015, Julien Grall wrote: >> From:

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Stefano Stabellini
On Tue, 27 Jan 2015, Julien Grall wrote: > On 27/01/15 17:02, Stefano Stabellini wrote: > > On Tue, 27 Jan 2015, Julien Grall wrote: > >> On 27/01/15 16:30, Stefano Stabellini wrote: > >>> On Fri, 16 Jan 2015, Julien Grall wrote: > From: Andreas Herrmann > > If DT information lists

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 17:33 +, Julien Grall wrote: > On 27/01/15 17:02, Stefano Stabellini wrote: > > On Tue, 27 Jan 2015, Julien Grall wrote: > >> On 27/01/15 16:30, Stefano Stabellini wrote: > >>> On Fri, 16 Jan 2015, Julien Grall wrote: > From: Andreas Herrmann > > If DT info

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Julien Grall
On 27/01/15 17:02, Stefano Stabellini wrote: > On Tue, 27 Jan 2015, Julien Grall wrote: >> On 27/01/15 16:30, Stefano Stabellini wrote: >>> On Fri, 16 Jan 2015, Julien Grall wrote: From: Andreas Herrmann If DT information lists one stream ID twice for the master devices of an S

Re: [Xen-devel] [PATCH v3 09/19] Toolstack: Refactor guest lifecycle.

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 09/19] Toolstack: Refactor guest lifecycle."): > Implement destory/create as per toolstack methods, including > implementing the libvirt version which previously didn't work. To do > this we use the virsh capability to convert an xl/xm style config file > into the co

Re: [Xen-devel] [PATCH] tools/libxc: Disable CONFIG_MIGRATE in stubdom environments

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 17:24 +, Andrew Cooper wrote: > On 27/01/15 17:12, Ian Campbell wrote: > > On Tue, 2015-01-27 at 17:10 +, Andrew Cooper wrote: > >>> As opposed to e.g. an HVM domain using a qemu-stubdom, but being > >>> migrated by a normal toolstack in domain 0 (or at least, not in a

Re: [Xen-devel] [PATCH] tools/libxc: Disable CONFIG_MIGRATE in stubdom environments

2015-01-27 Thread Andrew Cooper
On 27/01/15 17:12, Ian Campbell wrote: > On Tue, 2015-01-27 at 17:10 +, Andrew Cooper wrote: >>> As opposed to e.g. an HVM domain using a qemu-stubdom, but being >>> migrated by a normal toolstack in domain 0 (or at least, not in a >>> mini-os based stubdom). >> A qemu-stubdom equally cant part

Re: [Xen-devel] [PATCH v3] libxl: Spice image compression setting support for upstream qemu

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 10:58 +, Wei Liu wrote: > On Tue, Jan 20, 2015 at 11:26:30AM +0100, Fabio Fantoni wrote: > > Usage: > > spice_image_compression=[auto_glz|auto_lz|quic|glz|lz|off] > > > > Specifies what image compression is to be used by spice (if given), > > otherwise the qemu default wi

Re: [Xen-devel] [RFC / PATCH] libxl: Prevent qemu closing QMP socket on shutdown before libxl is done with it.

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 13:41 +, Stefano Stabellini wrote: > On Tue, 27 Jan 2015, Sander Eikelenboom wrote: > > Monday, January 26, 2015, 1:12:16 PM, you wrote: > > > > > On Thu, 22 Jan 2015, Sander Eikelenboom wrote: > > >> While this fixes the race and error on shutdown of a HVM guest with >

Re: [Xen-devel] [PATCH] tools: generate systemd service files only when systemd is available

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-20 at 15:41 +, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH] tools: generate systemd service files only when > systemd is available"): > > On Tue, Jan 20, 2015 at 03:19:31PM +, Ian Campbell wrote: > > > Where components is things like socket activation support in xensto

Re: [Xen-devel] [PATCH v2] libxc: introduce a per architecture scratch pfn for temporary grant mapping

2015-01-27 Thread Ian Campbell
On Wed, 2015-01-21 at 16:42 +, Andrew Cooper wrote: > On 21/01/15 13:25, Julien Grall wrote: > > The code to initialize the grant table in libxc uses > > xc_domain_maximum_gpfn() + 1 to get a guest pfn for mapping the grant > > frame and to initialize it. > >[...] > For the x86 side of things,

[Xen-devel] [PATCHv5 13/14] xen/gntdev: mark userspace PTEs as special on x86 PV guests

2015-01-27 Thread David Vrabel
In an x86 PV guest, get_user_pages_fast() on a userspace address range containing foreign mappings does not work correctly because the M2P lookup of the MFN from a userspace PTE may return the wrong page. Force get_user_pages_fast() to fail on such addresses by marking the PTEs as special. If Xen

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Stefano Stabellini
On Tue, 27 Jan 2015, Julien Grall wrote: > On 27/01/15 16:30, Stefano Stabellini wrote: > > On Fri, 16 Jan 2015, Julien Grall wrote: > >> From: Andreas Herrmann > >> > >> If DT information lists one stream ID twice for the master devices of > >> an SMMU this can cause a multi match when stream ID

Re: [Xen-devel] [PATCH v3 13/19] Toolstack: Refactor migration support.

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 13/19] Toolstack: Refactor migration support."): > Note that since the previous patch arranges for > ts-migration-support-check to continue to fail for libvirt the libvirt > code is not actually called yet (and will die if it is). This patch is > mainly included to r

Re: [Xen-devel] [PATCH v3 10/19] Toolstack: Refactor consolecmd handling

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 10/19] Toolstack: Refactor consolecmd handling"): > Signed-off-by: Ian Campbell Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 11/19] Toolstack: Refactor shutdown support

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 11/19] Toolstack: Refactor shutdown support"): > Signed-off-by: Ian Campbell > --- > v3: Timeout is set in the caller, not the method handler. "Different > guests might take different times to shut down - but different > toolstacks shouldn't." Acked-by: Ian

Re: [Xen-devel] [PATCH v3 19/19] Toolstack: Pass $gho to create method

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 19/19] Toolstack: Pass $gho to create method"): > The cfg file can be obtained from $gho->{CfgPath}. This is more > consistent with other methods. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org

Re: [Xen-devel] [PATCH RFC] xen: arm: Log a warning message when a deprecated hypercall is used

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 11:51 +, Ard Biesheuvel wrote: > On 20 January 2015 at 10:52, Ian Campbell wrote: > > A few folks have been caught out by OSes which call e.g. > > HYPERVISOR_event_channel_op_compat which has been deprecated since > > 3.2.2 (i.e. long before Xen on ARM). Existing x86 code

Re: [Xen-devel] [PATCH] xen: arm: enable sync console in machine_reboot.

2015-01-27 Thread Ian Campbell
On Thu, 2015-01-15 at 12:57 +, Julien Grall wrote: > Hi Ian, > > On 15/01/15 11:22, Ian Campbell wrote: > > Otherwise the last thing printed is "(XE" or something. > > > > In line with x86 also disable the watchdog and spin debugging. > > > > Signed-off-by: Ian Campbell > > Reviewed-by: Ju

Re: [Xen-devel] [PATCH v3 18/19] ts-guest-start: Use guest_create

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 18/19] ts-guest-start: Use guest_create"): > I suppose it was intended to deal with toolstacks with a cfg format > completely dissimilar to xm/xl's. I think if this arises in a future > toolstack this functionality could be reintroduced pretty trivially > via the too

Re: [Xen-devel] [PATCH] kexec: prefer __copy_to_guest() when possible

2015-01-27 Thread David Vrabel
On 27/01/15 17:19, Jan Beulich wrote: > It's slightly cheaper and safe as long a copy_from_guest() for the same > guest address range was issued before. Acked-by: David Vrabel David ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.o

Re: [Xen-devel] [PATCH v4] libxl: Spice streaming video setting support for upstream qemu

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 10:58 +, Wei Liu wrote: > On Tue, Jan 20, 2015 at 11:33:17AM +0100, Fabio Fantoni wrote: > > Usage: > > spice_streaming_video=[filter|all|off] > > > > Specifies what streaming video setting is to be used by spice (if > > given), > > otherwise the qemu default will be used

Re: [Xen-devel] [PATCH] tools/Makefile: fix qemu-xen-traditional build

2015-01-27 Thread Ian Campbell
On Mon, 2015-01-26 at 11:05 +, Wei Liu wrote: > On Mon, Jan 26, 2015 at 09:55:41AM +, Ian Campbell wrote: > > On Sun, 2015-01-25 at 15:38 +, Wei Liu wrote: > > > In d9740237a ("tools: unhook blktap1 from the build and remove all > > > references to it"), one spot was left unchanged, whi

Re: [Xen-devel] [PATCH v3 15/19] libvirt: Implement initscript restart which has some hope of working.

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 15/19] libvirt: Implement initscript restart which has some hope of working."): > ... by refactoring start/stop actions into the functions which are > expected by restart. Acked-by: Ian Jackson ___ Xen-devel mailing lis

[Xen-devel] [PATCH] kexec: prefer __copy_to_guest() when possible

2015-01-27 Thread Jan Beulich
It's slightly cheaper and safe as long a copy_from_guest() for the same guest address range was issued before. Signed-off-by: Jan Beulich --- a/xen/common/kexec.c +++ b/xen/common/kexec.c @@ -663,8 +663,8 @@ static int kexec_get_range(XEN_GUEST_HAN ret = kexec_get_range_internal(&range);

Re: [Xen-devel] [PATCH v3 07/19] TestSupport: always use xl for generic operations.

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 16:40 +, Ian Jackson wrote: > Ian Campbell writes ("[PATCH v3 07/19] TestSupport: always use xl for generic > operations."): > > Unless the toolstack is xend (for compatibility with pre-xl Xen > > versions), when we use xm. > > Acked-by: Ian Jackson Thanks. > > For se

Re: [Xen-devel] [PATCH] tools: fix "make distclean"

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-20 at 14:53 +, Ian Jackson wrote: > Wei Liu writes ("[PATCH] tools: fix "make distclean""): > > The original rule to target "distclean" in tools/Rules.mk was in effect > > "make clean". It should be "make distclean". > > > > However not all Makefiles in subdirectories have dist

Re: [Xen-devel] [PATCH v3 14/19] Toolstack: Refactor save/restore support

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 14/19] Toolstack: Refactor save/restore support"): > Use $gho->{CfgPath} rather than constructing it again. > > Still stubbed out for libvirt. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org ht

Re: [Xen-devel] [PATCH v2 0/2] libxl: two pkg-config patches

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-20 at 12:22 +, Wei Liu wrote: > Wei Liu (2): > libxl: delete xenlight.pc.in in distclean > libxl: provide xlutil.pc Both applied, thanks. Ian. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCHv5 10/14] xen/gntdev: convert priv->lock to a mutex

2015-01-27 Thread David Vrabel
Unmapping may require sleeping and we unmap while holding priv->lock, so convert it to a mutex. Signed-off-by: David Vrabel Reviewed-by: Stefano Stabellini --- drivers/xen/gntdev.c | 40 1 file changed, 20 insertions(+), 20 deletions(-) diff --git a/d

[Xen-devel] [PATCHv5 14/14] xen/gntdev: provide find_special_page VMA operation

2015-01-27 Thread David Vrabel
For a PV guest, use the find_special_page op to find the right page. To handle VMAs being split, remember the start of the original VMA so the correct index in the pages array can be calculated. Signed-off-by: David Vrabel Reviewed-by: Stefano Stabellini --- drivers/xen/gntdev.c | 12

[Xen-devel] [PATCHv5 11/14] xen/gntdev: safely unmap grants in case they are still in use

2015-01-27 Thread David Vrabel
From: Jennifer Herbert Use gnttab_unmap_refs_async() to wait until the mapped pages are no longer in use before unmapping them. This allows userspace programs to safely use Direct I/O and AIO to a network filesystem which may retain refs to pages in queued skbs after the filesystem I/O has compl

[Xen-devel] [PATCHv5 12/14] xen-blkback: safely unmap grants in case they are still in use

2015-01-27 Thread David Vrabel
From: Jennifer Herbert Use gnttab_unmap_refs_async() to wait until the mapped pages are no longer in use before unmapping them. This allows blkback to use network storage which may retain refs to pages in queued skbs after the block I/O has completed. Signed-off-by: Jennifer Herbert Acked-by:

[Xen-devel] [PATCH RFC] x86: support newer Intel CPU models

2015-01-27 Thread Jan Beulich
This just follows what the January 2015 edition of the SDM documents. Open issues (RFC reasons): - Broadwell models 0x4f and 0x56 don't cross-reference other tables (and hence get added in commented out fashion only for now). - Xeon Phi model 0x57 lists LASTBRANCH_TOS but not where the actual

Re: [Xen-devel] [PATCH] tools/libxc: Disable CONFIG_MIGRATE in stubdom environments

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 16:58 +, Andrew Cooper wrote: > The legacy save/restore infrastructure requires several function pointers from > the toolstack (libxl or Xend in the past) in order to work, and for HVM guests > also need to be able to play around in dom0's filesystem to move the device > m

Re: [Xen-devel] [PATCH] tools/libxc: Disable CONFIG_MIGRATE in stubdom environments

2015-01-27 Thread Ian Campbell
On Tue, 2015-01-27 at 17:10 +, Andrew Cooper wrote: > > As opposed to e.g. an HVM domain using a qemu-stubdom, but being > > migrated by a normal toolstack in domain 0 (or at least, not in a > > mini-os based stubdom). > > A qemu-stubdom equally cant participate in migrate of its domain > (bec

Re: [Xen-devel] [PATCH] tools/libxc: Disable CONFIG_MIGRATE in stubdom environments

2015-01-27 Thread Andrew Cooper
On 27/01/15 17:01, Ian Campbell wrote: > On Tue, 2015-01-27 at 16:58 +, Andrew Cooper wrote: >> The legacy save/restore infrastructure requires several function pointers >> from >> the toolstack (libxl or Xend in the past) in order to work, and for HVM >> guests >> also need to be able to pla

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Julien Grall
Hi Oleksandr, On 27/01/15 13:39, Oleksandr Tyshchenko wrote: > -/* Set up the timer on the boot CPU */ > -int __init init_xen_time(void) > +static const struct dt_device_match timer_ids[] __initconst = > +{ > + DT_MATCH_TIMER, > + { /* sentinel */ }, > +}; > + > +/* Set up the timer on the

Re: [Xen-devel] [PATCH v2 12/12] xen/iommu: smmu: Add Xen specific code to be able to use the driver

2015-01-27 Thread Julien Grall
On 27/01/15 16:46, Stefano Stabellini wrote: > On Fri, 16 Jan 2015, Julien Grall wrote: >> The main goal is to modify as little the Linux code to be able to port >> easily new feature added in Linux repo for the driver. > > Agreed. > > >> To achieve that we: >> - Add helpers to Linux functio

Re: [Xen-devel] rcu_sched self-detect stall when disable vif device

2015-01-27 Thread Wei Liu
On Tue, Jan 27, 2015 at 04:47:45PM +, Julien Grall wrote: > On 27/01/15 16:45, Wei Liu wrote: > > On Tue, Jan 27, 2015 at 04:03:52PM +, Julien Grall wrote: > >> Hi, > >> > >> While I'm working on support for 64K page in netfront, I got > >> an rcu_sced self-detect message. It happens when n

Re: [Xen-devel] [RFC PATCH v2] xen/arm: split the init_xen_time() in 2 parts

2015-01-27 Thread Oleksandr Tyshchenko
Hi, Ian On Tue, Jan 27, 2015 at 6:43 PM, Ian Campbell wrote: > On Tue, 2015-01-27 at 15:39 +0200, Oleksandr Tyshchenko wrote: >> Create preinit_xen_time() and move to it minimum required >> subset of operations needed to properly initialized >> cpu_khz and boot_count vars. This is allow us to use

[Xen-devel] [PATCH] tools/libxc: Disable CONFIG_MIGRATE in stubdom environments

2015-01-27 Thread Andrew Cooper
The legacy save/restore infrastructure requires several function pointers from the toolstack (libxl or Xend in the past) in order to work, and for HVM guests also need to be able to play around in dom0's filesystem to move the device model save record. Migration v2 changes some of this, but is sim

Re: [Xen-devel] rcu_sched self-detect stall when disable vif device

2015-01-27 Thread David Vrabel
On 27/01/15 16:45, Wei Liu wrote: > On Tue, Jan 27, 2015 at 04:03:52PM +, Julien Grall wrote: >> Hi, >> >> While I'm working on support for 64K page in netfront, I got >> an rcu_sced self-detect message. It happens when netback is >> disabling the vif device due to an error. >> >> I'm using Lin

Re: [Xen-devel] [PATCH v3 08/19] TestSupport: guest_create and guest_destroy take only a $gho.

2015-01-27 Thread Ian Jackson
Ian Campbell writes ("[PATCH v3 08/19] TestSupport: guest_create and guest_destroy take only a $gho."): > The host can be looked up from $gho->{Host} and the toolstack can be > looked up from the host. > > Signed-off-by: Ian Campbell Acked-by: Ian Jackson _

Re: [Xen-devel] [PATCH v2 10/12] xen/iommu: smmu: Check for duplicate stream IDs when registering master devices

2015-01-27 Thread Julien Grall
On 27/01/15 16:30, Stefano Stabellini wrote: > On Fri, 16 Jan 2015, Julien Grall wrote: >> From: Andreas Herrmann >> >> If DT information lists one stream ID twice for the master devices of >> an SMMU this can cause a multi match when stream ID matching is used. >> For stream ID indexing this migh

Re: [Xen-devel] [PATCH v2 09/12] xen/iommu: arm: Import the SMMU driver from Linux

2015-01-27 Thread Julien Grall
On 27/01/15 16:28, Stefano Stabellini wrote: > On Fri, 16 Jan 2015, Julien Grall wrote: >> Based on commit e6b5be2be4e30037eb551e0ed09dd97bd00d85d3. >> >> It's a basic copy of the Linux SMMU drivers code. No Xen code has yet been >> added >> and not build. > > Do you mean a verbatim copy? As in u

Re: [Xen-devel] [PATCH v2 03/12] xen/dt: Extend dt_device_match to possibly store data

2015-01-27 Thread Julien Grall
On 27/01/15 16:46, Stefano Stabellini wrote: > On Tue, 27 Jan 2015, Julien Grall wrote: >> On 27/01/15 16:10, Stefano Stabellini wrote: >>> On Tue, 27 Jan 2015, Julien Grall wrote: Hi Stefano, On 27/01/15 15:57, Stefano Stabellini wrote: >> const struct dt_device_node *dt_get_pa

Re: [Xen-devel] [PATCH v2 03/12] xen/dt: Extend dt_device_match to possibly store data

2015-01-27 Thread Stefano Stabellini
On Tue, 27 Jan 2015, Julien Grall wrote: > On 27/01/15 16:10, Stefano Stabellini wrote: > > On Tue, 27 Jan 2015, Julien Grall wrote: > >> Hi Stefano, > >> > >> On 27/01/15 15:57, Stefano Stabellini wrote: > const struct dt_device_node *dt_get_parent(const struct dt_device_node > *node)

Re: [Xen-devel] rcu_sched self-detect stall when disable vif device

2015-01-27 Thread Julien Grall
On 27/01/15 16:45, Wei Liu wrote: > On Tue, Jan 27, 2015 at 04:03:52PM +, Julien Grall wrote: >> Hi, >> >> While I'm working on support for 64K page in netfront, I got >> an rcu_sced self-detect message. It happens when netback is >> disabling the vif device due to an error. >> >> I'm using Lin

Re: [Xen-devel] [PATCH v2 12/12] xen/iommu: smmu: Add Xen specific code to be able to use the driver

2015-01-27 Thread Stefano Stabellini
On Fri, 16 Jan 2015, Julien Grall wrote: > The main goal is to modify as little the Linux code to be able to port > easily new feature added in Linux repo for the driver. Agreed. > To achieve that we: > - Add helpers to Linux function not implemented on Xen Good idea, I would take it furthe

Re: [Xen-devel] rcu_sched self-detect stall when disable vif device

2015-01-27 Thread Wei Liu
On Tue, Jan 27, 2015 at 04:03:52PM +, Julien Grall wrote: > Hi, > > While I'm working on support for 64K page in netfront, I got > an rcu_sced self-detect message. It happens when netback is > disabling the vif device due to an error. > > I'm using Linux 3.19-rc5 on seattle (ARM64). Any idea

[Xen-devel] [PATCHv5 04/14] xen: remove scratch frames for ballooned pages and m2p override

2015-01-27 Thread David Vrabel
The scratch frame mappings for ballooned pages and the m2p override are broken. Remove them in preparation for replacing them with simpler mechanisms that works. The scratch pages did not ensure that the page was not in use. In particular, the foreign page could still be in use by hardware. If

[Xen-devel] [PATCHv5 05/14] x86/xen: require ballooned pages for grant maps

2015-01-27 Thread David Vrabel
From: Jennifer Herbert Ballooned pages are always used for grant maps which means the original frame does not need to be saved in page->index nor restored after the grant unmap. This allows the workaround in netback for the conflicting use of the (unionized) page->index and page->pfmemalloc to b

[Xen-devel] [PATCHv5 08/14] xen-netback: use foreign page information from the pages themselves

2015-01-27 Thread David Vrabel
From: Jennifer Herbert Use the foreign page flag in netback to get the domid and grant ref needed for the grant copy. This signficiantly simplifies the netback code and makes netback work with foreign pages from other backends (e.g., blkback). This allows blkback to use iSCSI disks provided by

[Xen-devel] [PATCHv5 00/14] xen: fix many long-standing grant mapping bugs

2015-01-27 Thread David Vrabel
This series fixes a number of long-standing bugs in the handling of grant maps. Refer to the following for all the details. http://xenbits.xen.org/people/dvrabel/grant-improvements-C.pdf In summary, the important uses that this enables are: 1. Block backends can use networked storage safely.

[Xen-devel] [PATCHv5 01/14] mm: provide a find_special_page vma operation

2015-01-27 Thread David Vrabel
The optional find_special_page VMA operation is used to lookup the pages backing a VMA. This is useful in cases where the normal mechanisms for finding the page don't work. This is only called if the PTE is special. One use case is a Xen PV guest mapping foreign pages into userspace. In a Xen P

  1   2   3   >