Re: [Xen-devel] [PATCH 2/3] x86: add support for L2 CAT in hypervisor.

2016-09-06 Thread Jan Beulich
>>> On 25.08.16 at 07:22, wrote: Please extend the comments given for patch 1 to this one. Just one extra thing: > @@ -743,7 +744,7 @@ struct xen_sysctl_psr_cat_op { > uint32_t cos_max; /* OUT: Maximum COS */ > #define XEN_SYSCTL_PSR_CAT_L3_CDP

Re: [Xen-devel] xen arm64 dom0 question

2016-09-06 Thread Peng Fan
Hi Julien, On Fri, Sep 02, 2016 at 02:13:07PM +0100, Julien Grall wrote: > > >On 02/09/16 12:27, Peng Fan wrote: >>Hi Julien, Stefano > >Hi Peng, > >> >>On My ARM64 platform, there is 6GB memory. >>0x8000 - 0xfff: 2GB >>0x88000 - 0x9: 4GB >> >>xen will alloc 1:1 mapping for

Re: [Xen-devel] [PATCH 1/3] x86: refactor psr implementation in hypervisor.

2016-09-06 Thread Jan Beulich
>>> On 25.08.16 at 07:22, wrote: > --- a/xen/arch/x86/psr.c > +++ b/xen/arch/x86/psr.c > @@ -23,22 +23,116 @@ > #define PSR_CAT(1<<1) > #define PSR_CDP(1<<2) > > -struct psr_cat_cbm { > -union { > -uint64_t cbm; > -struct { > -

Re: [Xen-devel] [PATCH v3 2/6] VMX: Properly handle pi when all the assigned devices are removed

2016-09-06 Thread Dario Faggioli
On Wed, 2016-08-31 at 11:56 +0800, Feng Wu wrote: > diff --git a/xen/arch/x86/hvm/vmx/vmx.c b/xen/arch/x86/hvm/vmx/vmx.c > @@ -158,14 +158,12 @@ static void vmx_pi_switch_to(struct vcpu *v) >  pi_clear_sn(pi_desc); >  } >   Not terribly important, but what about calling this: > -static void

Re: [Xen-devel] [RFC PATCH] x86/apicv: fix RTC periodic timer and apicv issue

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 10:53, wrote: > to be honest, my fix is also a tradeoff.. w/ my patch, multiple pending pt > interrupt instances may be combined as one injection of guest timer > interrupt.. > but as Yang said, It should be ok since it happens rarely and even native >

Re: [Xen-devel] [PATCH v5 2/2] qdisk - hw/block/xen_disk: grant copy implementation

