Re: [Xen-devel] arm64: dma_to_phys/phys_to_dma need to be properly implemented

2017-03-28 Thread Oleksandr Andrushchenko
Hi, Stefano! Ok, probably I need to put more details into the use-case so it is clear. What I am doing is a DRM driver which utilizes PRIME buffer sharing [1] to implement zero-copy of display buffers between DomU and Dom0. PRIME is based on DMA Buffer Sharing API [2], so this is the reason I am

Re: [Xen-devel] [PATCH RFC] x86/emulate: implement hvmemul_cmpxchg() with an actual CMPXCHG

2017-03-28 Thread Jan Beulich
>>> On 28.03.17 at 12:25, wrote: > On 28/03/17 11:03, Jan Beulich wrote: >> There is a severe downside to MMIO accesses with this model >> though: Other than for RAM, we shouldn't be reading (and even >> less so writing) the memory location more than once. > > With MMIO, the hardware analogy is s

Re: [Xen-devel] [GSoC] GSoC Introduction : Fuzzing Xen hypercall interface

2017-03-28 Thread Felix Schmoll
2017-03-28 13:54 GMT+02:00 Wei Liu : > On Tue, Mar 28, 2017 at 10:21:14AM +0100, Lars Kurth wrote: > > Hi all, > > > > I wanted to add a few thoughts here, as this is clearly one of the > harder tasks. > > It's really hard. I don't even expect an experienced Xen developer to be > able to finish al

Re: [Xen-devel] [PATCH v4 1/8] xen: import ring.h from xen

2017-03-28 Thread Juergen Gross
On 29/03/17 01:54, Stefano Stabellini wrote: > On Tue, 28 Mar 2017, Juergen Gross wrote: >> On 28/03/17 00:48, Stefano Stabellini wrote: >>> On Mon, 27 Mar 2017, Juergen Gross wrote: On 24/03/17 18:37, Stefano Stabellini wrote: > On Fri, 24 Mar 2017, Juergen Gross wrote: >> On 23/03/17

Re: [Xen-devel] maybe revert commit c275a57f5ec3 "xen/balloon: Set balloon's initial state to number of existing RAM pages"

