[Xen-devel] [PATCH 1/4 v3] libxl: Fix the bug introduced in commit "libxl: use correct type modifier for vuart_gfn"

2017-10-30 Thread Bhupinder Thakur
In libxl__device_vuart_add vuart_gfn is getting stored as a hex value: > flexarray_append(ro_front, GCSPRINTF("%"PRI_xen_pfn, state->vuart_gfn)); However, xenstore reads this value as a decimal value and tries to map the wrong address and fails. This patch introduces a new format specifier "PRIu

[Xen-devel] [PATCH 2/4 v3] libxl: Change the type of console_mfn to xen_pfn_t

2017-10-30 Thread Bhupinder Thakur
Currently the type of console mfn is unsigned long in libxl. This may be an issue for 32-bit toolstack running on 64-bit Xen, where the pfn are 64 bit. To ensure that console_mfn can hold any valid 64-bit pfn, the type of console_mfn is changed to xen_pfn_t. Also the name console_mfn is misleading

[Xen-devel] [PATCH 3/4 v3] xenconsole: Change the type of ring_ref to xen_pfn_t in console_create_ring

2017-10-30 Thread Bhupinder Thakur
Currently, ring_ref is read as an integer in console_create_ring which could lead to truncation of the value as it is reading a 64-bit value. The fix is to modify the type of ring_ref to xen_pfn_t and use the correct format specifier to read the value correctly for all architectures. Signed-off

[Xen-devel] [PATCH 4/4 v3] xenconsole: Define and use a macro XEN_INVALID_PFN instead of -1

2017-10-30 Thread Bhupinder Thakur
xenconsole will use a new macro XEN_INVALID_PFN instead of -1 for initializing ring-ref. Since the type of ring_ref is changed to xen_pfn_t (which is an unsigned value) assigning -1 appeared to be confusing. For clarity, XEN_INVALID_PFN is introduced. Signed-off-by: Bhupinder Thakur --- CC: Ian

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

2017-10-30 Thread osstest service owner
flight 115412 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115412/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

[Xen-devel] [linux-next test] 115386: regressions - FAIL

2017-10-30 Thread osstest service owner
flight 115386 linux-next real [real] http://logs.test-lab.xenproject.org/osstest/logs/115386/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-armhf-armhf-examine 8 reboot fail REGR. vs. 114658 test-armhf-armhf-xl-

[Xen-devel] [linux-linus test] 115387: regressions - FAIL

