Re: [Xen-devel] [PATCH v2 00/22] Introduce HVM without dm and new boot ABI

2015-07-03 Thread Roger Pau Monné
El 03/07/15 a les 3.59, Yang Hongyang ha escrit: > Hi Roger, > > This seems to be a PVH guest, but IIRC a PVH guest should explicitly > specify 'pvh' in the config, maybe I'm wrong or did I miss some background? > Are there any meterial about this? Not yet. The interface exposed to the guest is

Re: [Xen-devel] Blktap 3.0.0 improvement

2015-07-03 Thread Akash Talole
I have attached the code of block-vhd.c. On Wed, Jul 1, 2015 at 11:18 PM, Akash Talole wrote: > Hello, > I want to know about Blktap asynchronous i/o read write operations on VHD. > I want to know detail flow of program block-VHD.c . How the read write > operations are performed on VHD . > And a

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

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

Re: [Xen-devel] can't create a vNUMA enabled PV guest

2015-07-03 Thread Dario Faggioli
On Thu, 2015-07-02 at 16:25 -0400, Elena Ufimtseva wrote: > On Wed, Jul 1, 2015 at 10:42 AM, Dario Faggioli > > If I build a PV guest, it breaks: > > > > root@Zhaman:~# xl create -c /etc/xen/test.cfg > > Parsing config from /etc/xen/test.cfg > > xc: error: panic: xc_dom_x86.c:940: arch_setup_memin

[Xen-devel] [PATCH] xen-netback: remove duplicated function definition

2015-07-03 Thread Liang Li
There are two duplicated xenvif_zerocopy_callback() definitions. Remove one of them. Signed-off-by: Liang Li --- drivers/net/xen-netback/common.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/net/xen-netback/common.h b/drivers/net/xen-netback/common.h index 8a495b3..c6cb85a 10064

Re: [Xen-devel] [PATCH 4/4] xen: sched: get rid of cpupool_scheduler_cpumask()

2015-07-03 Thread Dario Faggioli
On Thu, 2015-07-02 at 16:39 +0100, George Dunlap wrote: > On Thu, Jun 25, 2015 at 1:15 PM, Dario Faggioli > > diff --git a/xen/common/sched_credit.c b/xen/common/sched_credit.c > > index a1945ac..8c36635 100644 > > --- a/xen/common/sched_credit.c > > +++ b/xen/common/sched_credit.c > > @@ -374,7

Re: [Xen-devel] osstest "short fast" tests of xen-unstable proposal

2015-07-03 Thread Dario Faggioli
On Thu, 2015-07-02 at 18:17 +0100, George Dunlap wrote: > On Tue, Jun 30, 2015 at 6:46 PM, Ian Jackson > wrote: > > Invent a new `xen-unstable-smoke' flight (in osstest terminology, a > > `branch'). > > > > This would be a push gate for xen.git. Its input would be > > xen.git#staging. Its outp

Re: [Xen-devel] [PATCH 3/6] x86/xsaves: enable xsaves/xrstors for hvm guest

2015-07-03 Thread Chao Peng
On Thu, Jul 02, 2015 at 10:02:28PM +0800, Shuai Ruan wrote: > This patch enables xsaves for hvm guest, includes: > 1.handle xsaves vmcs init and vmexit. > 2.add logic to write/read the XSS msr. > > Signed-off-by: Shuai Ruan > --- > xen/arch/x86/hvm/hvm.c | 40 > +

Re: [Xen-devel] Xen + futexes

2015-07-03 Thread Dario Faggioli
On Thu, 2015-07-02 at 12:48 +0200, Dario Faggioli wrote: > [0] http://www.akkadia.org/drepper/futex.pdf > And, BTW, this is an (old, but) nice reading as well, about futees: https://www.kernel.org/doc/ols/2002/ols2002-pages-479-495.pdf Dario -- <> (Raistlin Majere) -

Re: [Xen-devel] Blktap 3.0.0 improvement

2015-07-03 Thread Ian Campbell
I'm afraid that blktap 3 is not part of Xen and therefore you won't find many people who can answer questions, at least not on this list. More generally, questions posed in this way, even on maintained areas of code, do not often result in much attention, take a look at http://wiki.xen.org/wiki/As

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

2015-07-03 Thread osstest service owner
flight 59028 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/59028/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-qemuu-rhel6hvm-amd 14 leak-check/checkfail REGR. vs. 59016 test-amd64-i386-xl-qemuu-win

