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

2015-12-18 Thread osstest service owner
flight 66510 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/66510/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3865 xen-build fail REGR. vs. 66415 build-i386-xsm

[Xen-devel] [ovmf test] 66525: regressions - FAIL

2015-12-18 Thread osstest service owner
flight 66525 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/66525/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-ovmf-amd64 17 guest-start/debianhvm.repeat fail REGR. vs. 65543 test-amd64-i386-

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

2015-12-18 Thread osstest service owner
flight 66520 xen-4.4-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/66520/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-prev 5 xen-build fail REGR. vs. 66458 build-i386-prev

Re: [Xen-devel] how to enable kdb for xen

2015-12-18 Thread Elena Ufimtseva
On Fri, Dec 18, 2015 at 11:24 PM, quizyjones wrote: > Is there any progress? Hey I did look into this and I could not find the trace of what I have done before. So I decided to ytu and port it to current version from this Mukesh patch: http://lists.xen.org/archives/html/xen-devel/2014-04/msg

Re: [Xen-devel] how to enable kdb for xen

2015-12-18 Thread quizyjones
Is there any progress? > Date: Wed, 16 Dec 2015 09:42:47 -0500 > From: ufimts...@gmail.com > To: konrad.w...@oracle.com > CC: elena.ufimts...@oracle.com; quizy_jo...@outlook.com; t...@xen.org; > xen-devel@lists.xen.org > Subject: Re: [Xen-devel] how to enable kdb for xen > > On Wed, Dec 16, 2015

Re: [Xen-devel] xen panics when setting int3 traps

2015-12-18 Thread quizyjones
How can the techniques gdbsx uses be adapted to a real-time monitoring of nested hypercalls? I handled the breakpoints in L1 dom0, instead of the L1 xen itself, just like dom0 handles the interrupt of domU. So it's not letting the guest dealing with themselves, right? To: quizy_jo...@outlook.com

Re: [Xen-devel] [PATCH XEN v7 01/29] stubdom: recurse into tools/include in mk-headers-$(XEN_TARGET_ARCH) rule

2015-12-18 Thread Wei Liu
On Wed, Dec 16, 2015 at 12:31:08PM +, Ian Campbell wrote: > ... rather than in the libxc rule. > > This puts all the header dependencies in one place and will allow us > to avoid races when more libraries which need these headers are > introduced. I observed issues with the xen-foreign/tmp.siz

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

2015-12-18 Thread Wei Liu
On Mon, Dec 14, 2015 at 11:55:45AM +, Ian Campbell wrote: > Allows: > > (XEN) avc: denied { pcilevel } for domid=2 target=1 > scontext=system_u:system_r:dm_dom_t tcontext=system_u:system_r:domU_t_target > tclass=hvm > Nice work fixing this. :-) I did notice this when I first started, I

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

2015-12-18 Thread osstest service owner
flight 66500 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/66500/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 10 guest-start fail REGR. vs. 63732 Regressions which are

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

2015-12-18 Thread Jim Fehlig
On 12/18/2015 04:47 AM, Michal Privoznik wrote: > On 15.12.2015 23:20, Jim Fehlig wrote: >> 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 maxvcpu

[Xen-devel] [linux-3.16 test] 66479: regressions - FAIL

2015-12-18 Thread osstest service owner
flight 66479 linux-3.16 real [real] http://logs.test-lab.xenproject.org/osstest/logs/66479/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 10 guest-start fail REGR. vs. 64969 Tests which are failin

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

2015-12-18 Thread Andrew Cooper
On 18/12/2015 21:49, Doug Goldstein wrote: > On 12/18/15 3:35 PM, Andrew Cooper wrote: >> On 18/12/2015 20:06, Doug Goldstein wrote: >>> Use the Kconfig generated CONFIG_COMPAT defines in the code base. >>> >>> CC: Keir Fraser >>> CC: Jan Beulich >>> CC: Andrew Cooper >>> Signed-off-by: Doug Gol

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

2015-12-18 Thread Doug Goldstein
On 12/18/15 3:35 PM, Andrew Cooper wrote: > On 18/12/2015 20:06, Doug Goldstein wrote: >> Use the Kconfig generated CONFIG_COMPAT defines in the code base. >> >> CC: Keir Fraser >> CC: Jan Beulich >> CC: Andrew Cooper >> Signed-off-by: Doug Goldstein > > Reviewed-by: Andrew Cooper , although I

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

2015-12-18 Thread osstest service owner
flight 66498 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/66498/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-libvirt-vhd 9 debian-di-installfail like 66450 Tests which did not succeed, but a

