Re: [Xen-devel] [PATCH v3 6/7] xen/9pfs: receive responses

2017-03-14 Thread Juergen Gross
On 14/03/17 00:50, Stefano Stabellini wrote: > Upon receiving a notification from the backend, schedule the > p9_xen_response work_struct. p9_xen_response checks if any responses are > available, if so, it reads them one by one, calling p9_client_cb to send > them up to the 9p layer (p9_client_cb c

Re: [Xen-devel] [PATCH v3 7/7] xen/9pfs: build 9pfs Xen transport driver

2017-03-14 Thread Juergen Gross
On 14/03/17 00:50, Stefano Stabellini wrote: > This patch adds a Kconfig option and Makefile support for building the > 9pfs Xen driver. > > Signed-off-by: Stefano Stabellini > CC: boris.ostrov...@oracle.com > CC: jgr...@suse.com > CC: Eric Van Hensbergen > CC: Ron Minnich > CC: Latchesar Ionko

Re: [Xen-devel] [PATCH v2 4/9] xen/9pfs: introduce Xen 9pfs backend

2017-03-14 Thread Juergen Gross
On 14/03/17 00:55, Stefano Stabellini wrote: > Introduce the Xen 9pfs backend: add struct XenDevOps to register as a > Xen backend and add struct V9fsTransport to register as v9fs transport. > > All functions are empty stubs for now. > > Signed-off-by: Stefano Stabellini > Reviewed-by: Greg Kurz

Re: [Xen-devel] [PATCH v2 5/9] xen/9pfs: connect to the frontend

2017-03-14 Thread Juergen Gross
On 14/03/17 00:55, Stefano Stabellini wrote: > Write the limits of the backend to xenstore. Connect to the frontend. > Upon connection, allocate the rings according to the protocol > specification. > > Initialize a QEMUBH to schedule work upon receiving an event channel > notification from the fro

[Xen-devel] [PATCH] tools: include sys/sysmacros.h on Linux

2017-03-14 Thread Olaf Hering
Due to a bug in the glibc headers the macros makedev(), major() and minor() where avaialble by including sys/types.h. This bug was addressed in glibc-2.25 by introducing a warning when these macros are used. Since Xen is build with -Werror this new warning cause a compile error. Use sys/sysmacros.

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Yu Zhang
On 3/13/2017 7:20 PM, Jan Beulich wrote: On 11.03.17 at 09:42, wrote: On 3/10/2017 11:29 PM, Jan Beulich wrote: On 08.03.17 at 16:33, wrote: changes in v7: - Use new ioreq server interface - XEN_DMOP_map_mem_type_to_ioreq_server. - According to comments from George: removed domain_

Re: [Xen-devel] [PATCH v7 4/5] ix86/ioreq server: Asynchronously reset outstanding p2m_ioreq_server entries.

2017-03-14 Thread Yu Zhang
On 3/13/2017 7:24 PM, Jan Beulich wrote: On 11.03.17 at 09:42, wrote: On 3/11/2017 12:03 AM, Jan Beulich wrote: But there's a wider understanding issue I'm having here: What is an "entry" here? Commonly I would assume this to refer to an individual (4k) page, but it looks like you really mea

Re: [Xen-devel] [PATCH v7 5/5] x86/ioreq server: Synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps.

2017-03-14 Thread Yu Zhang
On 3/13/2017 7:32 PM, Jan Beulich wrote: On 11.03.17 at 09:42, wrote: On 3/11/2017 12:59 AM, Andrew Cooper wrote: On 08/03/17 15:33, Yu Zhang wrote: --- a/xen/arch/x86/hvm/dm.c +++ b/xen/arch/x86/hvm/dm.c @@ -288,6 +288,7 @@ static int inject_event(struct domain *d, return 0; }

Re: [Xen-devel] [PATCH v7 3/5] x86/ioreq server: Handle read-modify-write cases for p2m_ioreq_server pages.

2017-03-14 Thread Yu Zhang
On 3/13/2017 7:22 PM, Jan Beulich wrote: On 11.03.17 at 09:42, wrote: On 3/10/2017 11:33 PM, Jan Beulich wrote: On 08.03.17 at 16:33, wrote: @@ -197,6 +217,10 @@ static int hvmemul_do_io( * - If the IOREQ_MEM_ACCESS_WRITE flag is not set, treat it * like a norma

Re: [Xen-devel] [PATCH 00/11] pl011 emulation support in Xen

2017-03-14 Thread Bhupinder Thakur
Hi, Thanks for your comments. On 3 March 2017 at 21:23, Konrad Rzeszutek Wilk wrote: >> The following changes were done: > > .. snip.. > > Thank you for this great writeup. I took a stab at it and stopped at patch > #2 b/c Julien said he would look in it deeper. But based on a brief > look I wou

Re: [Xen-devel] [PATCH 00/11] pl011 emulation support in Xen

2017-03-14 Thread Bhupinder Thakur
Hi, On 5 March 2017 at 12:46, Julien Grall wrote: > Hi Bhupinder, > > On 02/21/2017 11:25 AM, Bhupinder Thakur wrote: >> >> There are still some items which are pending: >> >> 1. Adding dynamic enable/disable of pl011 emulation for a guest >> 2. Add a new console type "pl011" in xenconsoled to a

[Xen-devel] [xen-unstable test] 106642: regressions - FAIL

2017-03-14 Thread osstest service owner
flight 106642 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/106642/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl-cubietruck 15 guest-start/debian.repeat fail REGR. vs. 106627 Regressions wh

Re: [Xen-devel] [PATCH v1 1/3] x86/vvmx: add mov-ss blocking check to vmentry

2017-03-14 Thread Tian, Kevin
> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] > Sent: Monday, March 13, 2017 6:52 PM > > Intel SDM states that if there is a current VMCS and there is MOV-SS blocking, > VMFailValid occurs and control passes to the next instruction. > > Implement such behaviour for nested vmlaunch and v

Re: [Xen-devel] [PATCH v1 2/3] x86/vvmx: correct nested shadow VMCS handling

2017-03-14 Thread Tian, Kevin
> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] > Sent: Monday, March 13, 2017 6:52 PM > > Currently xen always sets the shadow VMCS-indicator bit on nested vmptrld > and always clears it on nested vmclear. This behavior is wrong when the > guest loads a shadow VMCS: shadow bit will be lo

