Re: [Xen-devel] [PATCH v2 for Xen 4.6 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-27 Thread Chao Peng
On Mon, May 25, 2015 at 07:05:52PM -0500, Chong Li wrote: --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -841,6 +841,11 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u_domctl) copyback = 1; break; +case XEN_DOMCTL_scheduler_vcpu_op: +ret =

Re: [Xen-devel] [PATCH v2 for Xen 4.6 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-27 Thread Jan Beulich
On 26.05.15 at 19:18, lichong...@gmail.com wrote: On Tue, May 26, 2015 at 4:08 AM, Jan Beulich jbeul...@suse.com wrote: On 26.05.15 at 02:05, lichong...@gmail.com wrote: Add two hypercalls(XEN_DOMCTL_SCHEDOP_getvcpuinfo/putvcpuinfo) to get/set a domain's per-VCPU parameters. Hypercalls are

Re: [Xen-devel] [PATCH 2/3] xen/flask: change bool_maxstr to PAGE_SIZE

2015-05-27 Thread Ian Campbell
On Tue, 2015-05-26 at 14:13 -0400, Daniel De Graaf wrote: When FLASK_{GET,SET}BOOL is called with a named boolean, the call to flask_security_resolve_bool is made prior to bool_maxstr being populated by flask_security_make_bools. This results in the maximum string length being specified as

Re: [Xen-devel] [PATCH 1/3] flask/policy: updates from osstest runs

2015-05-27 Thread Ian Campbell
On Tue, 2015-05-26 at 14:13 -0400, Daniel De Graaf wrote: Migration and HVM domain creation both trigger AVC denials that should be allowed in the default policy; add these rules. Guest console writes need to be either allowed or denied without audit depending on the decision of the local

Re: [Xen-devel] [PATCH 3/3] libxc: add missing xc_hypercall_bounce_pre calls

2015-05-27 Thread Ian Campbell
On Tue, 2015-05-26 at 14:13 -0400, Daniel De Graaf wrote: Signed-off-by: Daniel De Graaf dgde...@tycho.nsa.gov Acked-by: Ian Campbell ian.campb...@citrix.com ___ Xen-devel mailing list Xen-devel@lists.xen.org http://lists.xen.org/xen-devel

[Xen-devel] [PATCH net v2] xen/netback: Properly initialize credit_bytes

2015-05-27 Thread Ross Lagerwall
Commit e9ce7cb6b107 (xen-netback: Factor queue-specific data into queue struct) introduced a regression when moving queue-specific data into the queue struct by failing to set the credit_bytes field. This prevented bandwidth limiting from working. Initialize the field as it was done before

Re: [Xen-devel] Earlier embargoed pre-disclosure without patches

2015-05-27 Thread Ian Campbell
(Just adding Lars so he is aware and can run the formal vote once we have consensus on a proposal for new text) On Tue, 2015-05-26 at 15:38 +, Major Hayden wrote: On 05/26/2015 07:15 AM, Stefano Stabellini wrote: On Fri, 22 May 2015, Major Hayden wrote: On 05/22/2015 09:04 AM, Jan

[Xen-devel] [linux-3.4 test] 57351: regressions - FAIL

2015-05-27 Thread osstest service user
flight 57351 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/57351/ 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 v2][RFC] libxl: Add AHCI support for upstream qemu

2015-05-27 Thread George Dunlap
On Mon, May 25, 2015 at 11:48 AM, Wei Liu wei.l...@citrix.com wrote: On Mon, May 25, 2015 at 12:41:48PM +0200, Fabio Fantoni wrote: Ping... Any review and/or comment about AHCI support patch is appreciated. Stefano and Anthony were away last week and today is a UK public holiday, so please

Re: [Xen-devel] [PATCH RFC v1] libxl: Introduce a template for devices with a controller

2015-05-27 Thread Juergen Gross
George, I'm on vacation this and the next week with only limited email access. So please don't expect fast reaction on any further questions during this time. :-) On 05/26/2015 07:56 PM, George Dunlap wrote: On Fri, May 22, 2015 at 5:21 AM, Juergen Gross jgr...@suse.com wrote: On 05/21/2015

Re: [Xen-devel] [PATCH net v2] xen/netback: Properly initialize credit_bytes

2015-05-27 Thread Wei Liu
On Wed, May 27, 2015 at 11:44:32AM +0100, Ross Lagerwall wrote: Commit e9ce7cb6b107 (xen-netback: Factor queue-specific data into queue struct) introduced a regression when moving queue-specific data into the queue struct by failing to set the credit_bytes field. This prevented bandwidth

[Xen-devel] [Draft C] Xen on ARM vITS Handling

2015-05-27 Thread Ian Campbell
Here follows draft C based on previous feedback. Also at: http://xenbits.xen.org/people/ianc/vits/draftC.{pdf,html} I think I've captured most of the previous discussion, except where explicitly noted by XXX or in other replies, but please do point out places where I've missed something. One

