[Xen-devel] [PATCH] VMX: allocate APIC access page from domain heap

2015-12-15 Thread Jan Beulich
... since we don't need its virtual address anywhere (it's a placeholder page only after all). For this wo work (and possibly be done elsewhere too) share_xen_page_with_guest() needs to mark pages handed to it as Xen heap ones. To be on the safe side, also explicitly clear the page (not having don

[Xen-devel] [PATCH] tools/symbols: document binutils commits for issues needing workarounds so far

2015-12-15 Thread Jan Beulich
Also the issue 3rd issue mentioned in commit d37d63d4b5 ("symbols: prefix static symbols with their source file names") has been fixed by binutils commit 270f824531 (also expected to appear in 2.27). Signed-off-by: Jan Beulich --- a/xen/tools/symbols.c +++ b/xen/tools/symbols.c @@ -105,15 +105,1

[Xen-devel] [PATCH] MAINTAINERS: sort and update tree info

2015-12-15 Thread Jan Beulich
Move a few misplaced entries into their intended (alphabetical) slots. Update qemu and mini-os tree info. Signed-off-by: Jan Beulich --- a/MAINTAINERS +++ b/MAINTAINERS @@ -138,11 +138,6 @@ F: xen/drivers/char/omap-uart.c F: xen/drivers/char/pl011.c F: xen/drivers/passthrough/arm/ -

Re: [Xen-devel] [PATCH v8 02/28] MAINTAINERS: add myself for kconfig

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 22:58, wrote: > On 12/15/15 7:13 AM, Doug Goldstein wrote: >> --- a/MAINTAINERS >> +++ b/MAINTAINERS >> @@ -226,6 +226,12 @@ F: xen/include/{kexec,kimage}.h >> F: xen/arch/x86/machine_kexec.c >> F: xen/arch/x86/x86_64/kexec_reloc.S >> >> +KCONFIG >> +M: Doug

Re: [Xen-devel] [PATCH v8 00/28] Kconfig conversion

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 14:12, wrote: > The following series is a follow on to the Kconfig conversion patch series. > There are still more components to convert however this is the bare minimal > to get everything working and get the options out of the existing makefiles. > > The CONFIG_HAS_ variables

Re: [Xen-devel] [PATCH] MAINTAINERS: add myself for kconfig

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 23:39, wrote: > --- a/MAINTAINERS > +++ b/MAINTAINERS > @@ -139,6 +139,12 @@ F: xen/drivers/char/omap-uart.c > F: xen/drivers/char/pl011.c > F: xen/drivers/passthrough/arm/ > > +KCONFIG > +M: Doug Goldstein > +S: Supported > +F: docs/misc/kconfig{,-language}

[Xen-devel] preparing for 4.4.4

2015-12-15 Thread Jan Beulich
All, with 4.4.4 being due around Christmas please indicate to the respective maintainers backports you see missing from but consider relevant for the 4.4 stable branch. 4.4.4 is expected to be the last xen.org managed release from its branch. Please note that according to the outcome of an earlier

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

2015-12-15 Thread osstest service owner
flight 66394 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/66394/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-credit2 22 leak-check/check fail REGR. vs. 65639 test-amd64-i386-x

[Xen-devel] how to enable kdb for xen

2015-12-15 Thread quizyjones
I tried to debug xen use kdb. After compiling xen with debug=y, is there any further steps I should take? I can get console outputs start with:Xen 4.4.1(XEN) Xen version 4.4.1 (root@) (gcc (Ubuntu 4.8.4-2ubuntu1~14.04) 4.8.4) debug=y Wed Dec 16 11:01:14.But I can't st

Re: [Xen-devel] [PATCH 3/9] xenstore: install init-xenstore-domain via make install

2015-12-15 Thread Juergen Gross
On 15/12/15 22:41, Daniel De Graaf wrote: > On 15/12/15 07:16, Ian Campbell wrote: >> On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >>> The program init-xenstore-domain to start a xenstore domain instead >>> of the xenstored daemon is built, but not installed. Change that. >>> >>> Signed-

[Xen-devel] [xen-4.4-testing test] 66393: regressions - FAIL

2015-12-15 Thread osstest service owner
flight 66393 xen-4.4-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/66393/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd64 15 guest-localmigrate/x10 fail REGR. vs. 65669 Regressions

[Xen-devel] How to change/set preferred SSL cipher suite for relocation (migration)?

2015-12-15 Thread Alireza Vaezi
I'm using Xen 4.4.2 and I need to be able to change or set my preferred (available) ssl cipher suit like RC4-SHA, or DES-CBC-SHA , etc. to be further used in relocation/migration of domU via ssl. I suppose I need to make changes in Xen's source code and make-install it again, yet I don't know wher

[Xen-devel] How to change/set preferred SSL cipher suite for relocation (migration)?

2015-12-15 Thread Alireza Vaezi
I'm using Xen 4.4.2 and I need to be able to change or set my preferred (available) ssl cipher suit like RC4-SHA, or DES-CBC-SHA , etc. to be further used in relocation/migration of domU via ssl. I suppose I need to make changes in Xen's source code and make-install it again, yet I don't know wher

[Xen-devel] [xen-unstable test] 66391: tolerable FAIL - PUSHED

2015-12-15 Thread osstest service owner
flight 66391 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/66391/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-armhf-armhf-xl-credit2 15 guest-start/debian.repeat fail in 65748 pass in 66391 test-armhf-armhf-libvirt-xs

Re: [Xen-devel] [PATCH v3 2/2] VT-d: Fix vt-d flush timeout issue.

2015-12-15 Thread Xu, Quan
> On 15.12.15 at 9:44pm, wrote: > >>> On 15.12.15 at 14:31, wrote: > > Copy from pci_hide_device(), which is actually add device to dom_xen > > and add pdev->domain_list to dom_xen->arch.pdev_list. > > > > Quite similar, a second one only with proper justification, I can > > reassign Device form

[Xen-devel] [linux-3.10 baseline-only test] 38513: regressions - FAIL

2015-12-15 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38513 linux-3.10 real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38513/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 10 guest-start

Re: [Xen-devel] [OSSTEST PATCH 1/4] Database locking: Perl: Retry all deadlocks in PostgreSQL

2015-12-15 Thread Robert Hu
On Tue, 2015-12-15 at 17:20 +, Ian Jackson wrote: > Ian Jackson writes ("Re: [OSSTEST PATCH 1/4] Database locking: Perl: Retry > all deadlocks in PostgreSQL"): > > The Massachusetts instance is currently broken because the ownerdaemon > > is broken. So I am going to update the owner and queue

Re: [Xen-devel] [linux-3.14 test] 65633: regressions - FAIL

2015-12-15 Thread Robert Hu
On Fri, 2015-12-11 at 12:01 +, Ian Campbell wrote: > On Fri, 2015-12-11 at 11:48 +0800, Robert Hu wrote: > > On Fri, 2015-12-11 at 01:16 +, osstest service owner wrote: > > > flight 65633 linux-3.14 real [real] > > > http://logs.test-lab.xenproject.org/osstest/logs/65633/ > > > > > > Regre

[Xen-devel] [libvirt bisection] complete build-amd64-libvirt

2015-12-15 Thread osstest service owner
branch xen-unstable xenbranch xen-unstable job build-amd64-libvirt testid libvirt-build Tree: libvirt git://libvirt.org/libvirt.git Tree: libvirt_gnulib git://git.sv.gnu.org/gnulib.git Tree: qemu git://xenbits.xen.org/qemu-xen-traditional.git Tree: qemuu git://xenbits.xen.org/qemu-xen.git Tree: xe

Re: [Xen-devel] [PATCH] xen/x86/pvh: Use HVM's flush_tlb_others op

2015-12-15 Thread Boris Ostrovsky
On 12/15/2015 10:24 AM, Jan Beulich wrote: On 15.12.15 at 16:14, wrote: On 12/15/2015 10:03 AM, Jan Beulich wrote: On 15.12.15 at 15:36, wrote: On 12/14/2015 10:27 AM, Konrad Rzeszutek Wilk wrote: On Sat, Dec 12, 2015 at 07:25:55PM -0500, Boris Ostrovsky wrote: Using MMUEXT_TLB_FLUSH_MULTI

Re: [Xen-devel] [libvirt] [PATCH LIBVIRT] libxl: Use libxentoollog in preference to libxenctrl if available.

2015-12-15 Thread Jim Fehlig
On 12/14/2015 04:37 AM, Ian Campbell wrote: > On Mon, 2015-12-14 at 11:15 +, Daniel P. Berrange wrote: >> On Thu, Dec 10, 2015 at 11:38:36AM +, Ian Campbell wrote: >>> Upstream Xen is in the process of splitting the (stable API) xtl_* >>> interfaces out from the (unstable API) libxenctrl li

Re: [Xen-devel] [RFC v1 0/8] x86/init: Linux linker tables

2015-12-15 Thread H. Peter Anvin
ould simplify pv_ops over time further. This >patch set >also includes a renaming of paravirt_enabled() to paravirt_legacy() > >An unexpected long term side goal which *might* be possible due to >linker >tables on x86 is to help unify the different C entry points for Linux >x

[Xen-devel] [PATCH V2] Xen: support maxvcpus in xm and xl config

2015-12-15 Thread Jim Fehlig
From: Ian Campbell xend prior to 4.0 understands vcpus as maxvcpus and vcpu_avail as a bit map of which cpus are online (default is all). xend from 4.0 onwards understands maxvcpus as maxvcpus and vcpus as the number which are online (from 0..N-1). The upstream commit (68a94cf528e6 "xm: Add maxv

Re: [Xen-devel] [PATCH v3 8/8] libxl: implement virDomainGetJobStats

2015-12-15 Thread Jim Fehlig
On 12/03/2015 12:29 PM, Joao Martins wrote: > > On 12/03/2015 06:48 PM, Jim Fehlig wrote: >> Joao Martins wrote: >>> Introduces support for domainGetJobStats which has the same >>> info as domainGetJobInfo but in a slightly different format. >>> Another difference is that virDomainGetJobStats can a

[Xen-devel] [PATCH] MAINTAINERS: add myself for kconfig

2015-12-15 Thread Doug Goldstein
Added myself as the maintainer of kconfig. CC: Ian Campbell CC: Ian Jackson CC: Jan Beulich CC: Keir Fraser CC: Tim Deegan Signed-off-by: Doug Goldstein --- MAINTAINERS | 6 ++ 1 file changed, 6 insertions(+) diff --git a/MAINTAINERS b/MAINTAINERS index 01f575c..54d67c2 100644 --- a/M

Re: [Xen-devel] [libvirt bisection] complete build-i386-libvirt

2015-12-15 Thread Jim Fehlig
On 12/14/2015 09:26 PM, osstest service owner wrote: > branch xen-unstable > xenbranch xen-unstable > job build-i386-libvirt > testid libvirt-build > > Tree: libvirt git://libvirt.org/libvirt.git > Tree: libvirt_gnulib git://git.sv.gnu.org/gnulib.git > Tree: qemu git://xenbits.xen.org/qemu-xen-trad

[Xen-devel] How to change/set preferred SSL cipher suite for relocation (migration)?

2015-12-15 Thread Alireza Vaezi
I'm using Xen 4.4.2 and I need to be able to change or set my preferred (available) ssl cipher suit like RC4-SHA, or DES-CBC-SHA , etc. to be further used in relocation/migration of domU via ssl. I suppose I need to make changes in Xen's source code and make-install it again, yet I don't know wher

[Xen-devel] [RFC v1 6/8] x86/init: use linker table for i386 early setup

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This also annotates this is only used for PC and lguest hardware subarchitectures. Signed-off-by: Luis R. Rodriguez --- arch/x86/kernel/head32.c | 8 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/arch/x86/kernel/head32.c b/arch/x86/kernel/head

Re: [Xen-devel] [PATCH 1/9] xen: add xenstore domain flag to hypervisor

2015-12-15 Thread Daniel De Graaf
On 11/12/15 10:47, Juergen Gross wrote: In order to be able to have full support of a xenstore domain in Xen add a "Xenstore-domain" flag to the hypervisor. This flag must be specified at domain creation time and is returned by XEN_DOMCTL_getdomaininfo. It will allow the domain to retrieve domai

[Xen-devel] [RFC v1 0/8] x86/init: Linux linker tables

2015-12-15 Thread Luis R. Rodriguez
merging sooner rather than later might be "paravirt: rename paravirt_enabled to paravirt_legacy" and "x86/boot: add BIT() to boot/bitops.h". After review I can send those separately in patch form if agreeable. Since these are all just RFCs I've based these patches on top of Linus&#x

[Xen-devel] [RFC v1 4/8] x86/init: add linker table support

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Any failure on the x86 init path can be catastrophic. A simple shift of a call from one place to another can easily break things. Likewise adding a new call to one path without considering all x86 requirements can make certain x86 run time environments crash. We currentl

[Xen-devel] [RFC v1 7/8] x86/init: user linker table for ce4100 early setup

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Using the linker table removes the need for the #ifdef'ery and clutter on head32.c. Signed-off-by: Luis R. Rodriguez --- arch/x86/include/asm/setup.h | 6 -- arch/x86/kernel/head32.c | 3 --- arch/x86/platform/ce4100/ce4100.c | 4 +++- 3 files change

[Xen-devel] [RFC v1 8/8] x86/init: use linker table for mid early setup

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" Using the linker table removes the need for the #ifdef'ery and clutter on head32.c. Signed-off-by: Luis R. Rodriguez --- arch/x86/include/asm/setup.h| 6 -- arch/x86/kernel/head32.c| 7 --- arch/x86/platform/intel-mid/intel-mid.c |

[Xen-devel] [RFC v1 2/8] tables.h: add linker table support

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This adds Linux table support to Linux, based on Michael Brown's gPXE's linker table solution. Linker tables enable an extremely light weight linker build time solution for feature ordering and selection, this can help to both simplify init sequences in a generic fashion

[Xen-devel] [RFC v1 1/8] paravirt: rename paravirt_enabled to paravirt_legacy

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" paravirt_enabled conveys the idea that if this is set or if paravirt_enabled() returns true you are in a paravirtualized environment. This is not true, this is really only useful to determine if you have a paravirtualization hypervisor that uses supports legacy paravirtu

[Xen-devel] [RFC v1 3/8] x86/boot: add BIT() to boot/bitops.h

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" The boot/bitops.h guards against included the regular bitops, it only implements what we need at early boot. We'll be making use of BIT() later so add it. Users of boot/boot.h must include it prior to asm/setup.h otherwise the guard protection devise against the regular

[Xen-devel] [RFC v1 5/8] x86/init: move ebda reservations into linker table

2015-12-15 Thread Luis R. Rodriguez
From: "Luis R. Rodriguez" This lets us annotate its requirements specifically for PC and lguest subarchitectures. While at it since head.c just has ebda data rename it. Since we're using linker tables and both x86 32-bit and 64-bit have them we don't need to declare a call for this separately. Th

[Xen-devel] [PATCH v8 27/28] build: convert HAS_GICV3 use to Kconfig

2015-12-15 Thread Doug Goldstein
Use the Kconfig generated CONFIG_HAS_GICV3 defines in the code base. CC: Ian Campbell CC: Stefano Stabellini Signed-off-by: Doug Goldstein --- config/arm64.mk | 2 -- xen/arch/arm/Kconfig | 5 + xen/arch/arm/Makefile| 2 +- xen/arch/arm/Rules.mk| 2 --

Re: [Xen-devel] [PATCH v8 02/28] MAINTAINERS: add myself for kconfig

2015-12-15 Thread Doug Goldstein
On 12/15/15 7:13 AM, Doug Goldstein wrote: > Added myself as the maintainer of kconfig. > > CC: Ian Campbell > CC: Ian Jackson > CC: Jan Beulich > CC: Keir Fraser > CC: Tim Deegan > > Signed-off-by: Doug Goldstein > --- > MAINTAINERS | 6 ++ > 1 file changed, 6 insertions(+) > > diff

Re: [Xen-devel] [PATCH 4/9] xenstore: add error messages to init-xenstore-domain

2015-12-15 Thread Daniel De Graaf
On 15/12/15 07:20, Ian Campbell wrote: Adding Daniel again. On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: Additional add some diagnostic messages to the program to have an idea why it failed. [...] err: if (dom) xc_dom_release(dom); + if (domid >= 0)

Re: [Xen-devel] [PATCH 5/9] xenstore: modify init-xenstore-domain parameter syntax

2015-12-15 Thread Daniel De Graaf
On 15/12/15 07:22, Ian Campbell wrote: +Daniel On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: init-xenstore-domain takes only positional parameters today. Change this to a more flexible parameter syntax allowing to specify additional options or to omit some. Today the supported usage i

[Xen-devel] [xen-unstable-smoke test] 66392: tolerable all pass - PUSHED

2015-12-15 Thread osstest service owner
flight 66392 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/66392/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-libvirt 12 migrate-support-checkfail never pass test-armhf-armhf-xl 12

Re: [Xen-devel] [PATCH 3/9] xenstore: install init-xenstore-domain via make install

2015-12-15 Thread Daniel De Graaf
On 15/12/15 07:16, Ian Campbell wrote: On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: The program init-xenstore-domain to start a xenstore domain instead of the xenstored daemon is built, but not installed. Change that. Signed-off-by: Juergen Gross Acked-by: Ian Campbell CCing Dan

Re: [Xen-devel] [PATCH] flask: Allow device model to raise PCI interrupts (pcilevel capability)

2015-12-15 Thread Daniel De Graaf
On 14/12/15 07:05, Ian Jackson wrote: Ian Campbell writes ("[PATCH] flask: Allow device model to raise PCI interrupts (pcilevel capability)"): ... - allow $1 $2_target:hvm { getparam setparam trackdirtyvram hvmctl irqlevel pciroute cacheattr send_irq }; + allow $1 $2_target:hvm { g

Re: [Xen-devel] [PATCH v8 25/28] build: convert HAS_MEM_PAGING use to Kconfig

2015-12-15 Thread Daniel De Graaf
On 15/12/15 08:13, Doug Goldstein wrote: Use the Kconfig generated CONFIG_HAS_MEM_PAGING defines in the code base. CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper CC: Razvan Cojocaru CC: Tamas K Lengyel CC: Daniel De Graaf Signed-off-by: Doug Goldstein Acked-by: Razvan Cojocaru Acked

Re: [Xen-devel] [PATCH v8 26/28] build: convert HAS_MEM_SHARING use to Kconfig

2015-12-15 Thread Daniel De Graaf
On 15/12/15 08:13, Doug Goldstein wrote: Use the Kconfig generated CONFIG_HAS_MEM_SHARING defines in the code base. CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper CC: Razvan Cojocaru CC: Tamas K Lengyel CC: Daniel De Graaf Signed-off-by: Doug Goldstein Acked-by: Razvan Cojocaru Acke

Re: [Xen-devel] [PATCH v8 07/28] build: convert HAS_PCI use to Kconfig

2015-12-15 Thread Daniel De Graaf
On 15/12/15 08:13, Doug Goldstein wrote: Use the Kconfig generated CONFIG_HAS_PCI defines in the code base. CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper CC: Daniel De Graaf Signed-off-by: Doug Goldstein Acked-by: Jan Beulich Acked-by: Daniel De Graaf _

Re: [Xen-devel] [PATCH v8 24/28] build: convert HAS_MEM_ACCESS use to Kconfig

2015-12-15 Thread Daniel De Graaf
On 15/12/15 08:13, Doug Goldstein wrote: Use the Kconfig generated CONFIG_HAS_MEM_ACCESS defines in the code base. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper CC: Razvan Cojocaru CC: Tamas K Lengyel CC: Daniel De Graaf Signed-off-by: Doug Gol

Re: [Xen-devel] [PATCH v2 0/3] Fix and cleanup for 32-bit PV sysexit

2015-12-15 Thread Andy Lutomirski
On Tue, Dec 15, 2015 at 12:40 PM, Andrew Cooper wrote: > On 19/11/15 22:07, Andy Lutomirski wrote: >> On Thu, Nov 19, 2015 at 1:55 PM, Boris Ostrovsky >> wrote: >>> The first patch fixes Xen PV regression introduced by 32-bit rewrite. >>> Unlike the >>> earlier version it uses ALTERNATIVE instru

Re: [Xen-devel] [PATCH v8 05/28] build: convert HAS_PASSTHROUGH use to Kconfig

2015-12-15 Thread Daniel De Graaf
On 15/12/15 08:13, Doug Goldstein wrote: Use the Kconfig generated HAS_PASSTHROUGH defines for the code base. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper CC: Daniel De Graaf Signed-off-by: Doug Goldstein Acked-by: Jan Beulich Acked-by: Dani

Re: [Xen-devel] [PATCH v8 06/28] build: convert HAS_DEVICE_TREE use to Kconfig

2015-12-15 Thread Daniel De Graaf
On 15/12/15 08:13, Doug Goldstein wrote: Use the Kconfig generated CONFIG_HAS_DEVICE_TREE defines in the code base. CC: Ian Campbell CC: Stefano Stabellini CC: Jan Beulich CC: Daniel De Graaf Signed-off-by: Doug Goldstein Acked-by: Jan Beulich Acked-by: Daniel De Graaf

Re: [Xen-devel] [PATCH 6/9] xenstore: don't start xenstore domain if already one is active

2015-12-15 Thread Juergen Gross
On 15/12/15 13:47, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:40 +0100, Juergen Gross wrote: >> On 15/12/15 13:32, Ian Campbell wrote: >>> On Tue, 2015-12-15 at 13:28 +0100, Juergen Gross wrote: On 15/12/15 13:23, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross w

[Xen-devel] [PATCH] x86/PCI: Intercept Dom0 MMCFG from dom0s in HVM containers

2015-12-15 Thread Boris Ostrovsky
Commit 9256f66c1606 ("x86/PCI: intercept all PV Dom0 MMCFG writes") added intercepts for writes to RO MMCFG space from PV dom0. Similar functionality is needed by dom0s in HVM containers (such as PVH and, in the future, HVMlite). Signed-off-by: Boris Ostrovsky --- xen/arch/x86/hvm/emulate.c

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-15 Thread Michael S. Tsirkin
On Tue, Dec 15, 2015 at 08:45:32AM -0800, Andy Lutomirski wrote: > On Tue, Dec 15, 2015 at 4:13 AM, Stefano Stabellini > wrote: > > On Mon, 14 Dec 2015, Andy Lutomirski wrote: > >> On Mon, Dec 14, 2015 at 6:12 AM, Michael S. Tsirkin > >> wrote: > >> > On Mon, Dec 14, 2015 at 02:00:05PM +, Da

Re: [Xen-devel] [PATCH v2 0/3] Fix and cleanup for 32-bit PV sysexit

2015-12-15 Thread Andrew Cooper
On 19/11/15 22:07, Andy Lutomirski wrote: > On Thu, Nov 19, 2015 at 1:55 PM, Boris Ostrovsky > wrote: >> The first patch fixes Xen PV regression introduced by 32-bit rewrite. Unlike >> the >> earlier version it uses ALTERNATIVE instruction and avoids using xen_sysexit >> (and sysret32 in compat m

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-15 Thread Michael S. Tsirkin
On Mon, Dec 14, 2015 at 10:27:52AM -0800, Andy Lutomirski wrote: > On Mon, Dec 14, 2015 at 6:12 AM, Michael S. Tsirkin wrote: > > On Mon, Dec 14, 2015 at 02:00:05PM +, David Vrabel wrote: > >> On 07/12/15 16:19, Stefano Stabellini wrote: > >> > Hi all, > >> > > >> > this patch series introduce

[Xen-devel] [PATCH v8 19/28] build: convert HAS_PL011 use to Kconfig

2015-12-15 Thread Doug Goldstein
Use the Kconfig generated CONFIG_HAS_PL011 defines in the code base. CC: Ian Campbell CC: Ian Jackson CC: Jan Beulich CC: Keir Fraser CC: Tim Deegan Signed-off-by: Doug Goldstein Acked-by: Jan Beulich --- config/arm32.mk | 1 - config/arm64.mk | 1 - xen/drivers/char/Kc

Re: [Xen-devel] [PATCH v10 0/9] Introduce HVM without dm and new boot ABI

2015-12-15 Thread Ian Campbell
On Tue, 2015-12-15 at 06:21 -0700, Jan Beulich wrote: > I've just applied 1-3, 5, and 6. 4 has been applied earlier. I'd > appreciate if the last three (tools only) patches could be taken > care of by a tools committer. All done, thanks all. Ian. ___

Re: [Xen-devel] kasan_map_early_shadow() on Xen

2015-12-15 Thread Luis R. Rodriguez
On Fri, Mar 6, 2015 at 8:47 AM, Luis R. Rodriguez wrote: > If I had a technical solution to this problem I'd propose it but I don't, > I'm just flagging it right now and hope we can come up with one. Shortly I'll be posting part of a proactive solution I believe we could consider for these sorts

Re: [Xen-devel] [PATCH] xen/x86/pvh: Use HVM's flush_tlb_others op

2015-12-15 Thread Boris Ostrovsky
On 12/14/2015 10:27 AM, Konrad Rzeszutek Wilk wrote: On Sat, Dec 12, 2015 at 07:25:55PM -0500, Boris Ostrovsky wrote: Using MMUEXT_TLB_FLUSH_MULTI doesn't buy us much since the hypervisor will likely perform same IPIs as would have the guest. But if the VCPU is asleep, doing it via the hypervi

Re: [Xen-devel] [PATCH] xen/x86/pvh: Use HVM's flush_tlb_others op

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 16:14, wrote: > On 12/15/2015 10:03 AM, Jan Beulich wrote: > On 15.12.15 at 15:36, wrote: >>> On 12/14/2015 10:27 AM, Konrad Rzeszutek Wilk wrote: On Sat, Dec 12, 2015 at 07:25:55PM -0500, Boris Ostrovsky wrote: > Using MMUEXT_TLB_FLUSH_MULTI doesn't buy us much si

Re: [Xen-devel] [PATCH v8 28/28] build: convert CONFIG_COMPAT to Kconfig

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 14:13, wrote: > --- a/xen/arch/x86/Kconfig > +++ b/xen/arch/x86/Kconfig > @@ -24,6 +24,13 @@ config ARCH_DEFCONFIG > > menu "Architecture Features" > > +config COMPAT > + def_bool y > + help > + 32-bit interface support on 64-bit Xen which is used for both > +

[Xen-devel] [OSSTEST PATCH 1/4] Database locking: Perl: Retry all deadlocks in PostgreSQL

2015-12-15 Thread Ian Jackson
Previously we would retry all COMMITs but nothing else. This is correct for SQLite3 but not for PostgreSQL. We got away with it before because of the heavyweight locking of even long-running read-only transactions, but now the LOCK TABLEs can fail (at least in a mixed-version system, and perhaps

Re: [Xen-devel] [PATCH v2 1/3] x86/xen: Avoid fast syscall path for Xen PV guests

2015-12-15 Thread Borislav Petkov
On Tue, Dec 15, 2015 at 10:21:37AM -0500, Boris Ostrovsky wrote: > I know this has been in the tip tree --- when do you think this will go > Linus tree? In the 4.4 timeframe? It is queued for 4.5 currently. > Xen 32-bit PV guests are broken without this. So this needs to go into 4.4 or even earl

[Xen-devel] [RFC 03/10] xen/arm: Implement assembly version of WARN/BUG/ASSERT_FAILED...

2015-12-15 Thread Julien Grall
... to produce clear error message in assembly code. Signed-off-by: Julien Grall --- TODO: - Implement the arm32 bits --- xen/arch/arm/arm64/entry.S | 1 + xen/include/asm-arm/arm64/bug.h | 4 xen/include/asm-arm/bug.h | 37 + 3

Re: [Xen-devel] [OSSTEST PATCH 1/4] Database locking: Perl: Retry all deadlocks in PostgreSQL

2015-12-15 Thread Ian Jackson
Ian Jackson writes ("Re: [OSSTEST PATCH 1/4] Database locking: Perl: Retry all deadlocks in PostgreSQL"): > [stuff] Thanks, we discussed this in person, and I have added your ack and force pushed it to osstest production. The Massachusetts instance is currently broken because the ownerdaemon is

[Xen-devel] [PATCH v8 24/28] build: convert HAS_MEM_ACCESS use to Kconfig

2015-12-15 Thread Doug Goldstein
Use the Kconfig generated CONFIG_HAS_MEM_ACCESS defines in the code base. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper CC: Razvan Cojocaru CC: Tamas K Lengyel CC: Daniel De Graaf Signed-off-by: Doug Goldstein Acked-by: Razvan Cojocaru --- con

Re: [Xen-devel] [PATCH RFC XEN v1 01/14] xen: arm: Add gic_hw_desc

2015-12-15 Thread Ian Campbell
On Tue, 2015-12-15 at 16:35 +, Andrew Cooper wrote: > On 15/12/15 16:21, Ian Campbell wrote: > > On Tue, 2015-12-15 at 16:15 +, Stefano Stabellini wrote: > > > On Wed, 9 Dec 2015, Ian Campbell wrote: > > > > Because the enum gic_version values do not correspond to the gic > > > > version (i

[Xen-devel] [RFC 00/10] xen/arm: Implement the hypercall handling in assembly

2015-12-15 Thread Julien Grall
Hi all, This patch aims is a first attempt to write the hypercall dispatch in assembly in order to avoid reloading the hypercall arguments from the stack. I've posted an early version to get comments and only the ARM64 side has been implemented. A branch with the code can be found here: git://x

[Xen-devel] [RFC 09/10] xen/arm: Remove the C version of do_trap_hypercall

2015-12-15 Thread Julien Grall
This has been fully implemented in assembly so it's not necessary to keep it anymore. Signed-off-by: Julien Grall --- It's possible to factorize the code to handle HVC32/HVC64, but this will be done in the next patch. --- xen/arch/arm/traps.c | 74 ++

Re: [Xen-devel] Driver domain reboot, xenstore backend branches

2015-12-15 Thread Andrew Cooper
On 15/12/15 16:38, Pavlo Suikov wrote: > Hi, > > got a question regarding reboot of a driver domain in Xen 4.5. What we > currently have is Xen 4.5, Linux in Dom0 and DomD and Android in DomU. > > On DomU start, xenstore is populated with both backend and frontend > branches for all the devices pre

[Xen-devel] [PATCH] hvmlite: document the BSP/AP boot ABI

2015-12-15 Thread Roger Pau Monne
The discussion in [1] lead to an agreement of the missing pieces in PVH (or HVM without a device-model) in order to progress with it's implementation. One of the missing pieces is a new boot ABI, that replaces the PV boot ABI. The aim of this new boot ABI is to remove the limitations of the PV boo

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Juergen Gross
On 15/12/15 16:01, Andrew Cooper wrote: > On 15/12/15 14:57, Juergen Gross wrote: >> On 15/12/15 15:06, Andrew Cooper wrote: >>> On 15/12/15 12:55, Juergen Gross wrote: On 15/12/15 13:52, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:47 +0100, Juergen Gross wrote: >> On 15/12/15 13:31

[Xen-devel] [PATCH v8 04/28] build: use generated Kconfig options for Xen

2015-12-15 Thread Doug Goldstein
Switches the build system to rely on the options and flags generated by Kconfig to control what gets built and how. Follow on patches will convert items to be prefixed with CONFIG_. Additionally remove a #define that resulted in a redefined variable when building for arm. CC: Ian Campbell CC: Ste

[Xen-devel] [RFC 05/10] xen/arm: gic_inject: Introduce a local variable to store current

2015-12-15 Thread Julien Grall
current is a define which is replaced by a read to a system register. Rather than reading the system registers multiple store the result in a local variable. Signed-off-by: Julien Grall --- xen/arch/arm/gic.c | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/

Re: [Xen-devel] [PATCH v10 0/9] Introduce HVM without dm and new boot ABI

2015-12-15 Thread Roger Pau Monné
El 15/12/15 a les 16.11, Ian Campbell ha escrit: > On Tue, 2015-12-15 at 15:08 +, Ian Campbell wrote: >> On Tue, 2015-12-15 at 06:21 -0700, Jan Beulich wrote: >> >>> I've just applied 1-3, 5, and 6. 4 has been applied earlier. I'd >>> appreciate if the last three (tools only) patches could be t

[Xen-devel] [RFC 08/10] xen/arm64: Implement the hypercall handing fully in assembly

2015-12-15 Thread Julien Grall
Currently when the guest is issuing an hypercall, all the registers are saved in the stack and then later reload from the stack before calling the hypercall dispatcher. To avoid spending time loading from the stack the arguments, the hypercall handler can be implemented in assembly. This patch im

[Xen-devel] [OSSTEST PATCH 3/4] Database locking: Tcl: Cover LOCK TABLEs with catch

2015-12-15 Thread Ian Jackson
Previously we would retry only the body, but not LOCK TABLEs. We got away with it before because of the heavyweight locking of even long-running read-only transactions, but now the LOCK TABLEs can fail (at least in a mixed-version system, and perhaps even in a system with only new code). Addition

[Xen-devel] [RFC 06/10] xen/arm: gic: Allow the LRs to be cleared lazily

2015-12-15 Thread Julien Grall
Currently the LRs are cleared every time we entered in Xen from a guest before any action is taken by the hypervisor. This requiring to reload the guest registers from the stack when an hypercall is handled for instance. However, we only need to clear the LRs for the following actions: - An in

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-15 Thread Juergen Gross
On 15/12/15 14:19, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:53 +0100, Juergen Gross wrote: >> >>> mem-set too perhaps? >> >> Without mini-os supporting ballooning or memory hotplug up to now: >> I don't think so. :-) > > Sure, but you'd get strange errors from mem-set rather than a try and

[Xen-devel] [RFC 10/10] xen/arm: Factorize the C code to dispatch HVC

2015-12-15 Thread Julien Grall
Now that Xen hypercall is fully dispatched in assembly, the code to handle HVC32/HVC64 is mostly the same. Create an helper to avoid duplicating the code. Signed-off-by: Julien Grall --- xen/arch/arm/traps.c | 36 1 file changed, 16 insertions(+), 20 deletio

Re: [Xen-devel] [RFC 00/10] xen/arm: Implement the hypercall handling in assembly

2015-12-15 Thread Andrew Cooper
On 15/12/15 17:51, Julien Grall wrote: > Hi all, > > This patch aims is a first attempt to write the hypercall dispatch in assembly > in order to avoid reloading the hypercall arguments from the stack. Why? A couple of stack operations are in the noise, performance wise. I have half a patch seri

Re: [Xen-devel] [PATCH RFC XEN v1 01/14] xen: arm: Add gic_hw_desc

2015-12-15 Thread Stefano Stabellini
On Wed, 9 Dec 2015, Ian Campbell wrote: > Because the enum gic_version values do not correspond to the gic > version (in order to allow space for variants such as GICv2m, although > that is currently not present) logging the raw value is not terribly > useful. Provide gic_hw_desc which provides a s

[Xen-devel] [RFC 02/10] xen/arm: Drop unused defines in asm/bug.h

2015-12-15 Thread Julien Grall
The defines BUG_DISP_WIDTH, BUG_LINE_LO_WIDTH and BUG_LINE_HI_WIDTH have been introduced by mistake in a previous patch. They are not used at all so drop them. Signed-off-by: Julien Grall --- xen/include/asm-arm/bug.h | 4 1 file changed, 4 deletions(-) diff --git a/xen/include/asm-arm/bug

Re: [Xen-devel] [PATCH RFC XEN v1 04/14] xen: arm: Implement XEN_DOMCTL_getpageframeinfo3.

2015-12-15 Thread Stefano Stabellini
On Wed, 9 Dec 2015, Ian Campbell wrote: > This is used by the save/restore code. > > On ARM we only have RAM (0) or not-RAM (XTAB) types. > > Signed-off-by: Ian Campbell Acked-by: Stefano Stabellini > xen/arch/arm/domctl.c | 49 + > 1 file cha

Re: [Xen-devel] [PATCH RFC XEN v1 06/14] xen: arm: Add some basic platform info to save header

2015-12-15 Thread Stefano Stabellini
On Wed, 9 Dec 2015, Ian Campbell wrote: > These correspond to the content of struct xen_arch_domainconfig. > > On restore various things are checked, mostly to ensure they match the > hardcoded things of the restoring Xen. > > Signed-off-by: Ian Campbell > --- > xen/arch/arm/save.c

Re: [Xen-devel] [PATCH] xen/x86/pvh: Use HVM's flush_tlb_others op

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 15:36, wrote: > On 12/14/2015 10:27 AM, Konrad Rzeszutek Wilk wrote: >> On Sat, Dec 12, 2015 at 07:25:55PM -0500, Boris Ostrovsky wrote: >>> Using MMUEXT_TLB_FLUSH_MULTI doesn't buy us much since the hypervisor >>> will likely perform same IPIs as would have the guest. >>> >> Bu

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Juergen Gross
On 15/12/15 13:31, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >> Xenstore messages for diagnostic purposes are lost today in case >> xenstore is running under mini-os instead in a dom0 daemon. > > Where does vfprintf end up under mini-os? TBH: I just couldn't fi

Re: [Xen-devel] [PATCH RFC 0/3] Xen on Virtio

2015-12-15 Thread Andy Lutomirski
On Tue, Dec 15, 2015 at 4:13 AM, Stefano Stabellini wrote: > On Mon, 14 Dec 2015, Andy Lutomirski wrote: >> On Mon, Dec 14, 2015 at 6:12 AM, Michael S. Tsirkin wrote: >> > On Mon, Dec 14, 2015 at 02:00:05PM +, David Vrabel wrote: >> >> On 07/12/15 16:19, Stefano Stabellini wrote: >> >> > Hi a

Re: [Xen-devel] [PATCH RFC XEN v1 03/14] xen: arm: switch arch_do_domctl to a common exit path

2015-12-15 Thread Jan Beulich
>>> On 15.12.15 at 17:57, wrote: > On Tue, 2015-12-15 at 16:34 +, Stefano Stabellini wrote: >> .. .arch_do_domclt... >> > + >> > +if ( copyback && __copy_to_guest(u_domctl, domctl, 1) ) >> > +rc = -EFAULT; >> >> This code is already present in do_domctl (the caller of this functio

Re: [Xen-devel] [PATCH 8/9] xenstore: write xenstore domain data to xenstore

2015-12-15 Thread Juergen Gross
On 15/12/15 13:49, Ian Campbell wrote: > On Tue, 2015-12-15 at 13:34 +0100, Juergen Gross wrote: >> On 15/12/15 13:26, Ian Campbell wrote: >>> On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: After starting the xenstore domain write the basic data (domid and name) to the xenstore.

[Xen-devel] [RFC 07/10] xen/arm: Implement the code to dispatch the hypercall in assembly

2015-12-15 Thread Julien Grall
Each hypercalls have different number of arguments. To avoid worry about the number of arguments, all the hypercall handler are cast to a 5-arguments function. However, based on the C-spec (see 6.3.2.3 paragraph 8 and 6.7.5.3 paraph 2) the behavior is undefined. This is also the first step to hand

Re: [Xen-devel] [PATCH RFC XEN v1 03/14] xen: arm: switch arch_do_domctl to a common exit path

2015-12-15 Thread Andrew Cooper
On 15/12/15 16:57, Ian Campbell wrote: > On Tue, 2015-12-15 at 16:34 +, Stefano Stabellini wrote: >> .. .arch_do_domclt... >>> + >>> +if ( copyback && __copy_to_guest(u_domctl, domctl, 1) ) >>> +rc = -EFAULT; >> This code is already present in do_domctl (the caller of this function

[Xen-devel] [RFC 01/10] xen/arm: move lr, push and pop in a separate header

2015-12-15 Thread Julien Grall
The shorthand lr and the macros push/pop are useful for any assembly code. Move them in asm/arm64/asm_defns.h Signed-off-by: Julien Grall --- xen/arch/arm/arm64/entry.S| 17 - xen/include/asm-arm/arm64/asm_defns.h | 26 ++ xen/include/asm-arm/

Re: [Xen-devel] [PATCH RFC XEN v1 05/14] xen: arm: Implement basic XEN_DOMCTL_{set, get}hvmcontext support

2015-12-15 Thread Stefano Stabellini
On Wed, 9 Dec 2015, Ian Campbell wrote: > This is just the minimally required basic infra and header, no actual > useful data is saved yet. > > Signed-off-by: Ian Campbell > --- > xen/arch/arm/Makefile | 1 + > xen/arch/arm/domctl.c | 74 >

Re: [Xen-devel] [PATCH v10 0/9] Introduce HVM without dm and new boot ABI

2015-12-15 Thread Roger Pau Monné
El 15/12/15 a les 16.58, Ian Campbell ha escrit: > On Tue, 2015-12-15 at 16:52 +0100, Roger Pau Monné wrote: >> El 15/12/15 a les 16.11, Ian Campbell ha escrit: >>> On Tue, 2015-12-15 at 15:08 +, Ian Campbell wrote: On Tue, 2015-12-15 at 06:21 -0700, Jan Beulich wrote: > I've just

Re: [Xen-devel] [PATCH 9/9] xenstore: when running in mini-os use printk for diagnostic messages

2015-12-15 Thread Andrew Cooper
On 15/12/15 14:57, Juergen Gross wrote: > On 15/12/15 15:06, Andrew Cooper wrote: >> On 15/12/15 12:55, Juergen Gross wrote: >>> On 15/12/15 13:52, Ian Campbell wrote: On Tue, 2015-12-15 at 13:47 +0100, Juergen Gross wrote: > On 15/12/15 13:31, Ian Campbell wrote: >> On Fri, 2015-12-11

[Xen-devel] [RFC 04/10] xen/arm64: Add an assembly macro for perf counter

2015-12-15 Thread Julien Grall
Allow assembly code to use performance counter. Signed-off-by: Julien Grall --- xen/include/asm-arm/arm64/asm_defns.h | 36 +++ 1 file changed, 36 insertions(+) diff --git a/xen/include/asm-arm/arm64/asm_defns.h b/xen/include/asm-arm/arm64/asm_defns.h index 7085

Re: [Xen-devel] [PATCH 3/9] xenstore: install init-xenstore-domain via make install

2015-12-15 Thread Juergen Gross
On 15/12/15 13:16, Ian Campbell wrote: > On Fri, 2015-12-11 at 16:47 +0100, Juergen Gross wrote: >> The program init-xenstore-domain to start a xenstore domain instead >> of the xenstored daemon is built, but not installed. Change that. >> >> Signed-off-by: Juergen Gross > > Acked-by: Ian Campbel

Re: [Xen-devel] [PATCH v2 2/4] libxc: support of linear p2m list for migration of pv-domains

2015-12-15 Thread Juergen Gross
On 15/12/15 14:56, Andrew Cooper wrote: > On 15/12/15 12:14, Juergen Gross wrote: >> On 15/12/15 12:52, Andrew Cooper wrote: >>> On 15/12/15 06:33, Juergen Gross wrote: In order to be able to migrate pv-domains with more than 512 GB of RAM the p2m information can be specified by the guest

  1   2   3   >