Re: [Xen-devel] [RFC PATCH v3 09/18] xen/arm: ITS: Add virtual ITS commands support

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 12:20 +0530, Vijay Kilari wrote: > On Mon, Jun 29, 2015 at 5:53 PM, Ian Campbell wrote: > > On Mon, 2015-06-22 at 17:31 +0530, vijay.kil...@gmail.com wrote: > >> +static int vgic_its_process_mapvi(struct vcpu *v, struct vgic_its *vits, > >> +

[Xen-devel] Help

2015-07-03 Thread Akash Talole
Hello, I want to know about Blktap asynchronous i/o read write operations on VHD. I want to know detail flow of program block-VHD.c . How the read write operations are performed on VHD . And any improvement in code would be done for better read write operations. Description about dynamic d

Re: [Xen-devel] [rumpuserxen test] People who touched revisions under test: Antti Kantee Ian Jackson Martin Lucina Wei Liu

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 06:50 +, osstest service owner wrote: > flight 59037 rumpuserxen real [real] > http://logs.test-lab.xenproject.org/osstest/logs/59037/ Ian, looks like some body text has ended up in the header section of the mail. Perhaps something like this is needed? (maybe with more

Re: [Xen-devel] [OSSTEST PATCH 1/4] guest_find_domid: Set Vcpus correctly.

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 18:11 +0100, Ian Jackson wrote: > The regexp was wrong, resulting in the last digit of the memory being > mistaken for the number of vcpus (!) > > The only consumer of this is ts-logs-capture. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell Perhaps at some point in

Re: [Xen-devel] [OSSTEST PATCH 2/4] ts-logs-capture: Find xenctx in /usr/local as well

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 18:11 +0100, Ian Jackson wrote: > xenctx is now in /usr/local/lib/xen/bin/xenctx. > ^^ > Find it by setting PATH in the shell command. > > Signed-off-by: Ian Jackson Acked-by: Ian Campbell ___ Xen-deve

Re: [Xen-devel] [OSSTEST PATCH 3/4] ts-logs-capture: Break out guest listing and do it earlier

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 18:11 +0100, Ian Jackson wrote: > Break out the function find_guests from what was > fetch_logs_host_guests, and have it save its results in the @guests > global. > > We do this soon because in the next patch we are going to want to > do something to each guest before we call

Re: [Xen-devel] [OSSTEST PATCH 4/4] ts-logs-capture: Run xenctx earlier

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 18:11 +0100, Ian Jackson wrote: > Break fetch_xenctx_guest out into its own function, and run it before > serial_fetch_logs. > > This is relevant because serial_fetch_logs sends the Xen debug keys, > which might dislodge a stuck guest - and, if it does, we would like to > hav

[Xen-devel] [PATCH OSSTEST v1] ap-fetch-version: Arrange for osstest merges from upstream to be stable

2015-07-03 Thread Ian Campbell
If a downstream osstest instance has nothing to test it its local pretest then it will attempt to merge from the upstream instance. If this fails then it will try again and again generating a new merge commit each time, even if upstream has not moved. It is desirable that these merges instead be s

Re: [Xen-devel] [PATCH mini-os] Correct printf formatting for tpm_tis message.

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 02:21 +0200, Samuel Thibault wrote: > Ian Campbell, le Fri 26 Jun 2015 11:58:40 +0100, a écrit : > > This is under #ifdef HAVE_LIBC so went unnoticed before. > > > > Signed-off-by: Ian Campbell > > Acked-by: Samuel Thibault Applied, thanks.

[Xen-devel] [linux-4.1 baseline test] "Old" tested version had not actually been tested; therefore in this

2015-07-03 Thread osstest service owner
flight we test it, rather than a new candidate. The baseline, if any, is the most recent actually tested revision. 59031: tolerable trouble: blocked/broken/fail/pass X-Osstest-Failures: linux-4.1:test-armhf-armhf-xl-credit2:build-check(1):blocked:nonblocking linux-4.1:test-armhf-armhf-xl-

[Xen-devel] [OSSTEST PATCH] sg-report-flight: Fix --include (broken by 3d56a191)

2015-07-03 Thread Ian Jackson
In 3d56a191 "sg-report-flight: Make bodyprint[f] defer the output" it became wrong for anything in the main printout part of sg-report-flight to write directly to STDOUT. However, the two (very similar) bits of code for handling the two kinds of --include still used cat. The result is emails look

[Xen-devel] [PATCH v2 0/7] get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
Hey, Here's v2 of my 'campaign' against SEDF. Updates are: - I've got George's R-b for the whole series, - I've applied Andrew's review comment (patch 4) - OSSTest has stopped testing SEDF already (no sign of it here http://logs.test-lab.xenproject.org/osstest/logs/59025/) There is a git b

[Xen-devel] [PATCH v2 3/7] libxc: get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/Makefile |1 - tools/libxc/include/xenctrl.h | 12 -- tools/libxc/xc_sedf.c | 78 -

[Xen-devel] [PATCH v2 1/7] libxl: get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
only the interface is left in place, for backward compile-time compatibility, but every attempt to use it would throw an error. Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxl/libxl.c|

[Xen-devel] [PATCH v2 5/7] xen: kill sched_sedf.c

2015-07-03 Thread Dario Faggioli
Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- xen/common/sched_sedf.c | 1556 --- 1 file changed, 1556 deletions(-) delete mode 100644 xen/common/sched_sedf.c diff --git a/xen/common/sched_sedf.c b/xen/common/sched_sedf.c deleted file

[Xen-devel] [PATCH v2 2/7] tools: python: get rid of the SEDF scheduler bindings

2015-07-03 Thread Dario Faggioli
as it is going away from libxc, so these won't build any longer. Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/python/xen/lowlevel/xc/xc.c | 70 - 1 file change

[Xen-devel] [PATCH v2 7/7] docs: get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- docs/INDEX |1 - docs/man/xlcpupool.cfg.pod.5|4 --- docs/misc/sedf_scheduler_mini-HOWTO.txt | 44 --

[Xen-devel] [PATCH v2 6/7] xl: get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- docs/man/xl.cfg.pod.5 | 24 docs/man/xl.pod.1 | 42 -- tools/libxl/xl.h |1 tools/libxl/xl_cmdimpl.c | 139

[Xen-devel] [PATCH v2 4/7] xen: get rid of the SEDF scheduler

2015-07-03 Thread Dario Faggioli
more specifically, of all the symbols and references to it. Signed-off-by: Dario Faggioli Reviewed-by: George Dunlap --- Cc: Andrew Cooper Changes from v1: - added markers for removed #defines, to help keep bits of the history, and reduce the likelyhood of accidental reuse, as requested

Re: [Xen-devel] [OSSTEST PATCH] sg-report-flight: Fix --include (broken by 3d56a191)

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 11:23 +0100, Ian Jackson wrote: > In 3d56a191 "sg-report-flight: Make bodyprint[f] defer the output" it > became wrong for anything in the main printout part of > sg-report-flight to write directly to STDOUT. However, the two (very > similar) bits of code for handling the two

Re: [Xen-devel] [PATCH v2 4/7] xen: get rid of the SEDF scheduler

2015-07-03 Thread Andrew Cooper
On 03/07/15 11:25, Dario Faggioli wrote: > more specifically, of all the symbols and references > to it. > > Signed-off-by: Dario Faggioli > Reviewed-by: George Dunlap > --- > Cc: Andrew Cooper > > Changes from v1: > - added markers for removed #defines, to help keep bits >of the history, a

Re: [Xen-devel] [PATCH v2] xen/arm: Find automatically the gnttab region for DOM0

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 17:50 +0100, Stefano Stabellini wrote: > On Thu, 2 Jul 2015, Julien Grall wrote: > > Hi, > > > > Ping? > > > > The patch looks very nice. > > Reviewed-by: Stefano Stabellini Acked + applied. Thanks, sorry for the delay, I thought this was already in. Ian

Re: [Xen-devel] [v3 00/13] xen/arm: Add support for GICv2 on GICv3

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 11:37 +0100, Julien Grall wrote: > On 01/07/15 12:00, Julien Grall wrote: > > Hi all, > > Hi Ian, > > > This patch series adds support for GICv2 on GICv3. This feature is available > > only when the GICv3 hardware is compatible with GICv2. > > > > When it's the case, the sa

Re: [Xen-devel] [PATCH 1/2] libxl: turn NUMA placement misconfigs into warnings

2015-07-03 Thread Ian Campbell
On Wed, 2015-07-01 at 15:38 +0100, Ian Jackson wrote: > Dario Faggioli writes ("[PATCH 1/2] libxl: turn NUMA placement misconfigs > into warnings"): > > instead than errors. More specifically, in libxl, > > b_info->numa_autoplacement is meant as a way to > > disable automatic NUMA placement, if on

Re: [Xen-devel] [PATCH v2 12/22] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-07-03 Thread David Vrabel
On 01/07/15 15:46, Roger Pau Monne wrote: > This new elfnote contains the 32bit entry point into the kernel. Xen will > use this entry point in order to launch the guest kernel in 32bit protected > mode with paging disabled. [...] > --- a/tools/xcutils/readnotes.c > +++ b/tools/xcutils/readnotes.c

Re: [Xen-devel] [PATCH v9 0/8] Support more than 8 vcpus on arm64 with GICv3

2015-07-03 Thread Ian Campbell
On Tue, 2015-06-30 at 16:14 +0100, Ian Campbell wrote: > On Tue, 2015-06-30 at 16:00 +0800, Chen Baozi wrote: > > From: Chen Baozi > > > > Currently the number of vcpus on arm64 with GICv3 is limited up to 8 due > > to the fixed size of redistributor mmio region. Increasing the size > > makes the

Re: [Xen-devel] [PATCH v9 6/8] xen/arm: Set 'reg' of cpu node for dom0 to match MPIDR's affinity

2015-07-03 Thread Ian Campbell
On Tue, 2015-06-30 at 16:00 +0800, Chen Baozi wrote: > +mpidr_aff = vcpuid_to_vaffinity(cpu); > +DPRINT("Create cpu@%"PRIx64" (logical CPUID: %d) node\n", mpidr_aff, > cpu); > > -snprintf(buf, sizeof(buf), "cpu@%u", cpu); > +snprintf(buf, sizeof(buf), "cpu@%lx", m

Re: [Xen-devel] [PATCH xen] stubdom: vtpmmgr: Correctly format size_t with %z when printing.

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 02:23 +0200, Samuel Thibault wrote: > Ian Campbell, le Fri 26 Jun 2015 12:06:09 +0100, a écrit : > > Also contains a fix from Thomas Leonard (to use %u for "4 + 32", not > > %lu) previously posted as part of "mini-os: enable compiler check for > > printk format types" but with

Re: [Xen-devel] [v3 00/13] xen/arm: Add support for GICv2 on GICv3

2015-07-03 Thread Julien Grall
On 03/07/15 11:33, Ian Campbell wrote: > On Thu, 2015-07-02 at 11:37 +0100, Julien Grall wrote: >> On 01/07/15 12:00, Julien Grall wrote: >>> Hi all, >> >> Hi Ian, >> >>> This patch series adds support for GICv2 on GICv3. This feature is available >>> only when the GICv3 hardware is compatible with

Re: [Xen-devel] [PATCH v4 6/6] xen: arm: Import of_bus PCI entry from Linux (as a dt_bus entry)

2015-07-03 Thread Ian Campbell
On Fri, 2015-06-26 at 20:08 +0200, Julien Grall wrote: > Hi Ian, > > On 08/05/2015 13:27, Ian Campbell wrote: > > This provides specific handlers for the PCI bus relating to matching > > and translating. It's mostly similar to the defaults but includes some > > additional error checks and other PC

Re: [Xen-devel] [PATCH v2 12/22] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-07-03 Thread Roger Pau Monné
El 03/07/15 a les 12.36, David Vrabel ha escrit: > On 01/07/15 15:46, Roger Pau Monne wrote: >> This new elfnote contains the 32bit entry point into the kernel. Xen will >> use this entry point in order to launch the guest kernel in 32bit protected >> mode with paging disabled. > [...] >> --- a/too

Re: [Xen-devel] [PATCH v4 6/6] xen: arm: Import of_bus PCI entry from Linux (as a dt_bus entry)

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 11:47 +0100, Ian Campbell wrote: > On Fri, 2015-06-26 at 20:08 +0200, Julien Grall wrote: > > Hi Ian, > > > > On 08/05/2015 13:27, Ian Campbell wrote: > > > This provides specific handlers for the PCI bus relating to matching > > > and translating. It's mostly similar to the

Re: [Xen-devel] [PATCH v4 5/6] xen: arm: map child MMIO and IRQs to dom0 for PCI bus DT nodes.

2015-07-03 Thread Ian Campbell
On Fri, 2015-06-26 at 19:56 +0200, Julien Grall wrote: > Hi Ian, > > NIT in the title: The final point is not necessary > > On 08/05/2015 13:26, Ian Campbell wrote: > > +static int map_device_children(struct domain *d, > > + const struct dt_device_node *dev) > > +{ >

[Xen-devel] [OSSTEST PATCH] mg-update-live: New script

2015-07-03 Thread Ian Jackson
This is for deploying an emergency update under the feet of all running tests. Signed-off-by: Ian Jackson --- mg-update-live | 46 ++ 1 file changed, 46 insertions(+) create mode 100755 mg-update-live diff --git a/mg-update-live b/mg-update-live ne

Re: [Xen-devel] [OSSTEST PATCH] mg-update-live: New script

2015-07-03 Thread Ian Jackson
Ian Jackson writes ("[OSSTEST PATCH] mg-update-live: New script"): > This is for deploying an emergency update under the feet of all > running tests. FYI, I actually ran a slightly earlier version of this script so I think we shouldn't see any more broken emails. About a dozen trees were updated.

Re: [Xen-devel] [PATCH 1/2] libxl: turn NUMA placement misconfigs into warnings

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH 1/2] libxl: turn NUMA placement misconfigs into warnings"): > On Wed, 2015-07-01 at 15:38 +0100, Ian Jackson wrote: > > Acked-by: Ian Jackson > > Applied both patches with your ack. Right. > > But, be aware that you are making a semantic change to the API which

Re: [Xen-devel] [PATCH] xl: Change output from xl -N create to be more useful

2015-07-03 Thread Ian Jackson
Ian Jackson writes ("[PATCH] xl: Change output from xl -N create to be more useful"): > Note that this change is NOT BACKWARDS COMPATIBLE. But it would only > adversely affects anyone who uses `xl -N create' and then saves and > processes the JSON. (The output from xl list et al is not changed;

Re: [Xen-devel] [PATCH OSSTEST v3] mg-all-branch-statuses: Show how up to date each branch is

2015-07-03 Thread Ian Campbell
On Thu, 2015-07-02 at 17:30 +0100, Ian Jackson wrote: > > +printf "%-28s %-8s %-8s %-9s %-10s %-10s\n" \ > > + "Branch" "Basis" "Tip" "#Tip #Tot" "1stTip" "1stNew" > > + > > +for branch in $@; do > > +basis=`./ap-fetch-version-old $branch 2>/dev/null || true` > > +tip=`./ap-fetch-version

Re: [Xen-devel] [PATCH] libxl: Increase device model startup timeout to 1min.

2015-07-03 Thread Anthony PERARD
On Thu, Jul 02, 2015 at 01:38:37PM +0100, Ian Jackson wrote: > Anthony PERARD writes ("Re: [PATCH] libxl: Increase device model startup > timeout to 1min."): > > I have tested an increase timeout this night. And here are the result. > > > > The machine is a AMD Opteron(tm) Processor 4284, with 8G

Re: [Xen-devel] [OSSTEST PATCH 4/4] ts-logs-capture: Run xenctx earlier

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [OSSTEST PATCH 4/4] ts-logs-capture: Run xenctx earlier"): > At first I wondered if before and after might be useful, but I don't > think the unstuck state would be useful. However two (or more) > back-to-back ctxt's can often be useful, by giving a snapshot of the > loop

Re: [Xen-devel] [PATCH v4 6/6] xen: arm: Import of_bus PCI entry from Linux (as a dt_bus entry)

2015-07-03 Thread Julien Grall
On 03/07/15 11:56, Ian Campbell wrote: > On Fri, 2015-07-03 at 11:47 +0100, Ian Campbell wrote: >> On Fri, 2015-06-26 at 20:08 +0200, Julien Grall wrote: >>> Hi Ian, >>> >>> On 08/05/2015 13:27, Ian Campbell wrote: This provides specific handlers for the PCI bus relating to matching and t

Re: [Xen-devel] [PATCH] xl: Change output from xl -N create to be more useful

2015-07-03 Thread Ian Campbell
On Fri, 2015-06-26 at 15:29 +0100, Ian Jackson wrote: > Currently, xl -N create produces: > > { > "domid": null, > "config": { > "c_info": { > "type": "pv", > [etc] > } > > The domid is always NULL (as the domain has not been created at thi

Re: [Xen-devel] [PATCH OSSTEST v3] mg-all-branch-statuses: Show how up to date each branch is

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v3] mg-all-branch-statuses: Show how up to date each branch is"): > On Thu, 2015-07-02 at 17:30 +0100, Ian Jackson wrote: > > This is quite fault-oblivious, isn't it. Oh well. > > Yes, the problem is that for branches with no baseline: > $ ./ap-fetch-vers

Re: [Xen-devel] [PATCH v4 5/6] xen: arm: map child MMIO and IRQs to dom0 for PCI bus DT nodes.

2015-07-03 Thread Julien Grall
Hi Ian, On 03/07/15 11:59, Ian Campbell wrote: > On Fri, 2015-06-26 at 19:56 +0200, Julien Grall wrote: >> I forgot to mention in the previous version that we need to give iomem >> permission to the guest. Otherwise DOM0 won't be able to map the BAR >> into the guest. > > This boils down to a c

Re: [Xen-devel] [PATCH] libxl: Increase device model startup timeout to 1min.

2015-07-03 Thread Ian Jackson
Anthony PERARD writes ("Re: [PATCH] libxl: Increase device model startup timeout to 1min."): > On Thu, Jul 02, 2015 at 01:38:37PM +0100, Ian Jackson wrote: > > I'm starting to think that this might be a real bug but that the bug > > might be "Linux's I/O subsystem sometimes produces appalling late

Re: [Xen-devel] [PATCH] xl: Change output from xl -N create to be more useful

2015-07-03 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH] xl: Change output from xl -N create to be more useful"): > On Fri, 2015-06-26 at 15:29 +0100, Ian Jackson wrote: ... > > -if (debug || dom_info->dryrun) > > -printf_info(default_output_format, -1, &d_config, > > -debug ? stderr : st

Re: [Xen-devel] [PATCH v4 6/6] xen: arm: Import of_bus PCI entry from Linux (as a dt_bus entry)

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 12:24 +0100, Julien Grall wrote: > On 03/07/15 11:56, Ian Campbell wrote: > > On Fri, 2015-07-03 at 11:47 +0100, Ian Campbell wrote: > >> On Fri, 2015-06-26 at 20:08 +0200, Julien Grall wrote: > >>> Hi Ian, > >>> > >>> On 08/05/2015 13:27, Ian Campbell wrote: > This provi

[Xen-devel] [PATCH v3 07/32] xen/x86: fix arch_set_info_guest for HVM guests

2015-07-03 Thread Roger Pau Monne
Add checks for ignored vcpu fields in HVM mode. HVM vCPUs (BSP and APs) are always started in 32bit protected mode with paging disabled. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/domain.c | 14 +++--- 1 file changed, 11 insertions(+), 3 deletions

[Xen-devel] [PATCH v3 01/32] libxc: split x86 HVM setup_guest into smaller logical functions

2015-07-03 Thread Roger Pau Monne
This is just a preparatory change to clean up the code in setup_guest. Should not introduce any functional changes. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/xc_hvm_build_x86.c | 198

[Xen-devel] [PATCH v3 02/32] libxc: unify xc_dom_p2m_{host/guest}

2015-07-03 Thread Roger Pau Monne
Unify both functions into xc_dom_p2m. Should not introduce any functional change. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Samuel Thibault --- stubdom/grub/kexec.c | 4 ++-- tools/libxc/include/xc_dom.h | 14 ++

[Xen-devel] [PATCH v3 00/32] Introduce HVM without dm and new boot ABI

2015-07-03 Thread Roger Pau Monne
This series are now rebased on top of Paul Durrant "x86/hvm: I/O emulation cleanup and fix" v5. This series is split in the following order: - Patches from 1 to 10 switch HVM domain contruction to use the xc_dom_* family of functions, like they are used to build PV domains. - Patches from

[Xen-devel] [PATCH v3 08/32] libxc: introduce a xc_dom_arch for hvm-3.0-x86_32 guests

2015-07-03 Thread Roger Pau Monne
This xc_dom_arch will be used in order to build HVM domains. The code is based on the existing xc_hvm_populate_memory and xc_hvm_populate_params functions. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/include/xc_dom.h |

[Xen-devel] [PATCH v3 06/32] libxc: make arch_setup_boot{init/late} xc_dom_arch hooks

2015-07-03 Thread Roger Pau Monne
This should not introduce any functional change. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/include/xc_dom.h | 7 ++-- tools/libxc/xc_dom_arm.c | 38 - tools/libxc/xc_dom_boot.c| 4 +-- tool

[Xen-devel] [PATCH v3 04/32] libxc: introduce a domain loader for HVM guest firmware

2015-07-03 Thread Roger Pau Monne
Introduce a very simple (and dummy) domain loader to be used to load the firmware (hvmloader) into HVM guests. Since hmvloader is just a 32bit elf executable the loader is fairly simple. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- to

[Xen-devel] [PATCH v3 03/32] libxc: introduce the notion of a container type

2015-07-03 Thread Roger Pau Monne
Introduce the notion of a container type into xc_dom_image. This will be needed by later changes that will also use xc_dom_image in order to build HVM guests. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/include/xc_dom.h |

[Xen-devel] [PATCH v3 05/32] libxc: make arch_setup_meminit a xc_dom_arch hook

2015-07-03 Thread Roger Pau Monne
This allows having different arch_setup_meminit implementations based on the guest type. It should not introduce any functional changes. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/include/xc_dom.h | 4 ++- tools/libxc/x

[Xen-devel] [PATCH v3 09/32] libxl: switch HVM domain building to use xc_dom_* helpers

2015-07-03 Thread Roger Pau Monne
Now that we have all the code in place HVM domain building in libxl can be switched to use the xc_dom_* family of functions, just like they are used in order to build PV guests. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxl

[Xen-devel] [PATCH v3 20/32] xen/x86: allow disabling the emulated IOMMU

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Suravee Suthikulpanit Cc: Aravind Gopalakrishnan --- xen/drivers/passthrough/amd/iommu_guest.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/xen/drivers/passthrough/amd/iommu_guest.c b/xen/drivers/passthrough/amd/iommu_guest.c index 59

[Xen-devel] [PATCH v3 11/32] xen/x86: add bitmap of enabled emulated devices

2015-07-03 Thread Roger Pau Monne
Introduce a bitmap in x86 xen_arch_domainconfig that allows enabling or disabling specific devices emulated inside of Xen for HVM guests. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Jan Beulich Cc: Andrew Cooper --- tools/libxl/lib

[Xen-devel] [PATCH v3 27/32] libxc: change the position of the special pages

2015-07-03 Thread Roger Pau Monne
Change the physical memory address of the special pages when there are no emulated devices. On HVM guests the special pages have always been reserved so that they end at the 0xff000 pfn, but there are some problems with this approach when used without emulated devices: - If we want to allow HVMli

[Xen-devel] [PATCH v3 21/32] xen/x86: allow disabling all emulated devices inside of Xen

2015-07-03 Thread Roger Pau Monne
Only allow enabling or disabling all the emulated devices inside of Xen, right now Xen doesn't support enabling specific emulated devices only. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/domain.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) di

[Xen-devel] [PATCH v3 14/32] xen/x86: allow disabling the pmtimer

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/pmtimer.c | 13 + 1 file changed, 13 insertions(+) diff --git a/xen/arch/x86/hvm/pmtimer.c b/xen/arch/x86/hvm/pmtimer.c index 8b531d9..335a296 100644 --- a/xen/arch/x86/hvm/pmtimer.c +++ b/xen/arc

[Xen-devel] [PATCH v3 23/32] libxc: allow creating domains without emulated devices.

2015-07-03 Thread Roger Pau Monne
Introduce a new flag in xc_dom_image that turns on and off the emulated devices. This prevents creating the VGA hole, the hvm_info page and the ioreq server pages. libxl unconditionally sets it to true for all HVM domains at the moment. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano

[Xen-devel] [PATCH v3 10/32] libxc: remove dead HVM building code

2015-07-03 Thread Roger Pau Monne
Remove xc_hvm_build_x86.c and xc_hvm_build_arm.c since xc_hvm_build is not longer used in order to create HVM guests. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/libxc/Makefile | 2 - tools/libxc/include/xenguest

[Xen-devel] [PATCH v3 13/32] xen/x86: allow disabling the emulated HPET

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/hpet.c | 13 + xen/arch/x86/hvm/hvm.c | 1 - 2 files changed, 13 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/hpet.c b/xen/arch/x86/hvm/hpet.c index 732504a..9773034 100644 --- a/x

[Xen-devel] [PATCH v3 15/32] xen/x86: allow disabling the emulated RTC

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/rtc.c | 16 1 file changed, 16 insertions(+) diff --git a/xen/arch/x86/hvm/rtc.c b/xen/arch/x86/hvm/rtc.c index fde120b..d6d24c8 100644 --- a/xen/arch/x86/hvm/rtc.c +++ b/xen/arch/x86/hvm/rtc

[Xen-devel] [PATCH v3 25/32] xen/x86: allow HVM guests to use hypercalls to bring up vCPUs

2015-07-03 Thread Roger Pau Monne
Allow the usage of the VCPUOP_initialise, VCPUOP_up, VCPUOP_down and VCPUOP_is_up hypercalls from HVM guests. Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/hvm.c | 8 1 file changed, 8 insertions(+) diff --git a/xen/arch/x86/hvm/hvm.c b/xen/arc

[Xen-devel] [PATCH v3 30/32] libxc/xen: introduce HVM_PARAM_MODLIST_PFN

2015-07-03 Thread Roger Pau Monne
This HVM parameter is used to pass a list of loaded modules to the guest. Right now the number of loaded modules is limited to 1 by the current implementation, but this interface allows passing more than one module. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian C

[Xen-devel] [PATCH v3 17/32] xen/x86: allow disabling the emulated PIC

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/vpic.c | 11 ++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vpic.c b/xen/arch/x86/hvm/vpic.c index 909b9d0..2eb162a 100644 --- a/xen/arch/x86/hvm/vpic.c +++ b/xen/ar

[Xen-devel] [PATCH v3 28/32] libxc/xen: introduce HVM_PARAM_CMDLINE_PFN

2015-07-03 Thread Roger Pau Monne
This HVM parameter returns a PFN that contains the address of the memory page where the guest command line has been placed. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Jan Beulich Cc: Andrew Cooper --- tools/libxc/xc_dom_x86.c

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

2015-07-03 Thread Roger Pau Monne
Replace the firmware loaded into HVM guests with an OS kernel. Since the HVM builder now uses the PV xc_dom_* set of functions this kernel will be parsed and loaded inside the guest like on PV, but the container is a pure HVM guest. Also, if device_model_version is set to none unconditinally set t

[Xen-devel] [PATCH v3 16/32] xen/x86: allow disabling the emulated IO APIC

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/vioapic.c | 14 ++ 1 file changed, 14 insertions(+) diff --git a/xen/arch/x86/hvm/vioapic.c b/xen/arch/x86/hvm/vioapic.c index 9de2ff3..4cfc704 100644 --- a/xen/arch/x86/hvm/vioapic.c +++ b/xen/ar

[Xen-devel] [PATCH v3 31/32] libxc: switch xc_dom_elfloader to be used with HVMlite domains

2015-07-03 Thread Roger Pau Monne
Allow xc_dom_elfloader to report a guest type as hvm-3.0-x86_32 if it's running inside of a HVM container and has the PHYS32_ENTRY elfnote set. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- Only xc_dom_elfloader has been switched to sup

[Xen-devel] [PATCH v3 19/32] xen/x86: allow disabling the emulated VGA

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/stdvga.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/x86/hvm/stdvga.c b/xen/arch/x86/hvm/stdvga.c index f13983e..87d0725 100644 --- a/xen/arch/x86/hvm/stdvga.c +++ b/xen/arch/x86/hvm/std

[Xen-devel] [PATCH v3 24/32] xen: allow HVM guests to use XENMEM_memory_map

2015-07-03 Thread Roger Pau Monne
Enable this hypercall for HVM guests in order to fetch the e820 memory map in the absence of an emulated BIOS. The memory map is populated and notified to Xen in arch_setup_meminit_hvm. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu Cc: Jan

[Xen-devel] [PATCH v3 18/32] xen/x86: allow disabling the emulated pmu

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/x86/hvm/vpmu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/hvm/vpmu.c b/xen/arch/x86/hvm/vpmu.c index c3273ee..776661d 100644 --- a/xen/arch/x86/hvm/vpmu.c +++ b/xen/arch/x86/hvm/v

[Xen-devel] [PATCH v3 22/32] elfnotes: intorduce a new PHYS_ENTRY elfnote

2015-07-03 Thread Roger Pau Monne
This new elfnote contains the 32bit entry point into the kernel. Xen will use this entry point in order to launch the guest kernel in 32bit protected mode with paging disabled. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/xcutil

[Xen-devel] [PATCH v3 12/32] xen/x86: allow disabling the emulated local apic

2015-07-03 Thread Roger Pau Monne
Signed-off-by: Roger Pau Monné Cc: Boris Ostrovsky Cc: Suravee Suthikulpanit Cc: Aravind Gopalakrishnan Cc: Jan Beulich Cc: Andrew Cooper Cc: Jun Nakajima Cc: Eddie Dong Cc: Kevin Tian --- xen/arch/x86/hvm/svm/svm.c | 16 +--- xen/arch/x86/hvm/vlapic.c | 30

[Xen-devel] [PATCH v3 26/32] xenconsole: try to attach to PV console if HVM fails

2015-07-03 Thread Roger Pau Monne
HVM guests have always used the emulated serial console by default, but if the emulated serial pty cannot be fetched from xenstore try to use the PV console instead. Signed-off-by: Roger Pau Monné Cc: Ian Jackson Cc: Stefano Stabellini Cc: Ian Campbell Cc: Wei Liu --- tools/console/client/ma

[Xen-devel] [PATCH v3 29/32] libxc/xen: introduce HVM_PARAM_FIRST_FREE_PFN

2015-07-03 Thread Roger Pau Monne
This HVM parameter returns the first free pfn after all the special pages. It can be used by guests to figure out the first free memory address after the kernel, ramdisk and special pages. This is interesting for compatibility reasons in case more special pages are later added, older guests can sti

Re: [Xen-devel] [PATCH OSSTEST v3] mg-all-branch-statuses: Show how up to date each branch is

2015-07-03 Thread Ian Campbell
On Fri, 2015-07-03 at 12:26 +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH OSSTEST v3] mg-all-branch-statuses: Show how > up to date each branch is"): > > On Thu, 2015-07-02 at 17:30 +0100, Ian Jackson wrote: > > > This is quite fault-oblivious, isn't it. Oh well. > > > > Yes, the

[Xen-devel] [OSSTEST PATCH 4/6] ts-logs-capture: Run xenctx earlier

2015-07-03 Thread Ian Jackson
Break fetch_xenctx_guest out into its own function, and run it before serial_fetch_logs. This is relevant because serial_fetch_logs sends the Xen debug keys, which might dislodge a stuck guest - and, if it does, we would like to have captured the stuck state with xenctx, rather than the unstuck on

[Xen-devel] [OSSTEST PATCH 5/6] ts-logs-capture: Run xenctx twice for each guest vcpu

2015-07-03 Thread Ian Jackson
Two (or more) back-to-back ctxt's can often be useful, by giving a snapshot of a loop the guest is stuck in. Signed-off-by: Ian Jackson --- v2: New patch in this series. --- ts-logs-capture | 10 ++ 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/ts-logs-capture b/ts-logs

[Xen-devel] [PATCH 1/3] xl: Break out flush_stream

2015-07-03 Thread Ian Jackson
We are going to want to reuse this. Adjust the code slightly to detect right away call sites that pass something other than stdout or stderr. No resulting functional change. Signed-off-by: Ian Jackson --- v2: New patch in this version of the mini-series --- tools/libxl/xl_cmdimpl.c | 22

[Xen-devel] [OSSTEST PATCH 2/6] ts-logs-capture: Find xenctx in /usr/local as well

2015-07-03 Thread Ian Jackson
xenctx is now in /usr/local/lib/xen/bin/xenctx. ^^ Find it by setting PATH in the shell command. Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- ts-logs-capture |6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts-logs-capture b/ts-logs-

[Xen-devel] [OSSTEST PATCH 3/6] ts-logs-capture: Break out guest listing and do it earlier

2015-07-03 Thread Ian Jackson
Break out the function find_guests from what was fetch_logs_host_guests, and have it save its results in the @guests global. We do this soon because in the next patch we are going to want to do something to each guest before we call serial_fetch_logs. The loop containing fetch_logs_guest is now i

[Xen-devel] [OSSTEST PATCH 1/6] guest_find_domid: Set Vcpus correctly.

2015-07-03 Thread Ian Jackson
The regexp was wrong, resulting in the last digit of the memory being mistaken for the number of vcpus (!) The only consumer of this is ts-logs-capture. Signed-off-by: Ian Jackson Acked-by: Ian Campbell --- Osstest/TestSupport.pm |2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff -

[Xen-devel] [OSSTEST PATCH 6/6] ts-logs-capture: Explicitly set xenctx capture filename

2015-07-03 Thread Ian Jackson
Now that the command contains PATH, the autogenerated filename is very ugly. Signed-off-by: Ian Jackson --- v2: New patch in this version of the series. --- ts-logs-capture |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ts-logs-capture b/ts-logs-capture index b2caa77

[Xen-devel] [PATCH 2/3] xl: Change output from xl -N create to be more useful

2015-07-03 Thread Ian Jackson
Currently, xl -N create produces: { "domid": null, "config": { "c_info": { "type": "pv", [etc] } The domid is always NULL (as the domain has not been created at this stage). This is annoying if you want to take this output and use it for s

  1   2   3   >