Re: [Xen-devel] [PATCH v9 05/13] x86: expose CBM length and COS number information

2015-06-15 Thread Jan Beulich
>>> On 03.06.15 at 06:53, wrote: > General CAT information such as maximum COS and CBM length are exposed to > user space by a SYSCTL hypercall, to help user space to construct the CBM. > > Signed-off-by: Chao Peng > Reviewed-by: Andrew Cooper > --- > Changes in v9: > * Initialize 'info' explic

Re: [Xen-devel] [PATCH v9 04/13] x86: add COS information for each domain

2015-06-15 Thread Jan Beulich
>>> On 03.06.15 at 06:53, wrote: > +static void psr_free_cos(struct domain *d) > +{ > +unsigned int socket; > +unsigned int cos; > +struct psr_cat_socket_info *info; > + > +if( !d->arch.psr_cos_ids ) > +return; > + > +for ( socket = 0; socket < nr_sockets; socket++ ) >

Re: [Xen-devel] [PATCH] x86/HVM: avoid pointer wraparound in bufioreq handling

2015-06-15 Thread Jan Beulich
>>> On 15.06.15 at 16:30, wrote: > The number of slots per page being 511 (i.e. not a power of two) means > that the (32-bit) read and write indexes going beyond 2^32 will likely > disturb operation. Extend I/O req server creation so the caller can > indicate that it is using suitable atomic acces

Re: [Xen-devel] [PATCH] x86/HVM: avoid pointer wraparound in bufioreq handling

2015-06-15 Thread Jan Beulich
>>> On 15.06.15 at 17:55, wrote: > On 15/06/15 15:30, Jan Beulich wrote: >> +/* Canonicalize read/write pointers to prevent their overflow. */ >> +while ( s->bufioreq_atomic && >> +pg->ptrs.read_pointer >= IOREQ_BUFFER_SLOT_NUM ) >> +{ >> +union bufioreq_pointers ol

Re: [Xen-devel] [PATCHv13 2/2] gnttab: steal maptrack entries from other VCPUs

2015-06-15 Thread Jan Beulich
>>> On 15.06.15 at 16:47, wrote: > +static int steal_maptrack_handle(struct grant_table *t, struct vcpu *v) > +{ > +struct domain *d = v->domain; I think this and the vcpu pointer can be const. Also it looks like they should be named currd and curr respectively (the latter would also apply to

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

2015-06-15 Thread osstest service user
flight 58607 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/58607/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-rumpuserxen 5 rumpuserxen-build fail REGR. vs. 33866 build-i386-rumpuserxe

Re: [Xen-devel] [PATCHv13 1/2] gnttab: use per-VCPU maptrack free lists

2015-06-15 Thread Jan Beulich
>>> On 15.06.15 at 16:47, wrote: > @@ -57,7 +58,7 @@ integer_param("gnttab_max_frames", max_grant_frames); > * New options allow to set max_maptrack_frames and > * map_grant_table_frames independently. > */ > -#define DEFAULT_MAX_MAPTRACK_FRAMES 256 > +#define DEFAULT_MAX_MAPTRACK_FRAMES 102

Re: [Xen-devel] [RFC v2 06/15] vt-d: Extend struct iremap_entry to support VT-d Posted-Interrupts

2015-06-15 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Tuesday, June 09, 2015 10:25 PM > To: Wu, Feng > Cc: andrew.coop...@citrix.com; george.dun...@eu.citrix.com; Tian, Kevin; > Zhang, Yang Z; xen-devel@lists.xen.org; k...@xen.org > Subject: Re: [RFC v2 06/15] vt-d:

Re: [Xen-devel] [v3][PATCH 15/16] xen/vtd: enable USB device assignment

2015-06-15 Thread Chen, Tiejun
On 2015/6/16 13:58, Tian, Kevin wrote: From: Chen, Tiejun Sent: Friday, June 12, 2015 5:00 PM On 2015/6/11 18:22, Tian, Kevin wrote: From: Chen, Tiejun Sent: Thursday, June 11, 2015 9:15 AM Before we refine RMRR mechanism, USB RMRR may conflict with guest bios region so we always ignore USB RM

Re: [Xen-devel] [v3][PATCH 15/16] xen/vtd: enable USB device assignment

2015-06-15 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Friday, June 12, 2015 5:00 PM > > On 2015/6/11 18:22, Tian, Kevin wrote: > >> From: Chen, Tiejun > >> Sent: Thursday, June 11, 2015 9:15 AM > >> > >> Before we refine RMRR mechanism, USB RMRR may conflict with guest bios > >> region so we always ignore USB RMRR. > > >

Re: [Xen-devel] [v3][PATCH 08/16] hvmloader/e820: construct guest e820 table

2015-06-15 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Friday, June 12, 2015 4:19 PM > > > >> + * > >> + * #3. High memory region if it exists > >> + */ > >> +for ( i = 0; i < memory_map.nr_map; i++ ) > >> { > >> -e820[nr].addr = ((uint64_t)1 << 32); > >> -e820[nr].size = > >> -

Re: [Xen-devel] Is: graphics corruption with 'xen: Support Xen pv-domains using PAT." Was:Re: [BUG] Characters on the screen are broken on Linux >= 3.19 with VT-d enabled

2015-06-15 Thread Ting-Wei Lan
於 一,2015-06-15 於 14:55 -0400,Konrad Rzeszutek Wilk 提到: > On Sat, Jun 13, 2015 at 12:43:14AM +0800, Ting-Wei Lan wrote: > > When using Linux >= 3.19 as the dom0 kernel, characters on the > > screen become > > broken after the graphic driver is loaded. The commit that breaks > > it is > > (found by

[Xen-devel] [seabios test] 58591: tolerable FAIL - PUSHED

2015-06-15 Thread osstest service user
flight 58591 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/58591/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stop fail never pass test-amd64-i386-xl-qemuu-win7-amd64 16 gues

[Xen-devel] [qemu-mainline test] 58589: trouble: broken/fail/pass

2015-06-15 Thread osstest service user
flight 58589 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/58589/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-qemuu-rhel6hvm-amd 3 host-install(3) broken REGR. vs. 58551

Re: [Xen-devel] [v3][PATCH 07/16] hvmloader/pci: skip reserved ranges

2015-06-15 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Friday, June 12, 2015 3:54 PM > > > >> bar_data |= (uint32_t)base; > >> bar_data_upper = (uint32_t)(base >> 32); > >> +for ( j = 0; j < memory_map.nr_map ; j++ ) > >> +{ > >> +if ( memory_map.map[j].type != E820_RAM ) > >>

Re: [Xen-devel] PCI Passthrough ARM Design : Draft1

2015-06-15 Thread Manish Jaggi
On Friday 12 June 2015 01:32 AM, Ian Campbell wrote: On Thu, 2015-06-11 at 14:38 -0700, Manish Jaggi wrote: On Wednesday 10 June 2015 12:21 PM, Julien Grall wrote: Hi, On 10/06/2015 08:45, Ian Campbell wrote: 4. DomU access / assignment PCI device -- When

[Xen-devel] [ovmf test] 58587: trouble: broken/fail/pass

2015-06-15 Thread osstest service user
flight 58587 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/58587/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-qemuu-rhel6hvm-amd 3 host-install(3) broken REGR. vs. 58433 test-am

Re: [Xen-devel] Is: graphics corruption with 'xen: Support Xen pv-domains using PAT." Was:Re: [BUG] Characters on the screen are broken on Linux >= 3.19 with VT-d enabled

2015-06-15 Thread Juergen Gross
On 06/15/2015 09:03 PM, Ting-Wei Lan wrote: 於 一,2015-06-15 於 14:55 -0400,Konrad Rzeszutek Wilk 提到: On Sat, Jun 13, 2015 at 12:43:14AM +0800, Ting-Wei Lan wrote: When using Linux >= 3.19 as the dom0 kernel, characters on the screen become broken after the graphic driver is loaded. The commit tha

Re: [Xen-devel] VT-d async invalidation for Device-TLB.

2015-06-15 Thread Xu, Quan
> From: Zhang, Yang wrote on June 16, 2015 11:07 AM >> Jan Beulich wrote on 2015-06-15: > On 13.06.15 at 16:44, wrote: > >>> On 12.06.15 at 14:47, wrote: > >> On 12.06.15 at 04:40, wrote: > > On 10.06.15 at 16:05, wrote: > On 03.06.15 at 09:49, wrote: > >> For

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

2015-06-15 Thread osstest service user
flight 58584 xen-4.2-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/58584/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 3 host-install(3) broken REGR. vs. 58411 test-amd64-amd64-

Re: [Xen-devel] FW: VT-d async invalidation for Device-TLB.

2015-06-15 Thread Zhang, Yang Z
Jan Beulich wrote on 2015-06-15: On 13.06.15 at 16:44, wrote: >>> On 12.06.15 at 14:47, wrote: >> On 12.06.15 at 04:40, wrote: > On 10.06.15 at 16:05, wrote: On 03.06.15 at 09:49, wrote: >> For Context Invalidation and IOTLB invalidation without >> Device-

Re: [Xen-devel] [v3][PATCH 04/16] xen/passthrough: extend hypercall to support rdm reservation policy

2015-06-15 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Friday, June 12, 2015 2:31 PM > > >> @@ -1899,7 +1900,8 @@ static int intel_iommu_add_device(u8 devfn, struct > >> pci_dev > >> *pdev) > >>PCI_BUS(bdf) == pdev->bus && > >>PCI_DEVFN2(bdf) == devfn ) > >> { > >> -re

Re: [Xen-devel] [v3][PATCH 10/16] tools: extend xc_assign_device() to support rdm reservation policy

2015-06-15 Thread Chen, Tiejun
On 2015/6/15 22:58, Wei Liu wrote: On Mon, Jun 15, 2015 at 09:12:17AM +0800, Chen, Tiejun wrote: On 2015/6/12 23:43, Wei Liu wrote: On Thu, Jun 11, 2015 at 09:15:19AM +0800, Tiejun Chen wrote: [...] -static int next_bdf(char **str, int *seg, int *bus, int *dev, int *func) +static int next_bdf

Re: [Xen-devel] [v3][PATCH 10/16] tools: extend xc_assign_device() to support rdm reservation policy

2015-06-15 Thread Tian, Kevin
> From: Chen, Tiejun > Sent: Friday, June 12, 2015 4:25 PM > > >> @@ -1792,6 +1794,8 @@ int xc_assign_dt_device( > >> > >> domctl.u.assign_device.dev = XEN_DOMCTL_DEV_DT; > >> domctl.u.assign_device.u.dt.size = size; > >> +/* DT doesn't own any RDM. */ > >> +domctl.u.assign_dev

Re: [Xen-devel] [PATCH 24/27] tools/libx{c, l}: [RFC] Introduce restore_callbacks.checkpoint()

2015-06-15 Thread Yang Hongyang
On 06/15/2015 09:44 PM, Andrew Cooper wrote: And call it when a checkpoint record is found in the libxc stream. Signed-off-by: Andrew Cooper CC: Ian Campbell CC: Ian Jackson CC: Wei Liu --- tools/libxc/include/xenguest.h |3 +++ tools/libxc/xc_sr_restore.c| 15

Re: [Xen-devel] [PATCH 00/27] Libxl migration v2

2015-06-15 Thread Yang Hongyang
On 06/15/2015 09:44 PM, Andrew Cooper wrote: This series adds support for the libxl migration v2 stream, and untangles the existing layering violations of the toolstack and qemu records. At the end of the series, legacy migration is no longer used. Note: Remus support is broken and (RFC) fixe

Re: [Xen-devel] [v3][PATCH 13/16] tools/libxl: detect and avoid conflicts with RDM

2015-06-15 Thread Chen, Tiejun
On 2015/6/15 23:01, Wei Liu wrote: On Mon, Jun 15, 2015 at 09:50:49AM +0800, Chen, Tiejun wrote: [...] + uint32_t flag, + uint16_t seg, + uint8_t bus, + uint8_t devfn, + unsigned int *nr_entries) +{ +st

[Xen-devel] test

2015-06-15 Thread Chen, Tiejun
Please ignore this email and sorry for any inconvenience. Thanks Tiejun ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [RFC v2 13/15] Update Posted-Interrupts Descriptor during vCPU scheduling

2015-06-15 Thread Wu, Feng
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Wednesday, June 10, 2015 2:44 PM > To: Wu, Feng > Cc: andrew.coop...@citrix.com; george.dun...@eu.citrix.com; Tian, Kevin; > Zhang, Yang Z; xen-devel@lists.xen.org; k...@xen.org > Subject: Re: [RFC v2 13/15] Updat

[Xen-devel] [xen-unstable bisection] complete test-amd64-i386-qemuu-rhel6hvm-intel

2015-06-15 Thread osstest service user
branch xen-unstable xen branch xen-unstable job test-amd64-i386-qemuu-rhel6hvm-intel test xen-boot Tree: linux git://xenbits.xen.org/linux-pvops.git Tree: linuxfirmware git://xenbits.xen.org/osstest/linux-firmware.git Tree: qemu git://xenbits.xen.org/staging/qemu-xen-unstable.git Tree: qemuu git:/

[Xen-devel] [linux-next test] 58580: trouble: broken/fail/pass

2015-06-15 Thread osstest service user
flight 58580 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/58580/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-xsm 3 host-install(3) broken REGR. vs. 58522 t

Re: [Xen-devel] [PATCH 07/12] x86/virt/guest/xen: Remove use of pgd_list from the Xen guest code

2015-06-15 Thread Ingo Molnar
* David Vrabel wrote: > On 15/06/15 10:05, Ian Campbell wrote: > > On Sat, 2015-06-13 at 11:49 +0200, Ingo Molnar wrote: > >> xen_mm_pin_all()/unpin_all() are used to implement full guest instance > >> suspend/restore. It's a stop-all method that needs to iterate through all > >> allocated pg

Re: [Xen-devel] virtual filesystem for Xen

2015-06-15 Thread sainath grandhi
Thanks Julien for the input. I came across a blog that talks about virtual file system, but there are no code pointers mentioned in the blog. https://blog.xenproject.org/2009/03/26/status-of-xenfs/. This post is from 2009 though. Are you aware of this work? Thanks Sainath On Sat, Jun 13, 2015 at

Re: [Xen-devel] [PATCH v6 0/2] kconfig: add xenconfig

2015-06-15 Thread Luis R. Rodriguez
On Tue, Jun 9, 2015 at 6:44 AM, Konrad Rzeszutek Wilk wrote: > On Mon, Jun 08, 2015 at 04:35:35PM -0700, Luis R. Rodriguez wrote: >> On Thu, May 28, 2015 at 2:50 PM, Luis R. Rodriguez >> wrote: >> > On Thu, May 21, 2015 at 11:32 AM, Luis R. Rodriguez >> > wrote: >> >> On Thu, May 21, 2015 at 04

[Xen-devel] Is: graphics corruption with 'xen: Support Xen pv-domains using PAT." Was:Re: [BUG] Characters on the screen are broken on Linux >= 3.19 with VT-d enabled

2015-06-15 Thread Konrad Rzeszutek Wilk
On Sat, Jun 13, 2015 at 12:43:14AM +0800, Ting-Wei Lan wrote: > When using Linux >= 3.19 as the dom0 kernel, characters on the screen become > broken after the graphic driver is loaded. The commit that breaks it is > (found by git bisect): > > > https://git.kernel.org/cgit/linux/kernel/git/torval

Re: [Xen-devel] [PATCH QEMU-XEN] xen/pt: Start with emulated PCI_COMMAND set to zero.

2015-06-15 Thread Konrad Rzeszutek Wilk
On Mon, Jun 15, 2015 at 05:19:09PM +0100, Stefano Stabellini wrote: > On Thu, 11 Jun 2015, Jan Beulich wrote: > > >>> On 10.06.15 at 22:53, wrote: > > > --- a/hw/xen/xen_pt.c > > > +++ b/hw/xen/xen_pt.c > > > @@ -785,7 +785,9 @@ out: > > > xen_host_pci_set_word(&s->real_device, PCI_COMMAN

Re: [Xen-devel] [PATCH V4 3/7] libxl: add pvusb API

2015-06-15 Thread Juergen Gross
On 06/15/2015 04:34 PM, George Dunlap wrote: On Mon, Jun 15, 2015 at 3:25 PM, Jürgen Groß wrote: On 06/15/2015 04:17 PM, George Dunlap wrote: On Wed, Jun 10, 2015 at 4:20 AM, Chunyan Liu wrote: diff --git a/tools/libxl/libxl_types.idl b/tools/libxl/libxl_types.idl index 23f27d4..4561e1b 10

[Xen-devel] [linux-3.4 test] 58570: regressions - trouble: broken/fail/pass

2015-06-15 Thread osstest service user
flight 58570 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/58570/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl 9 debian-install fail REGR. vs. 52209-bisect test-amd64-amd64-pair

Re: [Xen-devel] [PATCH V4 3/7] libxl: add pvusb API

2015-06-15 Thread George Dunlap
On 06/10/2015 04:20 AM, Chunyan Liu wrote: > Add pvusb APIs, including: > - attach/detach (create/destroy) virtual usb controller. > - attach/detach usb device > - list usb controller and usb devices > - some other helper functions > > Signed-off-by: Chunyan Liu > Signed-off-by: Simon Cao >

Re: [Xen-devel] [PATCH v5 2/8] xenalyze: increase NR_CPUS to 256

2015-06-15 Thread Olaf Hering
On Mon, Jun 15, Andrew Cooper wrote: > In an ideal world, userspace tools like this should not really be tied > to NR_CPUS or MAX_CPUS. They should get max_cpu_id from Xen and > dynamically allocate a bitmap of sufficient size. The dumps are taken on one machine and get inspected on another, whi

Re: [Xen-devel] [PATCH 1/4] hvmloader: Fixup pci_write* macros

2015-06-15 Thread Andrew Cooper
On 15/06/15 17:09, Mihai Donțu wrote: > On Mon, 15 Jun 2015 16:23:13 +0100 Jan Beulich wrote: > On 15.06.15 at 16:35, wrote: >>> On 15/06/15 15:30, Don Slutz wrote: On 06/15/15 10:19, Andrew Cooper wrote: > Furthermore, what about devfn or reg? > devfn and reg do not need the

[Xen-devel] [OSSTEST PATCH 01/12] Osstest.pm: Provide new db_prepare helper with built-in debugging

2015-06-15 Thread Ian Jackson
No callers, so no functional change, as yet. Signed-off-by: Ian Jackson --- Osstest.pm |9 - 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Osstest.pm b/Osstest.pm index e8bd77b..7d6949f 100644 --- a/Osstest.pm +++ b/Osstest.pm @@ -35,7 +35,7 @@ BEGIN {

[Xen-devel] [OSSTEST PATCH 04/12] sg-report-flight: Use db_prepare

2015-06-15 Thread Ian Jackson
And do away with two commented-out ad-hoc statement dumps. Signed-off-by: Ian Jackson --- sg-report-flight | 28 +--- 1 file changed, 13 insertions(+), 15 deletions(-) diff --git a/sg-report-flight b/sg-report-flight index 80777af..bdaf1c8 100755 --- a/sg-report-flight

[Xen-devel] [OSSTEST PATCH 03/12] cs-bisection-step: Use db_prepare

2015-06-15 Thread Ian Jackson
And do away with one ad-hoc statement dump. Signed-off-by: Ian Jackson --- cs-bisection-step | 21 ++--- 1 file changed, 10 insertions(+), 11 deletions(-) diff --git a/cs-bisection-step b/cs-bisection-step index 67a92b7..bf41f81 100755 --- a/cs-bisection-step +++ b/cs-bisectio

[Xen-devel] [OSSTEST PATCH 02/12] sg-report-job-history: Use db_prepare

2015-06-15 Thread Ian Jackson
Signed-off-by: Ian Jackson --- sg-report-job-history | 14 +++--- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/sg-report-job-history b/sg-report-job-history index 409e3d5..e285caa 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -67,7 +67,7 @@ END

[Xen-devel] [OSSTEST PATCH 11/12] reporting: Show slightly better info for broken jobs

2015-06-15 Thread Ian Jackson
Signed-off-by: Ian Jackson --- Osstest/Executive.pm |9 ++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index 6edbfee..6c16fdd 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -204,7 +204,8 @@ sub report_run_ge

[Xen-devel] [OSSTEST PATCH 10/12] reporting: Add colours as optional export tag, and provide $blue

2015-06-15 Thread Ian Jackson
Signed-off-by: Ian Jackson --- Osstest/Executive.pm |5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Osstest/Executive.pm b/Osstest/Executive.pm index 90c615a..6edbfee 100644 --- a/Osstest/Executive.pm +++ b/Osstest/Executive.pm @@ -52,9 +52,9 @@ BEGIN {

Re: [Xen-devel] [PATCH v5 2/8] xenalyze: increase NR_CPUS to 256

2015-06-15 Thread Andrew Cooper
On 15/06/15 17:14, Olaf Hering wrote: > On Thu, Jun 11, George Dunlap wrote: > >> On 06/11/2015 12:03 PM, Julien Grall wrote: >>> I would suggest some refactoring to remove NR_CPUS and associated code >>> in order to avoid mis-usage later. >>> >>> Also, cpu_mask_t is a uint32_t, is it intentional?

Re: [Xen-devel] [PATCH 3/4] Allow vif= to specify PCI address for each nic

2015-06-15 Thread Don Slutz
On 06/15/15 11:54, Wei Liu wrote: > On Mon, Jun 15, 2015 at 10:15:51AM -0400, Don Slutz wrote: >> This allows more then 32 nics. >> > > How does this patch help? What prevents you from having more than 32 > nics? > Without a way to put the emulated nics onto a PCI to PCI Bridge, you are limited

[Xen-devel] [OSSTEST PATCH 05/12] sg-report-job-history: Add a debugging statement

2015-06-15 Thread Ian Jackson
Signed-off-by: Ian Jackson --- sg-report-job-history |2 ++ 1 file changed, 2 insertions(+) diff --git a/sg-report-job-history b/sg-report-job-history index e285caa..f5f3496 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -150,6 +150,8 @@ sub altcolour ($) { sub processjob

[Xen-devel] [OSSTEST PATCH 09/12] reporting: Move report_run_getinfo and some colours into Executive.pm

2015-06-15 Thread Ian Jackson
This is to support a forthcoming sg-report-host-history. No functional change. Signed-off-by: Ian Jackson --- Osstest/Executive.pm | 45 + sg-report-job-history | 48 2 files changed, 49 insertions

[Xen-devel] [OSSTEST PATCH 12/12] RFC: sg-report-job-history

2015-06-15 Thread Ian Jackson
This script is still a work in progress. Things which I know are still needed: * --flight= option to make it automatically report host usage for a flight * handle db deadlock report (by putting whole script in a db retry) * hook this into the automatic reporting in cr-* Signed-off-by: Ian Jack

[Xen-devel] [OSSTEST PATCH 06/12] sg-report-job-history: Slightly prettify sql

2015-06-15 Thread Ian Jackson
No functional change apart from slightly better debug output. Signed-off-by: Ian Jackson --- sg-report-job-history |4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/sg-report-job-history b/sg-report-job-history index f5f3496..e4f35bf 100755 --- a/sg-report-job-history +++

[Xen-devel] [OSSTEST PATCH 07/12] sg-report-job-history: Cope if history too short

2015-06-15 Thread Ian Jackson
If there have been less than 99 relevant flights, the inner SELECT (to determine the minimum flight number) would return NULL. And anything > NULL is NULL and NULL is treated as false. So the host runvar identification would break. Signed-off-by: Ian Jackson --- sg-report-job-history |5 ++

[Xen-devel] [OSSTEST PATCH 08/12] sg-report-job-history: Show start time

2015-06-15 Thread Ian Jackson
Signed-off-by: Ian Jackson --- sg-report-job-history |7 ++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/sg-report-job-history b/sg-report-job-history index 76cb146..bbb85fd 100755 --- a/sg-report-job-history +++ b/sg-report-job-history @@ -251,7 +251,8 @@ END pr

[Xen-devel] [PATCH 00/12] Reporting and debugging improvements

2015-06-15 Thread Ian Jackson
I have been working on a new script called sg-report-host-history. This is the result so far. The series so far consists of mostly useful improvements, and one bugfix to the existing reporting arrangements. Everything but the last patch is IMO ready to go in right now. Thanks, Ian. __

Re: [Xen-devel] [PATCH OSSTEST v2 09/11] ts-xen-build-prep: install libc6-dev-i386 for jessie

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 05:21:12PM +0100, Ian Jackson wrote: > Wei Liu writes ("[PATCH OSSTEST v2 09/11] ts-xen-build-prep: install > libc6-dev-i386 for jessie"): > > Signed-off-by: Wei Liu > ... > > diff --git a/ts-xen-build-prep b/ts-xen-build-prep > > index 4fdc37e..c348dad 100755 > > --- a/ts

Re: [Xen-devel] [PATCH 2/4] hvmloader: Add support for PCI to PCI bridge

2015-06-15 Thread Don Slutz
On 06/15/15 10:58, George Dunlap wrote: > On Mon, Jun 15, 2015 at 3:26 PM, Andrew Cooper > wrote: >> On 15/06/15 15:15, Don Slutz wrote: >>> Most of this code is ported from SeaBIOS. >>> >>> >> >> SeaBIOS is LGPLv3, while Hvmloader is GPLv2 >> >> IANAL, but the FSF indicates that this is not a com

Re: [Xen-devel] [PATCH OSSTEST v2 11/11] ts-kernel-build: enable CONFIG_FHANDLE

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 11/11] ts-kernel-build: enable CONFIG_FHANDLE"): > According to Debian bug #764539, systemd needs this kernel feature to be > able to mount disks. Complete list of required kernel features can be > found in /usr/share/doc/systemd/README.gz. Uh, and it's not the

Re: [Xen-devel] [PATCH OSSTEST v2 10/11] ts-xen-install: install libnl-route-3-200 for jessie

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 10/11] ts-xen-install: install libnl-route-3-200 for jessie"): > Signed-off-by: Wei Liu ... > target_install_packages($ho, > qw(bridge-utils vncsnapshot libaio1 libpixman-1-0 > libsdl1.2debian libglib2.0-

Re: [Xen-devel] [PATCH v24 12/15] x86/VPMU: Handle PMU interrupts for PV(H) guests

2015-06-15 Thread Boris Ostrovsky
On 06/15/2015 11:50 AM, Jan Beulich wrote: On 10.06.15 at 17:04, wrote: @@ -211,27 +214,65 @@ static inline void context_load(struct vcpu *v) } } -static void amd_vpmu_load(struct vcpu *v) +static int amd_vpmu_load(struct vcpu *v, bool_t from_guest) { struct vpmu_struct *vpm

Re: [Xen-devel] [PATCH v2 COLOPre 11/13] tools/libxl: rename remus device to checkpoint device

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 09:45:54AM +0800, Yang Hongyang wrote: > > > On 06/12/2015 10:57 PM, Ian Jackson wrote: > >Wei Liu writes ("Re: [Xen-devel] [PATCH v2 COLOPre 11/13] tools/libxl: > >rename remus device to checkpoint device"): > >>On Fri, Jun 12, 2015 at 02:30:46PM +0100, Wei Liu wrote: >

Re: [Xen-devel] [PATCH v2 COLOPre 07/13] tools/libxl: Update libxl__domain_unpause() to support qemu-xen

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 09:29:55AM +0800, Yang Hongyang wrote: > > > On 06/12/2015 08:33 PM, Wei Liu wrote: > >On Mon, Jun 08, 2015 at 11:43:11AM +0800, Yang Hongyang wrote: > >>Currently, libxl__domain_unpause() only supports > >>qemu-xen-traditional. Update it to support qemu-xen. > >> > >>Sign

Re: [Xen-devel] [PATCH OSSTEST v2 08/11] ts-xen-build-prep: install libnl-route-3-dev on Jessie

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 08/11] ts-xen-build-prep: install libnl-route-3-dev on Jessie"): > There is no package called libnl-dev on Jessie. To build remus, use > libnl-route-3-dev instead. Acked-by: Ian Jackson ___ Xen-devel mailing list Xe

Re: [Xen-devel] [PATCH OSSTEST v2 09/11] ts-xen-build-prep: install libc6-dev-i386 for jessie

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 09/11] ts-xen-build-prep: install libc6-dev-i386 for jessie"): > Signed-off-by: Wei Liu ... > diff --git a/ts-xen-build-prep b/ts-xen-build-prep > index 4fdc37e..c348dad 100755 > --- a/ts-xen-build-prep > +++ b/ts-xen-build-prep > @@ -232,7 +232,7 @@ END >

Re: [Xen-devel] [PATCH QEMU-XEN] xen/pt: Start with emulated PCI_COMMAND set to zero.

2015-06-15 Thread Stefano Stabellini
On Thu, 11 Jun 2015, Jan Beulich wrote: > >>> On 10.06.15 at 22:53, wrote: > > --- a/hw/xen/xen_pt.c > > +++ b/hw/xen/xen_pt.c > > @@ -785,7 +785,9 @@ out: > > xen_host_pci_set_word(&s->real_device, PCI_COMMAND, > >pci_get_word(d->config + PCI_COMMAND) | cm

Re: [Xen-devel] [PATCH OSSTEST v2 07/11] Debian: grub2: Allow submenu and menuentry items to be indented.

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 07/11] Debian: grub2: Allow submenu and menuentry items to be indented."): > From: Ian Campbell Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH OSSTEST v2 06/11] Cope with Jessie's d-i vg name

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 06/11] Cope with Jessie's d-i vg name"): > In Jessie the default vg name is changed to "$hostname-vg". Make that > default case and check for wheezy, squeeze and lenny for backward > compatibility. ... > -our $vgname= $ho->{Name}; > +our $vgname= $ho->{Sui

Re: [Xen-devel] [PATCH OSSTEST v2 05/11] Debian.pm: install grub to default device

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 05/11] Debian.pm: install grub to default device"): > Debian installer used to have the behaviour to install grub on the > default device. But it's changed in Jessie. > > See https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=759737. Acked-by: Ian Jackson

Re: [Xen-devel] [PATCH OSSTEST v2 03/11] mg-debian-installer-update: Also collect DTBs for standard kernels

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 03/11] mg-debian-installer-update: Also collect DTBs for standard kernels"): > From: Ian Campbell > > For armhf and arm64 for Jessie we will need these in the normal case > as well as in the backports case. Arrange to download. Acked-by: Ian Jackson Ian. __

Re: [Xen-devel] Is: qemu-xen mishandling upper 64-bit BAR compared to qemu-tradWas:Re: Dom0 linux 4.0 + devel/for-linus-4.1 branch: p2m.c:884:d0v0 gfn_to_mfn failed! gfn=ffffffff001ed type:4

2015-06-15 Thread Stefano Stabellini
On Wed, 10 Jun 2015, Jan Beulich wrote: > >>> On 10.06.15 at 13:13, wrote: > > On Wed, 10 Jun 2015, Jan Beulich wrote: > >> >>> On 10.06.15 at 03:02, wrote: > >> > The problem is that the XSA120-addendm patch (which does not clear > >> > the PCI_COMMAND register anymore), causes an missing functi

Re: [Xen-devel] [PATCH OSSTEST v2 02/11] mg-debian-installer-update: updates to better handle Jessie onwards.

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 02/11] mg-debian-installer-update: updates to better handle Jessie onwards."): > From: Ian Campbell I'm afraid I have got fed up of reading the wrap damage in this file. Can you please rewrap at least all the new or changed lines to ~70, and respin ? Thanks,

Re: [Xen-devel] [PATCHv2 2/5] evtchn: simplify port_is_valid()

2015-06-15 Thread Ian Campbell
On Mon, 2015-06-15 at 16:59 +0100, David Vrabel wrote: > On 15/06/15 16:57, Ian Campbell wrote: > > On Mon, 2015-06-15 at 16:48 +0100, David Vrabel wrote: > >> By keeping a count of the number of currently valid event channels, > >> port_is_valid() can be simplified. > >> > >> d->valid_evtchns can

Re: [Xen-devel] [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 04/11] Force sysvinit with Jessie"): > From: Ian Campbell > > Systemd has some issues: > > 1. It doesn't honor osstest-confirm-booted service, which breaks >ts-leak-check. ... > Fall back to SysV init for now. Acked-by: Ian Jackson __

Re: [Xen-devel] [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie

2015-06-15 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie"): > That would do. But this point is moot since we're not using systemd now. > I can rewrite the commit message and comment in next version. Right. > For the record I also had a patch to use "shutdown -r +1" to workaround >

Re: [Xen-devel] [PATCH OSSTEST v2 01/11] More flexible handling of need-kernel-deb-$flavour host flag

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v2 01/11] More flexible handling of need-kernel-deb-$flavour host flag"): > From: Ian Campbell > > The current behaviour does not account for the need to apply this > workaround only for particular Debian releases, i.e. Midway will be > supported just fine in Jess

Re: [Xen-devel] [PATCH v3] tools/libxc: Batch memory allocations for PV guests

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 11:12:07AM +0100, Ross Lagerwall wrote: > The current code for allocating memory for PV guests batches the > hypercalls to allocate memory by allocating 1024*1024 extents of order 0 > at a time. To make this faster, first try allocating extents of order 9 > (2 MiB) before fa

Re: [Xen-devel] [PATCHv2 2/5] evtchn: simplify port_is_valid()

2015-06-15 Thread Ian Campbell
On Mon, 2015-06-15 at 16:48 +0100, David Vrabel wrote: > By keeping a count of the number of currently valid event channels, > port_is_valid() can be simplified. > > d->valid_evtchns can also be tested without holding d->event_lock which > will be useful later on. > > Signed-off-by: David Vrabel

Re: [Xen-devel] [PATCH] x86/HVM: avoid pointer wraparound in bufioreq handling

2015-06-15 Thread Andrew Cooper
On 15/06/15 15:30, Jan Beulich wrote: > The number of slots per page being 511 (i.e. not a power of two) means > that the (32-bit) read and write indexes going beyond 2^32 will likely > disturb operation. Extend I/O req server creation so the caller can > indicate that it is using suitable atomic a

Re: [Xen-devel] [PATCHv2 2/5] evtchn: simplify port_is_valid()

2015-06-15 Thread David Vrabel
On 15/06/15 16:57, Ian Campbell wrote: > On Mon, 2015-06-15 at 16:48 +0100, David Vrabel wrote: >> By keeping a count of the number of currently valid event channels, >> port_is_valid() can be simplified. >> >> d->valid_evtchns can also be tested without holding d->event_lock which >> will be usefu

Re: [Xen-devel] [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 04:48:52PM +0100, Ian Jackson wrote: > Ian Campbell writes ("Re: [PATCH OSSTEST v2 04/11] Force sysvinit with > Jessie"): > > On Mon, 2015-06-15 at 14:36 +0100, Wei Liu wrote: > ... > > > 2. It kills the ssh connection before 'init 6' has a chance > > >return, which bre

[Xen-devel] [PATCHv2 0/5] evtchn: Improve scalebility

2015-06-15 Thread David Vrabel
The per-domain event channel lock limits scalability when many VCPUs are trying to send interdomain events. A per-channel lock is introduced eliminating any lock contention when sending an event. See this graph for the performance improvements: http://xenbits.xen.org/people/dvrabel/evtchn-scal

Re: [Xen-devel] [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie

2015-06-15 Thread Ian Jackson
Ian Campbell writes ("Re: [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie"): > On Mon, 2015-06-15 at 14:36 +0100, Wei Liu wrote: ... > > 2. It kills the ssh connection before 'init 6' has a chance > >return, which breaks ts-host-reboot. Arguably this isn't a bug in systemd, since sshd is r

[Xen-devel] [PATCHv2 3/5] evtchn: use a per-event channel lock for sending events

2015-06-15 Thread David Vrabel
When sending an event, use a new per-event channel lock to safely validate the event channel state. This new lock must be held when changing event channel state. To avoid having to take the remote event channel locks when sending to an interdomain event channel, the local and remote channel locks

Re: [Xen-devel] [PATCH 3/4] Allow vif= to specify PCI address for each nic

2015-06-15 Thread Wei Liu
On Mon, Jun 15, 2015 at 10:15:51AM -0400, Don Slutz wrote: > This allows more then 32 nics. > How does this patch help? What prevents you from having more than 32 nics? > This can help with Windows finding nics at boot time. > > This allows changing config file: > > builder = "hvm" > d

Re: [Xen-devel] [PATCH OSSTEST v2 04/11] Force sysvinit with Jessie

2015-06-15 Thread Ian Campbell
On Mon, 2015-06-15 at 14:36 +0100, Wei Liu wrote: > From: Ian Campbell > > Systemd has some issues: > > 1. It doesn't honor osstest-confirm-booted service, which breaks >ts-leak-check. > 2. It kills the ssh connection before 'init 6' has a chance >return, which breaks ts-host-reboot. >

Re: [Xen-devel] [PATCH OSSTEST v5 2/2] Stubdom test case

2015-06-15 Thread Ian Jackson
Wei Liu writes ("[PATCH OSSTEST v5 2/2] Stubdom test case"): > Currently only QEMU traditional supports stubdom and we want to > eventually do away with non-XSM test cases, so we only create > > test-amd64-{i386,amd64}-xl-qemut-stubdom-debianhvm-amd64-xsm > > Note that stubdom only supports ser

[Xen-devel] [PATCHv2 1/5] evtchn: factor out freeing an event channel

2015-06-15 Thread David Vrabel
We're going to want to free an event channel from two places. Factor out the code into a free_evtchn() function. Signed-off-by: David Vrabel --- xen/common/event_channel.c | 20 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/xen/common/event_channel.c b/xe

[Xen-devel] [PATCHv2 2/5] evtchn: simplify port_is_valid()

2015-06-15 Thread David Vrabel
By keeping a count of the number of currently valid event channels, port_is_valid() can be simplified. d->valid_evtchns can also be tested without holding d->event_lock which will be useful later on. Signed-off-by: David Vrabel --- v2: - Used unsigned int for d->valid_evtchns. --- xen/common/ev

[Xen-devel] [PATCHv2 5/5] evtchn: pad struct evtchn to 64 bytes

2015-06-15 Thread David Vrabel
The number of struct evtchn in a page must be a power of two. Under some workloads performance is improved slightly by padding struct evtchn to 64 bytes (a cache line), thus putting the per-channel locks into their own cache line. This does not decrease the number of struct evtchn's per-page. Si

[Xen-devel] [PATCHv2 4/5] evtchn: remove the locking when unmasking an event channel

2015-06-15 Thread David Vrabel
The event channel lock is no longer required to check if the port is valid. Signed-off-by: David Vrabel --- xen/common/event_channel.c |6 +- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/xen/common/event_channel.c b/xen/common/event_channel.c index 416c76f..aa821ea 100644

Re: [Xen-devel] Proposal: Feature Maturity Lifecycle

2015-06-15 Thread Lars Kurth
> On 15 Jun 2015, at 15:51, George Dunlap wrote: > >> A more practical requirement for a feature with "Supported" status is >> that _either_: >> >> * The feature is tested automatically. >> >> * At least once during each release freeze, the feature's >> maintainers produce a test report (by

[Xen-devel] [linux-linus test] 58568: trouble: broken/fail/pass

2015-06-15 Thread osstest service user
flight 58568 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/58568/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-winxpsp3 3 host-install(3)broken REGR. vs. 58428

Re: [Xen-devel] OpenStack - Libvirt+Xen CI overview : anyone interested in a walk/through or presentation on how it works

2015-06-15 Thread Bob Ball
Hi everyone, Thanks for joining the call today. Lars has uploaded the slides presented to http://www.slideshare.net/xen_com_mgr/xen-project-ci-for-openstack-overview so they can be referenced there. If anyone has further questions about the CI, how it is set up, or how they can be involved pl

Re: [Xen-devel] [PATCH v2] xen/pciif: Clarify what values go in op->err and op->result.

2015-06-15 Thread Konrad Rzeszutek Wilk
On June 15, 2015 5:45:09 AM EDT, Jan Beulich wrote: On 12.06.15 at 22:57, wrote: >> The earlier comment says that errno values go in op->err. >> However all implementations (NetBSD, Linux) of the most >> common operations use XEN_PCI_ERR_* instead of -EXX values. >> >> The exception is the

Re: [Xen-devel] [PATCH v24 08/15] x86/VPMU: When handling MSR accesses, leave fault injection to callers

2015-06-15 Thread Boris Ostrovsky
On 06/15/2015 11:06 AM, Jan Beulich wrote: On 10.06.15 at 17:04, wrote: --- a/xen/arch/x86/hvm/vmx/vpmu_core2.c +++ b/xen/arch/x86/hvm/vmx/vpmu_core2.c @@ -454,36 +454,41 @@ static int core2_vpmu_do_wrmsr(unsigned int msr, uint64_t msr_content, IA32_DEBUGCTLMSR_B

Re: [Xen-devel] [PATCH v5 2/8] xenalyze: increase NR_CPUS to 256

2015-06-15 Thread Olaf Hering
On Thu, Jun 11, George Dunlap wrote: > On 06/11/2015 12:03 PM, Julien Grall wrote: > > I would suggest some refactoring to remove NR_CPUS and associated code > > in order to avoid mis-usage later. > > > > Also, cpu_mask_t is a uint32_t, is it intentional? > > When xenalyze was originally written

Re: [Xen-devel] [PATCH v2] x86: synchronize PCI config space access decoding

2015-06-15 Thread Andrew Cooper
On 15/06/15 15:30, Jan Beulich wrote: > --- a/xen/arch/x86/hvm/hvm.c > +++ b/xen/arch/x86/hvm/hvm.c > @@ -2406,11 +2406,6 @@ void hvm_vcpu_down(struct vcpu *v) > struct hvm_ioreq_server *hvm_select_ioreq_server(struct domain *d, > ioreq_t *p) > {

Re: [Xen-devel] [PATCH 1/4] hvmloader: Fixup pci_write* macros

2015-06-15 Thread Mihai Donțu
On Mon, 15 Jun 2015 16:23:13 +0100 Jan Beulich wrote: > >>> On 15.06.15 at 16:35, wrote: > > On 15/06/15 15:30, Don Slutz wrote: > >> On 06/15/15 10:19, Andrew Cooper wrote: > >>> Furthermore, what about devfn or reg? > >>> > >> devfn and reg do not need the bracketing since they are just passed,

Re: [Xen-devel] [PATCH v9 03/13] x86: maintain COS to CBM mapping for each socket

2015-06-15 Thread Jan Beulich
>>> On 03.06.15 at 06:53, wrote: > @@ -209,6 +215,23 @@ void psr_ctxt_switch_to(struct domain *d) > } > } > > +static int cat_cpu_prepare(unsigned int cpu) > +{ > +struct psr_cat_socket_info *info; > + > +if ( !cat_socket_info ) > +return 0; > + > +info = cat_socket_inf

  1   2   3   >