[Xen-devel] [PATCH V7] x86/altp2m: Hypercall to set altp2m view visibility

2020-03-29 Thread Alexandru Isaila
At this moment a guest can call vmfunc to change the altp2m view. This should be limited in order to avoid any unwanted view switch. The new xc_altp2m_set_visibility() solves this by making views invisible to vmfunc. This is done by having a separate arch.altp2m_working_eptp that is populated and

Re: [Xen-devel] [PATCH v5 01/10] x86emul: support AVX512_BF16 insns

2020-03-29 Thread Jan Beulich
On 27.03.2020 19:20, Andrew Cooper wrote: > On 24/03/2020 12:30, Jan Beulich wrote: >> --- a/tools/tests/x86_emulator/evex-disp8.c >> +++ b/tools/tests/x86_emulator/evex-disp8.c >> @@ -550,6 +550,12 @@ static const struct test avx512_4vnniw_5 >> INSN(p4dpwssds, f2, 0f38, 53, el_4, d, vl), >>

Re: [Xen-devel] [PATCH V6] x86/altp2m: Hypercall to set altp2m view visibility

2020-03-29 Thread Isaila Alexandru
On 27.03.2020 04:30, Tian, Kevin wrote: From: Isaila Alexandru Sent: Tuesday, March 24, 2020 6:46 PM Hi Kevin and sorry for the long reply time, On 10.03.2020 04:04, sTian, Kevin wrote: From: Alexandru Stefan ISAILA Sent: Tuesday, March 3, 2020 8:23 PM At this moment a guest can call v

[Xen-devel] [qemu-mainline test] 149156: regressions - trouble: fail/pass/starved

2020-03-29 Thread osstest service owner
flight 149156 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/149156/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemuu-dmrestrict-amd64-dmrestrict 10 debian-hvm-install fail REGR. vs. 14486

[Xen-devel] [xen-unstable test] 149151: tolerable trouble: fail/pass/starved - PUSHED

2020-03-29 Thread osstest service owner
flight 149151 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/149151/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-amd64-amd64-xl-rtds 18 guest-localmigrate/x10 fail REGR. vs. 148925 test-armhf-armhf-xl-rtds

Re: [Xen-devel] Tools build failure with gcc-9.2.1

2020-03-29 Thread Julien Grall
On 25/03/2020 09:40, Dario Faggioli wrote: Hello, Hi Dario, Are the following errors (and more similar ones): CC xenctrl_stubs.o In file included from /usr/lib64/ocaml/caml/alloc.h:24, from xenctrl_stubs.c:22: xenctrl_stubs.c: In function 'stub_xc_vcpu_context_g

[Xen-devel] [seabios test] 149140: regressions - FAIL

2020-03-29 Thread osstest service owner
flight 149140 seabios real [real] http://logs.test-lab.xenproject.org/osstest/logs/149140/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 17 debian-hvm-install/l1/l2 fail REGR. vs. 148666 Tests which did

Re: [Xen-devel] [PATCH 3/3] xen/x86: ioapic: Simplify ioapic_init()

2020-03-29 Thread Julien Grall
Hi Wei, On 29/03/2020 15:35, Wei Liu wrote: On Fri, Mar 27, 2020 at 07:05:46PM +, Julien Grall wrote: From: Julien Grall Since commit 9facd54a45 "x86/ioapic: Add register level checks to detect bogus io-apic entries", Xen is able to cope with IO APICs not mapped in the fixmap. Therefore

Re: [Xen-devel] [PATCH 0/5] use new API for Xen page tables

2020-03-29 Thread Wei Liu
On Mon, Mar 23, 2020 at 09:41:37AM +, Hongyan Xia wrote: > From: Hongyan Xia > > This small series is basically just rewriting functions using the new > API to map and unmap PTEs. Each patch is independent. > > Apart from mapping and unmapping page tables, no other functional change > intend

[Xen-devel] [libvirt test] 149154: regressions - FAIL

2020-03-29 Thread osstest service owner
flight 149154 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/149154/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-amd64-libvirt 6 libvirt-buildfail REGR. vs. 146182 build-i386-libvirt

Re: [Xen-devel] [PATCH v8 1/3] x86/tlb: introduce a flush HVM ASIDs flag

2020-03-29 Thread Wei Liu
On Fri, Mar 20, 2020 at 07:42:38PM +0100, Roger Pau Monne wrote: > Introduce a specific flag to request a HVM guest linear TLB flush, > which is an ASID/VPID tickle that forces a guest linear to guest > physical TLB flush for all HVM guests. > > This was previously unconditionally done in each pre

Re: [Xen-devel] [PATCH 3/3] xen/x86: ioapic: Simplify ioapic_init()