Re: [Xen-devel] [PATCH v2 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Andrew Cooper
On 18/12/2015 21:41, Jonathan Creekmore wrote: > Instead of having a manually-curated list of schedulers, use the array > that was auto-generated simply by compiling in the scheduler files as > the sole source of truth of the available schedulers. > > CC: George Dunlap > CC: Dario Faggioli > Sign

[Xen-devel] [PATCH v2 1/4] build: Hook the schedulers into Kconfig

2015-12-18 Thread Jonathan Creekmore
Allow the schedulers to be independently enabled or disabled at compile-time. To match existing behavior, all four schedulers are compiled in by default, although the Credit2, RTDS, and ARINC653 are marked EXPERIMENTAL to match their not currently supported status. CC: George Dunlap CC: Dario Fag

[Xen-devel] [PATCH v2 0/4] Allow schedulers to be selectable through Kconfig

2015-12-18 Thread Jonathan Creekmore
Add machinery to allow the schedulers to be individually selectable through the Kconfig interface. The first patch in the series sets up the Kconfig options for the schedulers and places the appropriate CONFIG_ options around the scheduler list. The second, third, and fourth patches rework the sche

[Xen-devel] [PATCH v2 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
Instead of having a manually-curated list of schedulers, use the array that was auto-generated simply by compiling in the scheduler files as the sole source of truth of the available schedulers. CC: George Dunlap CC: Dario Faggioli Signed-off-by: Jonathan Creekmore Acked-by: Dario Faggioli --

[Xen-devel] [PATCH v2 3/4] sched: Register the schedulers into the list

2015-12-18 Thread Jonathan Creekmore
Adds a simple macro to place a pointer to a scheduler into an array section at compile time. Also, goes ahead and generates the array entries with each of the schedulers. CC: George Dunlap CC: Dario Faggioli CC: Josh Whitehead CC: Robert VanVossen Signed-off-by: Jonathan Creekmore Acked-by: D

[Xen-devel] [PATCH v2 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Jonathan Creekmore
Creates a section to contain scheduler entry pointers that are gathered together into an array. This will allow, in a follow-on patch, scheduler entries to be automatically gathered together into the array for automatic parsing. CC: Ian Campbell CC: Stefano Stabellini CC: Keir Fraser CC: Jan Be

[Xen-devel] [PATCH] xen/blkfront: Fix crash if backend doesn't follow the right states.

2015-12-18 Thread Konrad Rzeszutek Wilk
We have split the setting up of all the resources in two steps: 1) talk_to_blkback - which figures out the num_ring_pages (from the default value of zero), sets up shadow and so 2) blkfront_connect - does the real part of filling out the internal structures. The problem is if we bypass the

[Xen-devel] [PATCH] build: save generated config in /boot

2015-12-18 Thread Doug Goldstein
Since we now support changing Xen options with Kconfig, we should save the configuration that was used to build up Xen. This will save it in /boot alongside the installed xen.gz and call it xen-$(FULLVERSION).config Suggested-by: Ian Campbell Signed-off-by: Doug Goldstein --- xen/Makefile | 1 +

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

2015-12-18 Thread Andrew Cooper
On 18/12/2015 20:06, Doug Goldstein wrote: > Use the Kconfig generated CONFIG_COMPAT defines in the code base. > > CC: Keir Fraser > CC: Jan Beulich > CC: Andrew Cooper > Signed-off-by: Doug Goldstein Reviewed-by: Andrew Cooper , although I have a slight quibble. > --- > This was previously A

Re: [Xen-devel] [PATCH RFC] x86: Limit MSR_IA32_THERM_CONTROL and MSR_IA32_ENERGY_PERF_BIAS

2015-12-18 Thread Andrew Cooper
On 18/12/2015 20:46, Konrad Rzeszutek Wilk wrote: > Those two allow the OS pinned dom0 to change the T-state > (throttling) behind the Xen cpufreq code. > > The patch that introduced this: f78e2193b6409577314167ed9e077de7ac3e652f > > x86: Enable THERM_CONTROL_MSR write for dom0 even when cpufre

Re: [Xen-devel] [PATCH v4] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Andrew Cooper
On 18/12/2015 21:09, Boris Ostrovsky wrote: > The tables are almost identical and therefore there is little reason to > keep both sets. > > PVH needs 3 extra hypercalls: > * mmuext_op. MMUEXT_PIN_L_TABLE are required by control domain (dom0) > when building guests. We add MMUEXT_UNPIN_TABLE for c

[Xen-devel] [PATCH v4] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Boris Ostrovsky
The tables are almost identical and therefore there is little reason to keep both sets. PVH needs 3 extra hypercalls: * mmuext_op. MMUEXT_PIN_L_TABLE are required by control domain (dom0) when building guests. We add MMUEXT_UNPIN_TABLE for completeness. * platform_op. These are only available to

[Xen-devel] [xen-4.5-testing test] 66473: regressions - trouble: broken/fail/pass

2015-12-18 Thread osstest service owner
flight 66473 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/66473/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemut-debianhvm-amd64 3 host-install(3) broken REGR. vs. 66426 test-amd64-i3

[Xen-devel] [PATCH] build: add support configuring for x86_32

2015-12-18 Thread Doug Goldstein
This will allow OSSTest to run `make dist` for XEN_TARGET_ARCH=x86_32 but will still not build the hypervisor for x86_32. Fixes: http://logs.test-lab.xenproject.org/osstest/logs/66454/ Signed-off-by: Doug Goldstein --- xen/arch/x86/configs/x86_32_defconfig | 0 1 file changed, 0 insertions(+), 0

[Xen-devel] [PATCH RFC] x86: Limit MSR_IA32_THERM_CONTROL and MSR_IA32_ENERGY_PERF_BIAS

2015-12-18 Thread Konrad Rzeszutek Wilk
Those two allow the OS pinned dom0 to change the T-state (throttling) behind the Xen cpufreq code. The patch that introduced this: f78e2193b6409577314167ed9e077de7ac3e652f x86: Enable THERM_CONTROL_MSR write for dom0 even when cpufreq=xen Signed-off-by: Wei Gang Signed-off-by: Keir

[Xen-devel] [RFC PATCH] THERM_CONTROL_MSR mucks with Xen cpufreq code.

2015-12-18 Thread Konrad Rzeszutek Wilk
Hey, I've gotten feedback from some of the internal BIOS folks who had noticied some issues (the machine is running very slowly) which we found out was due to the ACPI DSDT being busted and the Linux kernel (dom0) programming the _wrong_ values in the T-state MSR. While this got fixed in the BIOS

[Xen-devel] [linux-mingo-tip-master test] 66497: regressions - FAIL

2015-12-18 Thread osstest service owner
flight 66497 linux-mingo-tip-master real [real] http://logs.test-lab.xenproject.org/osstest/logs/66497/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-pvops 5 kernel-build fail REGR. vs. 60684 build-amd6

[Xen-devel] [PATCH] build: convert CONFIG_COMPAT to Kconfig

2015-12-18 Thread Doug Goldstein
Use the Kconfig generated CONFIG_COMPAT defines in the code base. CC: Keir Fraser CC: Jan Beulich CC: Andrew Cooper Signed-off-by: Doug Goldstein --- This was previously Acked-by: Jan Beulich but then there was a request to change it to xen/common/Kconfig from xen/arch/x86/Kconfig. Unfortunat

Re: [Xen-devel] [PATCH] tools: allow configure time choice of libexec subdirectory.

2015-12-18 Thread Doug Goldstein
On 12/16/15 9:33 AM, Ian Campbell wrote: > On Wed, 2015-12-16 at 15:06 +, Ian Campbell wrote: >> -XENFIRMWAREDIR=`eval echo $libexecdir/$PACKAGE_TARNAME/boot` >> +dnl These variables will be substituted in various .in files >> +LIBEXEC_BIN=${LIBEXEC}/bin >> +AC_SUBST(LIBEXEC_BIN) >> +LIBEXEC_LI

[Xen-devel] [PATCH v3 1/2] x86/mm: Add information about faulted page's presence to npfec structure

2015-12-18 Thread Boris Ostrovsky
This is provided explicitly in SVM and implicitly in VMX (when neither of the three EPT_EFFECTIVE_* bits is set). Signed-off-by: Boris Ostrovsky Reviewed-by: Jan Beulich Cc: kevin.t...@intel.com Cc: jun.nakaj...@intel.com Cc: suravee.suthikulpa...@amd.com Cc: aravind.gopalakrish...@amd.com ---

[Xen-devel] [PATCH v3 2/2] x86/PCI: Intercept accesses to RO MMIO from dom0s in HVM containers

2015-12-18 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, including access to RO non-MMCFG addresses, is needed by dom0s in HVM containers (such as PVH and, in the future, HVMlite). Signed-off-by: Boris O

[Xen-devel] [PATCH v3 0/2] Support of RO MMIO access for PVH/HVMlite dom0s

2015-12-18 Thread Boris Ostrovsky
v3 (patch 2 changes): * Added handling of non-MMCFG addresses * Factored out RO MMCFG test into pci_ro_mmcfg_decode() * Renamed and changed arguments to hvm_emulate_one_mmio() * Style/naming changes Boris Ostrovsky (2): x86/mm: Add information about faulted page's presence to npfec struc

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

2015-12-18 Thread H. Peter Anvin
On December 18, 2015 10:50:40 AM PST, "Luis R. Rodriguez" wrote: >On Thu, Dec 17, 2015 at 08:25:19PM -0800, H. Peter Anvin wrote: >> On 12/17/15 15:46, Luis R. Rodriguez wrote: >> > >> > I explain why I do that there but the gist of it is that on Linux >we may also >> > want stronger semantics f

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

2015-12-18 Thread Luis R. Rodriguez
On Thu, Dec 17, 2015 at 08:25:19PM -0800, H. Peter Anvin wrote: > On 12/17/15 15:46, Luis R. Rodriguez wrote: > > > > I explain why I do that there but the gist of it is that on Linux we may > > also > > want stronger semantics for specific linker table solutions, and solutions > > such > > as t

[Xen-devel] [xen-4.4-testing baseline-only test] 38534: regressions - FAIL

2015-12-18 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 38534 xen-4.4-testing real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/38534/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 15 gues

Re: [Xen-devel] [PATCH 0/4] Allow schedulers to be selectable through Kconfig

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:56, Doug Goldstein wrote: > On 12/18/15 4:45 AM, Ian Campbell wrote: >> On Thu, 2015-12-17 at 14:59 -0600, Jonathan Creekmore wrote: >>> Add machinery to allow the schedulers to be individually selectable >>> through the Kconfig interface. >> So I don't want to pick on this series or

Re: [Xen-devel] [PATCH 0/4] Allow schedulers to be selectable through Kconfig

2015-12-18 Thread Doug Goldstein
On 12/18/15 4:45 AM, Ian Campbell wrote: > On Thu, 2015-12-17 at 14:59 -0600, Jonathan Creekmore wrote: >> Add machinery to allow the schedulers to be individually selectable >> through the Kconfig interface. > > So I don't want to pick on this series or schedulers specifically here, but > instead

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:33, Boris Ostrovsky wrote: > On 12/18/2015 12:16 PM, Andrew Cooper wrote: >> On 18/12/15 17:10, Jan Beulich wrote: >> On 18.12.15 at 17:59, wrote: On 18/12/15 16:37, Jan Beulich wrote: On 18.12.15 at 17:28, wrote: >> On 17/12/15 23:00, Boris Ostrovsky wrote: >

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Boris Ostrovsky
On 12/18/2015 12:16 PM, Andrew Cooper wrote: On 18/12/15 17:10, Jan Beulich wrote: On 18.12.15 at 17:59, wrote: On 18/12/15 16:37, Jan Beulich wrote: On 18.12.15 at 17:28, wrote: On 17/12/15 23:00, Boris Ostrovsky wrote: diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index a7767f8..871

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:24, Jonathan Creekmore wrote: >> On Dec 18, 2015, at 10:43 AM, Jan Beulich wrote: >> > On 18.12.15 at 17:00, wrote: >>> Jan Beulich writes: >>> On 17.12.15 at 21:59, wrote: > +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; > +#define NUM_

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
> On Dec 18, 2015, at 10:43 AM, Jan Beulich wrote: > On 18.12.15 at 17:00, wrote: >> Jan Beulich writes: >> On 17.12.15 at 21:59, wrote: +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; +#define NUM_SCHEDULERS >> (((uintptr_t)__schedulers_end-(uint

Re: [Xen-devel] [PATCH 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:11, Jonathan Creekmore wrote: >> On Dec 18, 2015, at 11:07 AM, Jan Beulich wrote: >> > On 18.12.15 at 17:48, wrote: >>> On 18/12/15 16:40, Jonathan Creekmore wrote: > On Dec 18, 2015, at 3:01 AM, Andrew Cooper > wrote: > > On 17/12/2015 20:59, Jonathan Creekmo

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:10, Jan Beulich wrote: On 18.12.15 at 17:59, wrote: >> On 18/12/15 16:37, Jan Beulich wrote: >> On 18.12.15 at 17:28, wrote: On 17/12/15 23:00, Boris Ostrovsky wrote: > diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c > index a7767f8..871aca0 100644 > --

Re: [Xen-devel] [PATCH 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Jonathan Creekmore
> On Dec 18, 2015, at 11:07 AM, Jan Beulich wrote: > On 18.12.15 at 17:48, wrote: >> On 18/12/15 16:40, Jonathan Creekmore wrote: On Dec 18, 2015, at 3:01 AM, Andrew Cooper wrote: On 17/12/2015 20:59, Jonathan Creekmore wrote: > Creates a section to contain sched

Re: [Xen-devel] [PATCH 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Andrew Cooper
On 18/12/15 17:07, Jan Beulich wrote: On 18.12.15 at 17:48, wrote: >> On 18/12/15 16:40, Jonathan Creekmore wrote: On Dec 18, 2015, at 3:01 AM, Andrew Cooper wrote: On 17/12/2015 20:59, Jonathan Creekmore wrote: > Creates a section to contain scheduler entry pointers

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:59, wrote: > On 18/12/15 16:37, Jan Beulich wrote: > On 18.12.15 at 17:28, wrote: >>> On 17/12/15 23:00, Boris Ostrovsky wrote: diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index a7767f8..871aca0 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86

Re: [Xen-devel] [PATCH 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:48, wrote: > On 18/12/15 16:40, Jonathan Creekmore wrote: >>> On Dec 18, 2015, at 3:01 AM, Andrew Cooper >>> wrote: >>> >>> On 17/12/2015 20:59, Jonathan Creekmore wrote: Creates a section to contain scheduler entry pointers that are gathered together into an arra

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Andrew Cooper
On 18/12/15 16:37, Jan Beulich wrote: On 18.12.15 at 17:28, wrote: >> On 17/12/15 23:00, Boris Ostrovsky wrote: >>> diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c >>> index a7767f8..871aca0 100644 >>> --- a/xen/arch/x86/mm.c >>> +++ b/xen/arch/x86/mm.c >>> @@ -3019,6 +3019,25 @@ long do_m

[Xen-devel] [GIT PULL] xen: bug fixes for 4.4-rc5

2015-12-18 Thread David Vrabel
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Linus, Please git pull the following tag: git://git.kernel.org/pub/scm/linux/kernel/git/xen/tip.git for-linus-4.4-rc5-tag xen: bug fixes for 4.4-rc5 - - XSA-155 security fixes to backend drivers. - - XSA-157 security fixes to pciback. Thanks. Da

Re: [Xen-devel] [PATCHv1 1/4] atomic: replace atomic_compareandswap() with atomic_cmpxchg()

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 15:09, wrote: > atomic_compareandswap() used atomic_t as the new, old and returned > values which is less convinient than using just int. > > Signed-off-by: David Vrabel Reviewed-by: Jan Beulich ___ Xen-devel mailing list Xen-dev

Re: [Xen-devel] [PATCH v2] x86/vPMU: constrain MSR_IA32_DS_AREA loads

2015-12-18 Thread Boris Ostrovsky
On 12/18/2015 11:51 AM, Jan Beulich wrote: For one, loading the MSR with a possibly non-canonical address was possible since the verification is conditional, while the MSR load wasn't. And then for PV guests we need to further limit the range of valid addresses to exclude the hypervisor range. S

Re: [Xen-devel] [PATCHv1 3/4] spinlock: shrink struct lock_debug

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 15:09, wrote: > --- a/xen/common/spinlock.c > +++ b/xen/common/spinlock.c > @@ -16,7 +16,7 @@ static atomic_t spin_debug __read_mostly = ATOMIC_INIT(0); > > static void check_lock(struct lock_debug *debug) > { > -int irq_safe = !local_irq_is_enabled(); > +s16 irq_sa

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Boris Ostrovsky
On 12/18/2015 11:37 AM, Jan Beulich wrote: On 18.12.15 at 17:28, wrote: On 17/12/15 23:00, Boris Ostrovsky wrote: diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c index a7767f8..871aca0 100644 --- a/xen/arch/x86/mm.c +++ b/xen/arch/x86/mm.c @@ -3019,6 +3019,25 @@ long do_mmuext_op(

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

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

[Xen-devel] rimava0 (Re: [xen-4.6-testing test] 66466: trouble: broken/fail/pass)

2015-12-18 Thread Ian Jackson
osstest service owner writes ("[xen-4.6-testing test] 66466: trouble: broken/fail/pass"): > flight 66466 xen-4.6-testing real [real] > http://logs.test-lab.xenproject.org/osstest/logs/66466/ > > Failures and problems with tests :-( > > Tests which did not succeed and are blocking, > including te

[Xen-devel] [PATCH v2] x86/vPMU: constrain MSR_IA32_DS_AREA loads

2015-12-18 Thread Jan Beulich
For one, loading the MSR with a possibly non-canonical address was possible since the verification is conditional, while the MSR load wasn't. And then for PV guests we need to further limit the range of valid addresses to exclude the hypervisor range. Signed-off-by: Jan Beulich --- v2: Also alter

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:00, wrote: > Jan Beulich writes: > On 17.12.15 at 21:59, wrote: >>> +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; >>> +#define NUM_SCHEDULERS > (((uintptr_t)__schedulers_end-(uintptr_t)__schedulers_start) \ >>> +/ siz

Re: [Xen-devel] [PATCH 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Andrew Cooper
On 18/12/15 16:40, Jonathan Creekmore wrote: >> On Dec 18, 2015, at 3:01 AM, Andrew Cooper wrote: >> >> On 17/12/2015 20:59, Jonathan Creekmore wrote: >>> Creates a section to contain scheduler entry pointers that are gathered >>> together into an array. This will allow, in a follow-on patch, sche

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
Andrew Cooper writes: > On 17/12/2015 20:59, Jonathan Creekmore wrote: >> Instead of having a manually-curated list of schedulers, use the array >> that was auto-generated simply by compiling in the scheduler files as >> the sole source of truth of the available schedulers. >> >> CC: George Dunla

Re: [Xen-devel] [PATCH 1/4] build: Hook the schedulers into Kconfig

2015-12-18 Thread Jonathan Creekmore
Andrew Cooper writes: > On 17/12/2015 20:59, Jonathan Creekmore wrote: >> Allow the schedulers to be independently enabled or disabled at >> compile-time instead of just allowing the scheduler to be selected on >> the command line. To match existing behavior, all four schedulers are >> compiled i

Re: [Xen-devel] [PATCHv5 2/3] grant_table: convert grant table rwlock to percpu rwlock

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:08, wrote: > The per domain grant table read lock suffers from significant contention when > performance multi-queue block or network IO due to the parallel > grant map/unmaps/copies occurring on the DomU's grant table. > > On multi-socket systems, the contention results in

Re: [Xen-devel] [PATCH 2/4] build: Alloc space for sched list in the link file

2015-12-18 Thread Jonathan Creekmore
> On Dec 18, 2015, at 3:01 AM, Andrew Cooper wrote: > > On 17/12/2015 20:59, Jonathan Creekmore wrote: >> Creates a section to contain scheduler entry pointers that are gathered >> together into an array. This will allow, in a follow-on patch, scheduler >> entries to be automatically gathered to

Re: [Xen-devel] [PATCHv5 1/3] rwlock: Add per-cpu reader-writer lock infrastructure

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:08, wrote: > Per-cpu read-write locks allow for the fast path read case to have > low overhead by only setting/clearing a per-cpu variable for using > the read lock. The per-cpu read fast path also avoids locked > compare swap operations which can be particularly slow on cohe

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 17:28, wrote: > On 17/12/15 23:00, Boris Ostrovsky wrote: >> diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c >> index a7767f8..871aca0 100644 >> --- a/xen/arch/x86/mm.c >> +++ b/xen/arch/x86/mm.c >> @@ -3019,6 +3019,25 @@ long do_mmuext_op( >> break; >>

Re: [Xen-devel] [PATCH v3] x86/HVM: Merge HVM and PVH hypercall tables

2015-12-18 Thread Andrew Cooper
On 17/12/15 23:00, Boris Ostrovsky wrote: > diff --git a/xen/arch/x86/mm.c b/xen/arch/x86/mm.c > index a7767f8..871aca0 100644 > --- a/xen/arch/x86/mm.c > +++ b/xen/arch/x86/mm.c > @@ -3019,6 +3019,25 @@ long do_mmuext_op( > break; > } > > +if ( has_hvm_container_dom

[Xen-devel] [qemu-mainline test] 66475: regressions - FAIL

2015-12-18 Thread osstest service owner
flight 66475 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/66475/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-xsm5 xen-build fail REGR. vs. 66433 build-amd64

[Xen-devel] [PATCHv5 3/3] p2m: convert p2m rwlock to percpu rwlock

2015-12-18 Thread Malcolm Crossley
The per domain p2m read lock suffers from significant contention when performance multi-queue block or network IO due to the parallel grant map/unmaps/copies occuring on the DomU's p2m. On multi-socket systems, the contention results in the locked compare swap operation failing frequently which re

[Xen-devel] [PATCHv5 1/3] rwlock: Add per-cpu reader-writer lock infrastructure

2015-12-18 Thread Malcolm Crossley
Per-cpu read-write locks allow for the fast path read case to have low overhead by only setting/clearing a per-cpu variable for using the read lock. The per-cpu read fast path also avoids locked compare swap operations which can be particularly slow on coherent multi-socket systems, particularly if

[Xen-devel] [PATCHv5 2/3] grant_table: convert grant table rwlock to percpu rwlock

2015-12-18 Thread Malcolm Crossley
The per domain grant table read lock suffers from significant contention when performance multi-queue block or network IO due to the parallel grant map/unmaps/copies occurring on the DomU's grant table. On multi-socket systems, the contention results in the locked compare swap operation failing fr

[Xen-devel] [PATCHv5 0/3] Implement per-cpu reader-writer locks

2015-12-18 Thread Malcolm Crossley
This patch series adds per-cpu reader-writer locks as a generic lock implementation and then converts the grant table and p2m rwlocks to use the percpu rwlocks, in order to improve multi-socket host performance. CPU profiling has revealed the rwlocks themselves suffer from severe cache line bounci

[Xen-devel] [xen-4.6-testing test] 66466: trouble: broken/fail/pass

2015-12-18 Thread osstest service owner
flight 66466 xen-4.6-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/66466/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-qemut-rhel6hvm-amd 3 host-install(3) broken REGR. vs. 656

Re: [Xen-devel] [PULL 0/2] xsa155

2015-12-18 Thread Peter Maydell
On 18 December 2015 at 15:17, Stefano Stabellini wrote: > The following changes since commit 18f49881cf8359e89396aac12f5d3cf3f8a632ba: > > configure: Fix shell syntax to placate OpenBSD's pdksh (2015-12-18 13:32:49 > +) > > are available in the git repository at: > > git://xenbits.xen.org

Re: [Xen-devel] [PATCH 4/4] sched: Use the auto-generated list of schedulers

2015-12-18 Thread Jonathan Creekmore
Jan Beulich writes: On 17.12.15 at 21:59, wrote: >> +extern const struct scheduler *__schedulers_start[], *__schedulers_end[]; >> +#define NUM_SCHEDULERS >> (((uintptr_t)__schedulers_end-(uintptr_t)__schedulers_start) \ >> +/ sizeof(struct scheduler *)) >> +static c

[Xen-devel] [xen-4.3-testing test] 66463: regressions - FAIL

2015-12-18 Thread osstest service owner
flight 66463 xen-4.3-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/66463/ 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. 65650 Regressions

Re: [Xen-devel] [PATCHv1 0/4] spinlock: add qrwlocks

2015-12-18 Thread David Vrabel
On 18/12/15 15:47, Ian Campbell wrote: > On Fri, 2015-12-18 at 14:09 +, David Vrabel wrote: >> This series adds the qrwlocks from Linux. > > This really means "replace existing rwlock implementation with qrwlocks", > right? i.e. you aren't actually adding a new set of rwlock primitives here, >

Re: [Xen-devel] [PATCHv1 0/4] spinlock: add qrwlocks

2015-12-18 Thread Ian Campbell
On Fri, 2015-12-18 at 14:09 +, David Vrabel wrote: > This series adds the qrwlocks from Linux. This really means "replace existing rwlock implementation with qrwlocks", right? i.e. you aren't actually adding a new set of rwlock primitives here, you are just switching out the implementation beh

Re: [Xen-devel] [PULL 0/2] xsa155

2015-12-18 Thread Stefano Stabellini
Michael, could you please backport these two patches? They should apply fine. On Fri, 18 Dec 2015, Stefano Stabellini wrote: > The following changes since commit 18f49881cf8359e89396aac12f5d3cf3f8a632ba: > > configure: Fix shell syntax to placate OpenBSD's pdksh (2015-12-18 13:32:49 > +) >

Re: [Xen-devel] [PATCH] x86/vPMU: constrain MSR_IA32_DS_AREA loads

2015-12-18 Thread Boris Ostrovsky
On 12/18/2015 10:19 AM, Jan Beulich wrote: On 18.12.15 at 16:12, wrote: On 12/18/2015 01:21 AM, Tian, Kevin wrote: From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] Sent: Thursday, December 17, 2015 10:42 PM On 12/17/2015 09:29 AM, Jan Beulich wrote: On 17.12.15 at 15:26, wrote: On

Re: [Xen-devel] xen panics when setting int3 traps

2015-12-18 Thread Andrew Cooper
On 17/12/15 01:35, quizyjones wrote: > Sorry for the late reply, there is something wrong in network which > makes the email not delivered successfully. > The inject method is by using xc_map_foreign_range to map the address > of the nested xen and memcpy the trap to the specific location. If > the

Re: [Xen-devel] [PATCH] x86/vPMU: constrain MSR_IA32_DS_AREA loads

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 16:12, wrote: > On 12/18/2015 01:21 AM, Tian, Kevin wrote: >>> From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] >>> Sent: Thursday, December 17, 2015 10:42 PM >>> >>> On 12/17/2015 09:29 AM, Jan Beulich wrote: >>> On 17.12.15 at 15:26, wrote: > On 12/17/2015 09

[Xen-devel] [PULL 2/2] xenfb: avoid reading twice the same fields from the shared page

2015-12-18 Thread Stefano Stabellini
Reading twice the same field could give the guest an attack of opportunity. In the case of event->type, gcc could compile the switch statement into a jump table, effectively ending up reading the type field multiple times. This is part of XSA-155. Signed-off-by: Stefano Stabellini --- hw/displa

[Xen-devel] [PULL 1/2] xen/blkif: Avoid double access to src->nr_segments

2015-12-18 Thread Stefano Stabellini
src is stored in shared memory and src->nr_segments is dereferenced twice at the end of the function. If a compiler decides to compile this into two separate memory accesses then the size limitation could be bypassed. Fix it by removing the double access to src->nr_segments. This is part of XSA-

[Xen-devel] [PULL 0/2] xsa155

2015-12-18 Thread Stefano Stabellini
The following changes since commit 18f49881cf8359e89396aac12f5d3cf3f8a632ba: configure: Fix shell syntax to placate OpenBSD's pdksh (2015-12-18 13:32:49 +) are available in the git repository at: git://xenbits.xen.org/people/sstabellini/qemu-dm.git tags/xsa155 for you to fetch changes

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

2015-12-18 Thread Andrew Cooper
On 18/12/15 07:50, Jan Beulich wrote: > ... since we don't need its virtual address anywhere (it's a > placeholder page only after all). For this to 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 sid

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

2015-12-18 Thread Jan Beulich
>>> On 18.12.15 at 16:06, wrote: > On 18/12/15 14:55, Juergen Gross wrote: >> On 18/12/15 15:20, Doug Goldstein wrote: >>> On 12/18/15 4:30 AM, Ian Campbell wrote: On Tue, 2015-12-15 at 07:12 -0600, Doug Goldstein wrote: > The following series is a follow on to the Kconfig conversion

Re: [Xen-devel] [PATCH V2] x86/xsaves: get_xsave_addr, check xsave header and support uncompressed format

2015-12-18 Thread Andrew Cooper
On 18/12/15 15:03, Huaitong Han wrote: > The check needs to be against the xsave header in the area, rather than Xen's > maximum xfeature_mask. A guest might easily have a smaller xcr0 than the > maximum Xen is willing to allow, causing the pointer below to be bogus. > > The get_xsave_addr() is mod

Re: [Xen-devel] [PATCH] x86/vPMU: constrain MSR_IA32_DS_AREA loads

2015-12-18 Thread Boris Ostrovsky
On 12/18/2015 01:21 AM, Tian, Kevin wrote: From: Boris Ostrovsky [mailto:boris.ostrov...@oracle.com] Sent: Thursday, December 17, 2015 10:42 PM On 12/17/2015 09:29 AM, Jan Beulich wrote: On 17.12.15 at 15:26, wrote: On 12/17/2015 09:18 AM, Jan Beulich wrote: On 17.12.15 at 15:12, wrote: On

Re: [Xen-devel] [PATCH] fix MSI injection on Xen

2015-12-18 Thread Stefano Stabellini
On Wed, 2 Dec 2015, Michael S. Tsirkin wrote: > On Wed, Dec 02, 2015 at 05:16:18PM +, Stefano Stabellini wrote: > > On Wed, 2 Dec 2015, Michael S. Tsirkin wrote: > > > On Wed, Dec 02, 2015 at 04:56:21PM +, Stefano Stabellini wrote: > > > > On Xen MSIs can be remapped into pirqs, which are a

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

2015-12-18 Thread Andrew Cooper
On 18/12/15 14:55, Juergen Gross wrote: > On 18/12/15 15:20, Doug Goldstein wrote: >> On 12/18/15 4:30 AM, Ian Campbell wrote: >>> On Tue, 2015-12-15 at 07:12 -0600, Doug Goldstein wrote: The following series is a follow on to the Kconfig conversion patch series. >>> It occurred to me thi

Re: [Xen-devel] [PATCH] libxl: remove the xl list limit of 1024 domains

2015-12-18 Thread Juergen Gross
On 18/12/15 15:47, Andrew Cooper wrote: > On 18/12/15 14:34, Juergen Gross wrote: >> xl list is currently limited to 1024 domains. Remove the limit. >> >> Signed-off-by: Juergen Gross > > libxl_list_vm() needs similar treatment. In fact, it looks as if it > should be implemented in terms of libx

[Xen-devel] [PATCH V2] x86/xsaves: get_xsave_addr, check xsave header and support uncompressed format

2015-12-18 Thread Huaitong Han
The check needs to be against the xsave header in the area, rather than Xen's maximum xfeature_mask. A guest might easily have a smaller xcr0 than the maximum Xen is willing to allow, causing the pointer below to be bogus. The get_xsave_addr() is modified to support uncompressed xstate areas. Sig

Re: [Xen-devel] [PATCHv6 1/2] x86/ept: invalidate guest physical mappings on VMENTER

2015-12-18 Thread George Dunlap
On 18/12/15 13:50, David Vrabel wrote: > If a guest allocates a page and the tlbflush_timestamp on the page > indicates that a TLB flush of the previous owner is required, only the > linear and combined mappings are invalidated. The guest-physical > mappings are not invalidated. > > This is curre

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

2015-12-18 Thread Juergen Gross
On 18/12/15 15:20, Doug Goldstein wrote: > On 12/18/15 4:30 AM, Ian Campbell wrote: >> On Tue, 2015-12-15 at 07:12 -0600, Doug Goldstein wrote: >>> The following series is a follow on to the Kconfig conversion >>> patch series. >> >> It occurred to me this morning that we probably ought to stash >

Re: [Xen-devel] [PATCH v2 13/13] tools: don't stop xenstore domain when stopping dom0

2015-12-18 Thread Juergen Gross
On 18/12/15 15:42, Andrew Cooper wrote: > On 18/12/15 13:14, Juergen Gross wrote: >> When restarting or shutting down dom0 the xendomains script tries to >> stop all other domains. Don't do this for the xenstore domain, as it >> might survive a dom0 reboot in the future. >> >> The same applies to x

Re: [Xen-devel] [PATCH] libxl: remove the xl list limit of 1024 domains

2015-12-18 Thread Andrew Cooper
On 18/12/15 14:34, Juergen Gross wrote: > xl list is currently limited to 1024 domains. Remove the limit. > > Signed-off-by: Juergen Gross libxl_list_vm() needs similar treatment. In fact, it looks as if it should be implemented in terms of libxl_list_domain(), rather than opencoding similar sam

Re: [Xen-devel] [RFC PATCH v2 06/16] libxl: Load guest ACPI table from file

2015-12-18 Thread Anthony PERARD
On Wed, Nov 04, 2015 at 10:57:35AM +, Ian Campbell wrote: > On Mon, 2015-10-26 at 16:03 +, Anthony PERARD wrote: > > The path to the ACPI tables blob can be override by xl's option > > "overridden" > > > acpi_table_override or by acpi_tables_filename in the domain_build_info > > struct fo

  1   2   3   >