Re: [Xen-devel] [PATCH v1 3/3] x86/vvmx: add a shadow vmcs check to vmlaunch

2017-03-14 Thread Tian, Kevin
> From: Sergey Dyasli [mailto:sergey.dya...@citrix.com] > Sent: Monday, March 13, 2017 6:52 PM > > Intel SDM states that if the current VMCS is a shadow VMCS, VMFailInvalid > occurs and control passes to the next instruction. > > Implement such behaviour for nested vmlaunch. > > Signed-off-by: S

Re: [Xen-devel] [PATCH 3/4] x86emul: correct handling of FPU insns faulting on memory write

2017-03-14 Thread Tian, Kevin
> From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: Monday, March 13, 2017 7:05 PM > > When an FPU instruction with a memory destination fails during the memory > write, it should not affect FPU register state. Due to the way we emulate FPU > (and SIMD) instructions, we can only guarantee this

Re: [Xen-devel] [PATCH 4/4] x86emul: correct FPU code/data pointers and opcode handling

2017-03-14 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 13 March 2017 11:06 > To: xen-devel > Cc: Andrew Cooper ; Paul Durrant > > Subject: [PATCH 4/4] x86emul: correct FPU code/data pointers and opcode > handling > > Prevent leaking the hypervisor ones (stored by har

Re: [Xen-devel] [PATCH v8 08/24] x86: refactor psr: set value: implement framework.

2017-03-14 Thread Yi Sun
On 17-03-14 00:29:09, Jan Beulich wrote: > >>> Yi Sun 03/14/17 3:42 AM >>> > >There are three scenarios. E.g. > >1. User calls domctl interface on Dom0 to set a COS ID 1 for Dom1 into its > >psr_cos_ids[]. Then, Dom1 is scheduled so that 'psr_ctxt_switch_to()' is > >called which makes COS ID 1 wor

[Xen-devel] [PATCH] xen/arm: Register re-mapped Xen area as a temporary virtual region

2017-03-14 Thread Wei Chen
While we're doing apply_alternatives, we will generate new instructions if required. The new instructions need to update the Xen text section, but Xen text section is read-only. So we re-map Xen to a new virtual address to enable write access. The targets of the new generated instructions are loca

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Paul Durrant
> -Original Message- [snip] > +struct hvm_ioreq_server *p2m_get_ioreq_server(struct domain *d, > + unsigned int *flags) > +{ > +struct p2m_domain *p2m = p2m_get_hostp2m(d); > +struct hvm_ioreq_server *s; > +

[Xen-devel] [linux-4.1 test] 106644: regressions - trouble: blocked/broken/fail/pass

2017-03-14 Thread osstest service owner
flight 106644 linux-4.1 real [real] http://logs.test-lab.xenproject.org/osstest/logs/106644/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-libvirt-vhd 3 host-install(3)broken REGR. vs. 104301 test-amd64-amd64-xl-p

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Yu Zhang
On 3/14/2017 5:40 PM, Paul Durrant wrote: -Original Message- [snip] +struct hvm_ioreq_server *p2m_get_ioreq_server(struct domain *d, + unsigned int *flags) +{ +struct p2m_domain *p2m = p2m_get_hostp2m(d); +struct hvm_ioreq_server *s

Re: [Xen-devel] [PATCH v2 1/9] configure: change CONFIG_XEN_BACKEND to be a target property

2017-03-14 Thread Paolo Bonzini
On 14/03/2017 00:55, Stefano Stabellini wrote: > CONFIG_XEN_BACKEND is currently set when the host supports Xen, > regardless of the chosen targets. As a consequence, Xen backends can be > enabled even on targets that don't support Xen. > > Fix the issue by setting CONFIG_XEN_BACKEND only for ta

Re: [Xen-devel] [PATCH v8 08/24] x86: refactor psr: set value: implement framework.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 10:21, wrote: > On 17-03-14 00:29:09, Jan Beulich wrote: >> >>> Yi Sun 03/14/17 3:42 AM >>> >> >There are three scenarios. E.g. >> >1. User calls domctl interface on Dom0 to set a COS ID 1 for Dom1 into its >> >psr_cos_ids[]. Then, Dom1 is scheduled so that 'psr_ctxt_switch_to(

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 08:28, wrote: > On 3/13/2017 7:20 PM, Jan Beulich wrote: > On 11.03.17 at 09:42, wrote: >>> On 3/10/2017 11:29 PM, Jan Beulich wrote: >>> On 08.03.17 at 16:33, wrote: > --- a/xen/arch/x86/mm/p2m-ept.c > +++ b/xen/arch/x86/mm/p2m-ept.c > @@ -131,6 +131,13 @@

Re: [Xen-devel] [PATCH v3 2/4] x86: remove PVHv1 code

2017-03-14 Thread Wei Liu
On Mon, Mar 13, 2017 at 04:50:12PM +, Wei Liu wrote: > On Fri, Mar 03, 2017 at 12:25:06PM +, Roger Pau Monne wrote: > > This removal applies to both the hypervisor and the toolstack side of PVHv1. > > > > Note that on the toolstack side a new PVH domain type is introduced to > > libxl. >

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Paul Durrant
> -Original Message- > From: Yu Zhang [mailto:yu.c.zh...@linux.intel.com] > Sent: 14 March 2017 09:53 > To: Paul Durrant ; Jan Beulich > > Cc: Andrew Cooper ; George Dunlap > ; Jun Nakajima ; > Kevin Tian ; zhiyuan...@intel.com; xen- > de...@lists.xen.org; Tim (Xen.org) > Subject: Re: [PA

Re: [Xen-devel] [PATCH v7 4/5] ix86/ioreq server: Asynchronously reset outstanding p2m_ioreq_server entries.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 08:42, wrote: > On 3/13/2017 7:24 PM, Jan Beulich wrote: > On 11.03.17 at 09:42, wrote: >>> On 3/11/2017 12:03 AM, Jan Beulich wrote: But there's a wider understanding issue I'm having here: What is an "entry" here? Commonly I would assume this to refer to an

Re: [Xen-devel] [PATCH v7 5/5] x86/ioreq server: Synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 08:42, wrote: > So you mean change the definition of to > xen_dm_op_map_mem_type_to_ioreq_server > to something like this? > > struct xen_dm_op_map_mem_type_to_ioreq_server { > ioservid_t id; /* IN - ioreq server id */ > uint16_t type; /* IN - memory type *

Re: [Xen-devel] [PATCH 4/4] x86emul: correct FPU code/data pointers and opcode handling

2017-03-14 Thread Andrew Cooper
On 13/03/17 11:05, Jan Beulich wrote: > @@ -1027,13 +1076,48 @@ do { > static void put_fpu( > struct fpu_insn_ctxt *fic, > bool failed_late, > +const struct x86_emulate_state *state, > struct x86_emulate_ctxt *ctxt, > const struct x86_emulate_ops *ops) > { > if ( unli

Re: [Xen-devel] [PATCH 4/4] x86emul: correct FPU code/data pointers and opcode handling

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 11:56, wrote: > On 13/03/17 11:05, Jan Beulich wrote: >> @@ -1027,13 +1076,48 @@ do { >> static void put_fpu( >> struct fpu_insn_ctxt *fic, >> bool failed_late, >> +const struct x86_emulate_state *state, >> struct x86_emulate_ctxt *ctxt, >> const struct

[Xen-devel] [libvirt test] 106650: tolerable FAIL - PUSHED

2017-03-14 Thread osstest service owner
flight 106650 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/106650/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt-xsm 13 saverestore-support-checkfail like 106608 test-armhf-armhf-libvirt 13

Re: [Xen-devel] [RFC XTF PATCH] Pagetable Emulation testing

2017-03-14 Thread Jan Beulich
>>> On 13.03.17 at 18:48, wrote: > On 13/03/17 15:45, Jan Beulich wrote: > On 06.03.17 at 17:42, wrote: >>> +/* Put FEP immediately before va, and a ret instruction at va. */ >>> +memcpy(m->va - 5, "\x0f\x0bxen\xc3", 6); >>> +barrier(); >>> + >>> +/* Read them back, to confirm

Re: [Xen-devel] [PATCH V4 6/8] COLO-Proxy: Add colo-compare notify args

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:24AM +0800, Zhang Chen wrote: > Xen colo-frame can use the notify way communicate with > qemu colo-compare. > > Signed-off-by: Zhang Chen Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists

Re: [Xen-devel] [PATCH V4 2/8] COLO-Proxy: Setup userspace colo-proxy on primary side

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:20AM +0800, Zhang Chen wrote: > In this patch we close kernel COLO-Proxy on primary side. > > Signed-off-by: Zhang Chen Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH V4 4/8] COLO-Proxy: Add primary userspace colo proxy start args

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:22AM +0800, Zhang Chen wrote: > Qemu need this args to start userspace colo-proxy. > > Signed-off-by: Zhang Chen Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH V4 8/8] COLO-proxy: Add colo_userspace_proxy macro

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:26AM +0800, Zhang Chen wrote: > Signed-off-by: Zhang Chen Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH V4 1/8] COLO-Proxy: Add remus command to open userspace proxy

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:19AM +0800, Zhang Chen wrote: > Add remus '-p' to enable userspace colo proxy(in qemu). > > Signed-off-by: Zhang Chen Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH V4 3/8] COLO-Proxy: Setup userspace colo-proxy on secondary side

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:21AM +0800, Zhang Chen wrote: > In this patch we add a function to close COLO kernel Proxy on secondary side. > > Signed-off-by: Zhang Chen Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lis

Re: [Xen-devel] [PATCH V4 7/8] COLO-Proxy: Use socket to get checkpoint event.

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:25AM +0800, Zhang Chen wrote: > We use kernel colo proxy's way to get the checkpoint event > from qemu colo-compare. > Qemu colo-compare need add a API to support this(I will add this in qemu). > Qemu side patch: > https://lists.nongnu.org/archive/html/qemu-devel/2017

Re: [Xen-devel] [PATCH V4 5/8] COLO-Proxy: Add secondary userspace colo-proxy start args

2017-03-14 Thread Wei Liu
On Mon, Mar 06, 2017 at 10:59:23AM +0800, Zhang Chen wrote: > Qemu need this args to start userspace colo-proxy. > > Signed-off-by: Zhang Chen Acked-by: Wei Liu > diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c > index 88ef1c6..d2bbe26 100644 > --- a/tools/xl/xl_parse.c > +++ b/tools/xl

Re: [Xen-devel] [PATCH][XTF] add FPU/SIMD register state test

2017-03-14 Thread Andrew Cooper
On 13/03/17 11:07, Jan Beulich wrote: > Add tests to verify that > - FPU insns leave correct (guest) values in FIP/FDP/FOP/FCS/FDS, > - FPU insns writing memory don't update FPU register state when the > write faults (at the example of FISTP), > - VCVTPS2PH (once implemented in the emulator) does

Re: [Xen-devel] [PATCH V4 5/8] COLO-Proxy: Add secondary userspace colo-proxy start args

2017-03-14 Thread Wei Liu
On Tue, Mar 14, 2017 at 11:24:12AM +, Wei Liu wrote: > On Mon, Mar 06, 2017 at 10:59:23AM +0800, Zhang Chen wrote: > > Qemu need this args to start userspace colo-proxy. > > > > Signed-off-by: Zhang Chen > > Acked-by: Wei Liu > > > diff --git a/tools/xl/xl_parse.c b/tools/xl/xl_parse.c > >

Re: [Xen-devel] [PATCH] tools: include sys/sysmacros.h on Linux

2017-03-14 Thread Wei Liu
On Tue, Mar 14, 2017 at 07:37:04AM +, Olaf Hering wrote: > Due to a bug in the glibc headers the macros makedev(), major() and > minor() where avaialble by including sys/types.h. This bug was > addressed in glibc-2.25 by introducing a warning when these macros are > used. Since Xen is build wit

[Xen-devel] preparations for 4.8.1

2017-03-14 Thread Jan Beulich
All, with the goal of releasing in about 3 weeks time, please point out backport candidates you find missing from the respective staging branch, but which you consider relevant. Thanks, Jan ___ Xen-devel mailing list Xen-devel@lists.xen.org https://li

Re: [Xen-devel] [PATCH][XTF] add FPU/SIMD register state test

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 12:36, wrote: > On 13/03/17 11:07, Jan Beulich wrote: >> Add tests to verify that >> - FPU insns leave correct (guest) values in FIP/FDP/FOP/FCS/FDS, >> - FPU insns writing memory don't update FPU register state when the >> write faults (at the example of FISTP), >> - VCVTPS2P

Re: [Xen-devel] [PATCH] tools: include sys/sysmacros.h on Linux

2017-03-14 Thread Wei Liu
On Tue, Mar 14, 2017 at 11:43:09AM +, Wei Liu wrote: > On Tue, Mar 14, 2017 at 07:37:04AM +, Olaf Hering wrote: > > Due to a bug in the glibc headers the macros makedev(), major() and > > minor() where avaialble by including sys/types.h. This bug was > > addressed in glibc-2.25 by introduci

[Xen-devel] Xen Security Advisory 211 (CVE-2016-9603) - Cirrus VGA Heap overflow via display refresh

2017-03-14 Thread Xen . org security team
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Xen Security Advisory CVE-2016-9603 / XSA-211 version 2 Cirrus VGA Heap overflow via display refresh UPDATES IN VERSION 2 Patches for qemu-xen-traditional. Public release.

Re: [Xen-devel] [PATCH] x86/monitor: add support for descriptor access events

2017-03-14 Thread Vlad-Ioan TOPAN
> > +struct vm_event_desc_access { > > +union { > > +uint32_t vmx_instr_info;/* VMX: VMCS Instruction-Information > > Field */ > > +uint64_t svm_exitinfo; /* SVM: VMCB EXITINFO Field */ > > +uint64_t info; > > +} vmexit; > > +uint64_t exit_qualification

Re: [Xen-devel] [PATCH] tools: include sys/sysmacros.h on Linux

2017-03-14 Thread Olaf Hering
Am Tue, 14 Mar 2017 11:54:46 + schrieb Wei Liu : > tap-ctl-allocate.c:143:9: error: ‘MISC_MAJOR’ undeclared (first use in That happened because the variant of the change I sent was untested... I will revisit this part. sys/types.h is needed according to mknod(2). Olaf pgp0vLRVEgZgr.pgp Des

Re: [Xen-devel] [PATCH] tools/Rules.mk: libxlutil should use $(XEN_XLUTIL)

2017-03-14 Thread Wei Liu
On Mon, Mar 13, 2017 at 10:38:43AM +, Wei Liu wrote: > A typo was made in 7a6de259f. > > Currently libxlutil lives in the same directory as libxl, fixing this > issue causes no functional change. > > Signed-off-by: Wei Liu > --- > tools/Rules.mk | 2 +- > 1 file changed, 1 insertion(+), 1 d

Re: [Xen-devel] [PATCH 00/16] tools: provide pkg-config files for all libs

2017-03-14 Thread Wei Liu
On Wed, Mar 08, 2017 at 03:49:29PM +0100, Juergen Gross wrote: > To help consumers of the Xen libraries (e.g. qemu) to use correct > flags when building provide pkg-config files for all libraries of > Xen. > > The first 2 patches correct some flags used by the Xen internal build > system. The buil

Re: [Xen-devel] [PATCH 13/16] tools: provide pkg-config file for libxenstat

2017-03-14 Thread Wei Liu
On Wed, Mar 08, 2017 at 03:49:42PM +0100, Juergen Gross wrote: > In order to be able to use pkg-config for obtaining linker- and > compiler-flags provide a xenstat.pc file. > > Signed-off-by: Juergen Gross > --- > .gitignore | 1 + > tools/xenstat/libxenstat/Makefile

Re: [Xen-devel] [PATCH] tools: include sys/sysmacros.h on Linux

2017-03-14 Thread Wei Liu
On Tue, Mar 14, 2017 at 01:08:28PM +0100, Olaf Hering wrote: > Am Tue, 14 Mar 2017 11:54:46 + > schrieb Wei Liu : > > > tap-ctl-allocate.c:143:9: error: ‘MISC_MAJOR’ undeclared (first use in > > That happened because the variant of the change I sent was untested... > I will revisit this part.

Re: [Xen-devel] [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-14 Thread Michael Ellerman
Elena Reshetova writes: > refcount_t type and corresponding API should be > used instead of atomic_t when the variable is used as > a reference counter. This allows to avoid accidental > refcounter overflows that might lead to use-after-free > situations. > > Signed-off-by: Elena Reshetova > Sig

Re: [Xen-devel] [PATCH] x86/monitor: add support for descriptor access events

2017-03-14 Thread Vlad-Ioan TOPAN
> > @@ -2642,6 +2660,38 @@ void svm_vmexit_handler(struct cpu_user_regs *regs) > > case VMEXIT_PAUSE: > > svm_vmexit_do_pause(regs); > > break; > > + > > +case VMEXIT_IDTR_READ: > > +hvm_descriptor_access_intercept(vmcb->exitintinfo.bytes, 0, > > VM_EVENT_DES

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Yu Zhang
On 3/14/2017 6:40 PM, Paul Durrant wrote: -Original Message- From: Yu Zhang [mailto:yu.c.zh...@linux.intel.com] Sent: 14 March 2017 09:53 To: Paul Durrant ; Jan Beulich Cc: Andrew Cooper ; George Dunlap ; Jun Nakajima ; Kevin Tian ; zhiyuan...@intel.com; xen- de...@lists.xen.org; Tim (

Re: [Xen-devel] [PATCH v7 4/5] ix86/ioreq server: Asynchronously reset outstanding p2m_ioreq_server entries.

2017-03-14 Thread Yu Zhang
On 3/14/2017 6:49 PM, Jan Beulich wrote: On 14.03.17 at 08:42, wrote: On 3/13/2017 7:24 PM, Jan Beulich wrote: On 11.03.17 at 09:42, wrote: On 3/11/2017 12:03 AM, Jan Beulich wrote: But there's a wider understanding issue I'm having here: What is an "entry" here? Commonly I would assume t

Re: [Xen-devel] [PATCH v7 5/5] x86/ioreq server: Synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps.

2017-03-14 Thread Yu Zhang
On 3/14/2017 6:51 PM, Jan Beulich wrote: On 14.03.17 at 08:42, wrote: So you mean change the definition of to xen_dm_op_map_mem_type_to_ioreq_server to something like this? struct xen_dm_op_map_mem_type_to_ioreq_server { ioservid_t id; /* IN - ioreq server id */ uint16_t typ

Re: [Xen-devel] [PATCH 08/29] drivers, md: convert mddev.active from atomic_t to refcount_t

2017-03-14 Thread Reshetova, Elena
> Elena Reshetova writes: > > > refcount_t type and corresponding API should be > > used instead of atomic_t when the variable is used as > > a reference counter. This allows to avoid accidental > > refcounter overflows that might lead to use-after-free > > situations. > > > > Signed-off-by: Elen

Re: [Xen-devel] [PATCH] x86/monitor: add support for descriptor access events

2017-03-14 Thread Wei Liu
On Fri, Mar 10, 2017 at 05:50:34PM +0200, Vlad Ioan Topan wrote: > Adds monitor support for descriptor access events (reads & writes of > IDTR/GDTR/LDTR/TR) for the x86 architecture (VMX and SVM). > > Signed-off-by: Vlad Ioan Topan > --- > tools/libxc/include/xenctrl.h | 2 ++ > tools/lib

Re: [Xen-devel] [PATCH] x86/monitor: add support for descriptor access events

2017-03-14 Thread Razvan Cojocaru
On 03/14/2017 02:15 PM, Vlad-Ioan TOPAN wrote: >>> @@ -2642,6 +2660,38 @@ void svm_vmexit_handler(struct cpu_user_regs *regs) >>> case VMEXIT_PAUSE: >>> svm_vmexit_do_pause(regs); >>> break; >>> + >>> +case VMEXIT_IDTR_READ: >>> +hvm_descriptor_access_intercep

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

2017-03-14 Thread osstest service owner
flight 106645 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/106645/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-xl 11 guest-start fail REGR. vs. 59254 test-armhf-armhf-xl

Re: [Xen-devel] [PATCH 06/11] xen/arm: vpl011: Add a new pl011 uart node in the guest DT in the toolstack

2017-03-14 Thread Wei Liu
On Sun, Mar 05, 2017 at 01:04:07PM +, Julien Grall wrote: > Hi Bhupinder, > > CC toolstack maintainers. > > On 02/21/2017 11:26 AM, Bhupinder Thakur wrote: > > Add a new pl011 uart node > > - Get the pl011 spi virq from Xen using a hvm call > > See my comment on previous patches. > > >

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 13:03, wrote: > So, Jan. Could we draw a conclusion here, that although the selected > ioreq server may be stale, but > it should be the device model to do the check? Yes. In order for this to not come up yet another time, please add a comment though. Jan _

Re: [Xen-devel] [PATCH v7 4/5] ix86/ioreq server: Asynchronously reset outstanding p2m_ioreq_server entries.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 13:18, wrote: > > On 3/14/2017 6:49 PM, Jan Beulich wrote: > On 14.03.17 at 08:42, wrote: >>> On 3/13/2017 7:24 PM, Jan Beulich wrote: >>> On 11.03.17 at 09:42, wrote: > On 3/11/2017 12:03 AM, Jan Beulich wrote: >> But there's a wider understanding issue I'm

Re: [Xen-devel] [PATCH v7 5/5] x86/ioreq server: Synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps.

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 13:22, wrote: > On 3/14/2017 6:51 PM, Jan Beulich wrote: > On 14.03.17 at 08:42, wrote: >>> So you mean change the definition of to >>> xen_dm_op_map_mem_type_to_ioreq_server >>> to something like this? >>> >>> struct xen_dm_op_map_mem_type_to_ioreq_server { >>> ioser

Re: [Xen-devel] [PATCH] x86/monitor: add support for descriptor access events

2017-03-14 Thread Boris Ostrovsky
On 03/14/2017 08:50 AM, Razvan Cojocaru wrote: On 03/14/2017 02:15 PM, Vlad-Ioan TOPAN wrote: @@ -2642,6 +2660,38 @@ void svm_vmexit_handler(struct cpu_user_regs *regs) case VMEXIT_PAUSE: svm_vmexit_do_pause(regs); break; + +case VMEXIT_IDTR_READ: +hvm_descri

Re: [Xen-devel] [PATCH] x86/monitor: add support for descriptor access events

2017-03-14 Thread Jan Beulich
>>> On 14.03.17 at 13:15, wrote: >> > @@ -2642,6 +2660,38 @@ void svm_vmexit_handler(struct cpu_user_regs *regs) >> > case VMEXIT_PAUSE: >> > svm_vmexit_do_pause(regs); >> > break; >> > + >> > +case VMEXIT_IDTR_READ: >> > +hvm_descriptor_access_intercept(vmcb

Re: [Xen-devel] [PATCH RFC 0/4] Fix issues with zero-length records in migration v2

2017-03-14 Thread Julien Grall
Hi Andrew, On 21/07/16 18:17, Andrew Cooper wrote: This series is RFC because it has only had compile testing thusfar. On AMD hardware supporting Debug Extentions, migration of a PV guest which is not currently using Debug Extentions fails, as the save side writes a X86_PV_VCPU_MSRS record with

Re: [Xen-devel] [RFC PATCH] mm, hotplug: get rid of auto_online_blocks

2017-03-14 Thread Igor Mammedov
On Mon, 13 Mar 2017 13:28:25 +0100 Michal Hocko wrote: > On Mon 13-03-17 11:55:54, Igor Mammedov wrote: > > On Thu, 9 Mar 2017 13:54:00 +0100 > > Michal Hocko wrote: > > > > [...] > > > > It's major regression if you remove auto online in kernels that > > > > run on top of x86 kvm/vmware hype

Re: [Xen-devel] [PATCH] xen/arm: Register re-mapped Xen area as a temporary virtual region

2017-03-14 Thread Konrad Rzeszutek Wilk
On Tue, Mar 14, 2017 at 05:27:17PM +0800, Wei Chen wrote: > While we're doing apply_alternatives, we will generate new instructions > if required. The new instructions need to update the Xen text section, > but Xen text section is read-only. So we re-map Xen to a new virtual > address to enable wri

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

2017-03-14 Thread osstest service owner
flight 106646 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/106646/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ovmf-amd64 9 debian-hvm-install fail REGR. vs. 105963 test-amd64-amd64-xl-qemuu-

[Xen-devel] [PATCH] tools/libxc: Exposed XEN_DOMCTL_getvcpuextstate

2017-03-14 Thread Razvan Cojocaru
It's useful for an introspection tool to be able to inspect XSAVE states. Xen already has a DOMCTL that can be used for this purpose, but it had no public libxc wrapper. This patch adds xc_vcpu_get_extstate(). Signed-off-by: Razvan Cojocaru --- tools/libxc/include/xenctrl.h | 23

[Xen-devel] [PATCH v2 01/17] tools: fix typo in tools/Rules.mk

2017-03-14 Thread Juergen Gross
Commit 78fb69ad9 ("tools/Rules.mk: Properly handle libraries with recursive dependencies.") introduced a copy and paste error in tools/Rules.mk: LDLIBS_libxenstore and SHLIB_libxenstore don't use SHDEPS_libxenstore but SHDEPS_libxenguest. This will add a superfluous dependency of libxenstore on li

[Xen-devel] [PATCH v2 10/17] tools: provide pkg-config file for libxenforeignmemory

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenforeignmemory.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore | 1 + tools/libs/foreignmemory/Makefile | 21

[Xen-devel] [PATCH v2 05/17] tools: add support for additional items in .pc files for local builds

2017-03-14 Thread Juergen Gross
Some libraries require different compiler-flags when being used in a local build compared to a build using installed libraries. Reflect that by supporting local cflags variables in generated pkg-config files. The local variants will be empty in the installed pkg-config files. The flags for the li

[Xen-devel] [PATCH v2 03/17] tools, stubdom: set PKG_CONFIG_DIR in main Makefiles

2017-03-14 Thread Juergen Gross
Instead of setting the PKG_CONFIG_DIR make variable in each library Makefile do it in tools/Makefile and stubdom/Makefile globally. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- stubdom/Makefile | 1 + tools/Makefile | 3 +++ tools/libxc/Makefile | 1 - 3 files changed, 4 inserti

[Xen-devel] [PATCH v2 09/17] tools: provide pkg-config file for libxencall

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xencall.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore| 1 + tools/libs/call/Makefile | 21 - tools/libs/call/xencall.pc.in

[Xen-devel] [PATCH v2 02/17] tools: add missing library flag definitions

2017-03-14 Thread Juergen Gross
LDLIBS_* and SHLIB_* settings in tools/Rules.mk are sometimes missing some SHDEPS_* added to them. Add the missing flags, even if sometimes being empty. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- tools/Rules.mk | 27 +++ 1 file changed, 15 insertions(+), 12 dele

[Xen-devel] [PATCH v2 08/17] tools: provide pkg-config file for libxengnttab

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xengnttab.pc and a xengntshr.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore| 2 ++ tools/libs/gnttab/Makefile| 22 +- tools/libs/

[Xen-devel] [PATCH v2 12/17] tools: provide pkg-config file for libxenguest, update the one for libxenctrl

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenguest.pc file. Update the xencontrol.pc file to reflect the dependencies of libxenctrl. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- tools/libxc/Makefile | 6 -- tools/libxc/xencontro

[Xen-devel] [PATCH v2 11/17] tools: provide pkg-config file for libxendevicemodel

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xendevicemodel.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore | 1 + tools/libs/devicemodel/Makefile | 21 - tools/l

[Xen-devel] [PATCH v2 00/17] tools: provide pkg-config files for all libs

2017-03-14 Thread Juergen Gross
To help consumers of the Xen libraries (e.g. qemu) to use correct flags when building provide pkg-config files for all libraries of Xen. The first 2 patches correct some flags used by the Xen internal build system. The build process wasn't producing wrong results, but this was just pure luck as no

[Xen-devel] [PATCH v2 13/17] tools: provide pkg-config file for libxenstore

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenstore.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore| 1 + tools/xenstore/Makefile | 21 + tools/xenstore/xenstore.pc.in | 10 ++

[Xen-devel] [PATCH v2 16/17] tools: provide pkg-config file for libxenblktapctl

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenblktapctl.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore | 1 + tools/blktap2/control/Makefile | 23 +-- tools/blktap2

[Xen-devel] [PATCH v2 07/17] tools: provide pkg-config file for libxenevtchn

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenevtchn.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore| 1 + tools/libs/evtchn/Makefile| 21 - tools/libs/evtchn/xenevtchn.pc.i

[Xen-devel] [PATCH v2 17/17] tools: adapt xenlight.pc and xlutil.pc to new pkg-config scheme

2017-03-14 Thread Juergen Gross
Instead of generating the *.pc.in files at configure time use the new pkg-config scheme for those files. Add the dependencies to other Xen libraries as needed. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore| 1 - tools/configure | 4 +--- tools

[Xen-devel] [PATCH v2 06/17] tools: provide pkg-config file for libxentoollog

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xentoollog.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore | 1 + tools/libs/toollog/Makefile | 20 +++- tools/libs/toollog/xentoollo

[Xen-devel] [PATCH v2 15/17] tools: provide pkg-config file for libxenvchan

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenvchan.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore| 1 + tools/libvchan/Makefile | 21 - tools/libvchan/xenvchan.pc.in | 10 ++

[Xen-devel] [PATCH v2 04/17] tools: install PKG_INSTALLDIR in tools/Makefile

2017-03-14 Thread Juergen Gross
Instead of installing $(PKG_INSTALLDIR) in multiple Makefiles below tools, do so in tools/Makefile. Signed-off-by: Juergen Gross --- tools/Makefile | 5 - tools/libxc/Makefile | 1 - tools/libxl/Makefile | 1 - 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/tools/Makefi

Re: [Xen-devel] [PATCH] xen/arm: Register re-mapped Xen area as a temporary virtual region

2017-03-14 Thread Julien Grall
Hi Konrad, On 14/03/17 13:20, Konrad Rzeszutek Wilk wrote: On Tue, Mar 14, 2017 at 05:27:17PM +0800, Wei Chen wrote: While we're doing apply_alternatives, we will generate new instructions if required. The new instructions need to update the Xen text section, but Xen text section is read-only.

[Xen-devel] [PATCH v2 14/17] tools: provide pkg-config file for libxenstat

2017-03-14 Thread Juergen Gross
In order to be able to use pkg-config for obtaining linker- and compiler-flags provide a xenstat.pc file. Signed-off-by: Juergen Gross Acked-by: Wei Liu --- .gitignore | 1 + tools/xenstat/libxenstat/Makefile | 20 +++- tools/xenstat/libxenstat/

Re: [Xen-devel] [PATCH v7 2/5] x86/ioreq server: Add DMOP to map guest ram with p2m_ioreq_server to an ioreq server.

2017-03-14 Thread Yu Zhang
On 3/14/2017 9:10 PM, Jan Beulich wrote: On 14.03.17 at 13:03, wrote: So, Jan. Could we draw a conclusion here, that although the selected ioreq server may be stale, but it should be the device model to do the check? Yes. In order for this to not come up yet another time, please add a comme

Re: [Xen-devel] [PATCH v7 4/5] ix86/ioreq server: Asynchronously reset outstanding p2m_ioreq_server entries.

2017-03-14 Thread Yu Zhang
On 3/14/2017 9:11 PM, Jan Beulich wrote: On 14.03.17 at 13:18, wrote: On 3/14/2017 6:49 PM, Jan Beulich wrote: On 14.03.17 at 08:42, wrote: On 3/13/2017 7:24 PM, Jan Beulich wrote: On 11.03.17 at 09:42, wrote: On 3/11/2017 12:03 AM, Jan Beulich wrote: But there's a wider understanding

Re: [Xen-devel] [PATCH v7 5/5] x86/ioreq server: Synchronously reset outstanding p2m_ioreq_server entries when an ioreq server unmaps.

2017-03-14 Thread Yu Zhang
On 3/14/2017 9:12 PM, Jan Beulich wrote: On 14.03.17 at 13:22, wrote: On 3/14/2017 6:51 PM, Jan Beulich wrote: On 14.03.17 at 08:42, wrote: So you mean change the definition of to xen_dm_op_map_mem_type_to_ioreq_server to something like this? struct xen_dm_op_map_mem_type_to_ioreq_server

[Xen-devel] [xen-unstable-smoke test] 106658: tolerable trouble: broken/fail/pass - PUSHED

2017-03-14 Thread osstest service owner
flight 106658 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/106658/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-arm64-arm64-xl-xsm 1 build-check(1) blocked n/a build-arm64 5 xen

Re: [Xen-devel] [PATCH RFC 0/4] Fix issues with zero-length records in migration v2

2017-03-14 Thread Andrew Cooper
On 14/03/17 13:20, Julien Grall wrote: > Hi Andrew, > > On 21/07/16 18:17, Andrew Cooper wrote: >> This series is RFC because it has only had compile testing thusfar. >> >> On AMD hardware supporting Debug Extentions, migration of a PV guest >> which is >> not currently using Debug Extentions fails

Re: [Xen-devel] [PATCH] xen/arm: Register re-mapped Xen area as a temporary virtual region

2017-03-14 Thread Konrad Rzeszutek Wilk
On Tue, Mar 14, 2017 at 01:32:31PM +, Julien Grall wrote: > Hi Konrad, > > On 14/03/17 13:20, Konrad Rzeszutek Wilk wrote: > > On Tue, Mar 14, 2017 at 05:27:17PM +0800, Wei Chen wrote: > > > While we're doing apply_alternatives, we will generate new instructions > > > if required. The new inst

[Xen-devel] DomU UEFI configuration

2017-03-14 Thread Marcos E. Matsunaga
Hi Anthony, I am trying to run a DomU guest using OVMF. I have built xen staging with --with-ovmf option. I am able to install a new guest but I am unable to boot it (see the attached image). The xl.cfg file I am using: name='test_uefi' memory=16384 disk=['file:/home/IMAGES/FEDORA/FC25/Fedo

  1   2   3   >