2016-09-06 Thread Anthony PERARD
On Tue, Aug 16, 2016 at 08:55:56AM +0200, Paulina Szubarczyk wrote: > diff --git a/configure b/configure > index 8d84919..68b3374 100755 > --- a/configure > +++ b/configure > @@ -1956,6 +1956,43 @@ EOF > /* > * If we have stable libs the we don't want the libxc compat > * layers, regardless

Re: [Xen-devel] [PATCH v3 3/6] VMX: Cleanup PI per-cpu blocking list when vcpu is destroyed

2016-09-06 Thread Dario Faggioli
On Wed, 2016-08-31 at 11:56 +0800, Feng Wu wrote: > We should remove the vCPU from the per-cpu blocking list > if it is going to be destroyed. > > Signed-off-by: Feng Wu > --- >  xen/arch/x86/hvm/vmx/vmx.c | 1 + >  1 file changed, 1 insertion(+) > > diff --git

Re: [Xen-devel] [PATCH v2 07/20] arm/x86: Add ALTERNATIVE and HAS_EX_TABLE

2016-09-06 Thread Konrad Rzeszutek Wilk
On Thu, Aug 25, 2016 at 08:56:07AM -0600, Jan Beulich wrote: > >>> On 25.08.16 at 15:58, wrote: > > On 25/08/16 14:37, Konrad Rzeszutek Wilk wrote: > > > >> x86 implements all of them by default - and we just > >> add two extra CONFIG_ variables to be declared in

Re: [Xen-devel] [PATCH v3 3/6] VMX: Cleanup PI per-cpu blocking list when vcpu is destroyed

2016-09-06 Thread Wu, Feng
> -Original Message- > From: Dario Faggioli [mailto:dario.faggi...@citrix.com] > Sent: Tuesday, September 6, 2016 5:22 PM > To: Wu, Feng ; xen-devel@lists.xen.org > Cc: Tian, Kevin ; george.dun...@eu.citrix.com; > andrew.coop...@citrix.com;

Re: [Xen-devel] [PATCH v6 1/4] x86/ioreq server: Add HVMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2016-09-06 Thread Jan Beulich
>>> On 05.09.16 at 19:20, wrote: > On 05/09/16 14:31, Jan Beulich wrote: > On 02.09.16 at 12:47, wrote: >>> @@ -178,8 +179,27 @@ static int hvmemul_do_io( >>> break; >>> case X86EMUL_UNHANDLEABLE: >>> { >>> -

Re: [Xen-devel] [PATCH] replace bogus -ENOSYS uses

2016-09-06 Thread Jan Beulich
>>> On 12.08.16 at 13:49, wrote: > On 12/08/16 11:58, Jan Beulich wrote: > On 11.08.16 at 20:10, wrote: >>> On 09/08/16 11:40, Jan Beulich wrote: --- a/xen/arch/x86/cpu/mtrr/main.c +++ b/xen/arch/x86/cpu/mtrr/main.c @@

Re: [Xen-devel] [PATCH v6 1/4] x86/ioreq server: Add HVMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2016-09-06 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 06 September 2016 08:58 > To: George Dunlap ; Yu Zhang > > Cc: Andrew Cooper ; Paul Durrant > ; George

Re: [Xen-devel] [PATCH v6 1/4] x86/ioreq server: Add HVMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 10:03, wrote: >> -Original Message- >> From: Jan Beulich [mailto:jbeul...@suse.com] >> Sent: 06 September 2016 08:58 >> To: George Dunlap ; Yu Zhang >> >> Cc: Andrew Cooper

Re: [Xen-devel] [PATCH 4/5] gcov: add option to determine gcov format

2016-09-06 Thread Wei Liu
On Fri, Sep 02, 2016 at 12:47:08PM +0100, Wei Liu wrote: > Currently only gcc 3.4 format is supported. > > Signed-off-by: Wei Liu > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson

Re: [Xen-devel] [Minios-devel] [MINIOS PATCH] Add travis.yml and travis-build script

2016-09-06 Thread Wei Liu
On Mon, Sep 05, 2016 at 09:21:19PM +0200, Samuel Thibault wrote: > Wei Liu, on Mon 05 Sep 2016 15:43:21 +0100, wrote: > > Signed-off-by: Wei Liu > > Acked-by: Samuel Thibault > Thanks. Pushed. ___

[Xen-devel] [linux-3.18 baseline-only test] 67643: regressions - FAIL

2016-09-06 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 67643 linux-3.18 real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/67643/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 17

Re: [Xen-devel] [RFC PATCH] x86/apicv: fix RTC periodic timer and apicv issue

2016-09-06 Thread Xuquan (Euler)
On August 30, 2016 1:58 PM, Tian, Kevin wrote: >> From: Xuquan (Euler) [mailto:xuqu...@huawei.com] >> Sent: Friday, August 19, 2016 8:59 PM >> >> When Xen apicv is enabled, wall clock time is faster on Windows7-32 >> guest with high payload (with 2vCPU, captured from

Re: [Xen-devel] [PATCH 1/1] xen: move TLB-flush filtering out into populate_physmap

2016-09-06 Thread Wei Liu
On Tue, Sep 06, 2016 at 01:17:38PM +0800, Dongli Zhang wrote: > This patch implemented parts of TODO left in commit id > a902c12ee45fc9389eb8fe54eeddaf267a555c58. It moved TLB-flush filtering out > into populate_physmap. > > Because of TLB-flush in alloc_heap_pages, it's very slow to create a

Re: [Xen-devel] [PATCH linux v3 3/9] xen: introduce xen_vcpu_id mapping

2016-09-06 Thread Vitaly Kuznetsov
Stefano Stabellini writes: > On Mon, 5 Sep 2016, Vitaly Kuznetsov wrote: >> Julien Grall writes: >> >> > Hi Vitaly, >> > >> > On 26/07/16 13:30, Vitaly Kuznetsov wrote: >> >> It may happen that Xen's and Linux's ideas of vCPU id diverge. In >> >>

Re: [Xen-devel] [PATCH v2] libxl: add "xl qemu-monitor-command"

2016-09-06 Thread Dario Faggioli
On Mon, 2016-09-05 at 16:11 +0200, Juergen Gross wrote: > diff --git a/tools/libxl/libxl_qmp.c b/tools/libxl/libxl_qmp.c > @@ -1103,14 +1103,48 @@ int libxl__qmp_x_blockdev_change(libxl__gc > *gc, int domid, const char *parent, >  return qmp_run_command(gc, domid, "x-blockdev-change", args, >

[Xen-devel] [ovmf baseline-only test] 67645: all pass

2016-09-06 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 67645 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/67645/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf bc54e50e0fe03c570014f363b547426913e92449 baseline

Re: [Xen-devel] [PATCH v3 1/6] VMX: Statically assign two PI hooks

2016-09-06 Thread Dario Faggioli
On Wed, 2016-08-31 at 11:56 +0800, Feng Wu wrote: > PI hooks: vmx_pi_switch_from() and vmx_pi_switch_to() are > needed even all the assigned devices were dettached from > the domain. > maybe "are needed even when any previously passed through device is detached from the domain" (or something like

[Xen-devel] [PATCH v2 1/1] xen: move TLB-flush filtering out into populate_physmap

2016-09-06 Thread Dongli Zhang
This patch implemented parts of TODO left in commit id a902c12ee45fc9389eb8fe54eeddaf267a555c58. It moved TLB-flush filtering out into populate_physmap. Because of TLB-flush in alloc_heap_pages, it's very slow to create a guest with memory size of more than 100GB on host with 100+ cpus. This

Re: [Xen-devel] [PATCH v2 13/20] livepatch: Initial ARM64 support.

2016-09-06 Thread Konrad Rzeszutek Wilk
On Thu, Aug 25, 2016 at 09:02:48AM -0600, Jan Beulich wrote: > >>> On 25.08.16 at 15:37, wrote: > > --- a/xen/include/xen/types.h > > +++ b/xen/include/xen/types.h > > @@ -14,6 +14,12 @@ > > #define NULL ((void*)0) > > #endif > > > > +#define U16_MAX ((u16)~0U)

Re: [Xen-devel] [RFC PATCH] x86/apicv: fix RTC periodic timer and apicv issue

2016-09-06 Thread Xuquan (Euler)
On September 06, 2016 5:05 PM, Jan Beulich On 06.09.16 at 10:53, wrote: >> to be honest, my fix is also a tradeoff.. w/ my patch, multiple >> pending pt interrupt instances may be combined as one injection of >> guest timer interrupt.. >> but as Yang

Re: [Xen-devel] Bug in hash changes to netback in 4.7.2 kernel

2016-09-06 Thread Paul Durrant
> -Original Message- > From: Anthony Wright [mailto:anth...@overnetdata.com] > Sent: 06 September 2016 13:23 > To: Xen-devel > Cc: Paul Durrant > Subject: Bug in hash changes to netback in 4.7.2 kernel > > When I run Xen (4.7.0) nested

Re: [Xen-devel] [PATCH v2 2/4] gcov: collect more sections to constructor list

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 14:41, wrote: > The version of gcc (4.9.2) I use put constructors into .init_array* > section(s). Collect those sections into constructor list as well. > > Modify both arm and x86 scripts to keep them in sync. > > Signed-off-by: Wei Liu

Re: [Xen-devel] [PATCH v2 5/9] x86/hypercall: Move the hypercall tables into C

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 12:12, wrote: > Editing (and indeed, finding) the hypercall tables can be tricky, especially > towards the end where .rept's are used to maintain the correct layout. > > Move this all into C, and let the compiler do the hard work. > > To do this,

Re: [Xen-devel] [PATCH v6 0/4] arm64, xen: add xen_boot support into grup-mkconfig

2016-09-06 Thread Julien Grall
On 01/09/16 22:51, Daniel Kiper wrote: Hey Julien, Hi Daniel, On Thu, Sep 01, 2016 at 01:47:05PM +0100, Julien Grall wrote: We have a couple series (this series and [1]) to allow grub booting Xen on ARM that have been waiting on the GRUB ML for a while to be pushed. Those patches have

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread George Dunlap
On 06/09/16 12:20, Julien Grall wrote: > > > On 06/09/16 12:05, George Dunlap wrote: >> On 06/09/16 11:51, Julien Grall wrote: >>> >>> >>> On 06/09/16 11:45, Razvan Cojocaru wrote: Hello, > On 06/09/16 11:00, Razvan Cojocaru wrote: >> diff --git a/xen/arch/arm/p2m.c

[Xen-devel] Bug in hash changes to netback in 4.7.2 kernel

2016-09-06 Thread Anthony Wright
When I run Xen (4.7.0) nested in VirtualBox (5.0.24_Ubuntu r108355) with a linux-4.7.2 Dom0 kernel, none of my DomU's (linux-3.17.3) have network connectivity because they reject all packets with the error 'Invalid extra type: 4'. When I run exactly the same setup on bare metal, I don't get the

[Xen-devel] Winter Outreachy round - please update projects

2016-09-06 Thread Lars Kurth
Hi all, the Winter Outreachy round is coming up. Given that the winter round is typically a little quieter and we do not have an extensive list of projects, I only requested funding for 1 slot in this round. Please update starter projects, add new ones, etc. to

[Xen-devel] [OSSTEST PATCH v3 10/25] Executive: Support substeps

2016-09-06 Thread Wei Liu
From: Ian Jackson ts-* scripts can now create `substeps'. For the purposes of archaeology etc., a substep is just like a step. But it does correspond to a single specific ts-* invocation. Instead, it is started and finished explicitly as required. The whole job

[Xen-devel] [OSSTEST PATCH v3 16/25] BuildSupport: move buildcmd_stamped_logged here

2016-09-06 Thread Wei Liu
... so that other build scripts can use it, too. It now accepts one more parameter called "component" to be useful in other build scripts. No functional change. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- Osstest/BuildSupport.pm | 15

[Xen-devel] [OSSTEST PATCH v3 21/25] Introduce ts-xtf-fep

2016-09-06 Thread Wei Liu
Test the availability of FEP during runtime. Signed-off-by: Wei Liu --- v3: use logm to log result v2: 1. use target_cmd_output_root to get output 2. die if the output is not in expected format 3. use fep test result as exit code of the script 4. remove the use of xtfdir

[Xen-devel] [OSSTEST PATCH v3 11/25] DO NOT APPLY make-flight-substep-test

2016-09-06 Thread Wei Liu
From: Ian Jackson This is a simple test case for substeps. Signed-off-by: Ian Jackson CC: Wei Liu --- make-flight-substep-test | 14 ++ sg-run-job | 7 +++ 2 files changed, 21

[Xen-devel] [OSSTEST PATCH v3 23/25] sg-run-job: test-xtf recipe

2016-09-06 Thread Wei Liu
Install XTF, run FEP test and then run all available tests. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- sg-run-job | 10 ++ 1 file changed, 10 insertions(+) diff --git a/sg-run-job b/sg-run-job index 95ee89e..13203ef 100755 ---

Re: [Xen-devel] [PATCH v2 4/4] xen: make clear gcov support limitation in Kconfig

2016-09-06 Thread Andrew Cooper
On 06/09/16 14:37, Jan Beulich wrote: On 06.09.16 at 14:41, wrote: >> Signed-off-by: Wei Liu > Acked-by: Jan Beulich > > with one possible further request: > >> --- a/xen/Kconfig.debug >> +++ b/xen/Kconfig.debug >> @@ -33,6

Re: [Xen-devel] [PATCH 3/3] Significant changes to decision making; some new roles and minor changes

2016-09-06 Thread Lars Kurth
On 26/08/2016 10:51, "Wei Liu" wrote: >On Fri, Aug 26, 2016 at 03:35:38PM +0100, Lars Kurth wrote: >> >> >> On 26/08/2016 07:49, "Wei Liu" wrote: >> >> >On Sat, Aug 13, 2016 at 09:28:49AM +, Lars Kurth wrote: >> >> >> >> >> How about: >> >> >>

Re: [Xen-devel] xen/xen vs xen/kvm nesting with pv drivers

2016-09-06 Thread Andrew Cooper
On 06/09/16 13:47, Anthony Wright wrote: > I tried to install Xen (4.7.0 with linux 4.7.2 Dom0) on an AWS virtual > machine and it failed because while AWS uses Xen it requires that you use the > PVHVM network driver. I then tried to install Xen on a Google Cloud virtual > machine and despite

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread George Dunlap
On 06/09/16 11:16, Ian Jackson wrote: > Razvan Cojocaru writes ("[PATCH V3] tools/libxc, xen/x86: Added > xc_set_mem_access_multi()"): >> Currently it is only possible to set mem_access restrictions only for >> a contiguous range of GFNs (or, as a particular case, for a single GFN). >> This patch

Re: [Xen-devel] [PATCH v2 5/9] x86/hypercall: Move the hypercall tables into C

2016-09-06 Thread Andrew Cooper
On 06/09/16 11:37, Jan Beulich wrote: On 06.09.16 at 12:12, wrote: >> Editing (and indeed, finding) the hypercall tables can be tricky, especially >> towards the end where .rept's are used to maintain the correct layout. >> >> Move this all into C, and let the

Re: [Xen-devel] [PULL 0/1] xen-20160905

2016-09-06 Thread Peter Maydell
On 5 September 2016 at 20:02, Stefano Stabellini wrote: > The following changes since commit 12d2c4184c5ab60be3428b2bdea5ae66e8d5d960: > > Update version for v2.7.0-rc5 release (2016-08-30 20:39:45 +0100) > > are available in the git repository at: > >

Re: [Xen-devel] [RFC PATCH] x86/apicv: fix RTC periodic timer and apicv issue

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 13:22, wrote: > On September 06, 2016 5:05 PM, Jan Beulich > On 06.09.16 at 10:53, wrote: >>> to be honest, my fix is also a tradeoff.. w/ my patch, multiple >>> pending pt interrupt instances may be combined as

Re: [Xen-devel] xen/xen vs xen/kvm nesting with pv drivers

2016-09-06 Thread Anthony Wright
On 06/09/2016 14:05, Andrew Cooper wrote: > On 06/09/16 13:47, Anthony Wright wrote: >> I tried to install Xen (4.7.0 with linux 4.7.2 Dom0) on an AWS virtual >> machine and it failed because while AWS uses Xen it requires that you use >> the PVHVM network driver. I then tried to install Xen on

Re: [Xen-devel] [PATCH v2 4/4] xen: make clear gcov support limitation in Kconfig

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 14:41, wrote: > Signed-off-by: Wei Liu Acked-by: Jan Beulich with one possible further request: > --- a/xen/Kconfig.debug > +++ b/xen/Kconfig.debug > @@ -33,6 +33,12 @@ config GCOV > ---help--- >

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 12:16, wrote: > Razvan Cojocaru writes ("[PATCH V3] tools/libxc, xen/x86: Added > xc_set_mem_access_multi()"): >> Currently it is only possible to set mem_access restrictions only for >> a contiguous range of GFNs (or, as a particular case, for a

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Ian Jackson
George Dunlap writes ("Re: [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()"): > So you really don't mind if Razvan submits a patch for code that he > hasn't tested and isn't sure works? I don't think that's a very good idea. (Are there possible security implications? It's not

Re: [Xen-devel] [PATCH v2 1/1] xen: move TLB-flush filtering out into populate_physmap

2016-09-06 Thread George Dunlap
On 06/09/16 10:55, David Vrabel wrote: > On 06/09/16 10:52, George Dunlap wrote: >> On 06/09/16 10:39, David Vrabel wrote: >>> On 06/09/16 09:42, Dongli Zhang wrote: This patch implemented parts of TODO left in commit id a902c12ee45fc9389eb8fe54eeddaf267a555c58. It moved TLB-flush

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi() [and 1 more messages]

2016-09-06 Thread Ian Jackson
Razvan Cojocaru writes ("Re: [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()"): > On 09/06/2016 01:16 PM, Ian Jackson wrote: > > Could this aim be achieved with a multicall ? (Can multicalls defer > > the TLB flush?) > > I assume your question is: could we do multiple

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Julien Grall
Hi Ravzan, On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index b648a9d..e65a9b8 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -1836,6 +1836,15 @@ long p2m_set_mem_access(struct domain *d, gfn_t gfn, uint32_t nr, return 0; }

[Xen-devel] [PATCH v3] libxl: add "xl qemu-monitor-command"

2016-09-06 Thread Juergen Gross
Add a new xl command "qemu-monitor-command" to issue arbitrary commands to a domain's device model. Syntax is: xl qemu-monitor-command The command is issued via qmp human-monitor-command command. Any information returned by the command is printed to stdout. Signed-off-by: Juergen Gross

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Julien Grall
On 06/09/16 11:45, Razvan Cojocaru wrote: Hello, On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index b648a9d..e65a9b8 100644 --- a/xen/arch/arm/p2m.c +++ b/xen/arch/arm/p2m.c @@ -1836,6 +1836,15 @@ long p2m_set_mem_access(struct domain *d,

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Razvan Cojocaru
On 09/06/2016 01:51 PM, Julien Grall wrote: > > > On 06/09/16 11:45, Razvan Cojocaru wrote: >> Hello, >> >>> On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index b648a9d..e65a9b8 100644 --- a/xen/arch/arm/p2m.c +++

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Julien Grall
On 06/09/16 12:05, George Dunlap wrote: On 06/09/16 11:51, Julien Grall wrote: On 06/09/16 11:45, Razvan Cojocaru wrote: Hello, On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index b648a9d..e65a9b8 100644 --- a/xen/arch/arm/p2m.c +++

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Julien Grall
On 06/09/16 12:34, George Dunlap wrote: On 06/09/16 12:20, Julien Grall wrote: On 06/09/16 12:05, George Dunlap wrote: On 06/09/16 11:51, Julien Grall wrote: On 06/09/16 11:45, Razvan Cojocaru wrote: Hello, On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git a/xen/arch/arm/p2m.c

[Xen-devel] [OSSTEST PATCH v3 14/25] ap-common: add xtf tree

2016-09-06 Thread Wei Liu
Signed-off-by: Wei Liu Acked-by: Ian Jackson --- ap-common | 4 1 file changed, 4 insertions(+) diff --git a/ap-common b/ap-common index 62d2e4f..6d25025 100644 --- a/ap-common +++ b/ap-common @@ -33,6 +33,10 @@ : ${TREEVCS_LINUX:=git}

[Xen-devel] [OSSTEST PATCH v3 12/25] DO NOT APPLY provide ts-substep-test

2016-09-06 Thread Wei Liu
From: Ian Jackson --- ts-substep-test | 38 ++ 1 file changed, 38 insertions(+) create mode 100755 ts-substep-test diff --git a/ts-substep-test b/ts-substep-test new file mode 100755 index 000..cea8a6d --- /dev/null +++

[Xen-devel] [OSSTEST PATCH v3 13/25] ts-xen-build: always compile in FEP support

2016-09-06 Thread Wei Liu
By default FEP depends on debug flag. When we are near release the debug flag will be turned off. In order to test a release build, we explicitly enable FEP in build configuration. Since we target Xen versions that already have Kconfig support, only a Kconfig option is created for now. We can

[Xen-devel] [OSSTEST PATCH v3 20/25] mfi-common: create xtf build job for 4.4 onwards

2016-09-06 Thread Wei Liu
Xen 4.4 is the oldest one that we still provide security support at this point in time. Signed-off-by: Wei Liu --- mfi-common | 25 + 1 file changed, 25 insertions(+) diff --git a/mfi-common b/mfi-common index 8f27923..0864266 100644 ---

[Xen-devel] [OSSTEST PATCH v3 22/25] Introduce ts-xtf-run

2016-09-06 Thread Wei Liu
This is the main script for running XTF. It will first perform selftest, and then run each XTF test case as a substep. It does the following things: 1. Run self tests for individual environment and record the result. 2. Collect tests according to available environments. 3. Run the collected

[Xen-devel] [OSSTEST PATCH v3 15/25] DO NOT APPLY point xtf to my personal tree

2016-09-06 Thread Wei Liu
The master branch of this tree is xtf.git master + one test case that always fails. --- ap-common | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ap-common b/ap-common index 6d25025..9cdb1c1 100644 --- a/ap-common +++ b/ap-common @@ -33,9 +33,9 @@ :

[Xen-devel] [OSSTEST PATCH v3 25/25] Create XTF branch

2016-09-06 Thread Wei Liu
This branch contains Xen and Linux build jobs and all jobs which contain xtf in their name. Signed-off-by: Wei Liu --- I'm not sure if everything is ok because I can't test all changes. --- ap-fetch-version | 4 ap-print-url | 3 +++ ap-push | 5 +

[Xen-devel] [OSSTEST PATCH v3 18/25] sg-run-job: create xtf build recipe

2016-09-06 Thread Wei Liu
Signed-off-by: Wei Liu Acked-by: Ian Jackson --- sg-run-job | 5 + 1 file changed, 5 insertions(+) diff --git a/sg-run-job b/sg-run-job index 314019c..95ee89e 100755 --- a/sg-run-job +++ b/sg-run-job @@ -476,6 +476,7 @@ proc need-hosts/build

[Xen-devel] [OSSTEST PATCH v3 24/25] make-flight: create 5 xtf jobs

2016-09-06 Thread Wei Liu
Create jobs only for x86 and set host flag diverse-xtf-x86. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- make-flight | 22 ++ 1 file changed, 22 insertions(+) diff --git a/make-flight b/make-flight index c94dfa4..0aada37

Re: [Xen-devel] [PATCH v2 1/4] xen: indicate gcov in log messages

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 14:47, wrote: > On 06/09/16 13:41, Wei Liu wrote: >> --- a/xen/drivers/char/console.c >> +++ b/xen/drivers/char/console.c >> @@ -735,10 +735,11 @@ void __init console_init_preirq(void) >> spin_lock(_lock); >> __putstr(xen_banner()); >>

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Razvan Cojocaru
On 09/06/2016 02:53 PM, Julien Grall wrote: > > > On 06/09/16 12:34, George Dunlap wrote: >> On 06/09/16 12:20, Julien Grall wrote: >>> >>> >>> On 06/09/16 12:05, George Dunlap wrote: On 06/09/16 11:51, Julien Grall wrote: > > > On 06/09/16 11:45, Razvan Cojocaru wrote: >>

[Xen-devel] xen/xen vs xen/kvm nesting with pv drivers

2016-09-06 Thread Anthony Wright
I tried to install Xen (4.7.0 with linux 4.7.2 Dom0) on an AWS virtual machine and it failed because while AWS uses Xen it requires that you use the PVHVM network driver. I then tried to install Xen on a Google Cloud virtual machine and despite also requiring you to use PV drivers, that

Re: [Xen-devel] [PATCH v2 1/4] xen: indicate gcov in log messages

2016-09-06 Thread Andrew Cooper
On 06/09/16 13:41, Wei Liu wrote: > Signed-off-by: Wei Liu > --- > Cc: Stefano Stabellini > Cc: Julien Grall > Cc: Jan Beulich > Cc: Andrew Cooper > --- > xen/arch/arm/traps.c

Re: [Xen-devel] Xen 4.8 Development Update

2016-09-06 Thread Konrad Rzeszutek Wilk
On Mon, Sep 05, 2016 at 05:47:54PM +0200, Dario Faggioli wrote: > On Wed, 2016-08-31 at 10:21 -0400, Konrad Rzeszutek Wilk wrote: > > > > > > *  Per-cpu tasklet > > >   -  Konrad Rzeszutek Wilk > > Waiting for review and hopefully test results from Intel. > > > I've just seen it (came back today

[Xen-devel] [OSSTEST PATCH v3 00/25] Integrate XTF into OSSTest

2016-09-06 Thread Wei Liu
Hi all This patch series integrates XTF into OSSTest. All the prerequisites have been met, so this is no longer RFC. Please see (currently Citrix only): http://osstest.xs.citrite.net/~osstest/testlogs/logs/67651/ I'm going to run the same series a few more times to verify some assumptions.

[Xen-devel] [OSSTEST PATCH v3 08/25] ts-hosts-allocate-Executive: Support diverse-CLASS hostflag

2016-09-06 Thread Wei Liu
From: Ian Jackson Specifically: * Parse it out of the hostflags when constructing the hid * Look for the `hostalloc-diverse-FLIGHT-CLASS' ClientNote in the resource plan, to avoid inappropriately planning to reuse hosts. * Look for the `diversehosts_CLASS' runvar

[Xen-devel] [OSSTEST PATCH v3 09/25] DO NOT APPLY make-flight-diverse-test: test case for diverse-CLASS hostflag

2016-09-06 Thread Wei Liu
From: Ian Jackson This generates a flight with two jobs, test-1 and test-2. They can be run, and are supposed to allocate different hosts, and will bomb out after host allocation. Signed-off-by: Ian Jackson CC: Wei Liu

[Xen-devel] [OSSTEST PATCH v3 01/25] Executive: Previous duration estimator: use overall time, not sum of steps

2016-09-06 Thread Wei Liu
From: Ian Jackson Some jobs runs steps in parallel. Do not add up all the individual step durations. Instead, calculate the duration as the time between first step start and last step finish. Signed-off-by: Ian Jackson Signed-off-by: Wei

Re: [Xen-devel] Bug in hash changes to netback in 4.7.2 kernel

2016-09-06 Thread Anthony Wright
On 06/09/2016 13:57, Paul Durrant wrote: >> -Original Message- >> From: Anthony Wright [mailto:anth...@overnetdata.com] >> Sent: 06 September 2016 13:23 >> To: Xen-devel >> Cc: Paul Durrant >> Subject: Bug in hash changes to netback in

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Razvan Cojocaru
On 09/06/2016 01:26 PM, Jan Beulich wrote: On 06.09.16 at 12:16, wrote: >> Razvan Cojocaru writes ("[PATCH V3] tools/libxc, xen/x86: Added >> xc_set_mem_access_multi()"): >>> Currently it is only possible to set mem_access restrictions only for >>> a contiguous

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Wei Liu
On Tue, Sep 06, 2016 at 01:27:21PM +0300, Razvan Cojocaru wrote: > On 09/06/2016 01:16 PM, Ian Jackson wrote: > > Razvan Cojocaru writes ("[PATCH V3] tools/libxc, xen/x86: Added > > xc_set_mem_access_multi()"): > >> Currently it is only possible to set mem_access restrictions only for > >> a

Re: [Xen-devel] [PATCH v2 4/9] x86/pv: Implement pv_hypercall() in C

2016-09-06 Thread Jan Beulich
>>> On 06.09.16 at 12:12, wrote: > In a similar style to hvm_do_hypercall(). The C version is far easier to > understand and edit than the assembly versions. > > There are a few small differences however. The register clobbering values > have changed (to match the

Re: [Xen-devel] [PATCH 0/3] tools: support autoballooning of xenstore domain [and 1 more messages]

2016-09-06 Thread Wei Liu
On Tue, Sep 06, 2016 at 11:09:42AM +0100, Ian Jackson wrote: > Wei Liu writes ("Re: [Xen-devel] [PATCH 0/3] tools: support autoballooning of > xenstore domain"): > > On Mon, Aug 29, 2016 at 08:22:14AM +0200, Juergen Gross wrote: > > > So Mini-OS ballooning is available now. Anything missing from

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread George Dunlap
On 06/09/16 11:51, Julien Grall wrote: > > > On 06/09/16 11:45, Razvan Cojocaru wrote: >> Hello, >> >>> On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c index b648a9d..e65a9b8 100644 --- a/xen/arch/arm/p2m.c +++

Re: [Xen-devel] [PATCH v6 0/4] x86/ioreq server: Introduce HVMMEM_ioreq_server mem type.

2016-09-06 Thread Yu Zhang
On 9/2/2016 6:47 PM, Yu Zhang wrote: XenGT leverages ioreq server to track and forward the accesses to GPU I/O resources, e.g. the PPGTT(per-process graphic translation tables). Currently, ioreq server uses rangeset to track the BDF/ PIO/MMIO ranges to be emulated. To select an ioreq server,

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Razvan Cojocaru
On 09/06/2016 02:20 PM, Julien Grall wrote: > > > On 06/09/16 12:05, George Dunlap wrote: >> On 06/09/16 11:51, Julien Grall wrote: >>> >>> >>> On 06/09/16 11:45, Razvan Cojocaru wrote: Hello, > On 06/09/16 11:00, Razvan Cojocaru wrote: >> diff --git a/xen/arch/arm/p2m.c

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Julien Grall
On 06/09/16 12:36, Razvan Cojocaru wrote: On 09/06/2016 02:20 PM, Julien Grall wrote: On 06/09/16 12:05, George Dunlap wrote: On 06/09/16 11:51, Julien Grall wrote: On 06/09/16 11:45, Razvan Cojocaru wrote: Hello, On 06/09/16 11:00, Razvan Cojocaru wrote: diff --git

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Julien Grall
On 06/09/16 12:51, Ian Jackson wrote: George Dunlap writes ("Re: [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()"): So you really don't mind if Razvan submits a patch for code that he hasn't tested and isn't sure works? I don't think that's a very good idea. (Are there

Re: [Xen-devel] [PATCH v3] libxl: add "xl qemu-monitor-command"

2016-09-06 Thread Dario Faggioli
On Tue, 2016-09-06 at 12:51 +0200, Juergen Gross wrote: > Add a new xl command "qemu-monitor-command" to issue arbitrary > commands > to a domain's device model. Syntax is: > > xl qemu-monitor-command > > The command is issued via qmp human-monitor-command command. Any > information returned

[Xen-devel] [PATCH v2 2/4] gcov: collect more sections to constructor list

2016-09-06 Thread Wei Liu
The version of gcc (4.9.2) I use put constructors into .init_array* section(s). Collect those sections into constructor list as well. Modify both arm and x86 scripts to keep them in sync. Signed-off-by: Wei Liu Acked-by: Julien Grall --- v2: move

[Xen-devel] [PATCH v2 1/4] xen: indicate gcov in log messages

2016-09-06 Thread Wei Liu
Signed-off-by: Wei Liu --- Cc: Stefano Stabellini Cc: Julien Grall Cc: Jan Beulich Cc: Andrew Cooper --- xen/arch/arm/traps.c| 5 +++-- xen/arch/x86/x86_64/traps.c | 5

[Xen-devel] [PATCH v2 0/4] gcov: more cleanup

2016-09-06 Thread Wei Liu
Wei Liu (4): xen: indicate gcov in log messages gcov: collect more sections to constructor list xen: replace TEST_COVERAGE with CONFIG_GCOV xen: make clear gcov support limitation in Kconfig xen/Kconfig.debug | 6 ++ xen/Rules.mk| 2 +- xen/arch/arm/traps.c

[Xen-devel] [PATCH v2 4/4] xen: make clear gcov support limitation in Kconfig

2016-09-06 Thread Wei Liu
Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini

[Xen-devel] [PATCH v2 3/4] xen: replace TEST_COVERAGE with CONFIG_GCOV

2016-09-06 Thread Wei Liu
The sole purpose of TEST_COVERAGE macro is to guard the availability of gcov sysctl. Now we have a proper CONFIG_GCOV, use it. Signed-off-by: Wei Liu Acked-by: Jan Beulich --- xen/Rules.mk | 2 +- xen/common/sysctl.c| 2 +-

[Xen-devel] [OSSTEST PATCH v3 04/25] step status skip: Ignore in cs-bisection-step

2016-09-06 Thread Wei Liu
From: Ian Jackson cs-bisection step wants to completely ignore all skipped steps. So we adjust the one query which doesn't already insist on particular status values, to filter out `skip'. Signed-off-by: Ian Jackson --- cs-bisection-step

[Xen-devel] [OSSTEST PATCH v3 03/25] sg-run-job: Add emacs mode comment

2016-09-06 Thread Wei Liu
From: Ian Jackson Signed-off-by: Ian Jackson --- sg-run-job | 1 + 1 file changed, 1 insertion(+) diff --git a/sg-run-job b/sg-run-job index 6d455c7..1c154be 100755 --- a/sg-run-job +++ b/sg-run-job @@ -1,4 +1,5 @@ #!/usr/bin/tclsh8.5 +#

[Xen-devel] [OSSTEST PATCH v3 07/25] ts-hosts-allocate-Executive: pass $plan to hid_find_possibilities

2016-09-06 Thread Wei Liu
From: Ian Jackson We are going to want this to implement the new diverse-CLASS hostflag. Signed-off-by: Ian Jackson CC: Wei Liu --- ts-hosts-allocate-Executive | 6 +++--- 1 file changed, 3 insertions(+), 3

[Xen-devel] [OSSTEST PATCH v3 02/25] ts-hosts-allocate-Executive: Replace some odd commas with semicolons

2016-09-06 Thread Wei Liu
From: Ian Jackson There does not seem to be any reason for this. I think it must be a leftover from a previous use of { A => X, B => Y, ... } syntax. Signed-off-by: Ian Jackson CC: Wei Liu ---

[Xen-devel] [OSSTEST PATCH v3 05/25] step status skip: Ignore in report_run_getinfo

2016-09-06 Thread Wei Liu
From: Ian Jackson report_run_getinfo is trying to generate some HTML to describe a job's (current) status. It sometimes looks at the steps to find `interesting' information to report. Completely ignore steps with status `skip' for this purpose, just like we ignore

[Xen-devel] [OSSTEST PATCH v3 06/25] step status skip: Implement in sg-report-flight

2016-09-06 Thread Wei Liu
From: Ian Jackson * When we are doing archaeology, searching for flight(s) which ran a particular testid, ignore all flights where the testid was skipped. * In a flight we are examining for failures we need to justify, do not regard `skip' as a failure which

[Xen-devel] [OSSTEST PATCH v3 19/25] Introduce ts-xtf-install

2016-09-06 Thread Wei Liu
Extract XTF to the desired location. Signed-off-by: Wei Liu --- v3: fix typo in commit message v2: remove reference of runvar xtfdir --- ts-xtf-install | 37 + 1 file changed, 37 insertions(+) create mode 100755 ts-xtf-install diff

[Xen-devel] [OSSTEST PATCH v3 17/25] Introduce ts-xtf-build

2016-09-06 Thread Wei Liu
Clone, build and package XTF for later use. Signed-off-by: Wei Liu Acked-by: Ian Jackson --- ts-xtf-build | 54 ++ 1 file changed, 54 insertions(+) create mode 100755 ts-xtf-build diff --git

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Razvan Cojocaru
Hello, > On 06/09/16 11:00, Razvan Cojocaru wrote: >> diff --git a/xen/arch/arm/p2m.c b/xen/arch/arm/p2m.c >> index b648a9d..e65a9b8 100644 >> --- a/xen/arch/arm/p2m.c >> +++ b/xen/arch/arm/p2m.c >> @@ -1836,6 +1836,15 @@ long p2m_set_mem_access(struct domain *d, gfn_t >> gfn, uint32_t nr, >>

Re: [Xen-devel] [PATCH V3] tools/libxc, xen/x86: Added xc_set_mem_access_multi()

2016-09-06 Thread Razvan Cojocaru
On 09/06/2016 05:07 PM, Jan Beulich wrote: On 06.09.16 at 12:00, wrote: >> --- a/xen/arch/arm/p2m.c >> +++ b/xen/arch/arm/p2m.c >> @@ -1836,6 +1836,15 @@ long p2m_set_mem_access(struct domain *d, gfn_t gfn, >> uint32_t nr, >> return 0; >> } >> >> +long

  1   2   3   >