2020-03-29 Thread Wei Liu
On Fri, Mar 27, 2020 at 07:05:46PM +, Julien Grall wrote: > From: Julien Grall > > Since commit 9facd54a45 "x86/ioapic: Add register level checks to detect > bogus io-apic entries", Xen is able to cope with IO APICs not mapped in > the fixmap. > > Therefore the whole logic to allocate a fake

Re: [Xen-devel] [PATCH] xen/x86: Compress lines for immediate return

2020-03-29 Thread Wei Liu
On Sun, Mar 29, 2020 at 02:46:57PM +0100, Wei Liu wrote: > On Sun, Mar 29, 2020 at 11:46:08AM +0530, Simran Singhal wrote: > > diff --git a/xen/arch/x86/oprofile/op_model_athlon.c > > b/xen/arch/x86/oprofile/op_model_athlon.c > > index 5c48f868ae..2bc0d04a1f 100644 > > --- a/xen/arch/x86/oprofile/

Re: [Xen-devel] [PATCH] xen/x86: Remove parentheses from return arguments

2020-03-29 Thread Wei Liu
On Sun, Mar 29, 2020 at 12:07:47PM +0530, Simran Singhal wrote: > This patch remove unnecessary parentheses from return arguments. > > Signed-off-by: Simran Singhal Reviewed-by: Wei Liu

Re: [Xen-devel] [PATCH] xen/x86: Use min macro instead of ternary operator

2020-03-29 Thread Wei Liu
On Sun, Mar 29, 2020 at 12:08:39PM +0100, Julien Grall wrote: > Hi, > > On 29/03/2020 08:22, Simran Singhal wrote: > > Replace ternary operator with macro min as it is shorter and > > thus increases code readability. Macro min return the minimum of the > > two compared values. > > While I underst

Re: [Xen-devel] [PATCH] xen/x86: Compress lines for immediate return

2020-03-29 Thread Wei Liu
On Sun, Mar 29, 2020 at 11:46:08AM +0530, Simran Singhal wrote: > diff --git a/xen/arch/x86/oprofile/op_model_athlon.c > b/xen/arch/x86/oprofile/op_model_athlon.c > index 5c48f868ae..2bc0d04a1f 100644 > --- a/xen/arch/x86/oprofile/op_model_athlon.c > +++ b/xen/arch/x86/oprofile/op_model_athlon.c >

Re: [Xen-devel] [PATCH v2] xen/x86: Remove unnecessary cast on void pointer

2020-03-29 Thread Wei Liu
On Sun, Mar 29, 2020 at 10:25:12AM +0530, Simran Singhal wrote: > Assignment to a typed pointer is sufficient in C. > No cast is needed. > > Also, changed some u64/u32 to uint64_t/uint32_t. > > Signed-off-by: Simran Singhal > --- > Changes in v2: > - Took the chance to change some uintX to

Re: [Xen-devel] [PATCH] xen/x86: Use min macro instead of ternary operator

2020-03-29 Thread Julien Grall
Hi, On 29/03/2020 08:22, Simran Singhal wrote: Replace ternary operator with macro min as it is shorter and thus increases code readability. Macro min return the minimum of the two compared values. While I understand the ternary operator is doing exactly the same as a min(), I read the curren

[Xen-devel] [linux-5.4 test] 149134: regressions - trouble: fail/pass/starved

2020-03-29 Thread osstest service owner
flight 149134 linux-5.4 real [real] http://logs.test-lab.xenproject.org/osstest/logs/149134/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 17 debian-hvm-install/l1/l2 fail REGR. vs. 146121 Regressions w

[Xen-devel] [xen-unstable-coverity test] 149162: all pass - PUSHED

2020-03-29 Thread osstest service owner
flight 149162 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/149162/ Perfect :-) All tests in this flight passed as required version targeted for testing: xen e19b4b3b55f84e0cfcc02fe5d66965969a81c965 baseline version: xen 0537

[Xen-devel] [linux-linus test] 149130: regressions - trouble: fail/pass/starved

2020-03-29 Thread osstest service owner
flight 149130 linux-linus real [real] http://logs.test-lab.xenproject.org/osstest/logs/149130/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 17 debian-hvm-install/l1/l2 fail REGR. vs. 133580 test-amd64-

[Xen-devel] [PATCH] xen/x86: Use min macro instead of ternary operator

2020-03-29 Thread Simran Singhal
Replace ternary operator with macro min as it is shorter and thus increases code readability. Macro min return the minimum of the two compared values. Signed-off-by: Simran Singhal --- xen/arch/x86/bzimage.c| 2 +- xen/arch/x86/mm.c | 2 +- xen/arch/x86/mm/p2m-ept.c | 2 +- 3 files c