[Xen-devel] [stage1-xen PATCH v2 08/11] README.md: Add CircleCI badge

2017-09-19 Thread Rajiv Ranganath
From: Rajiv M Ranganath Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini --- README.md |2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index 9ea6adf..e1cd40c 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,7 @@ # stage1-xen - A Xen based stage1 f

[Xen-devel] [stage1-xen PATCH v2 10/11] BUILDING.md: Add Fedora instructions

2017-09-19 Thread Rajiv Ranganath
Signed-off-by: Rajiv Ranganath Reviewed-by: Stefano Stabellini --- BUILDING.md | 96 --- 1 file changed, 91 insertions(+), 5 deletions(-) diff --git a/BUILDING.md b/BUILDING.md index 3ef5311..4775b65 100644 --- a/BUILDING.md +++ b/BUILDI

[Xen-devel] [stage1-xen PATCH v2 11/11] README.md: Mention preview status

2017-09-19 Thread Rajiv Ranganath
From: Rajiv M Ranganath Signed-off-by: Rajiv Ranganath --- README.md |1 + 1 file changed, 1 insertion(+) diff --git a/README.md b/README.md index e1cd40c..d1ae6b9 100644 --- a/README.md +++ b/README.md @@ -12,6 +12,7 @@ Stage1s come in the form of [ACI](https://github.com/appc/spec) imag

[Xen-devel] [stage1-xen PATCH v2 06/11] build/fedora: Add `xen-4.9.0-runit/*` scripts

2017-09-19 Thread Rajiv Ranganath
From: Rajiv M Ranganath Signed-off-by: Rajiv Ranganath --- build/fedora/xen-4.9.0-runit/setup.sh | 18 build/fedora/xen-4.9.0-runit/teardown.sh | 18 .../xen-4.9.0-runit/xen-init-dom0-disk-backend/run | 11 ++ build/fedora/x

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Roger Pau Monné
On Mon, Sep 18, 2017 at 06:32:22PM +0100, Julien Grall wrote: > Hi Roger, > > On 18/09/17 17:58, Roger Pau Monné wrote: > > On Mon, Sep 18, 2017 at 05:27:52PM +0100, Julien Grall wrote: > > > The implementation of get_paged_frame is currently different whether the > > > architecture support sharin

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

2017-09-19 Thread osstest service owner
flight 113586 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/113586/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-win7-amd64 18 guest-start/win.repeat fail REGR. vs. 113302 build-armh

Re: [Xen-devel] [PATCH v3 02/15] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:24PM +0800, Yi Sun wrote: > diff --git a/xen/include/public/domctl.h b/xen/include/public/domctl.h > index 0669c31..a953157 100644 > --- a/xen/include/public/domctl.h > +++ b/xen/include/public/domctl.h > @@ -37,7 +37,7 @@ > #include "hvm/save.h" > #include "memory.h

[Xen-devel] [ovmf test] 113590: all pass - PUSHED

2017-09-19 Thread osstest service owner
flight 113590 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/113590/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 91cc526b15ffbbbdec5a57906596f37e059f80be baseline version: ovmf 7f2f96f1a8af3c22bdf5d

Re: [Xen-devel] [PATCH v7 12/12] x86/hvm/ioreq: add a new mappable resource type...

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 18 September 2017 17:18 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org; Stefano Stabellini > ; Andrew Cooper ; > Ian Jackson ; Tim (Xen.org) ; Jan > Beulich > Subject: Re: [Xen-devel] [PATCH v7 12/12] x86/hvm/ioreq: add a new >

Re: [Xen-devel] [PATCH 0/4] xen: sched: optimize exclusive pinning and soft-affinity checking

2017-09-19 Thread Dario Faggioli
On Mon, 2017-09-18 at 20:42 +0100, Anshul Makkar wrote: > > On 9/15/17 6:35 PM, Dario Faggioli wrote: > > Hello, > > > > Dario Faggioli (4): > >    xen: sched: introduce 'adjust_affinity' hook. > >    xen: sched: optimize exclusive pinning case (Credit1 & 2) > >    xen: sched: improve

Re: [Xen-devel] [PATCH v7 03/12] tools/libxenforeignmemory: add support for resource mapping

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Ian Jackson [mailto:ian.jack...@eu.citrix.com] > Sent: 18 September 2017 17:16 > To: Paul Durrant > Cc: xen-de...@lists.xenproject.org > Subject: Re: [PATCH v7 03/12] tools/libxenforeignmemory: add support for > resource mapping > > Paul Durrant writes ("[PATC

Re: [Xen-devel] [PATCH] xen: credit2: fix spinlock irq-safety violation

2017-09-19 Thread Wei Liu
On Tue, Sep 19, 2017 at 04:11:28AM +0200, Dario Faggioli wrote: > In commit ad4b3e1e9df34 ("xen: credit2: implement > utilization cap") xfree() was being called (for > deallocating the budget replenishment timer, during > domain destruction) inside an IRQ disabled critical > section. > > That must

Re: [Xen-devel] [PATCH v3 03/15] x86: rename 'cbm_type' to 'psr_type' to make it general

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:25PM +0800, Yi Sun wrote: > This patch renames 'cbm_type' to 'psr_type' to make it be general. s/make it be general/generalize it/. > Then, we can reuse this for all psr allocation features. > > Signed-off-by: Yi Sun > Reviewed-by: Wei Liu Reviewed-by: Roger Pau

Re: [Xen-devel] How to prepare the COLO test environment

2017-09-19 Thread Dario Faggioli
On Mon, 2017-09-18 at 18:52 +, Zhang Chen wrote: > 山本真吾 于2017年9月18日周一 下午6:27写道: > > I have read the following documents: > > > > COLO - Coarse Grain Lock Stepping > > https://wiki.xen.org/wiki/COLO_-_Coarse_Grain_Lock_Stepping > > > > Mailing list > > https://lists.xen.org/archives/html/xen-d

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Julien Grall > Sent: 18 September 2017 17:28 > To: xen-devel@lists.xen.org > Cc: sstabell...@kernel.org; Wei Liu ; George Dunlap > ; Andrew Cooper > ; Ian Jackson ; Tim > (Xen.org) ; Julien Grall

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Wei Liu
On Mon, Sep 18, 2017 at 05:08:18PM +0100, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH 03/22] xentoolcore, _restrict_all: Introduce new > library and implementation"): > > On Fri, Sep 15, 2017 at 07:48:40PM +0100, Ian Jackson wrote: > ... > > > +void xentoolcore__register_active_handle(Xentool

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:40PM +0100, Ian Jackson wrote: > +int xentoolcore_restrict_all(uint32_t domid) { > +/* xxx lock */ This should be removed. With this fixed: Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lis

Re: [Xen-devel] [PATCH 04/22] tools: qemu-xen build: prepare to link against xentoolcore

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:41PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 06/22] tools: move CONTAINER_OF to xentoolcore_internal.h

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:43PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 05/22] libxl: #include "xentoolcore_internal.h"

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:42PM +0100, Ian Jackson wrote: > We are going to want to move something here. > > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v3 04/15] x86: implement data structure and CPU init flow for MBA

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:26PM +0800, Yi Sun wrote: > This patch implements main data structures of MBA. > > Like CAT features, MBA HW info has cos_max which means the max thrtl > register number, and thrtl_max which means the max throttle value > (delay value). It also has a flag to represent

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Jan Beulich
>>> On 19.09.17 at 10:34, wrote: > I do wonder whether this function belongs in the grant table code though. > Getting the page from a (d, gfn) tuple is probably something that's needed in > a few places and hence putting the code in common/memory.c (with suitable > adjustment to the error valu