[Xen-devel] question on xen-blkback: enlarge the array size of blkback name

2015-05-27 Thread Jan Beulich
Hello, looking at this once again now that it's upstream, I still can't see what this is good for: The only use the produced string has is to be passed to kthread_run(), i.e. ultimately to be stored in a task's -comm. That, however, continues to be limited to 16 characters, so

Re: [Xen-devel] [PATCH v1 0/5] Misc cleanups for libxl

2015-05-27 Thread Yang Hongyang
ping... On 05/20/2015 06:01 PM, Yang Hongyang wrote: This patchset mainly focus on libxl save, most of the patches are simply move codes out of libxl_dom.c, no functional changes, may conflict with Andrew Cooper's libxl work for migration v2, so CCed Andrew for comments. For convenience, my

Re: [Xen-devel] Xen on ARM vITS Handling Draft B (Was Re: Xen/arm: Virtual ITS command queue handling)

2015-05-27 Thread Ian Campbell
On Sun, 2015-05-24 at 11:35 +0100, Julien Grall wrote: [...] I wrote my though for the validation bits (see below) and add some definitions useful for people which don't have the spec. Thanks for this. Emulation of ITS commands = # Introduction This document

Re: [Xen-devel] Xen on ARM vITS Handling Draft B (Was Re: Xen/arm: Virtual ITS command queue handling)

2015-05-27 Thread Ian Campbell
On Fri, 2015-05-22 at 17:46 +0530, Vijay Kilari wrote: OK, Vijay could you make a proposal here please. __text__ Thanks, I tried to incorporate / merge this with the stuff Julien proposed later, and to update based on the discussion in this thread. Please check the next draft since I'm

Re: [Xen-devel] [PATCH v1] x86/pvh: disable posted interrupts

2015-05-27 Thread Roger Pau Monné
El 22/05/15 a les 12.20, Roger Pau Monne ha escrit: Enabling posted interrupts requires the virtual interrupt delivery feature, which is disabled for PVH guests, so make sure posted interrupts are also disabled or else vmlaunch will fail. Signed-off-by: Roger Pau Monné roger@citrix.com

Re: [Xen-devel] question on xen-blkback: enlarge the array size of blkback name

2015-05-27 Thread Ian Campbell
On Wed, 2015-05-27 at 10:28 +0100, Roger Pau Monné wrote: El 27/05/15 a les 9.47, Jan Beulich ha escrit: Hello, looking at this once again now that it's upstream, I still can't see what this is good for: The only use the produced string has is to be passed to kthread_run(), i.e.

[Xen-devel] [PATCH V6] xen/vm_event: Clean up control-register-write vm_events and add XCR0 event

2015-05-27 Thread Razvan Cojocaru
As suggested by Andrew Cooper, this patch attempts to remove some redundancy and allow for an easier time when adding vm_events for new control registers in the future, by having a single VM_EVENT_REASON_WRITE_CTRLREG vm_event type, meant to serve CR0, CR3, CR4 and (newly introduced) XCR0. The

[Xen-devel] [PATCH v3] x86/pvh: disable posted interrupts

2015-05-27 Thread Roger Pau Monne
Enabling posted interrupts requires the virtual interrupt delivery feature, which is disabled for PVH guests, so make sure posted interrupts are also disabled or else vmlaunch will fail. Signed-off-by: Roger Pau Monné roger@citrix.com Reported-and-Tested-by: Lars Eggert l...@netapp.com

Re: [Xen-devel] question on xen-blkback: enlarge the array size of blkback name

2015-05-27 Thread Roger Pau Monné
El 27/05/15 a les 9.47, Jan Beulich ha escrit: Hello, looking at this once again now that it's upstream, I still can't see what this is good for: The only use the produced string has is to be passed to kthread_run(), i.e. ultimately to be stored in a task's -comm. That, however, continues

Re: [Xen-devel] [PATCH] x86: Don't crash when mapping a page using EFI runtime page tables