2017-03-28 Thread Juergen Gross
On 28/03/17 18:32, Boris Ostrovsky wrote: > On 03/28/2017 11:30 AM, Juergen Gross wrote: >> On 28/03/17 16:27, Boris Ostrovsky wrote: >>> On 03/28/2017 04:08 AM, Jan Beulich wrote: >>> On 28.03.17 at 03:57, wrote: > I think there is indeed a disconnect between target memory (provided by >

[Xen-devel] [xen-unstable baseline-only test] 71115: tolerable trouble: blocked/broken/fail/pass

2017-03-28 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 71115 xen-unstable real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71115/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-xl 6 xen-boot

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

2017-03-28 Thread Chao Gao
On Wed, Mar 29, 2017 at 03:28:43AM +, Xuquan (Quan Xu) wrote: >On March 22, 2017 2:14 PM, Chao Gao wrote: >>On Wed, Mar 22, 2017 at 06:47:33AM -0600, Jan Beulich wrote: 3. We read RTE 3 times. 1st happens when we set vIRR. 2nd happens when pt_update_irq() returns. 3rd happens in

Re: [Xen-devel] linux-next: manual merge of the xen-tip tree with the tip tree

2017-03-28 Thread Stephen Rothwell
Hi all, On Wed, 29 Mar 2017 14:36:18 +1100 Stephen Rothwell wrote: > > Today's linux-next merge of the xen-tip tree got a conflict in: > > arch/x86/xen/mmu.c > > between commits: > > 69218e47994d ("x86: Remap GDT tables in the fixmap section") > 907cd4390290 ("x86/xen: Change __xen_pgd_

[Xen-devel] linux-next: manual merge of the xen-tip tree with the tip tree

2017-03-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got a conflict in: arch/x86/xen/mmu.c between commits: 69218e47994d ("x86: Remap GDT tables in the fixmap section") 907cd4390290 ("x86/xen: Change __xen_pgd_walk() and xen_cleanmfnmap() to support p4d") f2a6a7050109 ("x86: Convert th

[Xen-devel] linux-next: manual merge of the xen-tip tree with the tip tree

2017-03-28 Thread Stephen Rothwell
Hi all, Today's linux-next merge of the xen-tip tree got a conflict in: arch/x86/xen/enlighten.c between commits: 6415813bae75 ("x86/cpu: Drop wp_works_ok member of struct cpuinfo_x86") 69218e47994d ("x86: Remap GDT tables in the fixmap section") b23adb7d3f7d ("x86/xen/gdt: Use X86_FEAT

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

2017-03-28 Thread Xuquan (Quan Xu)
On March 22, 2017 2:14 PM, Chao Gao wrote: >On Wed, Mar 22, 2017 at 06:47:33AM -0600, Jan Beulich wrote: >>> 3. We read RTE 3 times. 1st happens when we set vIRR. 2nd happens >>> when >>> pt_update_irq() returns. 3rd happens in pt_intr_post(). If guest >>> changes the vector in RTE during the windo

Re: [Xen-devel] [PATCH v9 12/25] x86: refactor psr: L3 CAT: set value: implement cos id picking flow.

2017-03-28 Thread Yi Sun
On 17-03-29 09:20:21, Yi Sun wrote: > On 17-03-28 06:20:48, Jan Beulich wrote: > > >>> On 28.03.17 at 13:59, wrote: > > > I think we at least need a 'get_val()' hook. > > > > Of course. > > > > > I try to implement CAT/CDP hook. > > > Please help to check if this is what you thought. > > > > On

Re: [Xen-devel] [PATCH v9 24/25] tools: L2 CAT: support set cbm for L2 CAT.

2017-03-28 Thread Yi Sun
On 17-03-28 15:04:03, Wei Liu wrote: > On Thu, Mar 16, 2017 at 07:08:14PM +0800, Yi Sun wrote: > > This patch implements the xl/xc changes to support set CBM > > for L2 CAT. > > > > The new level option is introduced to original CAT setting > > command in order to set CBM for specified level CAT.

Re: [Xen-devel] [PATCH v9 12/25] x86: refactor psr: L3 CAT: set value: implement cos id picking flow.

2017-03-28 Thread Yi Sun
On 17-03-28 06:20:48, Jan Beulich wrote: > >>> On 28.03.17 at 13:59, wrote: > > I think we at least need a 'get_val()' hook. > > Of course. > > > I try to implement CAT/CDP hook. > > Please help to check if this is what you thought. > > One remark below, but other than that - yes. > > > static

Re: [Xen-devel] [GSoC]about the task "Share a page in memory from the VM config file"

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Stefano Stabellini wrote: > Hello Zhongze, > > did you manage to make any progress with the ARM model? > > Finally, I would like to remind you of the upcoming deadline for > applications submissions, which is the 3rd of April for GSoC and the > 30th of March for Outreachy, se

Re: [Xen-devel] [GSoC] Xen on ARM: create multiple guests from device tree

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Stefano Stabellini wrote: > Hello Luca, > > did you manage to make any progress on the number of cores exposed by the > model? > > Thank you for the Makefile patch! If you have time, I encourage you to > fix one of the other small outstanding bugs, for example XEN-20 or > XE

Re: [Xen-devel] [GSoc] GSoc Introduction : Xen on ARM: create multiple guests from device tree

2017-03-28 Thread Stefano Stabellini
CC'ing a couple of maintainers that might have more insights on this project. On Tue, 28 Mar 2017, Stefano Stabellini wrote: > On Tue, 28 Mar 2017, Methuku Karthik wrote: > > Hi Stefano, > > > > Kindly suggest me reading material that could help me understand and > > come up with the proposal. >

Re: [Xen-devel] ARM: SMMUv3 support

2017-03-28 Thread Goel, Sameer
Sure, I will try to post something soon. Thanks, Sameer On 3/27/2017 11:03 PM, Vijay Kilari wrote: > On Mon, Mar 27, 2017 at 10:00 PM, Goel, Sameer wrote: >> Hi, >> I am working on adding this support. The work is in initial stages and will >> target ACPI systems to start with. Do you have a

Re: [Xen-devel] [GSoc] GSoc Introduction : Xen on ARM: create multiple guests from device tree

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Methuku Karthik wrote: > Hi Stefano, > > Kindly suggest me reading material that could help me understand and > come up with the proposal. Sure! For the "Xen on ARM: create multiple guests from device tree" project, the idea is that on many embedded systems the user knows how

Re: [Xen-devel] [PATCH v4 1/8] xen: import ring.h from xen

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Juergen Gross wrote: > On 28/03/17 00:48, Stefano Stabellini wrote: > > On Mon, 27 Mar 2017, Juergen Gross wrote: > >> On 24/03/17 18:37, Stefano Stabellini wrote: > >>> On Fri, 24 Mar 2017, Juergen Gross wrote: > On 23/03/17 19:22, Stefano Stabellini wrote: > > On Thu

Re: [Xen-devel] [libvirt test] 106952: regressions - FAIL

2017-03-28 Thread Jim Fehlig
On 03/28/2017 02:09 AM, osstest service owner wrote: flight 106952 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/106952/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i386-libvirt5 libvirt-build

Re: [Xen-devel] [GSoc] GSoc Introduction : Xen on ARM: create multiple guests from device tree

2017-03-28 Thread Methuku Karthik
Hi Stefano, Kindly suggest me reading material that could help me understand and come up with the proposal. On Tue, Mar 28, 2017 at 1:38 PM, Stefano Stabellini wrote: > I would also like to take the opportunity to remind you of the upcoming > deadline for applications submissions, which is the 3

Re: [Xen-devel] [PATCH v2] xen: additionally restrict xenforeignmemory operations

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Paul Durrant wrote: > Commit f0f272baf3a7 "xen: use libxendevice model to restrict operations" > added a command-line option (-xen-domid-restrict) to limit operations > using the libxendevicemodel API to a specified domid. The commit also > noted that the restriction would be e

[Xen-devel] [qemu-mainline test] 106965: tolerable FAIL - PUSHED

2017-03-28 Thread osstest service owner
flight 106965 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/106965/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-libvirt-xsm 13 saverestore-support-checkfail like 106905 test-amd64-i386-xl-qemuu-w

[Xen-devel] [PATCH v5 3/4] Introduce the Xen 9pfs transport header

2017-03-28 Thread Stefano Stabellini
Define the ring according to the protocol specification, using the new DEFINE_XEN_FLEX_RING_AND_INTF macro. Add the header to the C99 check. Signed-off-by: Stefano Stabellini CC: jbeul...@suse.com CC: konrad.w...@oracle.com --- xen/include/Makefile | 2 +- xen/include/public/io/9pfs.h

[Xen-devel] [PATCH v5 2/4] xen: introduce a C99 headers check

2017-03-28 Thread Stefano Stabellini
Introduce a C99 headers check, for non-ANSI compliant headers: 9pfs.h and pvcalls.h. In addition to the usual -include stdint.h, also add -include string.h to the C99 check to get the declaration of memcpy and size_t. For the same reason, also add -include cstring to the C++ check when necessary.

[Xen-devel] [PATCH v5 4/4] Introduce the pvcalls header

2017-03-28 Thread Stefano Stabellini
Define the ring and request and response structs according to the specification. Use the new DEFINE_XEN_FLEX_RING macro. Add the header to the C99 check. Signed-off-by: Stefano Stabellini CC: jbeul...@suse.com CC: konrad.w...@oracle.com --- xen/include/Makefile| 2 +- xen/include/

[Xen-devel] [PATCH v5 0/4] new ring macros, 9pfs and pvcalls headers

2017-03-28 Thread Stefano Stabellini
Hi all, this patch series introduces a set of new ring macros to support rings in the formats specified by the Xen 9pfs transport and PV Calls protocol. It also introduces the Xen 9pfs and PV Calls protocols headers. Changes in v5: - parenthesize uses of macro parameters in XEN_FLEX_RING_SIZE - a

[Xen-devel] [PATCH v5 1/4] ring.h: introduce macros to handle monodirectional rings with multiple req sizes

2017-03-28 Thread Stefano Stabellini
This patch introduces macros, structs and functions to handle rings in the format described by docs/misc/pvcalls.markdown and docs/misc/9pfs.markdown. The index page (struct __name##_data_intf) contains the indexes and the grant refs to setup two rings. Indexes page +

Re: [Xen-devel] [PATCH v4 2/4] xen: introduce a C99 headers check

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Jan Beulich wrote: > >>> Stefano Stabellini 03/27/17 10:50 PM >>> > >On Mon, 27 Mar 2017, Jan Beulich wrote: > >> >>> On 24.03.17 at 19:31, wrote: > >> > Introduce a C99 headers check, for non-ANSI compliant headers. No > >> > headers are added to the check yet. > >> > > >>

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

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

Re: [Xen-devel] [PATCH v4 1/4] ring.h: introduce macros to handle monodirectional rings with multiple req sizes

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Jan Beulich wrote: > >>> Stefano Stabellini 03/27/17 10:53 PM >>> > >On Mon, 27 Mar 2017, Jan Beulich wrote: > >> >>> On 24.03.17 at 19:31, wrote: > >> > --- a/xen/include/public/io/ring.h > >> > +++ b/xen/include/public/io/ring.h > >> > @@ -27,7 +27,18 @@ > >> > #ifndef __X

Re: [Xen-devel] [PATCH RFC 02/13] x86/mm: move MEM_LOG to asm-x86/mm.h

2017-03-28 Thread Andrew Cooper
On 27/03/2017 10:10, Wei Liu wrote: > It will be needed later when we split mm.c. > > No functional change. > > Signed-off-by: Wei Liu I have a pending patch to take MEM_LOG() out entirely, along with correcting some of the information printed. I'd prefer not to perpetuate its existence. ~Andre

Re: [Xen-devel] [PATCH RFC 01/13] x86/mm: export {get, put}_pg_owner

2017-03-28 Thread Andrew Cooper
On 27/03/2017 10:10, Wei Liu wrote: > Prefix them with "mm_" and add declarations to asm-x86/mm.h. > > They will be needed when we split PV specific code out of x86/mm.c. > > No functional change. > > Signed-off-by: Wei Liu I have to admit that I don't understand why they are called {get,put}_pg_

Re: [Xen-devel] [PATCH v4 3/4] Introduce the Xen 9pfs transport header

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Jan Beulich wrote: > >>> Stefano Stabellini 03/27/17 10:54 PM >>> > >On Mon, 27 Mar 2017, Jan Beulich wrote: > >> >>> On 24.03.17 at 19:31, wrote: > >> > +/* > >> > + * See docs/misc/9pfs.markdown in xen.git for the full specification: > >> > + * https://xenbits.xen.org/docs/

Re: [Xen-devel] [PATCH v2 0/2] x86/io: rename dpci_ IO port handlers

2017-03-28 Thread Andrew Cooper
On 28/03/2017 14:12, Roger Pau Monne wrote: > Hello, > > The following series contain two cosmetic fixes for the g2m IO port handlers. > The first one renames them to use the g2m_ prefix instead of the dpci_ one, > since those handlers are not trapping the PCI config space in any way. The > second

Re: [Xen-devel] [PATCH v1 4/9] mm: Scrub memory from idle loop

2017-03-28 Thread Boris Ostrovsky
On 03/28/2017 04:01 PM, Wei Liu wrote: > On Fri, Mar 24, 2017 at 01:04:59PM -0400, Boris Ostrovsky wrote: >> @@ -1067,7 +1086,11 @@ static void scrub_free_pages(unsigned int node) >> break; >> >> for ( i = 0; i < (1UL << order); i++) >> +{ >>

Re: [Xen-devel] [PATCH v1 8/9] mm: Print number of unscrubbed pages in 'H' debug handler

2017-03-28 Thread Wei Liu
On Fri, Mar 24, 2017 at 01:05:03PM -0400, Boris Ostrovsky wrote: > Signed-off-by: Boris Ostrovsky Reviewed-by: Wei Liu ___ Xen-devel mailing list Xen-devel@lists.xen.org https://lists.xen.org/xen-devel

Re: [Xen-devel] [PATCH v1 4/9] mm: Scrub memory from idle loop

2017-03-28 Thread Wei Liu
On Fri, Mar 24, 2017 at 01:04:59PM -0400, Boris Ostrovsky wrote: > @@ -1067,7 +1086,11 @@ static void scrub_free_pages(unsigned int node) > break; > > for ( i = 0; i < (1UL << order); i++) > +{ > scrub_one_page(&pg[i]); >

Re: [Xen-devel] [PATCH RFC 10/20] libxc/xc_sr_save.c: initialise rec.data before free()

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > colo_merge_secondary_dirty_bitmap() unconditionally free()s the .data > member of its local xc_sr_record structure rec on its exit path. > However, if the initial call to read_record() fails then this member is > uninitialised. Initialise it. > > Signed-off-

Re: [Xen-devel] [PATCH v1 1/9] mm: Separate free page chunk merging into its own routine

2017-03-28 Thread Boris Ostrovsky
On 03/28/2017 03:44 PM, Wei Liu wrote: > On Tue, Mar 28, 2017 at 03:41:10PM -0400, Boris Ostrovsky wrote: >> On 03/28/2017 03:20 PM, Wei Liu wrote: >>> On Fri, Mar 24, 2017 at 01:04:56PM -0400, Boris Ostrovsky wrote: This is needed for subsequent changes to memory scrubbing. No logic chan

Re: [Xen-devel] [PATCH RFC 06/20] libxc/xc_sr: factor helpers out of handle_page_data()

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > diff --git a/tools/libxc/xc_sr_stream_format.h > b/tools/libxc/xc_sr_stream_format.h > index 3291b25..32400b2 100644 > --- a/tools/libxc/xc_sr_stream_format.h > +++ b/tools/libxc/xc_sr_stream_format.h > @@ -80,15 +80,15 @@ struct xc_sr_rhdr > #define REC_TY

Re: [Xen-devel] [PATCH v1 2/9] mm: Place unscrubbed pages at the end of pagelist

2017-03-28 Thread Boris Ostrovsky
On 03/28/2017 03:27 PM, Wei Liu wrote: > On Fri, Mar 24, 2017 at 01:04:57PM -0400, Boris Ostrovsky wrote: >> . so that it's easy to find pages that need to be scrubbed (those pages are >> now marked with _PGC_need_scrub bit). > s/bool_t/bool/ throughout and use true and false where appropriate. > >

Re: [Xen-devel] [PATCH v1 1/9] mm: Separate free page chunk merging into its own routine

2017-03-28 Thread Wei Liu
On Tue, Mar 28, 2017 at 03:41:10PM -0400, Boris Ostrovsky wrote: > On 03/28/2017 03:20 PM, Wei Liu wrote: > > On Fri, Mar 24, 2017 at 01:04:56PM -0400, Boris Ostrovsky wrote: > >> This is needed for subsequent changes to memory scrubbing. No > >> logic change, only code re-factoring. > > Actually t

Re: [Xen-devel] [PATCH v1 3/9] mm: Scrub pages in alloc_heap_pages() if needed

2017-03-28 Thread Wei Liu
On Fri, Mar 24, 2017 at 01:04:58PM -0400, Boris Ostrovsky wrote: > When allocating pages in alloc_heap_pages() first look for clean pages. If > none > is found then retry, take pages marked as unscrubbed and scrub them. > > Note that we shouldn't find unscrubbed pages in alloc_heap_pages() yet.

Re: [Xen-devel] [PATCH v1 1/9] mm: Separate free page chunk merging into its own routine

2017-03-28 Thread Boris Ostrovsky
On 03/28/2017 03:20 PM, Wei Liu wrote: > On Fri, Mar 24, 2017 at 01:04:56PM -0400, Boris Ostrovsky wrote: >> This is needed for subsequent changes to memory scrubbing. No >> logic change, only code re-factoring. > Actually there is a slight change in logic: pg and order could be > updated in the or

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

2017-03-28 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 71114 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71114/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 89ad870fbff03a511102c73773000f2bea2017d2 baseline v

Re: [Xen-devel] [PATCH v1 2/9] mm: Place unscrubbed pages at the end of pagelist

2017-03-28 Thread Wei Liu
On Fri, Mar 24, 2017 at 01:04:57PM -0400, Boris Ostrovsky wrote: > . so that it's easy to find pages that need to be scrubbed (those pages are > now marked with _PGC_need_scrub bit). s/bool_t/bool/ throughout and use true and false where appropriate. > > /* Free 2^@order set of pages. */ > st

Re: [Xen-devel] [PATCH RFC 05/20] libxc/xc_sr: factor out filter_pages()

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > diff --git a/tools/libxc/xc_sr_restore.c b/tools/libxc/xc_sr_restore.c > index 481a904..8574ee8 100644 > --- a/tools/libxc/xc_sr_restore.c > +++ b/tools/libxc/xc_sr_restore.c > @@ -194,6 +194,68 @@ int populate_pfns(struct xc_sr_context *ctx, unsigned > coun

Re: [Xen-devel] [PATCH v1 1/9] mm: Separate free page chunk merging into its own routine

2017-03-28 Thread Wei Liu
On Fri, Mar 24, 2017 at 01:04:56PM -0400, Boris Ostrovsky wrote: > This is needed for subsequent changes to memory scrubbing. No > logic change, only code re-factoring. Actually there is a slight change in logic: pg and order could be updated in the original merge code. With this patch you still p

Re: [Xen-devel] arm64: dma_to_phys/phys_to_dma need to be properly implemented

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Oleksandr Andrushchenko wrote: > Hi, Stefano! > > On 03/27/2017 11:23 PM, Stefano Stabellini wrote: > > Hello Oleksandr, > > > > Just to clarify, you are talking about dma_to_phys/phys_to_dma in Linux > > (not in Xen), right? > I am talking about Linux, sorry I was not clear

Re: [Xen-devel] [Xen-users] "Hello Xen Project" Book.

2017-03-28 Thread Mohsen
I'm using LibreOffice 4.3.3.2 on Debian amd64 and this version not have MediaWiki export function!! On Tue, 3/28/17, M A Young wrote: Subject: Re: [Xen-users] [Xen-devel] "Hello Xen Project" Book. To: "Juergen Gross" Cc: "Lars Kurth" , "xen-de...

Re: [Xen-devel] [Xen-users] "Hello Xen Project" Book.

2017-03-28 Thread Mohsen
Hello Lars. How about "https://en.wikitolearn.org/WikiToLearn_Manual/Converting_LibreOffice_to_MediaWiki_Format"; or "https://apps.ubuntu.com/cat/applications/libreoffice-wiki-publisher/";? On Tue, 3/28/17, Lars Kurth wrote: Subject: Re: [Xen-devel

Re: [Xen-devel] [PATCH RFC 04/20] libxc/xc_sr_save.c: add WRITE_TRIVIAL_RECORD_FN()

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > Writing the libxc save stream requires writing a few 'trivial' records, > consisting only of a header with a particular type. As a readability > aid, it's nice to have obviously-named functions that write these sorts > of records into the stream - for exampl

Re: [Xen-devel] [PATCH v5] altp2m: Allow specifying external-only use-case

2017-03-28 Thread Daniel De Graaf
On 03/22/2017 02:07 PM, Tamas K Lengyel wrote: Currently setting altp2mhvm=1 in the domain configuration allows access to the altp2m interface for both in-guest and external privileged tools. This poses a problem for use-cases where only external access should be allowed, requiring the user to co

Re: [Xen-devel] [PATCH RFC 03/20] libxc/xc_sr_restore.c: use write_record() in send_checkpoint_dirty_pfn_list()

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > Teach send_checkpoint_dirty_pfn_list() to use write_record()'s new fd > parameter, avoiding the need for a manual writev(). > > No functional change. > > Signed-off-by: Joshua Otto Hmm - I could have sworn I objected to the patch which added this code in th

Re: [Xen-devel] [PATCH RFC 02/20] libxc/xc_sr: parameterise write_record() on fd

2017-03-28 Thread Andrew Cooper
On 27/03/17 10:06, Joshua Otto wrote: > Right now, write_split_record() - which is delegated to by > write_record() - implicitly writes to ctx->fd. This means it can't be > used with the restore context's send_back_fd, which is unhandy. Unhelpful? > > Add an 'fd' parameter to both write_record()

Re: [Xen-devel] xen/arm: Domain not fully destroyed when using credit2

2017-03-28 Thread Julien Grall
Hi Dario, On 02/02/17 13:32, Dario Faggioli wrote: On Thu, 2017-02-02 at 13:26 +, Julien Grall wrote: On 02/02/17 12:51, Dario Faggioli wrote: So, I expect to be able to do something useful only, let's stay, from Mon 13th. If that's ok, do sign me up. If you're more in a hurry, feel free t

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

2017-03-28 Thread Julien Grall
Hi all, On 14/03/17 14:21, Wei Liu wrote: On Tue, Mar 14, 2017 at 01:50:44PM +, Andrew Cooper wrote: 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 D

[Xen-devel] [xen-unstable test] 106959: tolerable FAIL - PUSHED

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

Re: [Xen-devel] [GSoc] GSoc Introduction : Xen on ARM: create multiple guests from device tree

2017-03-28 Thread Stefano Stabellini
I would also like to take the opportunity to remind you of the upcoming deadline for applications submissions, which is the 3rd of April for GSoC, see: http://marc.info/?l=xen-devel&m=149071502330534 The GSoC application system is https://summerofcode.withgoogle.com/get-started/. Please give a l

Re: [Xen-devel] [GSoC]about the task "Share a page in memory from the VM config file"

2017-03-28 Thread Stefano Stabellini
Hello Zhongze, did you manage to make any progress with the ARM model? Finally, I would like to remind you of the upcoming deadline for applications submissions, which is the 3rd of April for GSoC and the 30th of March for Outreachy, see: http://marc.info/?l=xen-devel&m=149071502330534 Please g

Re: [Xen-devel] [GSoC] Xen on ARM: create multiple guests from device tree

2017-03-28 Thread Stefano Stabellini
Hello Luca, did you manage to make any progress on the number of cores exposed by the model? Thank you for the Makefile patch! If you have time, I encourage you to fix one of the other small outstanding bugs, for example XEN-20 or XEN-11 (just the ability to load a Dom0 kernel bigger than 128MB o

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

2017-03-28 Thread Platform Team regression test user
This run is configured for baseline tests only. flight 71113 ovmf real [real] http://osstest.xs.citrite.net/~osstest/testlogs/logs/71113/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 3efa3f3d05ea3fef964e59aea9b5792cfec348ed baseline v

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

2017-03-28 Thread osstest service owner
flight 106971 ovmf real [real] http://logs.test-lab.xenproject.org/osstest/logs/106971/ Perfect :-) All tests in this flight passed as required version targeted for testing: ovmf 89ad870fbff03a511102c73773000f2bea2017d2 baseline version: ovmf 3efa3f3d05ea3fef964e5

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

2017-03-28 Thread osstest service owner
flight 106974 xen-unstable-smoke real [real] http://logs.test-lab.xenproject.org/osstest/logs/106974/ 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 test-amd64-amd64-libvirt 12 mig

Re: [Xen-devel] [Xen-security-issues-discuss] New XSA206 patches

2017-03-28 Thread Ian Jackson
(CCing xen-devel as this issue is no longer embargoed.) Sarah Newman writes ("Re: [Xen-security-issues-discuss] New XSA206 patches"): > On 03/28/2017 06:59 AM, Ian Jackson wrote: > > There is no functional difference compared to the v6 patches for > > unstable. The backports are updated. > > Are

Re: [Xen-devel] [RFC PATCH v2 01/25] x86: NUMA: Clean up: Drop trailing spaces

2017-03-28 Thread Wei Liu
The subject should be updated -- it does more than dropping trailing spaces. On Tue, Mar 28, 2017 at 09:23:09PM +0530, vijay.kil...@gmail.com wrote: > From: Vijaya Kumar K > > Fix coding style, trailing spaces, tabs in NUMA code. > Also drop unused macros and functions. > No functional change.

Re: [Xen-devel] [RFC PATCH v2 02/25] x86: NUMA: Fix datatypes and attributes

2017-03-28 Thread Wei Liu
On Tue, Mar 28, 2017 at 09:23:10PM +0530, vijay.kil...@gmail.com wrote: > From: Vijaya Kumar K > > Change u{8,32,64} to uint{8,32,64}_t and bool_t to bool. > Fix attributes coding styles. > Also change memnodeshift to unsigned int. I think you also need to say you changed u64 to paddr_t where ap

Re: [Xen-devel] Xen ARM community call - meeting minutes and date for the next one

2017-03-28 Thread Stefano Stabellini
On Tue, 28 Mar 2017, Julien Grall wrote: > Hi all, > > Apologies for the late sending, you will find at the end of the e-mail a > summary of the discussion from the previous call. Feel free to reply if I > missed some parts. > > I suggest to have the next call on the 5th April at 5PM UTC. Any opi

Re: [Xen-devel] [PATCH RFC 01/20] tools: rename COLO 'postcopy' to 'aftercopy'

2017-03-28 Thread Wei Liu
Cc Chen On Mon, Mar 27, 2017 at 05:06:13AM -0400, Joshua Otto wrote: > The COLO xc domain save and restore procedures both make use of a 'postcopy' > callback to defer part of each checkpoint operation to xl. In this context, > the > name 'postcopy' is meant as "the callback invoked immediately

[Xen-devel] [PATCH v3 0/4] xenstore: rework of transaction handling

2017-03-28 Thread Juergen Gross
Rework the transaction handling of xenstored to no longer raise conflicts so often. This series has been sent for pre-review to some reviewers before as the series is related to XSA 206 which has been disclosed only today. So V1 and V2 have been non-public in order to speed up review process witho

Re: [Xen-devel] maybe revert commit c275a57f5ec3 "xen/balloon: Set balloon's initial state to number of existing RAM pages"

2017-03-28 Thread Boris Ostrovsky
On 03/28/2017 11:30 AM, Juergen Gross wrote: > On 28/03/17 16:27, Boris Ostrovsky wrote: >> On 03/28/2017 04:08 AM, Jan Beulich wrote: >> On 28.03.17 at 03:57, wrote: I think there is indeed a disconnect between target memory (provided by the toolstack) and current memory (i.e actua

[Xen-devel] [PATCH v3 1/4] xenstore: let write_node() and some callers return errno

2017-03-28 Thread Juergen Gross
Instead of setting errno and returning true or false return the error value directly. In order to ensure all call sites have been changed according to the modification rename the functions to xs_*. Signed-off-by: Juergen Gross Reviewed-by: Wei Liu --- tools/xenstore/xenstored_core.c | 34 +

[Xen-devel] [PATCH v3 4/4] xenstore: cleanup tdb.c

2017-03-28 Thread Juergen Gross
Remove all unused functions from tdb.c. This will reduce code size of xenstored and - more important - of xenstore stubdom. tdb.c hasn't been updated to a newer version since its introduction in 2005. Any backport of bug fixes or update to a new version will need major work, so there is no real do

[Xen-devel] [PATCH v3 2/4] xenstore: undo function rename

2017-03-28 Thread Juergen Gross
Undo the function rename done in previous patch. Signed-off-by: Juergen Gross Reviewed-by: Wei Liu --- tools/xenstore/xenstored_core.c | 24 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/tools/xenstore/xenstored_core.c b/tools/xenstore/xenstored_core.c

[Xen-devel] [PATCH v3 3/4] xenstore: rework of transaction handling

2017-03-28 Thread Juergen Gross
The handling of transactions in xenstored is rather clumsy today: - Each transaction in progress is keeping a local copy of the complete xenstore data base - A transaction will fail as soon as any node is being modified outside the transaction This is leading to a very bad behavior in case of

Re: [Xen-devel] [RFC PATCH 9/23] Tools/libxl: Inform device model to create a guest with a vIOMMU device

2017-03-28 Thread Wei Liu
On Fri, Mar 17, 2017 at 07:27:09PM +0800, Lan Tianyu wrote: > From: Chao Gao > > A new device, xen_viommu, is added to qemu. In xen side, we can inform device > model to create a guest with a vIOMMU device through "-device xen_viommu" when > a viommu has been configurated in guest configuration f

Re: [Xen-devel] [RFC PATCH 5/23] Tools/libxc: Add viommu operations in libxc

2017-03-28 Thread Wei Liu
On Fri, Mar 17, 2017 at 07:27:05PM +0800, Lan Tianyu wrote: > From: Chao Gao > > In previous patch, we introduce a common vIOMMU layer. In our design, > we create/destroy vIOMMU through DMOP interface instead of creating it > according to a config flag of domain. It makes it is possible > to crea

Re: [Xen-devel] [PATCH v2 2/2] x86/io: move the list of guest to machine IO ports out of domain_iommu

2017-03-28 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 28 March 2017 14:12 > To: xen-de...@lists.xenproject.org > Cc: Roger Pau Monne ; Jan Beulich > ; Andrew Cooper ; Paul > Durrant > Subject: [PATCH v2 2/2] x86/io: move the list of guest to machine IO ports > out of domain_iommu > > There

Re: [Xen-devel] [PATCH v2 1/2] x86/io: rename misleading dpci_ prefixed functions to g2m_

2017-03-28 Thread Paul Durrant
> -Original Message- > From: Roger Pau Monne > Sent: 28 March 2017 14:12 > To: xen-de...@lists.xenproject.org > Cc: Roger Pau Monne ; Jan Beulich > ; Andrew Cooper ; Paul > Durrant > Subject: [PATCH v2 1/2] x86/io: rename misleading dpci_ prefixed functions > to g2m_ > > The dpci_ prefix

[Xen-devel] [RFC PATCH v2 23/25] ARM: NUMA: Initialize ACPI NUMA

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Call ACPI NUMA initialization under CONFIG_ACPI_NUMA. Signed-off-by: Vijaya Kumar --- xen/arch/arm/numa/acpi_numa.c | 28 +++- xen/arch/arm/numa/numa.c | 6 ++ xen/common/numa.c | 14 ++ xen/include/asm-arm/numa.h

[Xen-devel] [RFC PATCH v2 14/25] ARM: NUMA: Parse NUMA distance information

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Parse distance-matrix and fetch node distance information. Store distance information in node_distance[]. Register dt_node_distance() function pointer with the ARM numa code. This approach can be later used for ACPI. Signed-off-by: Vijaya Kumar K --- xen/arch/arm/bootfdt.

[Xen-devel] [RFC PATCH v2 22/25] ARM: NUMA: Extract proximity from SRAT table

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Register SRAT entry handler for type ACPI_SRAT_TYPE_GICC_AFFINITY to parse SRAT table and extract proximity for all CPU IDs. Signed-off-by: Vijaya Kumar --- xen/arch/arm/acpi/boot.c | 2 + xen/arch/arm/numa/acpi_numa.c | 126 +

[Xen-devel] [RFC PATCH v2 20/25] ARM: NUMA: Extract MPIDR from MADT table

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Parse MADT table and extract MPIDR for all CPU IDs in MADT ACPI_MADT_TYPE_GENERIC_INTERRUPT entries and store in cpuid_to_hwid_map[] This mapping is used by SRAT table parsing to extract MPIDR of the CPU ID. Signed-off-by: Vijaya Kumar --- xen/arch/arm/numa/Makefile|

[Xen-devel] [PATCH v2] xen: additionally restrict xenforeignmemory operations

2017-03-28 Thread Paul Durrant
Commit f0f272baf3a7 "xen: use libxendevice model to restrict operations" added a command-line option (-xen-domid-restrict) to limit operations using the libxendevicemodel API to a specified domid. The commit also noted that the restriction would be extended to cover operations issued via other xen

[Xen-devel] [RFC PATCH v2 21/25] ACPI: Move arch specific SRAT parsing

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K SRAT's X2APIC_CPU_AFFINITY and CPU_AFFINITY types are not used by ARM. Hence move handling of this SRAT types to arch specific file and handle them under arch_table_parse_srat(). Signed-off-by: Vijaya Kumar K --- xen/arch/arm/numa/acpi_numa.c | 5 + xen/arch/x86/srat.

[Xen-devel] [RFC PATCH v2 17/25] ARM: NUMA: Add fallback on NUMA failure

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K On NUMA initialization failure, reset all the NUMA structures to emulate as single node. Signed-off-by: Vijaya Kumar --- xen/arch/arm/numa/numa.c | 6 ++ 1 file changed, 6 insertions(+) diff --git a/xen/arch/arm/numa/numa.c b/xen/arch/arm/numa/numa.c index 7583a40..89

[Xen-devel] [RFC PATCH v2 25/25] NUMA: Enable ACPI_NUMA config

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Add CONFIG_ACPI_NUMA to xen/drivers/acpi/Kconfig and drop CONFIG_ACPI_NUMA set in asm-x86/config.h. Signed-off-by: Vijaya Kumar K --- xen/drivers/acpi/Kconfig | 4 xen/include/asm-x86/config.h | 1 - 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/xe

[Xen-devel] [RFC PATCH v2 24/25] NUMA: Move CONFIG_NUMA to common Kconfig

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K CONFIG_NUMA is defined in xen/drivers/acpi/Kconfig. Move to common/Kconfig and enabled by default. Also, NUMA feature uses PDX for physical address to memory node mapping. Hence make HAS_PDX dependent for NUMA. Signed-off-by: Vijaya Kumar K --- xen/common/Kconfig | 4

[Xen-devel] [RFC PATCH v2 19/25] ACPI: Refactor acpi SRAT and SLIT table handling code

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Move SRAT handling code which is common across architecture is moved to new file xen/drivers/acpi/srat.c from xen/arch/x86/srat.c file. New header file srat.h is introduced. Signed-off-by: Vijaya Kumar K --- xen/arch/x86/dom0_build.c | 1 + xen/arch/x86/mm.c

[Xen-devel] [RFC PATCH v2 18/25] ARM: NUMA: Do not expose numa info to DOM0

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Delete numa-node-id and distance map from DOM0 DT so that NUMA information is not exposed to DOM0. This helps particularly to boot Node 1 devices as if booting on Node0. However this approach has limitation where memory allocation for the devices should be local. Also, do n

[Xen-devel] [RFC PATCH v2 12/25] ARM: NUMA: Parse CPU NUMA information

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Parse CPU node and fetch numa-node-id information. For each node-id found, update nodemask_t mask. Refer to /Documentation/devicetree/bindings/numa.txt. Signed-off-by: Vijaya Kumar K --- xen/arch/arm/Makefile | 1 + xen/arch/arm/bootfdt.c | 16 -- xen/a

[Xen-devel] [RFC PATCH v2 15/25] ARM: NUMA: Add CPU NUMA support

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K For each cpu, update cpu_to_node[] with node id from the numa-node-id DT property. Also, initialize cpu_to_node[] with node 0. Add macros to access cpu_to_node[] information. Signed-off-by: Vijaya Kumar K --- xen/arch/arm/numa/numa.c | 21 + xen/arch

[Xen-devel] [RFC PATCH v2 16/25] ARM: NUMA: Add memory NUMA support

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Implement arch_sanitize_nodes_memory() which looks at all banks in bootinfo.mem, update nodes[] with corresponding nodeid. Call numa_scan_nodes() generic function with ram start and end address, which takes care of further computing memnodeshift and populating memnodemap[] us

[Xen-devel] [RFC PATCH v2 13/25] ARM: NUMA: Parse memory NUMA information

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Parse memory node and fetch numa-node-id information. For each memory range, store in node_memblk_range[] along with node id. When booting in UEFI mode, UEFI passes memory information to Dom0 using EFI memory descriptor table and deletes the memory nodes from the host DT. Ho

[Xen-devel] [RFC PATCH v2 10/25] x86: NUMA: Move numa code and make it generic

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Move code from xen/arch/x86/numa.c to xen/common/numa.c so that it can be used by other archs. Few generic static functions in x86/numa.c is made non-static common/numa.c The generic contents of header file asm-x86/numa.h are moved to xen/numa.h. Signed-off-by: Vijaya Kumar

[Xen-devel] [RFC PATCH v2 11/25] x86: NUMA: Move common code from srat.c

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Move code from xen/arch/x86/srat.c to xen/common/numa.c so that it can be used by other archs. Few generic static functions in x86/srat.c are made non-static common/numa.c Signed-off-by: Vijaya Kumar K --- xen/arch/x86/srat.c| 152 ++

[Xen-devel] [RFC PATCH v2 08/25] x86: NUMA: Sanitize node distance

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Introduce acpi_node_distance() and call from __node_distance(). This helps to implement arch specific __node_distance(). Also introduce LOCAL_DISTANCE & REMOTE DISTANCE macros. Signed-off-by: Vijaya Kumar K --- xen/arch/x86/srat.c| 13 + xen/include/xen/num

[Xen-devel] [RFC PATCH v2 09/25] ARM: NUMA: Add existing ARM numa code under CONFIG_NUMA

2017-03-28 Thread vijay . kilari
From: Vijaya Kumar K Right now CONFIG_NUMA is not enabled for ARM and existing code in asm-arm/numa.h is for !CONFIG_NUMA. Hence put this code under #ifndef CONFIG_NUMA. This help to make this changes work when CONFIG_NUMA is not enabled. Also define NODES_SHIFT macro for ARM to value 2. This l

  1   2   3   >