Re: [Xen-devel] [alsa-devel] [PATCH RESEND1 00/12] ALSA: vsnd: Add Xen para-virtualized frontend driver

2017-09-19 Thread Oleksandr Andrushchenko
Hi, all! We did some work on implementing the idea with feedback events from the backend to the frontend. Please see attached the changes to the existing sndif protocol [1]: 1. Introduced a new event channel from back to front 2. New event with number of bytes played/captured (XENSND_EVT_CUR_

Re: [Xen-devel] [PATCH v3 05/15] x86: implement get hw info flow for MBA

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:27PM +0800, Yi Sun wrote: > This patch implements get HW info flow for MBA including its callback > function and sysctl interface. > > Signed-off-by: Yi Sun > --- > v3: > - replace 'PSR_VAL_TYPE_MBA' to 'PSR_TYPE_MBA_THRTL'. > (suggested by Roger Pau Monné)

Re: [Xen-devel] [PATCH v3 06/15] x86: implement get value interface for MBA

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:28PM +0800, Yi Sun wrote: > This patch implements get value domctl interface for MBA. > > Signed-off-by: Yi Sun > Reviewed-by: Roger Pau Monné > --- > v3: > - change 'PSR_VAL_TYPE_MBA' to 'PSR_TYPE_MBA_THRTL'. > (suggested by Roger Pau Monné) > --- > xen/

Re: [Xen-devel] [PATCH v2 2/5] libxl: enable per-VCPU extratime flag for RTDS

2017-09-19 Thread Dario Faggioli
On Fri, 2017-09-15 at 12:01 -0400, Meng Xu wrote: > On Wed, Sep 13, 2017 at 8:16 PM, Dario Faggioli > wrote: > > > > > I'm ok with what it is in this patch, although I feel that we can > > > kill the > > >  if (scinfo->extratime != > > > LIBXL_DOMAIN_SCHED_PARAM_EXTRATIME_DEFAULT) > > > because L

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:40PM +0100, Ian Jackson wrote: > + > +int xentoolcore_restrict_all(uint32_t domid) { > +/* xxx lock */ > +int r; > +Xentoolcore__Active_Handle *ah; > + > +lock(); > +XENTOOLCORE_LIST_FOREACH(ah, &handles, entry) { > +r = ah->restrict_callback(ah

Re: [Xen-devel] [PATCH 07/22] xentoolcore_restrict_all: Implement for libxendevicemodel

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:44PM +0100, Ian Jackson wrote: > +static int all_restrict_cb(Xentoolcore__Active_Handle *ah, uint32_t domid) { > +xendevicemodel_handle *dmod = CONTAINER_OF(ah, *dmod, tc_ah); > + > +if (dmod->fd < 0) > +/* just in case */ > +return 0; > + > +

Re: [Xen-devel] [PATCH 09/22] xentoolcore_restrict: Break out xentoolcore__restrict_by_dup2_null

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:46PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:45PM +0100, Ian Jackson wrote: > +static int all_restrict_cb(Xentoolcore__Active_Handle *ah, uint32_t domid) { > +xencall_handle *xcall = CONTAINER_OF(ah, *xcall, tc_ah); > +int nullfd = -1, r; > + > +if (xcall->fd < 0) > +/* just in case */ > +

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Julien Grall
Hi, On 19/09/17 09:56, Jan Beulich wrote: On 19.09.17 at 10:34, wrote: I do wonder whether this function belongs in the grant table code though. Getting the page from a (d, gfn) tuple is probably something that's needed in a few places and hence putting the code in common/memory.c (with suitab

Re: [Xen-devel] [PATCH 10/22] xentoolcore_restrict_all: Implement for libxenforeignmemory

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:47PM +0100, Ian Jackson wrote: > +static int all_restrict_cb(Xentoolcore__Active_Handle *ah, uint32_t domid) { > +xenforeignmemory_handle *fmem = CONTAINER_OF(ah, *fmem, tc_ah); > + > +if (fmem->fd < 0) > +/* just in case */ > +return 0; > + > +

Re: [Xen-devel] [PATCH 12/22] xentoolcore_restrict_all: "Implement" for xengnttab

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:49PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 11/22] xentoolcore_restrict_all: Declare problems due to no evtchn support

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:48PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 13/22] tools/xenstore: get_handle: use "goto err" error handling style

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:50PM +0100, Ian Jackson wrote: > Replace the ad-hoc exit clauses with the error handling style where > - local variables contain either things to be freed, or sentinels > - all error exits go via an "err" label which frees everything > > Signed-off-by: Ian Jackson

Re: [Xen-devel] [PATCH 14/22] tools/xenstore: get_handle: Allocate struct before opening fd

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:51PM +0100, Ian Jackson wrote: > Now we can also abolish the temporary local variable "fd" and simply > use h->fd. > > This ordering is necessary to be able to call > xentoolcore__register_active_handle sensibly. > > Signed-off-by: Ian Jackson Acked-by: Wei Liu _

Re: [Xen-devel] [PATCH 15/22] xentoolcore_restrict_all: "Implement" for xenstore

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:52PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Julien Grall
Hi, On 19/09/17 08:13, Roger Pau Monné wrote: On Mon, Sep 18, 2017 at 06:32:22PM +0100, Julien Grall wrote: Hi Roger, On 18/09/17 17:58, Roger Pau Monné wrote: On Mon, Sep 18, 2017 at 05:27:52PM +0100, Julien Grall wrote: The implementation of get_paged_frame is currently different whether t

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Julien Grall [mailto:julien.gr...@arm.com] > Sent: 19 September 2017 10:40 > To: Jan Beulich ; Paul Durrant > > Cc: Andrew Cooper ; George Dunlap > ; Ian Jackson ; Wei Liu > ; sstabell...@kernel.org; xen-devel@lists.xen.org; Tim > (Xen.org) > Subject: Re: [Xen

Re: [Xen-devel] [PATCH 17/22] xl, libxl: Provide dm_restrict

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:54PM +0100, Ian Jackson wrote: > This functionality is still quite imperfect, but it will be useful in > certain restricted use cases. > > Signed-off-by: Ian Jackson Seeing this is mostly plumbing for QEMU and a technology preview feature: Acked-by: Wei Liu _

Re: [Xen-devel] [PATCH 19/22] libxl: libxl__dm_runas_helper: return pwd

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:56PM +0100, Ian Jackson wrote: > Signed-off-by: Ian Jackson Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH 20/22] libxl: userlookup_helper_getpwnam rename and turn into a macro

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:57PM +0100, Ian Jackson wrote: > +/* > + * userlookup_helper_getpwnam(libxl__gc*, const char *user, > + * struct passwd **pwd_r); > + * > + * returns 1 if the user was found, 0 if it was not, -1 on error > + */ > +#define DEFINE_USERLOOKUP

Re: [Xen-devel] [PATCH v3 07/15] x86: implement set value flow for MBA

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:29PM +0800, Yi Sun wrote: > This patch implements set value flow for MBA including its callback > function and domctl interface. > > It also changes the memebers in 'cos_write_info' to transfer the > feature array, feature properties array and value array. Then, we >

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Jan Beulich
>>> On 19.09.17 at 11:39, wrote: > On 19/09/17 09:56, Jan Beulich wrote: > On 19.09.17 at 10:34, wrote: >>> I do wonder whether this function belongs in the grant table code though. >>> Getting the page from a (d, gfn) tuple is probably something that's needed >>> in >>> a few places and hen

[Xen-devel] [PATCH v7 04/16] xen: add new domctl hypercall to set grant table resource limits

2017-09-19 Thread Juergen Gross
Add a domctl hypercall to set the domain's resource limits regarding grant tables. Signed-off-by: Juergen Gross Acked-by: Daniel De Graaf --- V6: - moved earlier in series to support set_gnttab_limits being mandatory for domain creation V5: - add set_gnttab_limits to create_domain_common in x

[Xen-devel] [PATCH v7 08/16] tools: set grant limits for xenstore stubdom

2017-09-19 Thread Juergen Gross
When creating a Xenstore stubdom set the grant limits: the stubdom will need to setup a very limited amount of grants only, so 4 grant frames are enough. For being able to support up to 32768 domains it will need 128 maptrack frames (1 mapping per domain, 256 maptrack entries per maptrack frame).

[Xen-devel] [PATCH v7 12/16] xen: delay allocation of grant table sub structures

2017-09-19 Thread Juergen Gross
Delay the allocation of the grant table sub structures in order to allow modifying parameters needed for sizing of these structures at a per domain basis. Allocate the structures from gnttab_setup_table() and the table frames only from gnttab_grow_table(). Signed-off-by: Juergen Gross --- V6: - m

[Xen-devel] [PATCH v7 13/16] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-19 Thread Juergen Gross
Instead of attaching the ARM specific grant table data to the domain structure add it to struct grant_table. Add the needed arch functions to the asm-*/grant_table.h includes. Signed-off-by: Juergen Gross --- V7: - re-add #include in grant_table.h (Julien Grall) --- xen/arch/arm/domain.c

[Xen-devel] [PATCH v7 14/16] xen: make grant resource limits per domain

2017-09-19 Thread Juergen Gross
Instead of using the same global resource limits of grant tables (max. number of grant frames, max. number of maptrack frames) for all domains make these limits per domain. Set those per-domain limits in grant_table_set_limits(). Signed-off-by: Juergen Gross --- V6: - several changes due to new p

[Xen-devel] [PATCH v7 16/16] xen: add new Xen cpuid node for max address width info

2017-09-19 Thread Juergen Gross
On very large hosts a guest needs to know whether it will have to handle frame numbers larger than 32 bits in order to select the appropriate grant interface version. Add a new Xen specific CPUID node to contain the maximum guest address width similar to the x86 CPUID node 0x8008 containing th

[Xen-devel] [PATCH v7 07/16] libxc: add libxc support for setting grant table resource limits

2017-09-19 Thread Juergen Gross
Add a new libxc function xc_domain_set_gnttbl_limits() setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant Acked-by: Wei Liu --- V4: - use domid_t (Wei Liu) --- tools/libxc/include/xenctrl.h |

[Xen-devel] [PATCH v7 05/16] xen: add function for obtaining highest possible memory address

2017-09-19 Thread Juergen Gross
Add a function for obtaining the highest possible physical memory address of the system. This value is influenced by: - hypervisor configuration (CONFIG_BIGMEM) - processor capability (max. addressable physical memory) - memory map at boot time - memory hotplug capability The value is especially

[Xen-devel] [PATCH v7 02/16] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-19 Thread Juergen Gross
The x86 and arm versions of XENMAPSPACE_grant_table handling are nearly identical. Move the code into a function in grant_table.c and add an architecture dependant hook to handle the differences. Switch to mfn_t in order to be more type safe. Signed-off-by: Juergen Gross --- V7: - only call gntt

[Xen-devel] [PATCH v7 03/16] xen: clean up grant_table.h

2017-09-19 Thread Juergen Gross
Many definitions can be moved from xen/grant_table.h to common/grant_table.c now, as they are no longer used in other sources. Rearrange the elements of struct grant_table to minimize holes due to alignment of elements. Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant Reviewed-by: Wei Liu

[Xen-devel] [PATCH v7 15/16] xen: make grant table limits boot parameters dom0 only

2017-09-19 Thread Juergen Gross
The boot parameters gnttab_max_frames and gnttab_max_maptrack_frames are used for dom0 only now, as all other domains require a XEN_DOMCTL_set_gnttab_limits call now. So make that explicit by setting the boot values for dom0 only. While updating the documentation regarding new scope of the boot pa

[Xen-devel] [PATCH v7 01/16] xen: correct gnttab_get_status_frames()

2017-09-19 Thread Juergen Gross
In gnttab_get_status_frames() all accesses to nr_status_frames should be done with the grant table lock held. While at it correct coding style: labels should be indented by one space. Signed-off-by: Juergen Gross Reviewed-by: Paul Durrant Reviewed-by: Wei Liu --- xen/common/grant_table.c | 15

[Xen-devel] [PATCH v7 09/16] libxl: add max possible mfn to libxl_physinfo

2017-09-19 Thread Juergen Gross
Add the maximum possible mfn of the host to the libxl_physinfo data structure. Signed-off-by: Juergen Gross --- tools/libxl/libxl.c | 1 + tools/libxl/libxl.h | 9 + tools/libxl/libxl_types.idl | 1 + 3 files changed, 11 insertions(+) diff --git a/tools/libxl/libxl.c b/t

[Xen-devel] [PATCH v7 11/16] libxl: add libxl support for setting grant table resource limits

2017-09-19 Thread Juergen Gross
Add new domain config items for setting the limits for the maximum numbers of grant table frames and maptrack frames of a domain. Signed-off-by: Juergen Gross --- V6: - made set_gnttab_limits hypercall mandatory, taking defaults from xl.conf V4: - rename configuration items to use max_ prefixe

[Xen-devel] [PATCH v7 10/16] xl: add global grant limit config items

2017-09-19 Thread Juergen Gross
Add xl.conf config items for default values of grant limits: max_grant_frames will set the default for the maximum number of grant frames for a domain which will take effect if the domain's config file doesn't specify a value. If max_grant_frames isn't set in xl.conf it will default to 32 for host

[Xen-devel] [PATCH v7 00/16] xen: better grant v2 support

2017-09-19 Thread Juergen Gross
Currently Linux has no support for grant v2 as this would reduce the maximum number of active grants by a factor of 2 compared to v1, because the number of possible grants are limited by the allowed number of grant frames and grant entries of v2 need twice as much bytes as those of v1. Unfortunate

[Xen-devel] [PATCH v7 06/16] xen: add max possible mfn to struct xen_sysctl_physinfo

2017-09-19 Thread Juergen Gross
Add the maximum possible mfn to struct xen_sysctl_physinfo in order to enable Xen tools to size the grant table frame limits for a domU. Signed-off-by: Juergen Gross --- xen/common/sysctl.c | 1 + xen/include/public/sysctl.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/xen/comm

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Julien Grall
On 19/09/17 10:47, Paul Durrant wrote: -Original Message- From: Julien Grall [mailto:julien.gr...@arm.com] Sent: 19 September 2017 10:40 To: Jan Beulich ; Paul Durrant Cc: Andrew Cooper ; George Dunlap ; Ian Jackson ; Wei Liu ; sstabell...@kernel.org; xen-devel@lists.xen.org; Tim (Xen.

Re: [Xen-devel] [PATCH 22/22] RFC: tools: xentoolcore_restrict_all: use domid_t

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 07:48:59PM +0100, Ian Jackson wrote: > This is an RFC because it does not currently compile, because not all > the places that use xentoolcore have a definition of domid in scope! > > Signed-off-by: Ian Jackson If the places you mentioned are in xen.git we should probably

Re: [Xen-devel] [PATCH v3 08/15] tools: create general interfaces to support psr allocation features

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:30PM +0800, Yi Sun wrote: > This patch creates general interfaces in libxl to support all psr > allocation features. > > Add 'LIBXL_HAVE_PSR_GENERIC' to indicate interface change. > > Please note, the functionality cannot work until later patches > are applied. > >

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 19 September 2017 10:58 > To: Julien Grall > Cc: Andrew Cooper ; George Dunlap > ; Ian Jackson ; Paul > Durrant ; Wei Liu ; > sstabell...@kernel.org; xen-devel@lists.xen.org; Tim (Xen.org) > > Subject: Re: [Xen-de

Re: [Xen-devel] [PATCH 14/14] fuzz/x86_emulate: Add an option to limit the number of instructions executed

2017-09-19 Thread Wei Liu
On Fri, Sep 15, 2017 at 02:55:03PM +0100, George Dunlap wrote: > On 09/15/2017 02:38 PM, Wei Liu wrote: > > On Fri, Aug 25, 2017 at 05:43:43PM +0100, George Dunlap wrote: > >> AFL considers a testcase to be a useful addition not only if there are > >> tuples exercised by that testcase which were no

Re: [Xen-devel] [PATCH v7 02/16] xen: move XENMAPSPACE_grant_table code into grant_table.c

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 19 September 2017 10:59 > To: xen-de...@lists.xenproject.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap ; > Andrew Cooper ; Ian Jackson > ; Tim (

Re: [Xen-devel] [PATCH v7 04/16] xen: add new domctl hypercall to set grant table resource limits

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 19 September 2017 10:59 > To: xen-de...@lists.xenproject.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap ; > Andrew Cooper ; Ian Jackson > ; Tim (

Re: [Xen-devel] [PATCH v3 09/15] tools: implement the new libxc get hw info interface

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:31PM +0800, Yi Sun wrote: > This patch implements a new libxc get hw info interface and corresponding > data structures. It also changes libxl_psr.c to call this new interface. > > Signed-off-by: Yi Sun > --- > v3: > - rename 'psr_cat/PSR_CAT' to 'psr_alloc/PSR_A

[Xen-devel] [libvirt test] 113592: tolerable all pass - PUSHED

2017-09-19 Thread osstest service owner
flight 113592 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/113592/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt-xsm 14 saverestore-support-checkfail like 113495 test-armhf-armhf-libvirt 14 saveresto

Re: [Xen-devel] [PATCH v7 04/16] xen: add new domctl hypercall to set grant table resource limits

2017-09-19 Thread Juergen Gross
On 19/09/17 12:14, Paul Durrant wrote: >> -Original Message- >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of >> Juergen Gross >> Sent: 19 September 2017 10:59 >> To: xen-de...@lists.xenproject.org >> Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu >> ; George Du

Re: [Xen-devel] [PATCH v3 10/15] tools: implement the new libxl get hw info interface

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:32PM +0800, Yi Sun wrote: > This patch implements the new libxl get hw info interface, > 'libxl_psr_get_hw_info', which is suitable to all psr allocation > features. It also implements corresponding list free function, > 'libxl_psr_hw_info_list_free' and make 'libxl_ps

Re: [Xen-devel] [PATCH v7 12/16] xen: delay allocation of grant table sub structures

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 19 September 2017 10:59 > To: xen-de...@lists.xenproject.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap ; > Andrew Cooper ; Ian Jackson > ; Tim (

Re: [Xen-devel] [PATCH v7 13/16] xen/arm: move arch specific grant table bits into grant_table.c

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 19 September 2017 10:59 > To: xen-de...@lists.xenproject.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap ; > Andrew Cooper ; Ian Jackson > ; Tim (

Re: [Xen-devel] [PATCH v3 11/15] tools: implement the new xl get hw info interface

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:33PM +0800, Yi Sun wrote: > This patch implements a new xl get HW info interface. A new argument > is added for psr-hwinfo command to get and show MBA HW info. > > Signed-off-by: Yi Sun > --- > v3: > - change the format string of printf in 'psr_mba_hwinfo'. >

Re: [Xen-devel] [PATCH v7 14/16] xen: make grant resource limits per domain

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of > Juergen Gross > Sent: 19 September 2017 10:59 > To: xen-de...@lists.xenproject.org > Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu > ; George Dunlap ; > Andrew Cooper ; Ian Jackson > ; Tim (

Re: [Xen-devel] [PATCH v3 12/15] tools: rename 'xc_psr_cat_type' to 'xc_psr_type'

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:34PM +0800, Yi Sun wrote: > This patch renames 'xc_psr_cat_type' to 'xc_psr_type' so that > the structure name is common for all allocation features. > > Signed-off-by: Yi Sun > Acked-by: Wei Liu > Reviewed-by: Chao Peng > --- > v3: > - change 'xc_psr_val_type'

Re: [Xen-devel] [PATCH v7 12/16] xen: delay allocation of grant table sub structures

2017-09-19 Thread Juergen Gross
On 19/09/17 12:28, Paul Durrant wrote: >> -Original Message- >> From: Xen-devel [mailto:xen-devel-boun...@lists.xen.org] On Behalf Of >> Juergen Gross >> Sent: 19 September 2017 10:59 >> To: xen-de...@lists.xenproject.org >> Cc: Juergen Gross ; sstabell...@kernel.org; Wei Liu >> ; George Du

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Wei Liu
On Mon, Sep 18, 2017 at 05:27:52PM +0100, Julien Grall wrote: > The implementation of get_paged_frame is currently different whether the > architecture support sharing memory or paging memory. Both > version are extremely similar so it is possible to consolidate in a > single implementation. > > T

Re: [Xen-devel] [PATCH v7 12/16] xen: delay allocation of grant table sub structures

2017-09-19 Thread Paul Durrant
> -Original Message- > From: Juergen Gross [mailto:jgr...@suse.com] > Sent: 19 September 2017 11:36 > To: Paul Durrant ; xen-de...@lists.xenproject.org > Cc: sstabell...@kernel.org; Wei Liu ; George Dunlap > ; Andrew Cooper > ; Ian Jackson ; Tim > (Xen.org) ; julien.gr...@arm.com; jbeul...@

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation"): > On Fri, Sep 15, 2017 at 07:48:40PM +0100, Ian Jackson wrote: > > +int xentoolcore_restrict_all(uint32_t domid) { > > +/* xxx lock */ > > This should be removed. Oops, missed one indeed.

Re: [Xen-devel] [PATCH v2] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Julien Grall
Hi Wei, On 19/09/17 11:38, Wei Liu wrote: On Mon, Sep 18, 2017 at 05:27:52PM +0100, Julien Grall wrote: The implementation of get_paged_frame is currently different whether the architecture support sharing memory or paging memory. Both version are extremely similar so it is possible to consolid

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation"): > On Fri, Sep 15, 2017 at 07:48:40PM +0100, Ian Jackson wrote: > > +int xentoolcore_restrict_all(uint32_t domid) { > > +int r; > > +Xentoolcore__Active_Handle *ah; > > + > > +lock

Re: [Xen-devel] [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 08/22] xentoolcore_restrict_all: "Implement" for libxencall"): > On Fri, Sep 15, 2017 at 07:48:45PM +0100, Ian Jackson wrote: > > +nullfd = open("/dev/null",O_RDONLY); > > Space after "," please. OK. I will keep that change when the code moves, in a moment. > Wi

Re: [Xen-devel] [PATCH 10/22] xentoolcore_restrict_all: Implement for libxenforeignmemory

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 10/22] xentoolcore_restrict_all: Implement for libxenforeignmemory"): > Same comment for xendevicemodel_restrict on idempotent applies here. Are you happy with me fixing this by changing the docs rather than the code ? Ian. ___

Re: [Xen-devel] [PATCH 17/22] xl, libxl: Provide dm_restrict

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 17/22] xl, libxl: Provide dm_restrict"): > On Fri, Sep 15, 2017 at 07:48:54PM +0100, Ian Jackson wrote: > > This functionality is still quite imperfect, but it will be useful in > > certain restricted use cases. ... > Seeing this is mostly plumbing for QEMU and a technol

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Wei Liu
On Tue, Sep 19, 2017 at 11:47:12AM +0100, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH 03/22] xentoolcore, _restrict_all: Introduce new > library and implementation"): > > On Fri, Sep 15, 2017 at 07:48:40PM +0100, Ian Jackson wrote: > > > +int xentoolcore_restrict_all(uint32_t domid) { > > > +

Re: [Xen-devel] [PATCH 20/22] libxl: userlookup_helper_getpwnam rename and turn into a macro

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 20/22] libxl: userlookup_helper_getpwnam rename and turn into a macro"): > On Fri, Sep 15, 2017 at 07:48:57PM +0100, Ian Jackson wrote: > > +#define DEFINE_USERLOOKUP_HELPER(NAME,SPEC_TYPE,STRUCTNAME,SYSCONF) > > \ > > Some of the "\"'s are misaligned. So th

Re: [Xen-devel] [PATCH 10/22] xentoolcore_restrict_all: Implement for libxenforeignmemory

2017-09-19 Thread Wei Liu
On Tue, Sep 19, 2017 at 11:51:06AM +0100, Ian Jackson wrote: > Wei Liu writes ("Re: [PATCH 10/22] xentoolcore_restrict_all: Implement for > libxenforeignmemory"): > > Same comment for xendevicemodel_restrict on idempotent applies here. > > Are you happy with me fixing this by changing the docs ra

Re: [Xen-devel] [PATCH v7 10/16] xl: add global grant limit config items

2017-09-19 Thread Ian Jackson
Juergen Gross writes ("[PATCH v7 10/16] xl: add global grant limit config items"): > Add xl.conf config items for default values of grant limits: > > max_grant_frames will set the default for the maximum number of grant > frames for a domain which will take effect if the domain's config file > do

Re: [Xen-devel] [PATCH v7 07/16] libxc: add libxc support for setting grant table resource limits

2017-09-19 Thread Ian Jackson
Juergen Gross writes ("[PATCH v7 07/16] libxc: add libxc support for setting grant table resource limits"): > Add a new libxc function xc_domain_set_gnttbl_limits() setting the > limits for the maximum numbers of grant table frames and maptrack > frames of a domain. > > Signed-off-by: Juergen Gro

Re: [Xen-devel] [PATCH v7 11/16] libxl: add libxl support for setting grant table resource limits

2017-09-19 Thread Ian Jackson
Juergen Gross writes ("[PATCH v7 11/16] libxl: add libxl support for setting grant table resource limits"): > Add new domain config items for setting the limits for the maximum > numbers of grant table frames and maptrack frames of a domain. Acked-by: Ian Jackson ___

Re: [Xen-devel] [PATCH v7 09/16] libxl: add max possible mfn to libxl_physinfo

2017-09-19 Thread Ian Jackson
Juergen Gross writes ("[PATCH v7 09/16] libxl: add max possible mfn to libxl_physinfo"): > Add the maximum possible mfn of the host to the libxl_physinfo > data structure. Acked-by: Ian Jackson ___ Xen-devel mailing list Xen-devel@lists.xen.org https:

Re: [Xen-devel] [PATCH 22/22] RFC: tools: xentoolcore_restrict_all: use domid_t

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 22/22] RFC: tools: xentoolcore_restrict_all: use domid_t"): > On Fri, Sep 15, 2017 at 07:48:59PM +0100, Ian Jackson wrote: > > This is an RFC because it does not currently compile, because not all > > the places that use xentoolcore have a definition of domid in scope!

Re: [Xen-devel] [PATCH v3 13/15] tools: implement new generic get value interface and MBA get value command

2017-09-19 Thread Roger Pau Monné
On Tue, Sep 05, 2017 at 05:32:35PM +0800, Yi Sun wrote: > This patch implements generic get value interfaces in libxc and libxl. > It also refactors the get value flow in xl to make it be suitable for all > allocation features. Based on that, a new MBA get value command is added in > xl. > > Sign

Re: [Xen-devel] [PATCH v3 06/17] xen/livepatch/x86/arm32: Force .livepatch.depends section to be uint32_t aligned.

2017-09-19 Thread Julien Grall
Hi Konrad, On 19/09/17 01:32, Konrad Rzeszutek Wilk wrote: +.PHONY: livepatch_depends.h +livepatch_depends.h: note.bin + $(shell (../../../tools/firmware/hvmloader/mkhex $(NOTE_DEPENDS) $^ > $@)) It looks quite odd to use a file in firmware/hvmloader for livepatch. Would it be possible

Re: [Xen-devel] [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 03/22] xentoolcore, _restrict_all: Introduce new library and implementation"): > The impression I get from the name and parameter from this API is that > the following use case is allowed: a device model serving multiple > domains. Such a device model is obviously, by

Re: [Xen-devel] [PATCH 10/22] xentoolcore_restrict_all: Implement for libxenforeignmemory

2017-09-19 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH 10/22] xentoolcore_restrict_all: Implement for libxenforeignmemory"): > Sure that's fine. I have this now: * If called again with the same domid, it may succeed, or it may * fail (even though such a call is potentially meaningful). * (If called again with a differe

Re: [Xen-devel] [PATCH v3 09/17] livepatch/arm[32, 64]: Modify livepatch_funcs

2017-09-19 Thread Julien Grall
Hi Konrad, On 19/09/17 01:35, Konrad Rzeszutek Wilk wrote: On Thu, Sep 14, 2017 at 02:20:42PM +0100, Julien Grall wrote: Hi Konrad, On 12/09/17 01:37, Konrad Rzeszutek Wilk wrote: This was found when porting livepatch-build-tools to ARM64/32. When livepatch-build-tools are built (and test-ca

[Xen-devel] [PATCH v3] xen: grant-table: Simplify get_paged_frame

2017-09-19 Thread Julien Grall
The implementation of get_paged_frame is currently different whether the architecture support sharing memory or paging memory. Both version are extremely similar so it is possible to consolidate in a single implementation. The main difference is the x86 version will allow grant on foreign page whe

  1   2   3   >