2015-05-27 Thread Ross Lagerwall
On 05/18/2015 03:58 PM, Jan Beulich wrote: On 15.05.15 at 18:08, ross.lagerw...@citrix.com wrote: --- a/xen/arch/x86/domain_page.c +++ b/xen/arch/x86/domain_page.c @@ -32,20 +32,25 @@ static inline struct vcpu *mapcache_current_vcpu(void) return NULL; /* + * When using efi

Re: [Xen-devel] [PATCH v2 for Xen 4.6 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-27 Thread Jan Beulich
On 27.05.15 at 07:33, lichong...@gmail.com wrote: On Tue, May 26, 2015 at 12:18 PM, Chong Li lichong...@gmail.com wrote: On Tue, May 26, 2015 at 4:08 AM, Jan Beulich jbeul...@suse.com wrote: On 26.05.15 at 02:05, lichong...@gmail.com wrote: +/* Adjust scheduling parameter for the vcpus of a

Re: [Xen-devel] [PATCH] x86: Don't crash when mapping a page using EFI runtime page tables

2015-05-27 Thread Jan Beulich
On 27.05.15 at 12:23, ross.lagerw...@citrix.com wrote: On 05/18/2015 03:58 PM, Jan Beulich wrote: On 15.05.15 at 18:08, ross.lagerw...@citrix.com wrote: --- a/xen/arch/x86/domain_page.c +++ b/xen/arch/x86/domain_page.c @@ -32,20 +32,25 @@ static inline struct vcpu

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Boris Ostrovsky
On 05/27/2015 08:28 AM, Jan Beulich wrote: On 26.05.15 at 19:50, boris.ostrov...@oracle.com wrote: On 05/26/2015 12:13 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: + * guest when PMU_CACHED bit in pmu_flags is set (which is done by the + * hypervisor during

[Xen-devel] [PATCH OSSTEST v7 10/15] ts-debian-di-install: Refactor root_disk specification

2015-05-27 Thread Ian Campbell
Signed-off-by: Ian Campbell ian.campb...@citrix.com --- v4: new patch --- ts-debian-di-install | 6 -- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ts-debian-di-install b/ts-debian-di-install index da6ab73..bb2d2d2 100755 --- a/ts-debian-di-install +++ b/ts-debian-di-install

[Xen-devel] [PATCH OSSTEST v7 05/15] distros: support PV guest install from Debian netinst media.

2015-05-27 Thread Ian Campbell
The netinst media are iso images containing a base Debian install and some (image size dependent) additional tasks. On x86 the multiarch iso flavour contains a Xen capable kernel for both i386 and amd64 so use that. This adds support for two classes of ISO, the CD sized ones which are built

Re: [Xen-devel] Earlier embargoed pre-disclosure without patches

2015-05-27 Thread Don Slutz
On 05/26/15 16:34, Major Hayden wrote: On 05/26/2015 11:50 AM, Stefano Stabellini wrote: I would go for: In the event that public disclosure is less than 15 days away, we will send a draft with information about the vulnerability to the pre-disclosure list as soon as possible, even if

Re: [Xen-devel] [PATCH v2 26/41] arm : acpi add xen environment table

2015-05-27 Thread Jan Beulich
On 26.05.15 at 19:34, stefano.stabell...@eu.citrix.com wrote: On Thu, 21 May 2015, Jan Beulich wrote: On 21.05.15 at 12:34, julien.gr...@citrix.com wrote: ACPI 6.0 has been released few months after Parth and Naresh began to implement ACPI for Xen. We could take advantage of this new

Re: [Xen-devel] [PATCH] x86: Don't crash when mapping a page using EFI runtime page tables

2015-05-27 Thread Jan Beulich
On 27.05.15 at 14:03, ross.lagerw...@citrix.com wrote: On 05/27/2015 12:59 PM, Jan Beulich wrote: On 27.05.15 at 12:23, ross.lagerw...@citrix.com wrote: On 05/18/2015 03:58 PM, Jan Beulich wrote: On 15.05.15 at 18:08, ross.lagerw...@citrix.com wrote: --- a/xen/arch/x86/domain_page.c +++

Re: [Xen-devel] [PATCH V6] xen/vm_event: Clean up control-register-write vm_events and add XCR0 event

2015-05-27 Thread Razvan Cojocaru
On 05/27/2015 04:12 PM, Jan Beulich wrote: On 27.05.15 at 10:17, rcojoc...@bitdefender.com wrote: As suggested by Andrew Cooper, this patch attempts to remove some redundancy and allow for an easier time when adding vm_events for new control registers in the future, by having a single

[Xen-devel] [PATCH OSSTEST v7 09/15] Debian: Handle lack of bootloader support in d-i on ARM.

2015-05-27 Thread Ian Campbell
Debian doesn't currently know what bootloader to install in a Xen guest on ARM. We install pv-grub-menu above which actually does what we need, but the installer doesn't treat that as a bootloader. Most ARM platforms end up installing a u-boot boot.scr, based on a platform whitelist. This doesn't

[Xen-devel] [PATCH OSSTEST v7 04/15] distros: Support pvgrub for Wheezy too.

2015-05-27 Thread Ian Campbell
This requires us to install pv-grub-menu from backports, which we do using a late_command. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- v7: - Remove vestigial attempts to enable -backports via d-i preseeding. v3: - Remove spurious () from (END) (and the prexisting too) - Remove

[Xen-devel] [PATCH OSSTEST v7 01/15] TestSupport: Add helper to fetch a URL on a host

2015-05-27 Thread Ian Campbell
Signed-off-by: Ian Campbell ian.campb...@citrix.com --- v7: Quote $url and $path, switch to a heredoc to avoid resulting over long line v5: Support http_proxy via $c{HttpProxy} v3: Make sure wget is installed --- Osstest/Debian.pm | 2 +- Osstest/TestSupport.pm | 12 +++- 2

[Xen-devel] [PATCH OSSTEST v7 00/16] add distro domU testing flight

2015-05-27 Thread Ian Campbell
Hi, Since v6 I've refactored into multiple flights (one per Debian release) as well as moving all the configuration of URLs etc into make flight, so the test scripts are now generic. I also defaulted to running on the Cambridge instance as discussed. I think I've dropped the acks where

[Xen-devel] [PATCH OSSTEST v7 02/15] distros: add support for installing Debian PV guests via d-i, flight and jobs

2015-05-27 Thread Ian Campbell
This patch introduces ts-debian-di-install which can install Debian from a netboot (PXE) debian installer image. By default it installs from the d-i image used by osstest (using the special Xen PV guest enabled flavour where necessary) but it can also fetch the kernel and ramdisk from URLs

Re: [Xen-devel] [PATCH RFC v1] libxl: Introduce a template for devices with a controller

2015-05-27 Thread George Dunlap
On 05/27/2015 11:09 AM, Juergen Gross wrote: George, I'm on vacation this and the next week with only limited email access. So please don't expect fast reaction on any further questions during this time. :-) Then quit reading your work e-mail and get back to the important stuff! :-) OK,

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Jan Beulich
On 26.05.15 at 19:50, boris.ostrov...@oracle.com wrote: On 05/26/2015 12:13 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: + * guest when PMU_CACHED bit in pmu_flags is set (which is done by the + * hypervisor during PMU interrupt). Hypervisor will read

Re: [Xen-devel] [stable] config: Enable NEED_DMA_MAP_STATE by default when SWIOTLB is selected

2015-05-27 Thread Luis Henriques
On Mon, May 25, 2015 at 01:56:01AM +0100, Ben Hutchings wrote: This fix appears to be needed in all stable branches: commit a6dfa128ce5c414ab46b1d690f7a1b8decb8526d Author: Konrad Rzeszutek Wilk konrad.w...@oracle.com Date: Fri Apr 17 15:04:48 2015 -0400 config: Enable

Re: [Xen-devel] [PATCH v22 11/14] x86/VPMU: Handle PMU interrupts for PV(H) guests

2015-05-27 Thread Jan Beulich
On 26.05.15 at 20:09, boris.ostrov...@oracle.com wrote: On 05/26/2015 12:24 PM, Jan Beulich wrote: On 21.05.15 at 19:57, boris.ostrov...@oracle.com wrote: @@ -188,27 +189,52 @@ static inline void context_load(struct vcpu *v) } } -static void amd_vpmu_load(struct vcpu *v)

[Xen-devel] [PATCH OSSTEST v7 11/15] make-flight: refactor PV debian tests

2015-05-27 Thread Ian Campbell
No functional change, standalone-generate-dump-flight-runvars confirms no change to the runvars. Includes a hook which is not used yet, $recipe_sfx. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- v4: new patch --- make-flight | 24 ++-- 1 file changed, 14

[Xen-devel] [PATCH OSSTEST v7 14/15] make-distros-flight: don't bother building for XSM or libvirt.

2015-05-27 Thread Ian Campbell
Signed-off-by: Ian Campbell ian.campb...@citrix.com --- make-distros-flight | 10 +- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/make-distros-flight b/make-distros-flight index c61f5c8..49f4b60 100755 --- a/make-distros-flight +++ b/make-distros-flight @@ -39,7 +39,15 @@

[Xen-devel] [PATCH OSSTEST v7 07/15] distros: add branch infrastructure

2015-05-27 Thread Ian Campbell
Since the distro nightlies are not version controlled we cannot use the usual mechanisms for detecting regressions. Special case things appropriately. We use an OLD_REVISION of flight-NNN to signify that the old revision is another flight and not a tree revision. A grep over $NEW_REVISION needed

[Xen-devel] [PATCH OSSTEST v7 06/15] Test pygrub and pvgrub on the regular flights

2015-05-27 Thread Ian Campbell
Since we now have the ability to test these drop one of each of pygrub, pvgrub-32 and pvgrub-64 into the standard flights. Omitting the {Guest}_diver runvar causes ts-debian-di-install to use the d-i images in the location configured via TftpDiVersion, so they are Version Controlled along with the

[Xen-devel] [PATCH OSSTEST v7 13/15] mfi-common: Allow make-*flight to filter the set of build jobs to include

2015-05-27 Thread Ian Campbell
By using the same job_create_build(_filter_callback) scheme used for the test jobs. Will be used in make-distros-flight. Signed-off-by: Ian Campbell ian.campb...@citrix.com --- make-distros-flight | 4 make-flight | 4 mfi-common | 21 +++-- 3 files

[Xen-devel] [PATCH OSSTEST v7 03/15] distros: support booting Debian PV (d-i installed) guests with pvgrub.

2015-05-27 Thread Ian Campbell
This requires the use of the pv-grub-menu package which is in Jessie onwards. (it is in wheezy-backports which is the subject of a subsequent patch). The bootloader to use is specified via a runvar {Guest}_bootloader. Adjust make-distros-flight to use pvgrub for some subset of i386 and amd64

[Xen-devel] [PATCH OSSTEST v7 12/15] Add testing of non-LVM/phy disk backends.

2015-05-27 Thread Ian Campbell
xen-create-image makes this tricky to do since it is rather LVM centric. Now that we have the ability to install from d-i it's possible to arrange fairly easily that they use non-LVM disk backend arrangements. Here we add support to the test script and infra and create a bunch of new jobs testing

[Xen-devel] [PATCH OSSTEST v7 15/15] make-distros-flight: Use ftp.debian.org directly

2015-05-27 Thread Ian Campbell
The local proxy seems to serve stale packages for Jessie etc, I blame the intercepting cache on the way out of our network, similar to b5f15136900d mg-debian-installer-update: workaround caching proxies, except it is between the apt-cache and the world not the osstest vm and the world. Since the

Re: [Xen-devel] [PATCH] x86: Don't crash when mapping a page using EFI runtime page tables

2015-05-27 Thread Ross Lagerwall
On 05/27/2015 12:59 PM, Jan Beulich wrote: On 27.05.15 at 12:23, ross.lagerw...@citrix.com wrote: On 05/18/2015 03:58 PM, Jan Beulich wrote: On 15.05.15 at 18:08, ross.lagerw...@citrix.com wrote: --- a/xen/arch/x86/domain_page.c +++ b/xen/arch/x86/domain_page.c @@ -32,20 +32,25 @@ static

Re: [Xen-devel] [PATCH V6] xen/vm_event: Clean up control-register-write vm_events and add XCR0 event

2015-05-27 Thread Jan Beulich
On 27.05.15 at 10:17, rcojoc...@bitdefender.com wrote: As suggested by Andrew Cooper, this patch attempts to remove some redundancy and allow for an easier time when adding vm_events for new control registers in the future, by having a single VM_EVENT_REASON_WRITE_CTRLREG vm_event type, meant

[Xen-devel] [PATCH OSSTEST v7 08/15] distros: Run one suite per day on a weekly basis

2015-05-27 Thread Ian Campbell
Once a week should be sufficient for these tests. Perhaps in the future we will want to increase the frequency for the suites under active development (testing, unstable) For now run this on the Citrix Cambridge instance until the XenProject instance has sufficient capacity. Switch to tabs for

Re: [Xen-devel] [PATCHv1] xen-netfront: properly destroy queues when removing device

2015-05-27 Thread David Miller
From: David Vrabel david.vra...@citrix.com Date: Wed, 27 May 2015 15:46:10 +0100 xennet_remove() freed the queues before freeing the netdevice which results in a use-after-free when free_netdev() tries to delete the napi instances that have already been freed. Fix this by fully destroy the

[Xen-devel] [xen-unstable test] 57375: regressions - trouble: broken/fail/pass

2015-05-27 Thread osstest service user
flight 57375 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/57375/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl 3 host-install(3) broken REGR. vs. 56375

[Xen-devel] [linux-3.18 test] 57378: regressions - trouble: broken/fail/pass

2015-05-27 Thread osstest service user
flight 57378 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/57378/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf 3 host-install(3) broken in 57345 REGR. vs. 57312

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Jan Beulich
On 27.05.15 at 17:18, boris.ostrov...@oracle.com wrote: On 05/27/2015 10:26 AM, Jan Beulich wrote: On 27.05.15 at 15:44, boris.ostrov...@oracle.com wrote: Sorry, I meant amd/intel members of the union below (I forgot we were already in the arch header file): +/* + * Vendor-specific

Re: [Xen-devel] [Patch V3 14/15] xen: allow more than 512 GB of RAM for 64 bit pv-domains

2015-05-27 Thread David Vrabel
On 20/04/15 06:23, Juergen Gross wrote: 64 bit pv-domains under Xen are limited to 512 GB of RAM today. The main reason has been the 3 level p2m tree, which was replaced by the virtual mapped linear p2m list. Parallel to the p2m list which is being used by the kernel itself there is a 3 level

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

2015-05-27 Thread osstest service user
flight 57367 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/57367/ Failures and problems with tests :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf 3 host-install(3) broken REGR. vs. 57123

Re: [Xen-devel] Tools backports for 4.5 [and 1 more messages]

2015-05-27 Thread Ian Jackson
Jan Beulich writes (Re: [Xen-devel] Tools backports for 4.5): Andrew Cooper writes (Tools backports for 4.5): From the XenServer patch queue, (Andrew forgot to CC xen-devel, doing that now:) 3380f5b6270e ocaml/xenctrl: Check return values from hypercalls c8945d516134 ocaml/xenctrl:

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

2015-05-27 Thread Ian Campbell
On Tue, 2015-05-26 at 14:29 +0100, Ian Campbell wrote: On Wed, 2015-05-20 at 10:56 +0100, Ian Campbell wrote: On Wed, 2015-05-20 at 09:34 +, osstest service user wrote: flight 56759 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/56759/ Regressions :-(

[Xen-devel] [PATCH v7 03/10] xen: introduce DOMDYING_locked state

2015-05-27 Thread Vitaly Kuznetsov
The new state is required as a prerequisite to implementing soft reset operation for domains. In this operation we need to make sure that source domain's mappings don't change while we are reassigning all its memory to the destination domain. This new state indicates that the particular domain is

[Xen-devel] [PATCH v7 00/10] toolstack-based approach to pvhvm guest kexec

2015-05-27 Thread Vitaly Kuznetsov
This patch series provides x86 PVHVM domains with an ability to perform kexec/kdump-style operations. The main change in v7 is the XENMEM_soft_reset-XEN_DOMCTL_soft_reset change of the newly introduced hypercall. Changes are mentioned in individual patches. Here is the list of them grouped by

[Xen-devel] [PATCH v7 02/10] libxl: support SHUTDOWN_soft_reset shutdown reason

2015-05-27 Thread Vitaly Kuznetsov
Use letter 'S' to indicate a domain in such state. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com --- Changes in v7: - Remove LIBXL_HAVE_SHUTDWON_REASON_SOFT_RESET, the functionality will be advertised with LIBXL_HAVE_SOFT_RESET with the implementation [Wei Liu] ---

[Xen-devel] [PATCH v7 09/10] libxc: add XC_DEVICE_MODEL_SAVE_FILE

2015-05-27 Thread Vitaly Kuznetsov
Use this in libxl_dm instead of hard-coding. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com --- tools/libxc/include/xenguest.h | 1 + tools/libxl/libxl_dm.c | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/tools/libxc/include/xenguest.h

[Xen-devel] [PATCH v7 07/10] libxc: introduce soft reset for HVM domains

2015-05-27 Thread Vitaly Kuznetsov
Add new xc_soft_reset() function which performs so-called 'soft reset' for an HVM domain. It is being performed in the following way: - Save HVM context and all HVM params of the source domain; - Transfer all the source domain's memory to the destinatio domain with XEN_DOMCTL_soft_reset; -

[Xen-devel] [PATCH v7 04/10] xen: Introduce XEN_DOMCTL_soft_reset

2015-05-27 Thread Vitaly Kuznetsov
New operation reassigns all memory pages from source domain to the destination domain mapping them at exactly the same GFNs. Pages mapped more than once (e.g. grants) are being copied. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com --- Changes in v7: - is_soft_reset flag added to struct

[Xen-devel] [PATCH v7 06/10] libxc: support XEN_DOMCTL_soft_reset operation

2015-05-27 Thread Vitaly Kuznetsov
Introduce xc_domain_soft_reset() function supporting XEN_DOMCTL_soft_reset. Signed-off-by: Vitaly Kuznetsov vkuzn...@redhat.com --- Changes in v7: - XENMEM_soft_reset - XEN_DOMCTL_soft_reset. - xc_memory_soft_reset - xc_domain_soft_reset --- tools/libxc/include/xenctrl.h | 4

[Xen-devel] [PATCH v7 01/10] xen: introduce SHUTDOWN_soft_reset shutdown reason

2015-05-27 Thread Vitaly Kuznetsov
This special type of shutdown is supposed to be used by PVHVM guests when they want to perform some sort of kexec/kdump. Toolstack will have to build a new domain with the memory content of the original domain and start executing the new one from the point where SHUTDOWN_soft_reset was called.

[Xen-devel] [PATCH v7 05/10] xsm: add XEN_DOMCTL_soft_reset support

2015-05-27 Thread Vitaly Kuznetsov
Dummy policy just checks that the current domain is privileged. In the FLASK policy two new vectors are added to the DOMAIN2 class: soft_reset and reset_transfer. First one is being used to check that the domain making the hypercall is allowed to do it, the second is being used that is's possible

[Xen-devel] [PATCHv1] xen-netfront: properly destroy queues when removing device

2015-05-27 Thread David Vrabel
xennet_remove() freed the queues before freeing the netdevice which results in a use-after-free when free_netdev() tries to delete the napi instances that have already been freed. Fix this by fully destroy the queues (which includes deleting the napi instances) before freeing the netdevice.

[Xen-devel] [libvirt test] 57369: regressions - trouble: broken/fail/pass

2015-05-27 Thread osstest service user
flight 57369 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/57369/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-libvirt 3 host-install(3) broken REGR. vs. 53854

Re: [Xen-devel] [PATCH v22 02/14] x86/VPMU: Add public xenpmu.h

2015-05-27 Thread Jan Beulich
On 27.05.15 at 15:44, boris.ostrov...@oracle.com wrote: Sorry, I meant amd/intel members of the union below (I forgot we were already in the arch header file): +/* + * Vendor-specific PMU registers. + * RW for both hypervisor and guest. + * Guest's updates to this field

Re: [Xen-devel] [PATCH RFC v1] libxl: Introduce a template for devices with a controller

2015-05-27 Thread Ian Campbell
On Thu, 2015-05-21 at 18:07 +0100, George Dunlap wrote: We have several outstanding patch series which add devices that have two levels: a controller and individual devices attached to that controller. In the interest of consistency, this patch introduces a section that sketches out a

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

2015-05-27 Thread osstest service user
flight 57362 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/57362/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-freebsd10-amd64 16 guest-localmigrate/x10 fail REGR. vs. 56831 Tests which are

Re: [Xen-devel] [PATCHv1] xen-netfront: properly destroy queues when removing device

2015-05-27 Thread Boris Ostrovsky
On 05/27/2015 10:46 AM, David Vrabel wrote: xennet_remove() freed the queues before freeing the netdevice which results in a use-after-free when free_netdev() tries to delete the napi instances that have already been freed. Fix this by fully destroy the queues (which includes deleting the napi

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

2015-05-27 Thread Vijay Kilari
On Wed, May 27, 2015 at 5:18 PM, Ian Campbell ian.campb...@citrix.com wrote: Here follows draft C based on previous feedback. Also at: http://xenbits.xen.org/people/ianc/vits/draftC.{pdf,html} I think I've captured most of the previous discussion, except where explicitly noted by XXX or in

Re: [Xen-devel] Earlier embargoed pre-disclosure without patches

2015-05-27 Thread Lars Kurth
On 26 May 2015, at 17:34, Stefano Stabellini stefano.stabell...@eu.citrix.com wrote: Thanks for the help, folks. I've tossed a proposed security policy change into a Github gist[1]. My proposal is to add this paragraph to the Embargo and disclosure schedule section of the Xen

Re: [Xen-devel] Tools backports for 4.5 [and 1 more messages]

2015-05-27 Thread Andrew Cooper
On 27/05/15 17:09, Ian Jackson wrote: Jan Beulich writes (Re: [Xen-devel] Tools backports for 4.5): Andrew Cooper writes (Tools backports for 4.5): From the XenServer patch queue, (Andrew forgot to CC xen-devel, doing that now:) 3380f5b6270e ocaml/xenctrl: Check return values from hypercalls

Re: [Xen-devel] [PATCH] Osstest: stop testing SEDF, start testing RTDS

2015-05-27 Thread Dario Faggioli
On Fri, 2015-05-22 at 21:29 -0700, Meng Xu wrote: Hi Dario, Hi, 2015-05-22 3:19 GMT-07:00 Dario Faggioli dario.faggi...@citrix.com: On Fri, 2015-05-22 at 11:55 +0200, Dario Faggioli wrote: the SEDF scheduler is about to be deprecated and go away (see [1]). OTOH, the RTDS scheduler

[Xen-devel] [PATCH] [DOCS/RFC]: Xen: Clarification to terms used in hypervisor memory management

2015-05-27 Thread Andrew Cooper
RFC: All changes here are subject to my current understanding, which might be wrong Memory management is hard[citation needed]. Furthermore, it isn't helped by the inconsistent use of terms through the code. Describe the currently-used terms in more practical terms. Signed-off-by: Andrew

Re: [Xen-devel] [PATCH net v2] xen/netback: Properly initialize credit_bytes

2015-05-27 Thread David Miller
From: Ross Lagerwall ross.lagerw...@citrix.com Date: Wed, 27 May 2015 11:44:32 +0100 Commit e9ce7cb6b107 (xen-netback: Factor queue-specific data into queue struct) introduced a regression when moving queue-specific data into the queue struct by failing to set the credit_bytes field. This

Re: [Xen-devel] [Patch V3 14/15] xen: allow more than 512 GB of RAM for 64 bit pv-domains

2015-05-27 Thread David Vrabel
On 27/05/15 17:25, David Vrabel wrote: On 20/04/15 06:23, Juergen Gross wrote: 64 bit pv-domains under Xen are limited to 512 GB of RAM today. The main reason has been the 3 level p2m tree, which was replaced by the virtual mapped linear p2m list. Parallel to the p2m list which is being used

Re: [Xen-devel] [PATCH v5 4/4] iommu: add rmrr Xen command line option for extra rmrrs

2015-05-27 Thread Elena Ufimtseva
On Tue, May 26, 2015 at 01:02:27PM +0100, Jan Beulich wrote: On 23.05.15 at 03:33, elena.ufimts...@oracle.com wrote: --- a/docs/misc/xen-command-line.markdown +++ b/docs/misc/xen-command-line.markdown @@ -1185,6 +1185,19 @@ Specify the host reboot method. 'efi' instructs Xen to reboot

Re: [Xen-devel] [PATCH] dmar: device scope mem leak fix

2015-05-27 Thread Elena Ufimtseva
On Tue, May 26, 2015 at 10:46:30AM +0100, Jan Beulich wrote: On 23.05.15 at 03:27, elena.ufimts...@oracle.com wrote: @@ -318,13 +321,13 @@ static int __init acpi_parse_dev_scope( if ( (cnt = scope_device_count(start, end)) 0 ) return cnt; -scope-devices_cnt = cnt;

[Xen-devel] [PATCH V2] libxl: support domainReset

2015-05-27 Thread Jim Fehlig
Currently, libxl does not provide a reset function, but domainReset can be implemented in the libxl driver by forcibly destroying the domain and starting it again. Signed-off-by: Jim Fehlig jfeh...@suse.com --- This is essentially a V2 of a patch submitted quite some time ago

Re: [Xen-devel] [PATCH v6 1/4] pci: add pci_iomap_wc() variants

2015-05-27 Thread Luis R. Rodriguez
On Tue, May 26, 2015 at 12:40:08PM -0500, Bjorn Helgaas wrote: On Fri, May 22, 2015 at 02:23:41AM +0200, Luis R. Rodriguez wrote: On Thu, May 21, 2015 at 05:33:21PM -0500, Bjorn Helgaas wrote: I tentatively put this (and the rest of the series) on a pci/resource branch. I'm hoping

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

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

Re: [Xen-devel] [PATCH v7 05/10] xsm: add XEN_DOMCTL_soft_reset support

2015-05-27 Thread Daniel De Graaf
On 05/27/2015 11:25 AM, Vitaly Kuznetsov wrote: Dummy policy just checks that the current domain is privileged. In the FLASK policy two new vectors are added to the DOMAIN2 class: soft_reset and reset_transfer. First one is being used to check that the domain making the hypercall is allowed to

[Xen-devel] [xen-unstable test] 57335: regressions - trouble: broken/fail/pass

2015-05-27 Thread osstest service user
flight 57335 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/57335/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl 3 host-install(3) broken REGR. vs. 56375

[Xen-devel] [linux-3.18 test] 57345: regressions - trouble: blocked/broken/fail/pass

2015-05-27 Thread osstest service user
flight 57345 linux-3.18 real [real] http://logs.test-lab.xenproject.org/osstest/logs/57345/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-armhf 3 host-install(3) broken REGR. vs. 57312

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

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

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

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

[Xen-devel] [linux-3.4 test] 57390: regressions - FAIL

2015-05-27 Thread osstest service user
flight 57390 linux-3.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/57390/ 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

[Xen-devel] [PATCH V7] xen/vm_event: Clean up control-register-write vm_events and add XCR0 event

2015-05-27 Thread Razvan Cojocaru
As suggested by Andrew Cooper, this patch attempts to remove some redundancy and allow for an easier time when adding vm_events for new control registers in the future, by having a single VM_EVENT_REASON_WRITE_CTRLREG vm_event type, meant to serve CR0, CR3, CR4 and (newly introduced) XCR0. The

Re: [Xen-devel] gntdev/gntalloc and fork? - crash in gntdev

2015-05-27 Thread Marek Marczykowski-Górecki
On Thu, Apr 30, 2015 at 04:47:44PM +0200, Marek Marczykowski-Górecki wrote: Hi, What is the proper way to handle shared pages (either side - using gntdev or gntalloc) regarding fork and possible exec later? The child process do not need to access those pages in any way, but will map

Re: [Xen-devel] [RFC][v2][PATCH 00/14] Fix RMRR

2015-05-27 Thread Chen, Tiejun
On 2015/5/22 17:46, Jan Beulich wrote: On 22.05.15 at 11:35, tiejun.c...@intel.com wrote: As you know all devices are owned by Dom0 firstly before we create any DomU, right? Do we allow Dom0 still own a group device while assign another device in the same group? Clearly not, or - just like

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

2015-05-27 Thread osstest service user
flight 57404 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/57404/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-freebsd10-amd64 16 guest-localmigrate/x10 fail in 57362 REGR. vs. 56831 Tests

Re: [Xen-devel] [PATCH Part2 v11 1/2] xen/PCI: Don't use deprecated function pci_scan_bus_parented()

2015-05-27 Thread Bjorn Helgaas
On Tue, Apr 28, 2015 at 05:32:33PM +0800, Yijing Wang wrote: From: Arnd Bergmann a...@arndb.de Use pci_scan_root_bus() instead of deprecated function pci_scan_bus_parented(). Signed-off-by: Arnd Bergmann a...@arndb.de Signed-off-by: Yijing Wang wangyij...@huawei.com CC: Konrad Rzeszutek

Re: [Xen-devel] [PATCH v2 for Xen 4.6 1/4] xen: enabling XL to set per-VCPU parameters of a domain for RTDS scheduler

2015-05-27 Thread Chong Li
On Wed, May 27, 2015 at 5:02 AM, Chao Peng chao.p.p...@linux.intel.com wrote: On Mon, May 25, 2015 at 07:05:52PM -0500, Chong Li wrote: I didn't see any fields you need to copy back here ('vcpus' were copied back in rt_vcpu_cntl() already). +{ +struct rt_private *prv = rt_priv(ops); +

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

2015-05-27 Thread osstest service user
flight 57389 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/57389/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 9 windows-install fail REGR. vs. 57367 Regressions which are