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

2015-06-05 Thread osstest service user
flight 57903 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/57903/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-libvirt-xsm 11 guest-start fail REGR. vs. 57419 test-amd64-i386-libvirt

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

2015-06-05 Thread osstest service user
flight 57998 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/57998/ 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

[Xen-devel] Status of Improved RTDS (Was: Xen 4.6 Development Update (X months reminder)

2015-06-05 Thread Meng Xu
Hi Wei, > > > * Improve RTDS scheduler (none) It has two parts: > >Change RTDS from quantum driven to event driven This is part 1 which only involves the hypervisor change; The part 2 is supporting per-vcpu parameter get/set function in the toolstack. > > - Dagaen Golomb, Meng Xu, Cho

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

2015-06-05 Thread osstest service user
flight 57912 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/57912/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 16 guest-stopfail REGR. vs. 56492 test-amd64-i386-xl-qemuu-win

Re: [Xen-devel] [PATCH 1/2 linux-next] Revert "ufs: fix deadlocks introduced by sb mutex merge"

2015-06-05 Thread Al Viro
On Fri, Jun 05, 2015 at 07:50:18PM +0100, Al Viro wrote: > Basically, we have > i_mutex: file size changes, contents-affecting syscalls. Per-inode. > truncate_mutex: block pointers changes. Per-inode. > s_lock: block and inode bitmaps changes. Per-filesystem. > > For UFS it's

[Xen-devel] [xen-4.5-testing test] 57908: tolerable FAIL - PUSHED

2015-06-05 Thread osstest service user
flight 57908 xen-4.5-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/57908/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-amd64-rumpuserxen-amd64 15 rumpuserxen-demo-xenstorels/xenstorels.repeat fail in 57854 pass in 5790

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Tim Deegan
At 18:21 +0100 on 05 Jun (1433528517), Andrew Cooper wrote: > On 05/06/15 18:16, Stefano Stabellini wrote: > > On Fri, 5 Jun 2015, Andrew Cooper wrote: > >> On 05/06/15 17:43, Boris Ostrovsky wrote: > >>> On 06/05/2015 12:16 PM, Roger Pau Monné wrote: > El 03/06/15 a les 14.08, Jan Beulich ha

Re: [Xen-devel] [PATCH] xen/arm: Propagate clock-frequency to DOMU if present in the DT timer node

2015-06-05 Thread Chris (Christopher) Brand
Hi Julien, >When the property "clock-frequency" is present in the DT timer node, it means >that the bootloader/firmware didn't correctly configured the CNTFRQ/CNTFRQ_EL0 on each processor. I did try this out, and it didn't affect my results. I don't understand why, though :-) What I see is tha

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

2015-06-05 Thread osstest service user
flight 57904 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/57904/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-win7-amd64 16 guest-stop fail in 57788 REGR. vs. 57312 Tests which are faili

Re: [Xen-devel] [PATCH v2] xen/pcifront: Remove usage of struct timeval

2015-06-05 Thread Konrad Rzeszutek Wilk
On Wed, May 20, 2015 at 08:16:24AM -0500, Bjorn Helgaas wrote: > On Tue, May 19, 2015 at 1:08 AM, Tina Ruchandani > wrote: > > struct timeval uses a 32-bit field for representing seconds, > > which will overflow in the year 2038 and beyond. This patch replaces > > struct timeval with 64-bit ktime_

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Wei Liu
On Fri, Jun 05, 2015 at 06:13:01PM +0100, Stefano Stabellini wrote: > On Fri, 5 Jun 2015, Ian Campbell wrote: > > On Fri, 2015-06-05 at 17:43 +0100, Wei Liu wrote: > > > > > 3. Add a libxl layer that wraps necessary information, take over > > >Andrew's work on libxl migration v2. Having a lib

Re: [Xen-devel] save & restore failed when tmem enabled in Xen 4.1 & Xen 4.3

2015-06-05 Thread Andrew Cooper
On 05/06/15 19:45, Konrad Rzeszutek Wilk wrote: > On Thu, Jun 04, 2015 at 10:27:06PM +0800, yunfang tai wrote: >> Hi all, > Hey! >> Recently, I am testing the TMEM support on Xen. I discovered that when >> enabled TMEM in ubuntu 14.10 as guest on Xen 4.1 & Xen 4.3, "xm save" & "xm >> restore“ f

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

2015-06-05 Thread osstest service user
flight 57928 rumpuserxen real [real] http://logs.test-lab.xenproject.org/osstest/logs/57928/ 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] [PATCH 1/2 linux-next] Revert "ufs: fix deadlocks introduced by sb mutex merge"

2015-06-05 Thread Al Viro
On Fri, Jun 05, 2015 at 06:27:01PM +0200, Fabian Frederick wrote: > You're asking to remove lock_ufs() in allocation and replace it by > truncate_mutex. I guess you're talking about doing that on current rc > (without s_lock restored). > > I tried a quick patch on rc trying to convert lock_ufs()/

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 18:10 +0100, Stefano Stabellini wrote: > On Fri, 5 Jun 2015, Wei Liu wrote: > > Hi all > > > > This bug is now considered a blocker for 4.6 release. > > > > The premises of the problem remain the same (George's translated > > version): > > > > 1. QEMU may need extra pages f

Re: [Xen-devel] save & restore failed when tmem enabled in Xen 4.1 & Xen 4.3

2015-06-05 Thread Konrad Rzeszutek Wilk
On Thu, Jun 04, 2015 at 10:27:06PM +0800, yunfang tai wrote: > Hi all, Hey! > Recently, I am testing the TMEM support on Xen. I discovered that when > enabled TMEM in ubuntu 14.10 as guest on Xen 4.1 & Xen 4.3, "xm save" & "xm > restore“ failed after there are more than 1000 pages put in persi

Re: [Xen-devel] [PATCH V6 05/10] xen/arm64: gicv3: Use AFF1 when translating ICC_SGI1R_EL1 to cpumask

2015-06-05 Thread Julien Grall
On 05/06/2015 17:09, Ian Campbell wrote: + * injection, ignoring level 2 & 3. + */ +if ( gicv3_sgir_to_cpumask(&vcpu_mask, sgir) ) +{ +gprintk(XENLOG_WARNING, "Wrong affinity in SGI1R_EL register\n"); I don't think we need to log this. The guest has

Re: [Xen-devel] [PATCH V6 03/10] xen/arm: Use the new functions for vCPUID/vaffinity transformation

2015-06-05 Thread Julien Grall
On 05/06/2015 16:56, Ian Campbell wrote: On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: From: Chen Baozi There are 3 places to change: * Initialise vMPIDR value in vcpu_initialise() * Find the vCPU from vMPIDR affinity information when accessing GICD registers in vGIC * Find the vCPU

Re: [Xen-devel] [PATCH] libxl: refactor toolstack save restore code

2015-06-05 Thread Wei Liu
On Fri, Jun 05, 2015 at 06:46:35PM +0100, Andrew Cooper wrote: > On 05/06/15 18:01, Wei Liu wrote: > > This patch does following things: > > 1. Document v1 format. > > 2. Factor out function to handle QEMU restore data and function to > >handle v1 blob for restore path. > > 3. Refactor save fun

Re: [Xen-devel] [BUG] Kernel BUG in page_alloc.c (mismatched start and end zone) using xl generated e820 map

2015-06-05 Thread Konrad Rzeszutek Wilk
On Tue, Jun 02, 2015 at 02:58:17PM +, Simon Waterman wrote: > Hi, > > We're hitting the kernel BUG below in one of our VMs running on Xen 4.4 and > Linux kernel 3.13.0. We use the xl toolstack and are using PCI pass-through > to pass network cards and a disk controller. It happens on a varie

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Wei Liu
On Fri, Jun 05, 2015 at 06:10:17PM +0100, Stefano Stabellini wrote: > On Fri, 5 Jun 2015, Wei Liu wrote: > > Hi all > > > > This bug is now considered a blocker for 4.6 release. > > > > The premises of the problem remain the same (George's translated > > version): > > > > 1. QEMU may need extra

Re: [Xen-devel] [PATCH V6 01/10] xen/arm: gic-v3: Increase the size of GICR in address space for guest

2015-06-05 Thread Julien Grall
On 05/06/2015 17:31, Ian Campbell wrote: On Fri, 2015-06-05 at 17:04 +0100, Julien Grall wrote: On 05/06/15 16:49, Ian Campbell wrote: On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: From: Chen Baozi Currently it only supports up to 8 vCPUs. Increase the region to hold up to 128 vCPUs

Re: [Xen-devel] [RFC 20/22] xen/arm: gic: Expose the vGIC versions suported by GIC

2015-06-05 Thread Julien Grall
Hi Ian, On 05/06/2015 13:35, Ian Campbell wrote: On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: Some version of the GIC are able so support multiple versions of the vGIC. For instance, some version of the GICv3 can as well support GICv2. Signed-off-by: Julien Grall After my suggesti

Re: [Xen-devel] [PATCH] libxl: refactor toolstack save restore code

2015-06-05 Thread Andrew Cooper
On 05/06/15 18:01, Wei Liu wrote: > This patch does following things: > 1. Document v1 format. > 2. Factor out function to handle QEMU restore data and function to >handle v1 blob for restore path. > 3. Refactor save function to generate different blobs in the order >specified in format spe

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Wei Liu
On Fri, Jun 05, 2015 at 05:58:11PM +0100, Ian Campbell wrote: > On Fri, 2015-06-05 at 17:43 +0100, Wei Liu wrote: > > > 3. Add a libxl layer that wraps necessary information, take over > >Andrew's work on libxl migration v2. Having a libxl layer that's not > >part of migration v2 is a was

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Andrew Cooper
On 05/06/15 18:16, Stefano Stabellini wrote: > On Fri, 5 Jun 2015, Andrew Cooper wrote: >> On 05/06/15 17:43, Boris Ostrovsky wrote: >>> On 06/05/2015 12:16 PM, Roger Pau Monné wrote: El 03/06/15 a les 14.08, Jan Beulich ha escrit: On 03.06.15 at 12:02, wrote: >> On Tue, 2 Jun 20

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Boris Ostrovsky
On 06/05/2015 01:16 PM, Stefano Stabellini wrote: On Fri, 5 Jun 2015, Andrew Cooper wrote: On 05/06/15 17:43, Boris Ostrovsky wrote: On 06/05/2015 12:16 PM, Roger Pau Monné wrote: El 03/06/15 a les 14.08, Jan Beulich ha escrit: On 03.06.15 at 12:02, wrote: On Tue, 2 Jun 2015, Andrew Cooper

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Andrew Cooper
On 05/06/15 17:58, Ian Campbell wrote: > On Fri, 2015-06-05 at 17:43 +0100, Wei Liu wrote: > >> 3. Add a libxl layer that wraps necessary information, take over >>Andrew's work on libxl migration v2. Having a libxl layer that's not >>part of migration v2 is a waste of effort. >> >> There a

[Xen-devel] Status of alternate p2m support (Was: Xen 4.6 Development Update (five months reminder, 5 WEEKS TO FREEZE))

2015-06-05 Thread Ed White
On 06/05/2015 06:53 AM, wei.l...@citrix.com wrote: > * Alternate p2m: support multiple copies of host p2m (ok) > - Ed White > Revised design doc should be posted early week of June 8th. V2 of patch series should follow within a couple of weeks. V2 is significantly changed based on list feedb

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Stefano Stabellini
On Fri, 5 Jun 2015, Andrew Cooper wrote: > On 05/06/15 17:43, Boris Ostrovsky wrote: > > On 06/05/2015 12:16 PM, Roger Pau Monné wrote: > >> El 03/06/15 a les 14.08, Jan Beulich ha escrit: > >> On 03.06.15 at 12:02, wrote: > On Tue, 2 Jun 2015, Andrew Cooper wrote: > > With my x86 mai

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Stefano Stabellini
On Fri, 5 Jun 2015, Ian Campbell wrote: > On Fri, 2015-06-05 at 17:43 +0100, Wei Liu wrote: > > > 3. Add a libxl layer that wraps necessary information, take over > >Andrew's work on libxl migration v2. Having a libxl layer that's not > >part of migration v2 is a waste of effort. > > > >

Re: [Xen-devel] [Draft D] Xen on ARM vITS Handling

2015-06-05 Thread Vijay Kilari
On Fri, Jun 5, 2015 at 10:08 PM, Ian Campbell wrote: > On Fri, 2015-06-05 at 21:25 +0530, Vijay Kilari wrote: >> Let xen mark those phantom devices added using MAPD as dummy and >> just emulate and does not translate ITS commands for these devices. > > But we think guests might use this mechanism

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Stefano Stabellini
On Fri, 5 Jun 2015, Wei Liu wrote: > Hi all > > This bug is now considered a blocker for 4.6 release. > > The premises of the problem remain the same (George's translated > version): > > 1. QEMU may need extra pages from Xen to implement option ROMS, and so at >the moment it calls set_max_me

[Xen-devel] [PATCH] libxl: refactor toolstack save restore code

2015-06-05 Thread Wei Liu
This patch does following things: 1. Document v1 format. 2. Factor out function to handle QEMU restore data and function to handle v1 blob for restore path. 3. Refactor save function to generate different blobs in the order specified in format specification. 4. Change functions to use "goto o

Re: [Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 17:43 +0100, Wei Liu wrote: > 3. Add a libxl layer that wraps necessary information, take over >Andrew's work on libxl migration v2. Having a libxl layer that's not >part of migration v2 is a waste of effort. > > There are several obstacles for libxl migration v2 at

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Andrew Cooper
On 05/06/15 17:43, Boris Ostrovsky wrote: > On 06/05/2015 12:16 PM, Roger Pau Monné wrote: >> El 03/06/15 a les 14.08, Jan Beulich ha escrit: >> On 03.06.15 at 12:02, wrote: On Tue, 2 Jun 2015, Andrew Cooper wrote: > With my x86 maintainer hat on, the following is an absolute > mi

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Boris Ostrovsky
On 06/05/2015 12:21 PM, Stefano Stabellini wrote: On Fri, 5 Jun 2015, Roger Pau Monné wrote: El 03/06/15 a les 14.08, Jan Beulich ha escrit: On 03.06.15 at 12:02, wrote: On Tue, 2 Jun 2015, Andrew Cooper wrote: With my x86 maintainer hat on, the following is an absolute minimum set of prereq

Re: [Xen-devel] [xen-unstable test] 57852: regressions - FAIL

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 11:48 +0100, Ian Campbell wrote: > All the flights in the new colo seem to have been on fiano[01]. > > But having looked at the page again the early success was all on fiano0 > while the later failures were all on fiano1. > > fiano[01] are supposedly identical hardware. > >

[Xen-devel] QEMU bumping memory bug analysis

2015-06-05 Thread Wei Liu
Hi all This bug is now considered a blocker for 4.6 release. The premises of the problem remain the same (George's translated version): 1. QEMU may need extra pages from Xen to implement option ROMS, and so at the moment it calls set_max_mem() to increase max_pages so that it can allocate

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Boris Ostrovsky
On 06/05/2015 12:16 PM, Roger Pau Monné wrote: El 03/06/15 a les 14.08, Jan Beulich ha escrit: On 03.06.15 at 12:02, wrote: On Tue, 2 Jun 2015, Andrew Cooper wrote: With my x86 maintainer hat on, the following is an absolute minimum set of prerequisite for PVH. * 32bit support Could you ple

Re: [Xen-devel] [PATCHv11 4/4] gnttab: use per-VCPU maptrack free lists

2015-06-05 Thread David Vrabel
On 05/06/15 17:11, Jan Beulich wrote: On 05.06.15 at 17:55, wrote: >> On 05/06/15 15:51, Jan Beulich wrote: >> On 02.06.15 at 18:26, wrote: +/* + * max_maptrack_frames is per domain so each VCPU gets a share of + * the maximum, but allow at least one frame per

Re: [Xen-devel] [PATCH] xen/pass-through: ROM BAR handling adjustments

2015-06-05 Thread Stefano Stabellini
On Fri, 5 Jun 2015, Jan Beulich wrote: > >>> On 05.06.15 at 13:32, wrote: > >> --- a/hw/xen/xen_pt.c > >> +++ b/hw/xen/xen_pt.c > >> @@ -248,7 +248,9 @@ static void xen_pt_pci_write_config(PCID > >> > >> /* check unused BAR register */ > >> index = xen_pt_bar_offset_to_index(addr); > >

Re: [Xen-devel] [RFC 21/22] arm: Allow the user to specify the GIC version

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 17:00 +0100, Julien Grall wrote: > >> diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c > >> index 648ca08..b033c0b 100644 > >> --- a/tools/libxl/xl_cmdimpl.c > >> +++ b/tools/libxl/xl_cmdimpl.c > >> @@ -1298,6 +1298,18 @@ static void parse_config_data(const cha

Re: [Xen-devel] [Draft D] Xen on ARM vITS Handling

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 21:25 +0530, Vijay Kilari wrote: > Let xen mark those phantom devices added using MAPD as dummy and > just emulate and does not translate ITS commands for these devices. But we think guests might use this mechanism to drive completion (instead of polling), so we have to trans

Re: [Xen-devel] [PATCH V6 09/10] xen/arm: make domain_max_vcpus return value from vgic_ops

2015-06-05 Thread Julien Grall
On 05/06/15 17:26, Ian Campbell wrote: > On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: >> [...] >> +#define GICV2_MAX_CPUS 8 > > This and GICV3_MAX_CPUS don't seem very worthwhile, unless there are to > be other uses of them. > > In fact, GICV3_MAX_CPUS is really MAX_VIRT_CPUS, through i

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

2015-06-05 Thread Boris Ostrovsky
On 06/05/2015 12:09 PM, Jan Beulich wrote: @@ -201,27 +202,56 @@ 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 *vpmu = vcpu_vpmu(v); -struct x

Re: [Xen-devel] [RFC 22/22] xen/arm: gic-v3: Add support of vGICv2 when available

2015-06-05 Thread Julien Grall
On 05/06/15 13:48, Ian Campbell wrote: > On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: >> * Modify the GICv3 driver to recognize a such device. I wasn't able >> to find a register which tell if GICv2 is supported on GICv3. The only >> way to find it seems to check if the DT node provid

Re: [Xen-devel] [PATCH v23 11/15] VPMU/AMD: Check MSR values before writing to hardware

2015-06-05 Thread Boris Ostrovsky
On 06/05/2015 12:03 PM, Jan Beulich wrote: On 29.05.15 at 20:42, wrote: @@ -289,19 +302,24 @@ static int amd_vpmu_do_wrmsr(unsigned int msr, uint64_t msr_content, { struct vcpu *v = current; struct vpmu_struct *vpmu = vcpu_vpmu(v); +unsigned int idx = 0; +int type = get_p

Re: [Xen-devel] [PATCH V6 01/10] xen/arm: gic-v3: Increase the size of GICR in address space for guest

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 17:04 +0100, Julien Grall wrote: > On 05/06/15 16:49, Ian Campbell wrote: > > On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > >> From: Chen Baozi > >> > >> Currently it only supports up to 8 vCPUs. Increase the region to hold > >> up to 128 vCPUs, which is the maximum

Re: [Xen-devel] [PATCH V6 09/10] xen/arm: make domain_max_vcpus return value from vgic_ops

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > [...] > +#define GICV2_MAX_CPUS 8 This and GICV3_MAX_CPUS don't seem very worthwhile, unless there are to be other uses of them. In fact, GICV3_MAX_CPUS is really MAX_VIRT_CPUS, through it's association with the affinity mapping, i.e. if on

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Ian Campbell
On Wed, 2015-06-03 at 09:35 -0400, Boris Ostrovsky wrote: > > What I'm hearing from the x86 maintainers is that this is actually a > > high priority and not a "nice to have cleanup". > > > >> I picked 32-bit support, Elena is looking into AMD > > With the TODOs + these 2 being the things which the

Re: [Xen-devel] [PATCH V6 08/10] xen: Add arch_domain_preinit to initialise vGIC before evtchn_init

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > evtchn_init will call domain_max_vcpus to allocate poll_mask. On > arm/arm64 platform, this number is determined by the vGIC the guest > is going to use, which won't be initialised until arch_domain_create > is called in

Re: [Xen-devel] [PATCH V6 10/10] xen/arm64: increase MAX_VIRT_CPUS to 128 on arm64

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > After we have increased the size of GICR in address space for guest > and made use of both AFF0 and AFF1 in (v)MPIDR, we are now able to > support up to 4096 vCPUs in theory. However, it will cost 512M > address space for

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Stefano Stabellini
On Fri, 5 Jun 2015, Roger Pau Monné wrote: > El 03/06/15 a les 14.08, Jan Beulich ha escrit: > On 03.06.15 at 12:02, wrote: > >> On Tue, 2 Jun 2015, Andrew Cooper wrote: > >>> With my x86 maintainer hat on, the following is an absolute minimum set > >>> of prerequisite for PVH. > >>> > >>> *

Re: [Xen-devel] [PATCH V6 06/10] tools/libxl: Set 'reg' of cpu node equal to MPIDR affinity for domU

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > According to ARM CPUs bindings, the reg field should match the MPIDR's > affinity bits. We will use AFF0 and AFF1 when constructing the reg value > of the guest at the moment, for it is enough for the current max vcpu > n

Re: [Xen-devel] [PATCH 3/5] x86/link: Reduce the number of sections created

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 18:11, wrote: > On 05/06/15 16:38, Jan Beulich wrote: > On 05.06.15 at 15:31, wrote: >>> There is no need for top level sections for each of these, so they are >>> subsumed into more-generic sections. >>> >>> .data.read_mostly and .lockprofile.data are moved to .data >>>

Re: [Xen-devel] [PATCH v3 10/10] x86/MSI-X: provide hypercall interface for mask-all control

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 17:57, wrote: > On 05/06/15 12:28, Jan Beulich wrote: >> Qemu shouldn't be fiddling with this bit directly, as the hypervisor >> may (and now does) use it for its own purposes. Provide it with a >> replacement interface, allowing the hypervisor to track host and guest >> masking

Re: [Xen-devel] RFC: making the PVH 64bit ABI as stableo

2015-06-05 Thread Roger Pau Monné
El 03/06/15 a les 14.08, Jan Beulich ha escrit: On 03.06.15 at 12:02, wrote: >> On Tue, 2 Jun 2015, Andrew Cooper wrote: >>> With my x86 maintainer hat on, the following is an absolute minimum set >>> of prerequisite for PVH. >>> >>> * 32bit support >> >> Could you please explain why 32bit is

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 18:00, wrote: > On Fri, Jun 05, 2015 at 04:16:59PM +0100, Jan Beulich wrote: >> >>> On 05.06.15 at 16:49, wrote: >> > On Mon, May 18, 2015 at 01:41:34PM +0100, Jan Beulich wrote: >> >> >>> On 15.05.15 at 21:44, wrote: >> >> A general remark: Having worked on ELF on different o

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

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > +mpidr_aff = vcpuid_to_vaffinity(cpu); > +DPRINT("Create cpu@%lx (logical CPUID: %d) node\n", mpidr_aff, cpu); "PRIx64" again please. I think the hex vs. decimal here is to be expected and ok by the way. With that fixed: Acked

Re: [Xen-devel] [PATCH V6 06/10] tools/libxl: Set 'reg' of cpu node equal to MPIDR affinity for domU

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > According to ARM CPUs bindings, the reg field should match the MPIDR's > affinity bits. We will use AFF0 and AFF1 when constructing the reg value > of the guest at the moment, for it is enough for the current max vcpu > n

Re: [Xen-devel] [PATCHv11 4/4] gnttab: use per-VCPU maptrack free lists

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 17:55, wrote: > On 05/06/15 15:51, Jan Beulich wrote: > On 02.06.15 at 18:26, wrote: >>> +/* >>> + * max_maptrack_frames is per domain so each VCPU gets a share of >>> + * the maximum, but allow at least one frame per VCPU. >>> + */ >>> +if ( v->maptrack

Re: [Xen-devel] [PATCH 3/5] x86/link: Reduce the number of sections created

2015-06-05 Thread Andrew Cooper
On 05/06/15 16:38, Jan Beulich wrote: On 05.06.15 at 15:31, wrote: >> There is no need for top level sections for each of these, so they are >> subsumed into more-generic sections. >> >> .data.read_mostly and .lockprofile.data are moved to .data >> >> .init.setup, .initcall.init, .xsm_ini

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

2015-06-05 Thread Jan Beulich
> @@ -201,27 +202,56 @@ 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 *vpmu = vcpu_vpmu(v); > -struct xen_pmu_amd_ctxt *ctxt = vpmu->con

Re: [Xen-devel] [PATCH V6 05/10] xen/arm64: gicv3: Use AFF1 when translating ICC_SGI1R_EL1 to cpumask

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > To support more than 16 vCPUs, we have to calculate cpumask with AFF1 > field value in ICC_SGI1R_EL1. > > Signed-off-by: Chen Baozi > --- > xen/arch/arm/vgic-v3.c| 30 ++ > xen/i

Re: [Xen-devel] [PATCH V6 04/10] xen/arm: Use cpumask_t type for vcpu_mask in vgic_to_sgi

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > Use cpumask_t instead of unsigned long which can only express 64 cpus at > the most. Add the {gicv2|gicv3}_sgir_to_cpumask in corresponding vGICs > to translate GICD_SGIR/ICC_SGI1R_EL1 to vcpu_mask for vgic_to_sgi. > > S

Re: [Xen-devel] [PATCH V6 01/10] xen/arm: gic-v3: Increase the size of GICR in address space for guest

2015-06-05 Thread Julien Grall
On 05/06/15 16:49, Ian Campbell wrote: > On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: >> From: Chen Baozi >> >> Currently it only supports up to 8 vCPUs. Increase the region to hold >> up to 128 vCPUs, which is the maximum number that GIC-500 supports. >> >> Signed-off-by: Chen Baozi >> R

Re: [Xen-devel] [PATCH v23 11/15] VPMU/AMD: Check MSR values before writing to hardware

2015-06-05 Thread Jan Beulich
>>> On 29.05.15 at 20:42, wrote: > @@ -289,19 +302,24 @@ static int amd_vpmu_do_wrmsr(unsigned int msr, uint64_t > msr_content, > { > struct vcpu *v = current; > struct vpmu_struct *vpmu = vcpu_vpmu(v); > +unsigned int idx = 0; > +int type = get_pmu_reg_type(msr, &idx); > >

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Konrad Rzeszutek Wilk
On Fri, Jun 05, 2015 at 04:16:59PM +0100, Jan Beulich wrote: > >>> On 05.06.15 at 16:49, wrote: > > On Mon, May 18, 2015 at 01:41:34PM +0100, Jan Beulich wrote: > >> >>> On 15.05.15 at 21:44, wrote: > >> > As such having the payload in an ELF file is the sensible way. We would > >> > be > >> > c

Re: [Xen-devel] [RFC 21/22] arm: Allow the user to specify the GIC version

2015-06-05 Thread Julien Grall
On 05/06/15 13:42, Ian Campbell wrote: > On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: >> A platform may have a GIC compatible with previous version of the >> device. >> >> This is allow to virtualize an unmodified OS on new hardware if the GIC >> is compatible with older version. >> >> Wh

Re: [Xen-devel] [PATCH V6 03/10] xen/arm: Use the new functions for vCPUID/vaffinity transformation

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > There are 3 places to change: > > * Initialise vMPIDR value in vcpu_initialise() > * Find the vCPU from vMPIDR affinity information when accessing GICD > registers in vGIC > * Find the vCPU from vMPIDR affinity informa

Re: [Xen-devel] [PATCH v3 10/10] x86/MSI-X: provide hypercall interface for mask-all control

2015-06-05 Thread Andrew Cooper
On 05/06/15 12:28, Jan Beulich wrote: > Qemu shouldn't be fiddling with this bit directly, as the hypervisor > may (and now does) use it for its own purposes. Provide it with a > replacement interface, allowing the hypervisor to track host and guest > masking intentions independently (clearing the

Re: [Xen-devel] [PATCHv11 4/4] gnttab: use per-VCPU maptrack free lists

2015-06-05 Thread David Vrabel
On 05/06/15 15:51, Jan Beulich wrote: On 02.06.15 at 18:26, wrote: >> Performance analysis of aggregate network throughput with many VMs >> shows that performance is signficantly limited by contention on the >> maptrack lock when obtaining/releasing maptrack handles from the free >> list. >>

Re: [Xen-devel] [Draft D] Xen on ARM vITS Handling

2015-06-05 Thread Vijay Kilari
On Fri, Jun 5, 2015 at 6:58 PM, Ian Campbell wrote: > On Fri, 2015-06-05 at 18:11 +0530, Vijay Kilari wrote: > >> >>Here device table memory allocated by guest is used to lookup for the >> >> device. >> >> Why can't we avoid using the guest memory all together and just only >> >> emulate >>

Re: [Xen-devel] [PATCH V6 02/10] xen/arm: Add functions of mapping between vCPUID and virtual affinity

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > GICv3 restricts that the maximum number of CPUs in affinity 0 (one > cluster) is 16. Please add the reference to why this is. > That is to say the upper 4 bits of affinity 0 is unused. > Current implementation conside

Re: [Xen-devel] [PATCH v2 1/2] net/xen-netfront: Correct printf format in xennet_get_responses

2015-06-05 Thread Joe Perches
On Fri, 2015-06-05 at 13:34 +0100, Julien Grall wrote: > On 04/06/15 17:25, Joe Perches wrote: > > On Thu, 2015-06-04 at 13:52 +0100, Julien Grall wrote: > >> On 04/06/15 13:46, David Vrabel wrote: > >>> On 04/06/15 13:45, Julien Grall wrote: > On 03/06/15 18:06, Joe Perches wrote: > > On

Re: [Xen-devel] [PATCH V6 01/10] xen/arm: gic-v3: Increase the size of GICR in address space for guest

2015-06-05 Thread Ian Campbell
On Mon, 2015-06-01 at 20:56 +0800, Chen Baozi wrote: > From: Chen Baozi > > Currently it only supports up to 8 vCPUs. Increase the region to hold > up to 128 vCPUs, which is the maximum number that GIC-500 supports. > > Signed-off-by: Chen Baozi > Reviewed-by: Julien Grall Acked-by: Ian Campb

Re: [Xen-devel] [PATCH v3 09/10] VT-d: use qword MMIO access for MSI address writes

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 17:39, wrote: > On 05/06/15 12:26, Jan Beulich wrote: >> Also make dmar_{read,write}q() actually do what their names suggest (we >> don't need to be concerned of 32-bit restrictions anymore). >> >> Signed-off-by: Jan Beulich > > Your patch has a typo "don#t" which isn't presen

Re: [Xen-devel] [RFC 11/22] xen/arm: gic-hip04: Remove redundant check in hip04gic_init

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 16:29 +0100, Julien Grall wrote: > On 05/06/15 13:26, Ian Campbell wrote: > > On Fri, 2015-06-05 at 13:24 +0100, Ian Campbell wrote: > >> On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: > >>> There is a global check for page alignment within this function. > >>> > >>> S

Re: [Xen-devel] [PATCH v3 09/10] VT-d: use qword MMIO access for MSI address writes

2015-06-05 Thread Andrew Cooper
On 05/06/15 12:26, Jan Beulich wrote: > Also make dmar_{read,write}q() actually do what their names suggest (we > don't need to be concerned of 32-bit restrictions anymore). > > Signed-off-by: Jan Beulich Your patch has a typo "don#t" which isn't present in this commit message. Otherwise, Review

Re: [Xen-devel] [PATCH 3/5] x86/link: Reduce the number of sections created

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 15:31, wrote: > There is no need for top level sections for each of these, so they are > subsumed into more-generic sections. > > .data.read_mostly and .lockprofile.data are moved to .data > > .init.setup, .initcall.init, .xsm_initcall.init are moved to .init.data > > Thi

Re: [Xen-devel] [PATCH v3 08/10] x86/MSI-X: use qword MMIO access for address writes

2015-06-05 Thread Andrew Cooper
On 05/06/15 12:25, Jan Beulich wrote: > Now that we support it for our guests, let's do so ourselves too. > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 07/10] x86/vMSI-X: support qword MMIO access

2015-06-05 Thread Andrew Cooper
On 05/06/15 12:24, Jan Beulich wrote: > The specification explicitly provides for this, so we should have > supported this from the beginning. > > Signed-off-by: Jan Beulich Reviewed-by: Andrew Cooper ___ Xen-devel mailing list Xen-devel@lists.xen.org

Re: [Xen-devel] [RFC 11/22] xen/arm: gic-hip04: Remove redundant check in hip04gic_init

2015-06-05 Thread Julien Grall
On 05/06/15 13:26, Ian Campbell wrote: > On Fri, 2015-06-05 at 13:24 +0100, Ian Campbell wrote: >> On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: >>> There is a global check for page alignment within this function. >>> >>> Signed-off-by: Julien Grall >>> Cc: Zoltan Kiss >> >> Acked-by: Ia

Re: [Xen-devel] Xen 4.6 Development Update (five months reminder, 5 WEEKS TO FREEZE)

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 16:28, wrote: > On 06/05/2015 09:53 AM, wei.l...@citrix.com wrote: >> >> * VPMU - 'perf' support in Xen (good) >> v21 posted >> Need reviews/final ack. >>- Boris Ostrovsky > > I posted a version last week with very few changes. Besides Jan's review > I think it n

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 17:00, wrote: > On Wed, May 20, 2015 at 05:11:20PM +0200, Martin Pohlack wrote: >> * Xen as it is now, has a couple of non-unique symbol names which will >> make runtime symbol identification hard. Sometimes, static symbols >> simply have the same name in C files, sometimes

[Xen-devel] [xen-4.2-testing test] 57895: regressions - FAIL

2015-06-05 Thread osstest service user
flight 57895 xen-4.2-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/57895/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xend-winxpsp3 16 guest-stop fail REGR. vs. 53018 test-amd64-i386-x

Re: [Xen-devel] [RFC 08/22] xen/arm: gic-v2: Use SZ_4K rather than PAGE_SIZE

2015-06-05 Thread Julien Grall
On 05/06/15 13:23, Ian Campbell wrote: > On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: >> Make clear that the GIC interface is 4K and not rely on PAGE_SIZE == 4K. > > I'm not really sure about this, it seems like splitting hairs a bit too > finely. It's very confusing when you read the c

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 16:49, wrote: > On Mon, May 18, 2015 at 01:41:34PM +0100, Jan Beulich wrote: >> >>> On 15.05.15 at 21:44, wrote: >> > As such having the payload in an ELF file is the sensible way. We would be >> > carrying the various set of structures (and data) in the ELF sections under >> >

Re: [Xen-devel] [PATCH V6 00/10] Support more than 8 vcpus on arm64 with GICv3

2015-06-05 Thread Ian Campbell
On Fri, 2015-06-05 at 15:37 +0100, Julien Grall wrote: > On 05/06/15 15:08, Ian Campbell wrote: > > On Mon, 2015-06-01 at 20:56 +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

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Andrew Cooper
On 05/06/15 16:00, Konrad Rzeszutek Wilk wrote: >> As you discussed, if you allocate hotpatch memory withing +-2GB of the >> > patch location, no further trampoline indirection is required, a >> > 5-byte JMP does the trick on x86. We found that to be sufficient in >> > our experiments. > And worst

Re: [Xen-devel] [RFC 05/22] xen/arm: gic-v3: Rework the print message at initialization

2015-06-05 Thread Julien Grall
On 05/06/15 13:18, Ian Campbell wrote: > On Fri, 2015-05-08 at 14:29 +0100, Julien Grall wrote: > > Subject: "messages printed" > >> - Print all the redistributor regions rather than only the first >> one... >> - Add # in the format to print 0x for hexadecimal. It's easier to >> d

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Konrad Rzeszutek Wilk
On Wed, May 20, 2015 at 05:11:20PM +0200, Martin Pohlack wrote: > Hi, > > this looks very interesting. Thank you! > > I have talked about an experimental Xen hotpatching design at Linux > Plumbers Conference 2014 in Düsseldorf, slides are here: > > http://www.linuxplumbersconf.net/2014/ocw//sys

Re: [Xen-devel] Xen 4.6 Development Update (five months reminder, 5 WEEKS TO FREEZE)

2015-06-05 Thread Andrew Cooper
On 05/06/15 15:28, Boris Ostrovsky wrote: > > >> >> == Deferred == >> >> >> * IO-NUMA - hwloc and xl (none) >> Andrew Cooper had an RFC patch for hwloc >> add restrictions as to which devices cannot safely/functionally >> be split apart. >>- Boris Ostrovsky >> > > I don't have any im

Re: [Xen-devel] Xen 4.6 Development Update (five months reminder, 5 WEEKS TO FREEZE)

2015-06-05 Thread Julien Grall
Hi Wei, On 05/06/15 14:53, wei.l...@citrix.com wrote: > === Hypervisor ARM === > * ARM GICv2 on GICv3 support (none) (fair) > - Julien Grall > - Vijay Kilari I'm the only one working on it... Regards, -- Julien Grall ___ Xen-devel mailing

Re: [Xen-devel] [PATCHv11 4/4] gnttab: use per-VCPU maptrack free lists

2015-06-05 Thread Jan Beulich
>>> On 02.06.15 at 18:26, wrote: > Performance analysis of aggregate network throughput with many VMs > shows that performance is signficantly limited by contention on the > maptrack lock when obtaining/releasing maptrack handles from the free > list. > > Instead of a single free list use a per-V

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Konrad Rzeszutek Wilk
On Mon, May 18, 2015 at 08:54:22PM +0800, Liuqiming (John) wrote: > Hi Konrad, > > Will this design include hotpatch build tools chain? Yes, that is certainly the idea. > Such as how these .xplice_ section are created? How to handle xen symbols > when creating hotpatch elf file? Right now I am

Re: [Xen-devel] [RFC v2] xSplice design

2015-06-05 Thread Konrad Rzeszutek Wilk
On Mon, May 18, 2015 at 01:41:34PM +0100, Jan Beulich wrote: > >>> On 15.05.15 at 21:44, wrote: > > As such having the payload in an ELF file is the sensible way. We would be > > carrying the various set of structures (and data) in the ELF sections under > > different names and with definitions. T

Re: [Xen-devel] [PATCHv11 2/4] gnttab: introduce maptrack lock

2015-06-05 Thread Jan Beulich
>>> On 05.06.15 at 15:44, wrote: > On 05/06/15 14:35, Jan Beulich wrote: > On 02.06.15 at 18:26, wrote: >>> --- a/xen/common/grant_table.c >>> +++ b/xen/common/grant_table.c >>> @@ -288,10 +288,10 @@ static inline void put_maptrack_handle( >>> struct grant_table *t, int handle) >>> { >>

Re: [Xen-devel] [PATCHv11 2/4] gnttab: introduce maptrack lock

2015-06-05 Thread David Vrabel
On 05/06/15 15:38, Jan Beulich wrote: On 05.06.15 at 15:44, wrote: >> On 05/06/15 14:35, Jan Beulich wrote: >> On 02.06.15 at 18:26, wrote: --- a/xen/common/grant_table.c +++ b/xen/common/grant_table.c @@ -288,10 +288,10 @@ static inline void put_maptrack_handle(

  1   2   3   >