2017-10-30 Thread osstest service owner
flight 115387 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/115387/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-ws16-amd64 17 guest-stop fail REGR. vs. 114682 Tests which did not

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Dongli Zhang
Hi Boris, On 10/31/2017 08:58 AM, Boris Ostrovsky wrote: > > > On 10/30/2017 08:14 PM, Dongli Zhang wrote: >> Hi Boris, >> >> On 10/30/2017 09:34 PM, Boris Ostrovsky wrote: >>> On 10/30/2017 04:03 AM, Dongli Zhang wrote: After guest live migration on xen, steal time in /proc/stat (cpus

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

2017-10-30 Thread osstest service owner
flight 115402 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115402/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

[Xen-devel] [linux-4.9 test] 115383: regressions - FAIL

2017-10-30 Thread osstest service owner
flight 115383 linux-4.9 real [real] http://logs.test-lab.xenproject.org/osstest/logs/115383/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-ws16-amd64 17 guest-stop fail REGR. vs. 114814 Tests which are faili

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Boris Ostrovsky
On 10/30/2017 08:14 PM, Dongli Zhang wrote: Hi Boris, On 10/30/2017 09:34 PM, Boris Ostrovsky wrote: On 10/30/2017 04:03 AM, Dongli Zhang wrote: After guest live migration on xen, steal time in /proc/stat (cpustat[CPUTIME_STEAL]) might decrease because steal returned by xen_steal_lock() migh

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Dongli Zhang
Hi Boris, On 10/30/2017 09:34 PM, Boris Ostrovsky wrote: > On 10/30/2017 04:03 AM, Dongli Zhang wrote: >> After guest live migration on xen, steal time in /proc/stat >> (cpustat[CPUTIME_STEAL]) might decrease because steal returned by >> xen_steal_lock() might be less than this_rq()->prev_steal_ti

Re: [Xen-devel] [RFC] [Draft Design] ACPI/IORT Support in Xen.

2017-10-30 Thread Goel, Sameer
On 10/12/2017 3:03 PM, Manish Jaggi wrote: > ACPI/IORT Support in Xen. > -- > > I had sent out patch series [0] to hide smmu from Dom0 IORT. Extending the > scope > and including all that is required to support ACPI/IORT in Xen. Presenting > for review > first

[Xen-devel] [PATCH v8 01/13] xen/pvcalls: introduce the pvcalls xenbus frontend

2017-10-30 Thread Stefano Stabellini
Introduce a xenbus frontend for the pvcalls protocol, as defined by https://xenbits.xen.org/docs/unstable/misc/pvcalls.html. This patch only adds the stubs, the code will be added by the following patches. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle

[Xen-devel] [PATCH v8 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Stefano Stabellini
Also add pvcalls-front to the Makefile. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/Kconfig | 11 +++ drivers/xen/Makefile | 1 + 2 files changed, 12 insertions(+) diff --git a/drivers/xen/Kconfig b

[Xen-devel] [PATCH v8 07/13] xen/pvcalls: implement listen command

2017-10-30 Thread Stefano Stabellini
Send PVCALLS_LISTEN to the backend. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov...@oracle.com CC: jgr...@suse.com --- drivers/xen/pvcalls-front.c | 57 + drivers/xen/pvcalls-front.h | 1 + 2 files changed, 58 inser

[Xen-devel] [PATCH v8 11/13] xen/pvcalls: implement poll command

2017-10-30 Thread Stefano Stabellini
For active sockets, check the indexes and use the inflight_conn_req waitqueue to wait. For passive sockets if an accept is outstanding (PVCALLS_FLAG_ACCEPT_INFLIGHT), check if it has been answered by looking at bedata->rsp[req_id]. If so, return POLLIN. Otherwise use the inflight_accept_req waitq

[Xen-devel] [PATCH v8 09/13] xen/pvcalls: implement sendmsg

2017-10-30 Thread Stefano Stabellini
Send data to an active socket by copying data to the "out" ring. Take the active socket out_mutex so that only one function can access the ring at any given time. If not enough room is available on the ring, rather than returning immediately or sleep-waiting, spin for up to 5000 cycles. This small

[Xen-devel] [PATCH v8 12/13] xen/pvcalls: implement release command

2017-10-30 Thread Stefano Stabellini
Send PVCALLS_RELEASE to the backend and wait for a reply. Take both in_mutex and out_mutex to avoid concurrent accesses. Then, free the socket. For passive sockets, check whether we have already pre-allocated an active socket for the purpose of being accepted. If so, free that as well. Signed-off

[Xen-devel] [PATCH v8 10/13] xen/pvcalls: implement recvmsg

2017-10-30 Thread Stefano Stabellini
Implement recvmsg by copying data from the "in" ring. If not enough data is available and the recvmsg call is blocking, then wait on the inflight_conn_req waitqueue. Take the active socket in_mutex so that only one function can access the ring at any given time. Signed-off-by: Stefano Stabellini

[Xen-devel] [PATCH v8 08/13] xen/pvcalls: implement accept command

2017-10-30 Thread Stefano Stabellini
Introduce a waitqueue to allow only one outstanding accept command at any given time and to implement polling on the passive socket. Introduce a flags field to keep track of in-flight accept and poll commands. Send PVCALLS_ACCEPT to the backend. Allocate a new active socket. Make sure that only on

[Xen-devel] [PATCH v8 00/13] introduce the Xen PV Calls frontend

2017-10-30 Thread Stefano Stabellini
Hi all, this series introduces the frontend for the newly introduced PV Calls procotol. PV Calls is a paravirtualized protocol that allows the implementation of a set of POSIX functions in a different domain. The PV Calls frontend sends POSIX function calls to the backend, which implements them a

[Xen-devel] [PATCH v8 05/13] xen/pvcalls: implement connect command

2017-10-30 Thread Stefano Stabellini
Send PVCALLS_CONNECT to the backend. Allocate a new ring and evtchn for the active socket. Introduce fields in struct sock_mapping to keep track of active sockets. Introduce a waitqueue to allow the frontend to wait on data coming from the backend on the active socket (recvmsg command). Two mutex

[Xen-devel] [PATCH v8 02/13] xen/pvcalls: implement frontend disconnect

2017-10-30 Thread Stefano Stabellini
Introduce a data structure named pvcalls_bedata. It contains pointers to the command ring, the event channel, a list of active sockets and a list of passive sockets. Lists accesses are protected by a spin_lock. Introduce a waitqueue to allow waiting for a response on commands sent to the backend.

[Xen-devel] [PATCH v8 06/13] xen/pvcalls: implement bind command

2017-10-30 Thread Stefano Stabellini
Send PVCALLS_BIND to the backend. Introduce a new structure, part of struct sock_mapping, to store information specific to passive sockets. Introduce a status field to keep track of the status of the passive socket. Signed-off-by: Stefano Stabellini Reviewed-by: Boris Ostrovsky CC: boris.ostrov

[Xen-devel] [PATCH v8 03/13] xen/pvcalls: connect to the backend

2017-10-30 Thread Stefano Stabellini
Implement the probe function for the pvcalls frontend. Read the supported versions, max-page-order and function-calls nodes from xenstore. Only one frontend<->backend connection is supported at any given time for a guest. Store the active frontend device to a static pointer. Introduce a stub func

[Xen-devel] [PATCH v8 04/13] xen/pvcalls: implement socket command and handle events

2017-10-30 Thread Stefano Stabellini
Send a PVCALLS_SOCKET command to the backend, use the masked req_prod_pvt as req_id. This way, req_id is guaranteed to be between 0 and PVCALLS_NR_REQ_PER_RING. We already have a slot in the rsp array ready for the response, and there cannot be two outstanding responses with the same req_id. Wait

Re: [Xen-devel] [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Stefano Stabellini
On Mon, 30 Oct 2017, Boris Ostrovsky wrote: > On 10/30/2017 05:42 PM, Stefano Stabellini wrote: > > On Mon, 30 Oct 2017, Boris Ostrovsky wrote: > >> On 10/30/2017 03:48 PM, Stefano Stabellini wrote: > >>> On Mon, 30 Oct 2017, Boris Ostrovsky wrote: > Build warnings (gcc (GCC) 6.3.1 20161221 (R

Re: [Xen-devel] [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Boris Ostrovsky
On 10/30/2017 05:42 PM, Stefano Stabellini wrote: > On Mon, 30 Oct 2017, Boris Ostrovsky wrote: >> On 10/30/2017 03:48 PM, Stefano Stabellini wrote: >>> On Mon, 30 Oct 2017, Boris Ostrovsky wrote: Build warnings (gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)) >>> Hi Boris, I am trying to repro th

Re: [Xen-devel] [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Stefano Stabellini
On Mon, 30 Oct 2017, Boris Ostrovsky wrote: > On 10/30/2017 03:48 PM, Stefano Stabellini wrote: > > On Mon, 30 Oct 2017, Boris Ostrovsky wrote: > >> > >> Build warnings (gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)) > > Hi Boris, I am trying to repro the warnings below. I have been > > unsuccessful s

[Xen-devel] [PATCH 1/2] pvcalls: check return value from copy_from/to_iter

2017-10-30 Thread Stefano Stabellini
Check the return value of copy_from_iter in __write_ring and copy_to_iter in __read_ring. Update "len" accordingly. In the cases where we issue two consecutive copy_from_iter, or two consecutive copy_to_iter, first check return, then goto out if it is not what we expect. Signed-off-by: Stefano St

[Xen-devel] [PATCH 2/2] pvcalls: fix casts to avoid warnings on 32 bit

2017-10-30 Thread Stefano Stabellini
Cast the map pointers to uintptr_t instead of uint64_t everywhere when setting the socket ids. In pvcalls_front_event_handler, first cast the poll id to uintptr_t, then to struct sock_mapping * to avoid warnings. We know that the poll id is fine because it is was set by the frontend initially in t

Re: [Xen-devel] [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Boris Ostrovsky
On 10/30/2017 03:48 PM, Stefano Stabellini wrote: > On Mon, 30 Oct 2017, Boris Ostrovsky wrote: >> >> Build warnings (gcc (GCC) 6.3.1 20161221 (Red Hat 6.3.1-1)) > Hi Boris, I am trying to repro the warnings below. I have been > unsuccessful so far. What system are you using? Fedora? CentOS? Do hav

Re: [Xen-devel] [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Stefano Stabellini
On Mon, 30 Oct 2017, Boris Ostrovsky wrote: > On 10/26/2017 04:45 PM, Boris Ostrovsky wrote: > > On 10/26/2017 04:16 PM, Stefano Stabellini wrote: > >> On Thu, 26 Oct 2017, Boris Ostrovsky wrote: > >>> On 10/26/2017 03:11 PM, Stefano Stabellini wrote: > Also add pvcalls-front to the Makefile.

[Xen-devel] FOSDEM Virtualization and IaaS Devroom CfP (closes Dec 1) and Xen Project Stand

2017-10-30 Thread Lars Kurth
Hi all, as we usually have a big presence at FOSDEM, here are a few relevant CfPs. To make it easier for people who submit talks, I collated some of the info. == FOSDEM Virtualization and IaaS Devroom CfP == See https://lists.fosdem.org/pipermail/fosdem/2017-October/002632.html Submission deadl

[Xen-devel] [examine test] 115400: regressions - FAIL

2017-10-30 Thread osstest service owner
flight 115400 examine real [real] http://logs.test-lab.xenproject.org/osstest/logs/115400/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: examine-elbling0 2 hosts-allocate broken REGR. vs. 115392 examine-godello0

Re: [Xen-devel] [PATCH 3/6] libxl: add backend type to vkb

2017-10-30 Thread Wei Liu
On Thu, Oct 05, 2017 at 12:07:08PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > New field backend_type is added to vkb device > in order to have QEMU and user space backend > simultaneously. Each vkb backend shall read > appropriate XS entry and service only own > frontends. > >

Re: [Xen-devel] [PATCH 1/6] libxl: move vkb device to libxl_vkb.c

2017-10-30 Thread Wei Liu
On Thu, Oct 05, 2017 at 12:07:06PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > Logically it is better to move vkb to > separate file as vkb device used not only by vfb > and console. > > Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu

Re: [Xen-devel] [PATCH 2/6] libxl: fix vkb XS entry and type

2017-10-30 Thread Wei Liu
On Thu, Oct 05, 2017 at 12:07:07PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > vkb has vkbd name in XS. > > Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.or

Re: [Xen-devel] [PATCH 5/5] docs: add PV sound device config

2017-10-30 Thread Marek Marczykowski-Górecki
On Mon, Oct 02, 2017 at 12:49:24PM +0300, Oleksandr Grytsov wrote: > +=item B > + > +Short name of the virtual sound card. > + > +=item B > + > +Long name of the virtual sound card. > + > +=back Duplicate short-name=, should be name= ? -- Best Regards, Marek Marczykowski-Górecki Invisible Things

Re: [Xen-devel] [PATCH 4/5] xl: add vsnd CLI commands

2017-10-30 Thread Wei Liu
On Mon, Oct 02, 2017 at 12:49:23PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > Add CLI commands to attach, detach and list virtual sound devices > > Signed-off-by: Oleksandr Grytsov Acked-by: Wei Liu ___ Xen-devel mailing list Xen

[Xen-devel] [PATCH v13 11/11] tools/libxenctrl: use new xenforeignmemory API to seed grant table

2017-10-30 Thread Paul Durrant
A previous patch added support for priv-mapping guest resources directly (rather than having to foreign-map, which requires P2M modification for HVM guests). This patch makes use of the new API to seed the guest grant table unless the underlying infrastructure (i.e. privcmd) doesn't support it, in

[Xen-devel] [PATCH v13 10/11] common: add a new mappable resource type: XENMEM_resource_grant_table

2017-10-30 Thread Paul Durrant
This patch allows grant table frames to be mapped using the XENMEM_acquire_resource memory op. NOTE: This patch expands the on-stack mfn_list array in acquire_resource() but it is still small enough to remain on-stack. Signed-off-by: Paul Durrant --- Cc: Andrew Cooper Cc: George Dunlap C

Re: [Xen-devel] [PATCH 3/5] xl: add PV sound condif parser

2017-10-30 Thread Wei Liu
On Mon, Oct 02, 2017 at 12:49:22PM +0300, Oleksandr Grytsov wrote: > +static void parse_vsnd_card_config(const XLU_Config *config, > + XLU_ConfigValue *card_value, > + libxl_domain_config *d_config) > +{ > +int ret; > + > +

Re: [Xen-devel] [PATCH 2/5] libxl: add vsnd list and info

2017-10-30 Thread Wei Liu
On Mon, Oct 02, 2017 at 12:49:21PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > Add getting vsnd list amd info API > > Signed-off-by: Oleksandr Grytsov Same comments for previous patch apply here, too. > --- > tools/libxl/libxl.h | 10 ++ > tools/libxl/libxl_types.i

[Xen-devel] [PATCH v13 02/11] x86/hvm/ioreq: simplify code and use consistent naming

2017-10-30 Thread Paul Durrant
This patch re-works much of the ioreq server initialization and teardown code: - The hvm_map/unmap_ioreq_gfn() functions are expanded to call through to hvm_alloc/free_ioreq_gfn() rather than expecting them to be called separately by outer functions. - Several functions now test the validity o

[Xen-devel] [PATCH v13 04/11] x86/hvm/ioreq: defer mapping gfns until they are actually requsted

2017-10-30 Thread Paul Durrant
A subsequent patch will introduce a new scheme to allow an emulator to map ioreq server pages directly from Xen rather than the guest P2M. This patch lays the groundwork for that change by deferring mapping of gfns until their values are requested by an emulator. To that end, the pad field of the

[Xen-devel] [PATCH v13 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2017-10-30 Thread Paul Durrant
Certain memory resources associated with a guest are not necessarily present in the guest P2M. This patch adds the boilerplate for new memory op to allow such a resource to be priv-mapped directly, by either a PV or HVM tools domain. NOTE: Whilst the new op is not intrinsicly specific to the x86

[Xen-devel] [PATCH v13 09/11] tools/libxenforeignmemory: reduce xenforeignmemory_restrict code footprint

2017-10-30 Thread Paul Durrant
By using a static inline stub in private.h for OS where this functionality is not implemented, the various duplicate stubs in the OS-specific source modules can be avoided. Signed-off-by: Paul Durrant Reviewed-by: Roger Pau Monné Acked-by: Wei Liu --- Cc: Ian Jackson v4: - Removed extraneous

[Xen-devel] [PATCH v13 08/11] tools/libxenforeignmemory: add support for resource mapping

2017-10-30 Thread Paul Durrant
A previous patch introduced a new HYPERVISOR_memory_op to acquire guest resources for direct priv-mapping. This patch adds new functionality into libxenforeignmemory to make use of a new privcmd ioctl [1] that uses the new memory op to make such resources available via mmap(2). [1] http://xenbit

[Xen-devel] [PATCH v13 06/11] x86/hvm/ioreq: add a new mappable resource type...

2017-10-30 Thread Paul Durrant
... XENMEM_resource_ioreq_server This patch adds support for a new resource type that can be mapped using the XENMEM_acquire_resource memory op. If an emulator makes use of this resource type then, instead of mapping gfns, the IOREQ server will allocate pages from the heap. These pages will never

[Xen-devel] [PATCH v13 01/11] x86/hvm/ioreq: maintain an array of ioreq servers rather than a list

2017-10-30 Thread Paul Durrant
A subsequent patch will remove the current implicit limitation on creation of ioreq servers which is due to the allocation of gfns for the ioreq structures and buffered ioreq ring. It will therefore be necessary to introduce an explicit limit and, since this limit should be small, it simplifies th

[Xen-devel] [PATCH v13 00/11] x86: guest resource mapping

2017-10-30 Thread Paul Durrant
This series introduces support for direct mapping of guest resources. The resources are: - IOREQ server pages - Grant tables v13: - Responded to more comments from Jan and Julien. - Build-tested using ARM cross-compilation. v12: - Responded to more comments from Jan. v11: - Responded to mo

[Xen-devel] [PATCH v13 07/11] x86/mm: add an extra command to HYPERVISOR_mmu_update...

2017-10-30 Thread Paul Durrant
...to allow the calling domain to prevent translation of specified l1e value. Despite what the comment in public/xen.h might imply, specifying a command value of MMU_NORMAL_PT_UPDATE will not simply update an l1e with the specified value. Instead, mod_l1_entry() tests whether foreign_dom has PG_tr

[Xen-devel] [PATCH v13 03/11] x86/hvm/ioreq: use gfn_t in struct hvm_ioreq_page

2017-10-30 Thread Paul Durrant
This patch adjusts the ioreq server code to use type-safe gfn_t values where possible. No functional change. Signed-off-by: Paul Durrant Reviewed-by: Roger Pau Monné Reviewed-by: Wei Liu Acked-by: Jan Beulich --- Cc: Andrew Cooper --- xen/arch/x86/hvm/ioreq.c | 44 +++

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Tamas K Lengyel
On Mon, Oct 30, 2017 at 11:19 AM, Razvan Cojocaru wrote: > On 10/30/2017 07:07 PM, Tamas K Lengyel wrote: >> On Mon, Oct 30, 2017 at 11:01 AM, Razvan Cojocaru >> wrote: >>> On 10/30/2017 06:39 PM, Tamas K Lengyel wrote: On Mon, Oct 30, 2017 at 10:24 AM, Razvan Cojocaru wrote: > On

Re: [Xen-devel] [PATCH 1/5] libxl: add PV sound device

2017-10-30 Thread Wei Liu
On Mon, Oct 02, 2017 at 12:49:20PM +0300, Oleksandr Grytsov wrote: > From: Oleksandr Grytsov > > Add PV sound device described in sndif.h > > Signed-off-by: Oleksandr Grytsov [...] > > libxl__console_backend = Enumeration("console_backend", [ > diff --git a/tools/libxl/libxl_vsnd.c b/tools/

Re: [Xen-devel] [PATCH v9.1 02/16] Rename PSR sysctl/domctl interfaces and xsm policy to make them be general

2017-10-30 Thread Daniel De Graaf
On 10/24/2017 05:10 AM, Yi Sun wrote: This patch renames PSR sysctl/domctl interfaces and related xsm policy to make them be general for all resource allocation features but not only for CAT. Then, we can resuse the interfaces for all allocation features. Basically, it changes 'psr_cat_op' to 'p

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Razvan Cojocaru
On 10/30/2017 07:07 PM, Tamas K Lengyel wrote: > On Mon, Oct 30, 2017 at 11:01 AM, Razvan Cojocaru > wrote: >> On 10/30/2017 06:39 PM, Tamas K Lengyel wrote: >>> On Mon, Oct 30, 2017 at 10:24 AM, Razvan Cojocaru >>> wrote: On 30.10.2017 18:01, Tamas K Lengyel wrote: > On Mon, Oct 30, 201

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Tamas K Lengyel
On Mon, Oct 30, 2017 at 11:01 AM, Razvan Cojocaru wrote: > On 10/30/2017 06:39 PM, Tamas K Lengyel wrote: >> On Mon, Oct 30, 2017 at 10:24 AM, Razvan Cojocaru >> wrote: >>> On 30.10.2017 18:01, Tamas K Lengyel wrote: On Mon, Oct 30, 2017 at 4:32 AM, Alexandru Isaila wrote: > This p

Re: [Xen-devel] [PATCH RFC v2 0/8] Live migration for VMs with QEMU backed local storage

2017-10-30 Thread Wei Liu
Also CC QEMU maintainers. Is there any new QEMU patch required? On Wed, Oct 18, 2017 at 10:26:27AM -0700, Bruno Alvisio wrote: > I am reviving this thread about the migration of VMs with local storage. I > have worked on a solution to be able to migrate VMs that use QEMU as the > backend disk d

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Razvan Cojocaru
On 10/30/2017 06:39 PM, Tamas K Lengyel wrote: > On Mon, Oct 30, 2017 at 10:24 AM, Razvan Cojocaru > wrote: >> On 30.10.2017 18:01, Tamas K Lengyel wrote: >>> On Mon, Oct 30, 2017 at 4:32 AM, Alexandru Isaila >>> wrote: This patch is adding a way to enable/disable nested pagefault event

Re: [Xen-devel] [PATCH for-next 9/9] coverage: add documentation for LLVM coverage

2017-10-30 Thread Roger Pau Monné
On Mon, Oct 30, 2017 at 04:48:09PM +, Wei Liu wrote: > On Thu, Oct 26, 2017 at 10:19:38AM +0100, Roger Pau Monne wrote: > > Signed-off-by: Roger Pau Monné > > --- > > Cc: Andrew Cooper > > Cc: George Dunlap > > Cc: Ian Jackson > > Cc: Jan Beulich > > Cc: Konrad Rzeszutek Wilk > > Cc: Stef

Re: [Xen-devel] [PATCH for-next 5/9] coverage: introduce generic file

2017-10-30 Thread Roger Pau Monné
On Mon, Oct 30, 2017 at 04:48:21PM +, Wei Liu wrote: > On Thu, Oct 26, 2017 at 10:19:34AM +0100, Roger Pau Monne wrote: > > > > diff --git a/xen/common/coverage/Makefile b/xen/common/coverage/Makefile > > index f68d050eca..0e0510679e 100644 > > --- a/xen/common/coverage/Makefile > > +++ b/xen/

Re: [Xen-devel] [PATCH for-next 7/9] coverage: introduce support for llvm profiling

2017-10-30 Thread Wei Liu
On Thu, Oct 26, 2017 at 10:19:36AM +0100, Roger Pau Monne wrote: > Introduce the functionality in order to fill the hooks of the > cov_sysctl_ops struct. > > Signed-off-by: Roger Pau Monné > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek

Re: [Xen-devel] [PATCH for-next 5/9] coverage: introduce generic file

2017-10-30 Thread Wei Liu
On Thu, Oct 26, 2017 at 10:19:34AM +0100, Roger Pau Monne wrote: > > diff --git a/xen/common/coverage/Makefile b/xen/common/coverage/Makefile > index f68d050eca..0e0510679e 100644 > --- a/xen/common/coverage/Makefile > +++ b/xen/common/coverage/Makefile > @@ -1,4 +1,4 @@ > -obj-y += gcov_base.o gc

Re: [Xen-devel] [PATCH for-next 3/9] gcov: rename sysctl and functions

2017-10-30 Thread Wei Liu
On Thu, Oct 26, 2017 at 10:19:32AM +0100, Roger Pau Monne wrote: > Change gcov to cov. > > Signed-off-by: Roger Pau Monné Acked-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH for-next 2/9] gcov: rename folder and header to coverage

2017-10-30 Thread Wei Liu
> diff --git a/xen/include/xen/gcov.h b/xen/include/xen/coverage.h > similarity index 100% > rename from xen/include/xen/gcov.h > rename to xen/include/xen/coverage.h Please also rename the define guard in this file. ___ Xen-devel mailing list Xen-devel

Re: [Xen-devel] [PATCH for-next 9/9] coverage: add documentation for LLVM coverage

2017-10-30 Thread Wei Liu
On Thu, Oct 26, 2017 at 10:19:38AM +0100, Roger Pau Monne wrote: > Signed-off-by: Roger Pau Monné > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc: Wei Liu > --- > docs/misc/coverag

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Tamas K Lengyel
On Mon, Oct 30, 2017 at 10:24 AM, Razvan Cojocaru wrote: > On 30.10.2017 18:01, Tamas K Lengyel wrote: >> On Mon, Oct 30, 2017 at 4:32 AM, Alexandru Isaila >> wrote: >>> This patch is adding a way to enable/disable nested pagefault >>> events. It introduces the xc_monitor_nested_pagefault functio

Re: [Xen-devel] [PATCH] tools/xenstored: Check number of strings passed to do_control()

2017-10-30 Thread Wei Liu
On Fri, Oct 27, 2017 at 04:32:15PM +, Pawel Wieczorkiewicz wrote: > It is possible to send a zero-string message body to xenstore's > XS_CONTROL handling function. Then the number of strings is used > for an array allocation. This leads to a crash in strcmp() in a > CONTROL sub-command invocati

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

2017-10-30 Thread osstest service owner
flight 115390 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115390/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Razvan Cojocaru
On 30.10.2017 18:01, Tamas K Lengyel wrote: > On Mon, Oct 30, 2017 at 4:32 AM, Alexandru Isaila > wrote: >> This patch is adding a way to enable/disable nested pagefault >> events. It introduces the xc_monitor_nested_pagefault function >> and adds the nested_pagefault_disabled in the monitor struc

[Xen-devel] [PATCH v4 for-4.10] scripts: introduce a script for build test

2017-10-30 Thread Wei Liu
Signed-off-by: Ian Jackson Signed-off-by: Wei Liu --- Cc: Andrew Cooper Cc: George Dunlap Cc: Ian Jackson Cc: Jan Beulich Cc: Konrad Rzeszutek Wilk Cc: Stefano Stabellini Cc: Tim Deegan Cc: Wei Liu Cc: Julien Grall Cc: Anthony PERARD v4: 1. Check, save/restore $?. 2. Don't use trap, ch

Re: [Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Tamas K Lengyel
On Mon, Oct 30, 2017 at 4:32 AM, Alexandru Isaila wrote: > This patch is adding a way to enable/disable nested pagefault > events. It introduces the xc_monitor_nested_pagefault function > and adds the nested_pagefault_disabled in the monitor structure. > This is needed by the introspection so it w

Re: [Xen-devel] [PATCH v3 for-4.10] scripts: introduce a script for build test

2017-10-30 Thread Wei Liu
On Mon, Oct 30, 2017 at 03:14:04PM +, Ian Jackson wrote: > Wei Liu writes ("[PATCH v3 for-4.10] scripts: introduce a script for build > test"): > > Signed-off-by: Ian Jackson > > Signed-off-by: Wei Liu > ... > ... > > +trap "echo Restoring original HEAD ; git checkout $ORIG_BRANCH" EXIT > >

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

2017-10-30 Thread osstest service owner
flight 115378 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/115378/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-i386-xl-qemuu-ws16-amd64 17 guest-stopfail REGR. vs. 114644 test-amd64-amd64-x

Re: [Xen-devel] [PATCH v7 13/13] xen: introduce a Kconfig option to enable the pvcalls frontend

2017-10-30 Thread Boris Ostrovsky
On 10/26/2017 04:45 PM, Boris Ostrovsky wrote: > On 10/26/2017 04:16 PM, Stefano Stabellini wrote: >> On Thu, 26 Oct 2017, Boris Ostrovsky wrote: >>> On 10/26/2017 03:11 PM, Stefano Stabellini wrote: Also add pvcalls-front to the Makefile. Signed-off-by: Stefano Stabellini CC:

Re: [Xen-devel] [PATCH v3 for-4.10] scripts: introduce a script for build test

2017-10-30 Thread Ian Jackson
Wei Liu writes ("[PATCH v3 for-4.10] scripts: introduce a script for build test"): > Signed-off-by: Ian Jackson > Signed-off-by: Wei Liu ... ... > +trap "echo Restoring original HEAD ; git checkout $ORIG_BRANCH" EXIT This will smash the whole script's exit status. I think you need to save/rest

Re: [Xen-devel] [PATCH for-4.10] tools/hotplug: create XEN_LOG_DIR at runtime

2017-10-30 Thread Ian Jackson
Wei Liu writes ("Re: [PATCH] tools/hotplug: create XEN_LOG_DIR at runtime"): > On Fri, Oct 27, 2017 at 07:52:37PM +0300, Andrii Anisov wrote: > > From: Andrii Anisov > > > > /var/log could be a tmpfs mount point, so create xen subfolder at runtime. > > > > Signed-off-by: Andrii Anisov > > Revie

Re: [Xen-devel] [PATCH v3 for-4.10] scripts: introduce a script for build test

2017-10-30 Thread Wei Liu
On Wed, Oct 25, 2017 at 05:00:21PM +0100, Wei Liu wrote: > Signed-off-by: Ian Jackson > Signed-off-by: Wei Liu > --- > Cc: Andrew Cooper > Cc: George Dunlap > Cc: Ian Jackson > Cc: Jan Beulich > Cc: Konrad Rzeszutek Wilk > Cc: Stefano Stabellini > Cc: Tim Deegan > Cc: Wei Liu > Cc: Julien

Re: [Xen-devel] [PATCH v5 1/1] xen/time: do not decrease steal time after live migration on xen

2017-10-30 Thread Boris Ostrovsky
On 10/30/2017 04:03 AM, Dongli Zhang wrote: > After guest live migration on xen, steal time in /proc/stat > (cpustat[CPUTIME_STEAL]) might decrease because steal returned by > xen_steal_lock() might be less than this_rq()->prev_steal_time which is > derived from previous return value of xen_steal_c

[Xen-devel] [examine test] 115392: tolerable all pass

2017-10-30 Thread osstest service owner
flight 115392 examine real [real] http://logs.test-lab.xenproject.org/osstest/logs/115392/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: examine-godello1 4 memdisk-try-append fail blocked in 115152 baseline version: flight 1

Re: [Xen-devel] [PATCH v12 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2017-10-30 Thread Paul Durrant
> -Original Message- > From: Julien Grall [mailto:julien.gr...@linaro.org] > Sent: 30 October 2017 12:09 > To: Paul Durrant ; Jan Beulich > > Cc: Julien Grall ; Andrew Cooper > ; Wei Liu ; George > Dunlap ; Ian Jackson ; > Stefano Stabellini ; xen-de...@lists.xenproject.org; > Konrad Rzesz

Re: [Xen-devel] [PATCH 0/4] libxl: use libxl__device_kind string to access device

2017-10-30 Thread Oleksandr Grytsov
On Tue, Oct 24, 2017 at 10:41 AM, Oleksandr Grytsov wrote: > On Thu, Oct 5, 2017 at 12:30 PM, Oleksandr Grytsov > wrote: > >> From: Oleksandr Grytsov >> >> In current implementation the path of device XS entry is created with >> string from libxl__device_kind enum. But access to the device entr

Re: [Xen-devel] [PATCH 0/5] libxl: add PV sound device

2017-10-30 Thread Oleksandr Grytsov
On Tue, Oct 24, 2017 at 10:27 AM, Oleksandr Grytsov wrote: > On Mon, Oct 2, 2017 at 12:49 PM, Oleksandr Grytsov > wrote: > >> From: Oleksandr Grytsov >> >> This patch set adds PV sound device support to xl.cfg and xl. >> See sndif.h for protocol implementation details. >> >> >> Oleksandr Grytso

Re: [Xen-devel] [PATCH 0/6] libxl: create standalone vkb device

2017-10-30 Thread Oleksandr Grytsov
On Tue, Oct 24, 2017 at 10:40 AM, Oleksandr Grytsov wrote: > On Thu, Oct 5, 2017 at 12:07 PM, Oleksandr Grytsov > wrote: > >> From: Oleksandr Grytsov >> >> Currently vkb device is the part of FB and console. >> In embedded application we use vkb protocol to communicate >> with user space backen

[Xen-devel] Libvirt config converter can't handle file not ending with new line

2017-10-30 Thread Wei Liu
Hi Jim I discover a problem when using xen_xl converter. When the file in question doesn't end with a new line, I get the following error: error: configuration file syntax error: memory conf:53: expecting a value After digging a bit (but haven't read libvirt code), it appears that the file di

Re: [Xen-devel] [PATCH v12 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2017-10-30 Thread Julien Grall
Hi Paul, On 27/10/17 16:19, Paul Durrant wrote: -Original Message- From: Julien Grall [mailto:julien.gr...@linaro.org] Sent: 27 October 2017 12:46 To: Jan Beulich ; Paul Durrant Cc: Julien Grall ; Andrew Cooper ; Wei Liu ; George Dunlap ; Ian Jackson ; Stefano Stabellini ; xen-de...@lis

Re: [Xen-devel] [PATCH v12 05/11] x86/mm: add HYPERVISOR_memory_op to acquire guest resources

2017-10-30 Thread Paul Durrant
> -Original Message- > From: Jan Beulich [mailto:jbeul...@suse.com] > Sent: 26 October 2017 16:27 > To: Paul Durrant > Cc: Julien Grall ; Andrew Cooper > ; Wei Liu ; George > Dunlap ; Ian Jackson ; > Stefano Stabellini ; xen-de...@lists.xenproject.org; > Konrad Rzeszutek Wilk ; Daniel De G

[Xen-devel] [distros-debian-sid test] 72376: tolerable FAIL

2017-10-30 Thread Platform Team regression test user
flight 72376 distros-debian-sid real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/72376/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-i386-i386-sid-netboot-pvgrub 10 debian-di-install fail like 72341 test-armhf-armhf-armhf-sid-n

Re: [Xen-devel] [PATCH 2/5 v2] libxl: Change the type of console_mfn to xen_pfn_t

2017-10-30 Thread Wei Liu
On Mon, Oct 30, 2017 at 02:42:57PM +0530, Bhupinder Thakur wrote: > Hi, > > On 26 October 2017 at 16:47, Andrew Cooper wrote: > > On 26/10/17 12:13, Wei Liu wrote: > >> On Wed, Oct 25, 2017 at 02:57:05PM +0530, Bhupinder Thakur wrote: > >>> Currently the type of console mfn is unsigned long in li

[Xen-devel] [PATCH v1] x86/mm: Supresses vm_events caused by page-walks

2017-10-30 Thread Alexandru Isaila
This patch is adding a way to enable/disable nested pagefault events. It introduces the xc_monitor_nested_pagefault function and adds the nested_pagefault_disabled in the monitor structure. This is needed by the introspection so it will only get gla faults and not get spammed with other faults. In

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

2017-10-30 Thread osstest service owner
flight 115384 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/115384/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 114507 build-amd64-xsm

Re: [Xen-devel] [PATCH v1] tools/hotplug: convert proc-xen.mount to proc-xen.service

2017-10-30 Thread Wei Liu
On Thu, Oct 26, 2017 at 04:45:38PM +0100, Andrew Cooper wrote: > On 26/10/17 16:25, Olaf Hering wrote: > > An upcoming change in systemd will mount xenfs right away, along with > > all other system mounts. This improves the detection of the > > virtualization environment, which is currently racy. S

Re: [Xen-devel] [locking/paravirt] static_key_disable_cpuslocked(): static key 'virt_spin_lock_key+0x0/0x20' used before call to jump_label_init()

2017-10-30 Thread Fengguang Wu
On Mon, Oct 30, 2017 at 09:38:35AM +0100, Fengguang Wu wrote: On Mon, Oct 30, 2017 at 08:47:08AM +0100, Juergen Gross wrote: On 30/10/17 08:35, Fengguang Wu wrote: On Sun, Oct 29, 2017 at 11:51:55PM +0100, Fengguang Wu wrote: Hi Linus, Up to now we see the below boot error/warnings when testi

Re: [Xen-devel] [PATCH V3 2/29] VIOMMU: Add vIOMMU helper functions to create, destroy vIOMMU instance

2017-10-30 Thread Roger Pau Monné
On Mon, Oct 30, 2017 at 09:41:23AM +0800, Lan Tianyu wrote: > On 2017年10月25日 09:43, Lan Tianyu wrote: > >> For all platforms supporting HVM, for PV I don't think it makes sense. > >> > Since AFAIK ARM guest type is also HVM I would rather introduce this > >> > field in the hvm_domain structure rath

[Xen-devel] [linux-linus test] 115373: regressions - FAIL

2017-10-30 Thread osstest service owner
flight 115373 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/115373/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-ws16-amd64 17 guest-stop fail REGR. vs. 114682 Tests which did not

Re: [Xen-devel] [PATCH 2/5 v2] libxl: Change the type of console_mfn to xen_pfn_t

2017-10-30 Thread Bhupinder Thakur
Hi, On 26 October 2017 at 16:47, Andrew Cooper wrote: > On 26/10/17 12:13, Wei Liu wrote: >> On Wed, Oct 25, 2017 at 02:57:05PM +0530, Bhupinder Thakur wrote: >>> Currently the type of console mfn is unsigned long in libxl. This may be >>> an issue for 32-bit toolstack running on 64-bit Xen, wher

Re: [Xen-devel] [BUG] xen_gntdev - gntdev_vma_find_special_page - unable to handle kernel paging request

2017-10-30 Thread Arthur Borsboom
Yes, this domain has: - Current memory allocation: 8192 MB - Maximum memory allocation: 10240 MB. I have changed the maximum to 8192 MB as a possible workaround; the current memory is rarely up/down scaled anyway. The PVH setting for dom0 has been removed. If you don't here from me anymore, then

  1   2   >