Re: [Xen-devel] [PATCH v9 12/13] test_x86_emulator.c: Add tests for #GP usage

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 19:29, wrote: > +/* > + * Test out special #GP handling for the VMware port 0x5658. > + * This is done in two "modes", j=0 and j=1. Testing 4 > + * instructions (all the basic PIO) in both modes. > + * > + * The port used is based on j. > + * > +

Re: [Xen-devel] [PATCH v9 06/13] xen: Add ring 3 vmware_port support

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 18:14, wrote: > Since this is not an architecture feature and I do not expect any real > CPUs to support this, I do not expect any other use. But I am happy > to make it more generic. Let's see how this ends up looking - the hook is probably indeed bogus (from an architectural

Re: [Xen-devel] [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6

2015-02-25 Thread Dario Faggioli
On Tue, 2015-02-24 at 21:42 -0500, Meng Xu wrote: > Hi all, > Hello, > 2015-02-24 11:35 GMT-05:00 Dario Faggioli : > > On Tue, 2015-02-24 at 14:16 +, Ian Campbell wrote: > >> On Tue, 2015-02-24 at 11:30 +, Dario Faggioli wrote: > > > >> > Semantically speaking, they just should be killed.

Re: [Xen-devel] [qemu-upstream-unstable bisection] complete test-amd64-i386-freebsd10-i386

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 19:00, wrote: > Paul Durrant writes ("RE: [qemu-upstream-unstable bisection] complete > test-amd64-i386-freebsd10-i386"): >> I thought this was fixed. I posted the fix over a week ago and it's applied: > > Looking at the most recent tests it appears that there is a > combinati

Re: [Xen-devel] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Dario Faggioli
On Tue, 2015-02-24 at 13:10 +, Ian Campbell wrote: > On Tue, 2015-02-24 at 12:41 +, Anthony PERARD wrote: > > What libxl API those provide this information, if it exist? > > > > I found libxl_get_online_cpus() but that not enough. They want a > > bitmap. > > I think that is all which cur

Re: [Xen-devel] [PATCH v2 1/3] x86/numa: Allow arbitrary value of PXM in PXM<->node mapping

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 20:11, wrote: > --- a/xen/arch/x86/srat.c > +++ b/xen/arch/x86/srat.c > @@ -27,35 +27,79 @@ static nodemask_t memory_nodes_parsed __initdata; > static nodemask_t processor_nodes_parsed __initdata; > static nodemask_t nodes_found __initdata; > static struct node nodes[MAX_NUMN

Re: [Xen-devel] [RFC] native python Xenstore module

2015-02-25 Thread Simon Rowe
On 24/02/15 16:41, Ian Campbell wrote: Are/were you aware ofhttps://pypi.python.org/pypi/pyxs which sounds like something similar, judging from its blurb alone? No, I wasn't. It certainly looks a more solid implementation than mine. https://launchpad.net/pyxenstore/ might be too, although I

Re: [Xen-devel] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 10:24 +0100, Dario Faggioli wrote: > On Tue, 2015-02-24 at 13:10 +, Ian Campbell wrote: > > On Tue, 2015-02-24 at 12:41 +, Anthony PERARD wrote: > > > > What libxl API those provide this information, if it exist? > > > > > > I found libxl_get_online_cpus() but that n

Re: [Xen-devel] [PATCH v2 2/3] x86/numa: Adjust datatypes for node and pxm

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 20:11, wrote: > --- a/xen/arch/x86/smpboot.c > +++ b/xen/arch/x86/smpboot.c > @@ -843,7 +843,8 @@ void __cpu_die(unsigned int cpu) > > int cpu_add(uint32_t apic_id, uint32_t acpi_id, uint32_t pxm) > { > -int node, cpu = -1; > +nodeid_t node; Please take the opportun

Re: [Xen-devel] [PATCH v2 3/3] mm: MEMF_node should handle changes in nodeid_t size

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 20:11, wrote: > Instead of using a hardcoded constant to extract nodeID from > memflags use a macro whose value is based on nodeid_t size. > > Also provide a macro for extracting nodeID from memflags so that > users don't need to remember to decrement the value. > > Signed-off

Re: [Xen-devel] [PATCH v2 5/7] Mini-OS: standalone build

2015-02-25 Thread Ian Campbell
On Tue, 2015-02-24 at 20:39 +0100, Samuel Thibault wrote: > Ack-by: Samuel Thibault Thanks. Can I take it you are OK in principal with the plans to move things out? TBH I think it'll make very little difference to your day-to-day maintenance. ___ Xe

Re: [Xen-devel] [PATCH v2 5/7] Mini-OS: standalone build

2015-02-25 Thread Samuel Thibault
Ian Campbell, le Wed 25 Feb 2015 09:53:52 +, a écrit : > On Tue, 2015-02-24 at 20:39 +0100, Samuel Thibault wrote: > > Ack-by: Samuel Thibault > > Can I take it you are OK in principal with the plans to move things out? Yes. > TBH I think it'll make very little difference to your day-to-day

Re: [Xen-devel] [qemu-upstream-unstable bisection] complete test-amd64-i386-freebsd10-i386

2015-02-25 Thread Paul Durrant
> -Original Message- > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > Sent: 24 February 2015 18:00 > To: Paul Durrant > Cc: Stefano Stabellini; xen-de...@lists.xensource.com; Ian Campbell > Subject: RE: [qemu-upstream-unstable bisection] complete test-amd64-i386- > freebsd10-i386 >

Re: [Xen-devel] [PATCH for stable] x86/spinlocks/paravirt: Fix memory corruption on unlock

2015-02-25 Thread Ingo Molnar
* Greg KH wrote: > > >It's: > > > > > > d6abfdb20223 x86/spinlocks/paravirt: Fix memory corruption on unlock > > > > Yes, This is the original patch. Please note I have taken out the > > READ_ONCE changes from the original patch to avoid build warnings > > mentioned below. > > (Those READ_ONCE

Re: [Xen-devel] [PATCH for stable] x86/spinlocks/paravirt: Fix memory corruption on unlock

2015-02-25 Thread Christian Borntraeger
Am 25.02.2015 um 11:08 schrieb Ingo Molnar: > > * Greg KH wrote: > It's: d6abfdb20223 x86/spinlocks/paravirt: Fix memory corruption on unlock >>> >>> Yes, This is the original patch. Please note I have taken out the >>> READ_ONCE changes from the original patch to avoid build war

Re: [Xen-devel] [RFC] native python Xenstore module

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 09:39 +, Simon Rowe wrote: > On 24/02/15 16:41, Ian Campbell wrote: > > Are/were you aware ofhttps://pypi.python.org/pypi/pyxs which sounds > > like something similar, judging from its blurb alone? > > No, I wasn't. It certainly looks a more solid implementation than min

Re: [Xen-devel] [PATCH v5 00/29] Xen/ARM guest support

2015-02-25 Thread Ard Biesheuvel
On 24 February 2015 at 19:14, Laszlo Ersek wrote: > On 02/24/15 20:01, Ard Biesheuvel wrote: >> On 24 February 2015 at 18:41, Laszlo Ersek wrote: >>> On 02/24/15 19:37, Ard Biesheuvel wrote: On 24 February 2015 at 18:34, Laszlo Ersek wrote: > On 02/24/15 19:02, Ard Biesheuvel wrote: >>>

Re: [Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-25 Thread Chao Peng
On Mon, Feb 23, 2015 at 04:24:32PM +, Ian Campbell wrote: > On Fri, 2015-02-13 at 13:09 +, Wei Liu wrote: > > On Mon, Feb 02, 2015 at 04:06:09PM +0800, Chao Peng wrote: > > > +#ifdef LIBXL_HAVE_PSR_MBM > > > +int libxl_psr_cmt_type_supported(libxl_ctx *ctx, libxl_psr_cmt_type > > > type);

Re: [Xen-devel] RFC: [PATCH 1/3] Enhance platform support for PCI

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 08:03 +0530, Manish Jaggi wrote: > On 24/02/15 7:13 pm, Julien Grall wrote: > > On 24/02/15 00:23, Manish Jaggi wrote: > >>> Because you have to parse all the device tree to remove the reference > >>> to the second ITS. It's pointless and can be difficult to do it. > >>> > >>

Re: [Xen-devel] [PATCH for stable] x86/spinlocks/paravirt: Fix memory corruption on unlock

2015-02-25 Thread Ingo Molnar
* Christian Borntraeger wrote: > > By all means! > > > > You'll first need to cherry-pick these commits: > > > 927609d622a3 kernel: tighten rules for ACCESS ONCE > > c5b19946eb76 kernel: Fix sparse warning for ACCESS_ONCE > > dd36929720f4 kernel: make READ_ONCE() valid on const arguments >

Re: [Xen-devel] [PATCH v9 3/3] tools, docs: add total/local memory bandwith monitoring

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 18:21 +0800, Chao Peng wrote: > On Mon, Feb 23, 2015 at 04:24:32PM +, Ian Campbell wrote: > > On Fri, 2015-02-13 at 13:09 +, Wei Liu wrote: > > > On Mon, Feb 02, 2015 at 04:06:09PM +0800, Chao Peng wrote: > > > > +#ifdef LIBXL_HAVE_PSR_MBM > > > > +int libxl_psr_cmt_t

Re: [Xen-devel] [PATCH v2 1/3] x86/numa: Allow arbitrary value of PXM in PXM<->node mapping

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 20:11, wrote: > --- a/xen/arch/x86/srat.c > +++ b/xen/arch/x86/srat.c > @@ -27,35 +27,79 @@ static nodemask_t memory_nodes_parsed __initdata; > static nodemask_t processor_nodes_parsed __initdata; > static nodemask_t nodes_found __initdata; > static struct node nodes[MAX_NUMN

Re: [Xen-devel] [PATCH v2 3/3] mm: MEMF_node should handle changes in nodeid_t size

2015-02-25 Thread Jan Beulich
>>> On 24.02.15 at 20:11, wrote: > @@ -121,10 +123,12 @@ struct npfec { > #define _MEMF_exact_node 4 > #define MEMF_exact_node (1U<<_MEMF_exact_node) > #define _MEMF_node8 > -#define MEMF_node(n) n)+1)&0xff)<<_MEMF_node) > +#define MEMF_node(n) n)+1) & MEMF_node_mas

[Xen-devel] [linux-linus test] 35070: regressions - trouble: blocked/broken/fail/pass

2015-02-25 Thread xen . org
flight 35070 linux-linus real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35070/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rumpuserxen-i386 5 xen-boot fail REGR. vs. 34227 test-amd64-amd64-xl-w

Re: [Xen-devel] [PATCH] xen/arm: Handle translated addresses for hardware domains in GICv2

2015-02-25 Thread Frediano Ziglio
Translated address (in d->arch.vgic.{c,d}base) are now bus addresses which could not always be applied to the DT. Copy the original address from DT directly to get the original untraslated reg property which will give same d->arch.vgic.{c,d}base values once translated again. Signed-off-by: Fredian

[Xen-devel] Xen Security Advisory 118 (CVE-2015-1563) - arm: vgic: incorrect rate limiting of guest triggered logging

2015-02-25 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xen Security Advisory CVE-2015-1563 / XSA-118 version 2 arm: vgic: incorrect rate limiting of guest triggered logging UPDATES IN VERSION 2 CVE assigned. ISSUE DESCRIPTION ==

[Xen-devel] [PATCH v3 8/8] Remove in-tree mini-os directory

2015-02-25 Thread Wei Liu
Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Acked-by: Ian Campbell [ output trimmed ] ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH v3 2/8] Makefile: refactor build/clean/distclean targets

2015-02-25 Thread Wei Liu
Factor out per-subsystem build/clean/distclean-% targets, so that we can build subsystems independently in top level directory. The motive behind this is after splitting out mini-os from Xen tree, stubdom is in effect a downstream of mini-os. I would like to have the ability to build it independe

[Xen-devel] [PATCH v3 4/8] stubdom: no need to clean mini-os

2015-02-25 Thread Wei Liu
All objects are placed inside stubdom's directories, so there is no need to enter mini-os and clean. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Cc: Samuel Thibault Cc: Stefano Stabellini --- stubdom/Makefile | 1 - 1 file changed, 1 deletion(-) diff --git a/stubdom/Makefile b/s

[Xen-devel] [PATCH v3 3/8] stubdom: don't look for mini-os source file during configure

2015-02-25 Thread Wei Liu
Don't look for mini-os source file during configure. Mini-os source code will be fetched during build. Instead look for xenstore-minios.cfg. Please rerun autogen.sh after applying this patch. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Acked-by: Ian Campbell --- Changes in v2: 1.

[Xen-devel] [PATCH v3 6/8] Mini-OS: standalone build

2015-02-25 Thread Wei Liu
In order to keep the tree bisectable all the changes are done in one single commit. Things done in this commit: 1. Import necessary .mk files from Xen. 2. Move all XEN_ related variables to MINIOS_ namespace. 3. Import Xen public header files. 4. Import BSD's list.h and helper script. Mini-OS's

[Xen-devel] [PATCH v3 0/8] Split off mini-os to a separate tree

2015-02-25 Thread Wei Liu
This is v3 of my mini-os splitting off patch series. I use following runes to split off mini-os: git filter-branch --tag-name-filter cat \ --subdirectory-filter extras/mini-os/ -- --all # There is already a tag name 4.3.0-rc2 which points to the same commit. git tag -d xen-4.3.0-rc2

[Xen-devel] [PATCH v3 5/8] git-checkout.sh: use "mkdir -p"

2015-02-25 Thread Wei Liu
Otherwise mkdir extras/mini-os fails because extras doesn't exist. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson Acked-by: Ian Campbell --- scripts/git-checkout.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/git-checkout.sh b/scripts/git-checkout.sh i

[Xen-devel] [PATCH v3 1/8] stubdom: fix "make build"

2015-02-25 Thread Wei Liu
Cross compiling libxc requires some symlinks to exist. Note that make -C tools/include requires running tools/configure. But at least now the error message is much better than just a "file not found" error. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jakcson Acked-by: Ian Campbell Acked-b

[Xen-devel] [PATCH v3] build system: stubdom targets now depends on mini-os target

2015-02-25 Thread Wei Liu
Provide mini-os url and revision in Config.mk Make stubdom targets depend on mini-os-dir target. Make subtree-force-update{,-all} depend on mini-os-dir-force-update. Also make mktarball script generate mini-os archive. Original mini-os directory is renamed to mini-os-intree to help reduce patch

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

2015-02-25 Thread xen . org
flight 35349 rumpuserxen real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35349/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-rumpuserxen6 xen-build fail REGR. vs. 33866 build-amd64-rumpuserx

Re: [Xen-devel] freemem-slack and large memory environments

2015-02-25 Thread Stefano Stabellini
On Tue, 24 Feb 2015, Ian Campbell wrote: > On Tue, 2015-02-24 at 16:06 +, Stefano Stabellini wrote: > > > Now that we autodetect the use of dom0_mem and set autoballooning > > > correctly perhaps we should just revert a39b5bc64? > > > > We could do that and theoretically it makes perfect sense

Re: [Xen-devel] [qemu-upstream-unstable bisection] complete test-amd64-i386-freebsd10-i386

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Paul Durrant wrote: > > -Original Message- > > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > > Sent: 24 February 2015 18:00 > > To: Paul Durrant > > Cc: Stefano Stabellini; xen-de...@lists.xensource.com; Ian Campbell > > Subject: RE: [qemu-upstream-unstable bis

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

2015-02-25 Thread xen . org
flight 35097 xen-4.5-testing real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35097/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf 3 host-install(3) broken REGR. vs. 34731 test-amd64-i386-l

Re: [Xen-devel] freemem-slack and large memory environments

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 11:39 +, Stefano Stabellini wrote: > On Tue, 24 Feb 2015, Ian Campbell wrote: > > On Tue, 2015-02-24 at 16:06 +, Stefano Stabellini wrote: > > > > Now that we autodetect the use of dom0_mem and set autoballooning > > > > correctly perhaps we should just revert a39b5bc6

Re: [Xen-devel] Xen's Linux kernel config options

2015-02-25 Thread Stefano Stabellini
On Tue, 24 Feb 2015, Luis R. Rodriguez wrote: > On Tue, Feb 24, 2015 at 7:21 AM, Stefano Stabellini > wrote: > > On Mon, 23 Feb 2015, Luis R. Rodriguez wrote: > >> On Thu, Feb 19, 2015 at 3:43 PM, Luis R. Rodriguez wrote: > >> > On Fri, Dec 12, 2014 at 9:29 AM, David Vrabel > >> > wrote: > >> >

[Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
In RFC style, rather than relying on the implicit assumptions of a particular C ABI. I have also confirmed, using the Python gdb extension technique in [0], that the struct offsets (in a Linux binary at least) are the same as described here. I took the opportunity to also confirm that x86_32, x86

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Andrew Cooper
On 25/02/15 12:16, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as described here. > > I

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:16 +, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as descr

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:23 +, Andrew Cooper wrote: > On 25/02/15 12:16, Ian Campbell wrote: > > I have also confirmed, using the Python gdb extension technique in > > [0], that the struct offsets (in a Linux binary at least) are the same > > as described here. [...] > > [] > > http://stackove

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Jürgen Groß
On 02/25/2015 01:16 PM, Ian Campbell wrote: In RFC style, rather than relying on the implicit assumptions of a particular C ABI. I have also confirmed, using the Python gdb extension technique in [0], that the struct offsets (in a Linux binary at least) are the same as described here. I took th

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:48 +0100, Jürgen Groß wrote: > On 02/25/2015 01:16 PM, Ian Campbell wrote: > > In RFC style, rather than relying on the implicit assumptions of a > > particular C ABI. > > > > I have also confirmed, using the Python gdb extension technique in > > [0], that the struct offset

Re: [Xen-devel] [libvirt] libvirt/libxl implemetation of get_online_cpu / virNodeGetCPUMap?

2015-02-25 Thread Daniel P. Berrange
On Tue, Feb 24, 2015 at 03:00:16PM +, Anthony PERARD wrote: > On Tue, Feb 24, 2015 at 01:22:19PM +, Daniel P. Berrange wrote: > > On Tue, Feb 24, 2015 at 01:15:57PM +, Anthony PERARD wrote: > > > On Tue, Feb 24, 2015 at 12:46:44PM +, Daniel P. Berrange wrote: > > > > On Tue, Feb 24,

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Andrew Cooper
On 25/02/15 12:16, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > as described here. > > I

[Xen-devel] [OSSTEST PATCH 2/8] emails: branch-settings.osstest: Permit caller to specify OSSTEST_EMAIL_HEADER

2015-02-25 Thread Ian Jackson
Do not override this if the environment already has one. Signed-off-by: Ian Jackson --- branch-settings.osstest |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/branch-settings.osstest b/branch-settings.osstest index 060ff4b..fe9561f 100644 --- a/branch-settings.osstest +++

[Xen-devel] [OSSTEST PATCH 0/8] improvements related to adhoc testing

2015-02-25 Thread Ian Jackson
While testing Wei Liu's XSM series, I found that the adhoc testing arrangements less than ideal. After these patches, I can create `daily-cron-email-liuw' containing To: ian.jack...@eu.citrix.com, Wei Liu and (in my own account on the test controller) do this: OSSTEST_EMAIL_HEADER=daily-cr

[Xen-devel] [OSSTEST PATCH 6/8] standalone: Always pass OLD_REVISION=NONE to cr-daily-branch

2015-02-25 Thread Ian Jackson
We don't want sg-report-flight digging through the `test history database' (which doesn't really exist in standalone mode) looking for a baseline. Passing OLD_REVISION=NONE also avoids calling ./ap-fetch-version-old for the current branch. This is useful particularly when the current branch is os

[Xen-devel] [OSSTEST PATCH 8/8] ap-fetch-version: Use osstest's home to find master tree

2015-02-25 Thread Ian Jackson
When ap-fetch-version and ap-fetch-version-old are run on the osstest controller but as a different user they should look in ~osstest, not $HOME, for the master testing.git tree. Signed-off-by: Ian Jackson --- ap-fetch-version |2 +- ap-fetch-version-old |2 +- 2 files changed, 2 ins

[Xen-devel] [OSSTEST PATCH 1/8] emails: cr*: Defer setting of OSSTEST_EMAIL_HEADER

2015-02-25 Thread Ian Jackson
Defer computing this variable until it is going to be used. The effect is that the fallback default value is assigned much later - in start_email (cr-daily-branch) or send_bisection_email (cri-bisect). Previously it was assigned as soon as cri-args-hostlists was read, which is quite early. In the

[Xen-devel] [OSSTEST PATCH 5/8] standalone: Always set OSSTEST_NO_BASELINE

2015-02-25 Thread Ian Jackson
OSSTEST_NO_BASELINE disables the thing where cr-daily-branch decides (based on information from sg-check-tested) that the baseline is untested and therefore that it ought to do a baseline test instead of testing the tip. This whole feature is never correct in standalone mode, where there is no use

[Xen-devel] [OSSTEST PATCH 4/8] emails: Set OSSTEST_EMAIL_SUBJECT_PREFIX if not --real

2015-02-25 Thread Ian Jackson
Signed-off-by: Ian Jackson --- cri-args-hostlists |4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cri-args-hostlists b/cri-args-hostlists index ef4cebd..1acecb6 100644 --- a/cri-args-hostlists +++ b/cri-args-hostlists @@ -50,7 +50,9 @@ elif [ "x$1" = "x--like-real" ]; th

[Xen-devel] [OSSTEST PATCH 3/8] emails: honour OSSTEST_EMAIL_SUBJECT_PREFIX

2015-02-25 Thread Ian Jackson
This is prefixed before the other computed prefixes. It makes it easier to distinguish an adhoc cr-daily-branch test runs for a real branch. Signed-off-by: Ian Jackson --- cri-args-hostlists |2 +- cri-bisect |2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/

[Xen-devel] [OSSTEST PATCH 7/8] ap-fetch-version-old: Do not honour OSSTEST_USE_HEAD

2015-02-25 Thread Ian Jackson
When doing an OSSTEST_USE_HEAD test in infrastructure mode we would like to use the real osstest mainline baseline as a reference for the flight reports. (Rather than simply using the very version under test as the baseline.) So revert cf805fa8 "Allow forcing the use of current osstest HEAD for b

Re: [Xen-devel] [PATCH] xen/arm: Handle translated addresses for hardware domains in GICv2

2015-02-25 Thread Julien Grall
On 25/02/15 11:14, Frediano Ziglio wrote: > Translated address (in d->arch.vgic.{c,d}base) are now bus addresses addresses > which could not always be applied to the DT. > Copy the original address from DT directly to get the original addresses > untraslated reg property which will give same d-

Re: [Xen-devel] [PATCH v2 1/3] x86/numa: Allow arbitrary value of PXM in PXM<->node mapping

2015-02-25 Thread Boris Ostrovsky
On 02/25/2015 04:34 AM, Jan Beulich wrote: On 24.02.15 at 20:11, wrote: --- a/xen/arch/x86/srat.c +++ b/xen/arch/x86/srat.c @@ -27,35 +27,79 @@ static nodemask_t memory_nodes_parsed __initdata; static nodemask_t processor_nodes_parsed __initdata; static nodemask_t nodes_found __initdata;

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Wei Liu
On Wed, Feb 25, 2015 at 12:16:50PM +, Ian Campbell wrote: > In RFC style, rather than relying on the implicit assumptions of a > particular C ABI. > > I have also confirmed, using the Python gdb extension technique in > [0], that the struct offsets (in a Linux binary at least) are the same > a

Re: [Xen-devel] [RFC] [Design] Better XL support of RTDS scheduler for Xen 4.6

2015-02-25 Thread Meng Xu
Hi Dario, In summary, I agree with you and will apply these comments discussed in this thread to work out a RFC patch for it. Below is just some reply to your question. :-) 2015-02-25 3:44 GMT-05:00 Dario Faggioli : > On Tue, 2015-02-24 at 21:42 -0500, Meng Xu wrote: >> Hi all, >> > Hello, > >> 2

Re: [Xen-devel] [PATCH DOCDAY] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:59 +, Andrew Cooper wrote: > On 25/02/15 12:16, Ian Campbell wrote: > > In RFC style, rather than relying on the implicit assumptions of a > > particular C ABI. > > > > I have also confirmed, using the Python gdb extension technique in > > [0], that the struct offsets (

[Xen-devel] [PATCH] xen/arm: Handle translated addresses for hardware domains in GICv2

2015-02-25 Thread Frediano Ziglio
Translated addresses (in d->arch.vgic.{c,d}base) are now bus addresses which could not always be applied to the DT. Copy the original addresses from DT directly to get the original untranslated reg property which will give same d->arch.vgic.{c,d}base values once translated again. Signed-off-by: Fr

Re: [Xen-devel] [PATCH v2 1/3] x86/numa: Allow arbitrary value of PXM in PXM<->node mapping

2015-02-25 Thread Jan Beulich
>>> On 25.02.15 at 14:11, wrote: > On 02/25/2015 04:34 AM, Jan Beulich wrote: > On 24.02.15 at 20:11, wrote: >>> +{ [0 ... MAX_NUMNODES - 1] = {.node = NUMA_NO_NODE} }; >>> + >>> +static int node_to_pxm(int n); >> I don't see why you need to reinstate this forward declaration. > > It is

Re: [Xen-devel] [OSSTEST PATCH 2/8] emails: branch-settings.osstest: Permit caller to specify OSSTEST_EMAIL_HEADER

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > Do not override this if the environment already has one. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [OSSTEST PATCH 3/8] emails: honour OSSTEST_EMAIL_SUBJECT_PREFIX

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > This is prefixed before the other computed prefixes. It makes it > easier to distinguish an adhoc cr-daily-branch test runs for a real > branch. Do they not already get "adhoc" in the $subject? i.e. my commissioning runs for the new arm crea

Re: [Xen-devel] [OSSTEST PATCH 1/8] emails: cr*: Defer setting of OSSTEST_EMAIL_HEADER

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > Defer computing this variable until it is going to be used. > > The effect is that the fallback default value is assigned much later - > in start_email (cr-daily-branch) or send_bisection_email (cri-bisect). > Previously it was assigned as so

Re: [Xen-devel] [OSSTEST PATCH 5/8] standalone: Always set OSSTEST_NO_BASELINE

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > OSSTEST_NO_BASELINE disables the thing where cr-daily-branch decides > (based on information from sg-check-tested) that the baseline is > untested and therefore that it ought to do a baseline test instead of > testing the tip. > > This whole

Re: [Xen-devel] [PATCH v9 12/13] test_x86_emulator.c: Add tests for #GP usage

2015-02-25 Thread Don Slutz
On 02/25/15 03:30, Jan Beulich wrote: On 24.02.15 at 19:29, wrote: >> +/* >> + * Test out special #GP handling for the VMware port 0x5658. >> + * This is done in two "modes", j=0 and j=1. Testing 4 >> + * instructions (all the basic PIO) in both modes. >> + * >> + * T

Re: [Xen-devel] [OSSTEST PATCH 6/8] standalone: Always pass OLD_REVISION=NONE to cr-daily-branch

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > We don't want sg-report-flight digging through the `test history > database' (which doesn't really exist in standalone mode) looking for > a baseline. > > Passing OLD_REVISION=NONE also avoids calling ./ap-fetch-version-old > for the current

Re: [Xen-devel] [OSSTEST PATCH 7/8] ap-fetch-version-old: Do not honour OSSTEST_USE_HEAD

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > When doing an OSSTEST_USE_HEAD test in infrastructure mode we would > like to use the real osstest mainline baseline as a reference for the > flight reports. (Rather than simply using the very version under test > as the baseline.) > > So re

Re: [Xen-devel] [OSSTEST PATCH 8/8] ap-fetch-version: Use osstest's home to find master tree

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 13:01 +, Ian Jackson wrote: > When ap-fetch-version and ap-fetch-version-old are run on the osstest > controller but as a different user they should look in ~osstest, not > $HOME, for the master testing.git tree. > > Signed-off-by: Ian Jackson But what if they are run n

Re: [Xen-devel] [PATCH v2 3/3] mm: MEMF_node should handle changes in nodeid_t size

2015-02-25 Thread Boris Ostrovsky
On 02/25/2015 05:35 AM, Jan Beulich wrote: On 24.02.15 at 20:11, wrote: @@ -121,10 +123,12 @@ struct npfec { #define _MEMF_exact_node 4 #define MEMF_exact_node (1U<<_MEMF_exact_node) #define _MEMF_node8 -#define MEMF_node(n) n)+1)&0xff)<<_MEMF_node) +#define MEMF_node

[Xen-devel] [PATCH DOCDAY v2] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread Ian Campbell
In RFC style, rather than relying on the implicit assumptions of a particular C ABI. I have also confirmed, using the Python gdb extension technique in [0], that the struct offsets (in a Linux binary at least) are the same as described here. I took the opportunity to also confirm that x86_32, x86

Re: [Xen-devel] stubdom vtpm build failure in staging

2015-02-25 Thread Ian Campbell
On Fri, 2015-02-13 at 02:07 +, Xu, Quan wrote: > I try to redefine tpm2_types.h, deleting 'UINT16, UINT32 ..' and changing > 'TPM_HANDLE ...' to ' TPM2_HANDLE ..', > Or, could you give some advice? Thanks. Perhaps make stubdom/vtpmmgr/types.h with these and use it for both? Or switch to th

Re: [Xen-devel] [PATCH DOCDAY v2] netif.h: describe request/response structures in terms of binary layout

2015-02-25 Thread David Vrabel
On 25/02/15 13:39, Ian Campbell wrote: > > + * Guest transmit > + * == > + * > + * Ring slot size is 12 octets, however not all request/response > + * structs use the full size. > + * > + * tx request data (netif_tx_request_t) > + * > + * > + *0

Re: [Xen-devel] freemem-slack and large memory environments

2015-02-25 Thread Ian Campbell
On Wed, 2015-02-25 at 12:00 +, Ian Campbell wrote: > On Wed, 2015-02-25 at 11:39 +, Stefano Stabellini wrote: > > On Tue, 24 Feb 2015, Ian Campbell wrote: > > > On Tue, 2015-02-24 at 16:06 +, Stefano Stabellini wrote: > > > > > Now that we autodetect the use of dom0_mem and set autoball

Re: [Xen-devel] freemem-slack and large memory environments

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Ian Campbell wrote: > On Wed, 2015-02-25 at 12:00 +, Ian Campbell wrote: > > On Wed, 2015-02-25 at 11:39 +, Stefano Stabellini wrote: > > > On Tue, 24 Feb 2015, Ian Campbell wrote: > > > > On Tue, 2015-02-24 at 16:06 +, Stefano Stabellini wrote: > > > > > > Now that

Re: [Xen-devel] [PATCH v2 3/3] mm: MEMF_node should handle changes in nodeid_t size

2015-02-25 Thread Jan Beulich
>>> On 25.02.15 at 14:30, wrote: > On 02/25/2015 05:35 AM, Jan Beulich wrote: > On 24.02.15 at 20:11, wrote: >>> @@ -121,10 +123,12 @@ struct npfec { >>> #define _MEMF_exact_node 4 >>> #define MEMF_exact_node (1U<<_MEMF_exact_node) >>> #define _MEMF_node8 >>> -#define MEMF_n

Re: [Xen-devel] [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0

2015-02-25 Thread Stefano Stabellini
On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > From: "Luis R. Rodriguez" > > This unwraps XEN_BACKEND from depending on XEN_DOM0, it > instead makes it depend on the possible x86 backends and > under what scenerios its allowed under ARM. This is as per > the agreed upon Xen Kconfig changes [0].

[Xen-devel] [qemu-upstream-unstable test] 35312: regressions - FAIL

2015-02-25 Thread xen . org
flight 35312 qemu-upstream-unstable real [real] http://www.chiark.greenend.org.uk/~xensrcts/logs/35312/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-rhel6hvm-amd 6 leak-check/basis(6) running in 34247 [st=running!] test-a

Re: [Xen-devel] [PATCH 06/13] xen: detect pre-allocated memory interfering with e820 map

2015-02-25 Thread David Vrabel
On 24/02/15 06:27, Juergen Gross wrote: > On 02/19/2015 07:07 PM, David Vrabel wrote: >> On 18/02/2015 06:51, Juergen Gross wrote: >>> +{ >>> +unsigned long pfn; >>> +unsigned long area_start, area_end; >>> +unsigned i; >>> + >>> +for (i = 0; i < XEN_N_RESERVED_AREAS; i++) { >>> + >

Re: [Xen-devel] Xen's Linux kernel config options

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, Stefano Stabellini wrote: > On Tue, 24 Feb 2015, Luis R. Rodriguez wrote: > > On Tue, Feb 24, 2015 at 7:21 AM, Stefano Stabellini > > wrote: > > > On Mon, 23 Feb 2015, Luis R. Rodriguez wrote: > > >> On Thu, Feb 19, 2015 at 3:43 PM, Luis R. Rodriguez > > >> wrote: > > >> > O

Re: [Xen-devel] [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0

2015-02-25 Thread David Vrabel
On 25/02/15 14:17, Stefano Stabellini wrote: > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: >> From: "Luis R. Rodriguez" >> >> This unwraps XEN_BACKEND from depending on XEN_DOM0, it >> instead makes it depend on the possible x86 backends and >> under what scenerios its allowed under ARM. This is

Re: [Xen-devel] [PATCH v2 4/9] xen: arm: correctly handle vtimer traps from userspace

2015-02-25 Thread Ian Campbell
On Thu, 2015-02-19 at 15:13 +, Ian Campbell wrote: > On Thu, 2015-02-19 at 14:42 +, Julien Grall wrote: > > >> Although, I think the debug message in bad_trap is useful to keep. It > > >> may be handy to have the HSR and the guest stack trace printed if Xen > > >> hit the condition. > > >

Re: [Xen-devel] [PATCH v3] xen: arm32: reduce default size of the xenheap

2015-02-25 Thread Ian Campbell
On Thu, 2015-02-19 at 18:57 +, Julien Grall wrote: > Hi Ian, > > On 19/02/15 17:39, Ian Campbell wrote: > > ... and make it tunable via the command line. > > > > 1/8 of RAM is 128M on a 1GB system and 256M on a 2GB system etc, > > which is a lot. 1/32 of RAM seems more reasonable. Also drop t

Re: [Xen-devel] [PATCH v2 4/9] xen: arm: correctly handle vtimer traps from userspace

2015-02-25 Thread Julien Grall
On 25/02/15 14:32, Ian Campbell wrote: > On Thu, 2015-02-19 at 15:13 +, Ian Campbell wrote: >> On Thu, 2015-02-19 at 14:42 +, Julien Grall wrote: > Although, I think the debug message in bad_trap is useful to keep. It > may be handy to have the HSR and the guest stack trace printed

Re: [Xen-devel] [RFC v1 7/8] xen: unwrap XEN_BACKEND from XEN_DOM0

2015-02-25 Thread Stefano Stabellini
On Wed, 25 Feb 2015, David Vrabel wrote: > On 25/02/15 14:17, Stefano Stabellini wrote: > > On Wed, 11 Feb 2015, Luis R. Rodriguez wrote: > >> From: "Luis R. Rodriguez" > >> > >> This unwraps XEN_BACKEND from depending on XEN_DOM0, it > >> instead makes it depend on the possible x86 backends and >

Re: [Xen-devel] [PATCH 1/1] Remove compilation warning

2015-02-25 Thread Wei Liu
On Wed, Feb 25, 2015 at 03:27:13PM +0100, pedro wrote: > offset and size are of type uint16_t so the %lu gives a warning > A %u specifier, the same used in size makes gcc happy > > Signed-off-by: pedro Acked-by: Wei Liu Thanks for the patch. One question though. Is "pedro" your real full name

[Xen-devel] [PATCH 1/1] Remove compilation warning

2015-02-25 Thread pedro
offset and size are of type uint16_t so the %lu gives a warning A %u specifier, the same used in size makes gcc happy Signed-off-by: pedro --- drivers/net/xen-netback/netback.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/xen-netback/netback.c b/drivers/net/xe

Re: [Xen-devel] [PATCH 2/2] xen: arm: Warn if timer interrupts are not level triggered

2015-02-25 Thread Ian Campbell
On Thu, 2015-02-19 at 16:20 +, Julien Grall wrote: > Regardless the question,this patch look good to me. With the 2 nits I > spotted on my previous email: > > Reviewed-by: Julien Grall Thanks, applied both patches (with nits fixed) > > Regards, > __

Re: [Xen-devel] [PATCH 1/1] Remove compilation warning

2015-02-25 Thread Wei Liu
BTW, you should send this patch to net...@vger.kernel.org. Have a look at Documentation/networking/netdev-FAQ.txt for more information. Feel free to ask me any question if you have doubt. Wei. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://l

Re: [Xen-devel] [PATCH 0/8] libxl: make _dispose idempotent and NULL-tolerant

2015-02-25 Thread Wei Liu
Please ignore this series. I will send out another version that's simpler. Wei. ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH] honor MEMF_no_refcount in alloc_heap_pages()

2015-02-25 Thread Jan Beulich
Non-anonymous allocations with this flag set should - for the purpose of the availability check - be treated just like anonymous ones, as they wouldn't lead to a reduction of ->outstanding_pages. Signed-off-by: Jan Beulich --- a/xen/common/page_alloc.c +++ b/xen/common/page_alloc.c @@ -617,7 +61

[Xen-devel] [PATCH v2 4/7] gentypes: zero out structure in _dispose function

2015-02-25 Thread Wei Liu
Original the structure was memset to a poison value. That prevented _dispose to be made idempotent. We should stop doing so. Memseting the structure to 0 makes all pointers in structure become NULL, which can be handled by free(). Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- to

[Xen-devel] [PATCH v2 3/7] libxl: make some _dipose functions idempotent and tolerate NULL

2015-02-25 Thread Wei Liu
These functions are not generated, so we need to do it by hand. Functions list: libxl_bitmap_dispose libxl_string_list_dispose libxl_key_value_list_dipose libxl_cpuid_dispose Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/libxl.c | 11 +-- tools/libx

Re: [Xen-devel] [PATCH v4 1/2] xen/arm: vgic: Keep track of vIRQ used by a domain

2015-02-25 Thread Ian Campbell
On Thu, 2015-02-19 at 18:12 +, Julien Grall wrote: > While it's easy to know which hardware IRQ is assigned to a domain, there > is no way to know which vIRQ is allocated by Xen for a specific domain. > > Introduce a bitmap to keep track of every vIRQ used by a domain. This > will be used late

[Xen-devel] [PATCH] x86/Dom0: minor command line parsing adjustments

2015-02-25 Thread Jan Beulich
Remove a redundant statement from parse_dom0_mem() and refuse bogus ranges (with a separator other than a dash) passed to parse_dom0_max_vcpus(). Fix coding style issues in the latter function at the same time. Signed-off-by: Jan Beulich --- a/xen/arch/x86/domain_build.c +++ b/xen/arch/x86/domai

[Xen-devel] [PATCH v2 2/7] gentest: make testidl valgrind clean

2015-02-25 Thread Wei Liu
Free the JSON string after use to avoid memory leak. With this change testidl is valgrind clean. Signed-off-by: Wei Liu Cc: Ian Campbell Cc: Ian Jackson --- tools/libxl/gentest.py | 10 +++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/tools/libxl/gentest.py b/tools/libx

  1   2   >