[Xen-devel] [PATCH] Fix the KDD_LOG statements to use appropriate format specifier for printing uint64_t

2019-11-30 Thread Julian Tuminaro
Previous commit in kdd.c had a small issue which lead to warning/error while compiling on 32-bit systems due to mismatch of type size while doing type cast from uint64_t to void * Signed-off-by: Jenish Rakholiya Signed-off-by: Julian Tuminaro --- tools/debugger/kdd/kdd.c | 11 +-- 1 f

[Xen-devel] [xen-4.9-testing test] 144381: regressions - trouble: fail/pass/starved

2019-11-30 Thread osstest service owner
flight 144381 xen-4.9-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/144381/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 10 debian-hvm-install fail REGR. vs. 139047 test-amd64-amd

Re: [Xen-devel] [PATCH for-4.13] x86/AMD: unbreak CPU hotplug on AMD systems without RstrFpErrPtrs

2019-11-30 Thread Roger Pau Monné
On Fri, Nov 29, 2019 at 08:01:17PM +, Igor Druzhinin wrote: > If the feature is not present Xen will try to force X86_BUG_FPU_PTRS > feature at CPU identification time. This is especially noticeable in > PV-shim that usually hotplugs its vCPUs. We either need to restrict this > action for boot

Re: [Xen-devel] [PATCH v4 6/8] x86: switch xen guest implementation to use hypervisor framework

2019-11-30 Thread Wei Liu
On Fri, Nov 29, 2019 at 02:50:18PM +0100, Jan Beulich wrote: > On 21.11.2019 19:50, Wei Liu wrote: > > +void __init hypervisor_setup(void) > > +{ > > +if ( hops && hops->setup ) > > +hops->setup(); > > +} > > + > > +void hypervisor_ap_setup(void) > > +{ > > +if ( hops && hops->ap_se

Re: [Xen-devel] [PATCH v4 4/8] x86: introduce hypervisor framework

2019-11-30 Thread Wei Liu
On Fri, Nov 29, 2019 at 06:08:16PM +, Andrew Cooper wrote: > On 21/11/2019 18:50, Wei Liu wrote: > > +#include > > + > > +#include > > +#include > > + > > +static const struct hypervisor_ops __read_mostly *hops; > > Could I talk you into using just plain 'ops' here.  This is mostly > plumbi

Re: [Xen-devel] [PATCH v4 7/8] x86: be more verbose when running on a hypervisor

2019-11-30 Thread Wei Liu
On Fri, Nov 29, 2019 at 06:15:52PM +, Andrew Cooper wrote: > On 21/11/2019 18:50, Wei Liu wrote: > > Also replace xen_guest with running_on_hypervisor boolean. > > I agree with dropping xen_guest, but... > > > > > Signed-off-by: Wei Liu > > --- > > Changes in v4: > > 1. Access ->name directl

[Xen-devel] [PATCH v5 3/8] x86: drop hypervisor_cpuid_base

2019-11-30 Thread Wei Liu
The only user is Xen specific code in PV shim. We can therefore export the variable directly. Move __read_mostly to its standard place while at it. Signed-off-by: Wei Liu Reviewed-by: Roger Pau Monné Acked-by: Jan Beulich --- xen/arch/x86/guest/xen/xen.c| 7 +-- xen/arch/x86/pv/shim.c

[Xen-devel] [PATCH v5 1/8] x86: introduce CONFIG_GUEST and move code

2019-11-30 Thread Wei Liu
Xen is able to run as a guest on Xen. We plan to make it able to run on Hyper-V as well. Introduce CONFIG_GUEST which is set to true if either running on Xen or Hyper-V is desired. Restructure code hierarchy for new code to come. No functional change intended. Signed-off-by: Wei Liu Reviewed-by

[Xen-devel] [PATCH v5 2/8] x86: add missing headers in hypercall.h

2019-11-30 Thread Wei Liu
Include asm_defns.h because ASM_CALL_CONSTRAINT is defined there. Include xen/lib.h because we need ASSERT_UNREACHABLE. No functional change. Signed-off-by: Wei Liu Reviewed-by: Roger Pau Monné Acked-by: Jan Beulich --- xen/include/asm-x86/guest/hypercall.h | 4 1 file changed, 4 insert

[Xen-devel] [PATCH v5 5/8] x86: rename hypervisor_{alloc, free}_unused_page

2019-11-30 Thread Wei Liu
They are used in Xen code only. No functional change. Signed-off-by: Wei Liu Reviewed-by: Paul Durrant Acked-by: Jan Beulich --- xen/arch/x86/guest/xen/xen.c| 6 +++--- xen/arch/x86/pv/shim.c | 4 ++-- xen/include/asm-x86/guest/xen.h | 4 ++-- 3 files changed, 7 insertions(+), 7

[Xen-devel] [PATCH v5 0/8] Port Xen to Hyper-V

2019-11-30 Thread Wei Liu
Please see individual patches for changes Cc: Jan Beulich Cc: Andrew Cooper

[Xen-devel] [PATCH v5 6/8] x86: switch xen guest implementation to use hypervisor framework

2019-11-30 Thread Wei Liu
Signed-off-by: Wei Liu --- Changes in v5: 1. xen_probe -> xg_probe 2. Drop xen_ prefix for private functions --- xen/arch/x86/guest/hypervisor.c | 27 +- xen/arch/x86/guest/xen/pvh-boot.c | 2 +- xen/arch/x86/guest/xen/xen.c | 47 ++- xen/arch/x

[Xen-devel] [PATCH v5 7/8] x86: be more verbose when running on a hypervisor

2019-11-30 Thread Wei Liu
Also replace reference to xen_guest. Signed-off-by: Wei Liu --- Changes in v5: 1. Cache and use hypervisor name instead --- xen/arch/x86/setup.c | 7 +-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/xen/arch/x86/setup.c b/xen/arch/x86/setup.c index a6b354c29f..fc049eaac8 100

[Xen-devel] [PATCH v5 4/8] x86: introduce hypervisor framework

2019-11-30 Thread Wei Liu
We will soon implement Hyper-V support for Xen. Add a framework for that. This requires moving some of the hypervisor_* functions from xen.h to hypervisor.h. Signed-off-by: Wei Liu --- Changes in v5: 1. Make hypervisor_probe return const char *. Changes in v4: 1. Add ASSERT_UNREACHABLE to stubs

[Xen-devel] [PATCH v5 8/8] x86: introduce CONFIG_HYPERV and detection code

2019-11-30 Thread Wei Liu
We use the same code structure as we did for Xen. As starters, detect Hyper-V in probe routine. More complex functionalities will be added later. Signed-off-by: Wei Liu Reviewed-by: Paul Durrant Acked-by: Jan Beulich --- xen/arch/x86/Kconfig | 8 + xen/arch/x86/guest/Makefi

[Xen-devel] [qemu-upstream-4.13-testing baseline test] 144391: tolerable FAIL

2019-11-30 Thread osstest service owner
"Old" tested version had not actually been tested; therefore in this flight we test it, rather than a new candidate. The baseline, if any, is the most recent actually tested revision. flight 144391 qemu-upstream-4.13-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/144391/ Fa

Re: [Xen-devel] [PATCH v2 0/2] x86: clank build check adjustments

2019-11-30 Thread Doug Goldstein
On 11/15/19 8:45 AM, Roger Pau Monné wrote: On Fri, Nov 15, 2019 at 11:43:21AM +0100, Jan Beulich wrote: 1: fix clang .macro retention check 2: clang: move and fix .skip check For both: Tested-by: Roger Pau Monné [On FreeBSD and Debian 9.5] Reviewed-by: Roger Pau Monné Note there's a typo

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

2019-11-30 Thread osstest service owner
flight 144396 qemu-mainline real [real] http://logs.test-lab.xenproject.org/osstest/logs/144396/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-amd64-amd64-xl-rtds 18 guest-localmigrate/x10 fail like 144316 test-amd64-amd64-xl-qemuu-win7-amd6

[Xen-devel] [xen-4.13-testing test] 144402: tolerable FAIL - PUSHED

2019-11-30 Thread osstest service owner
flight 144402 xen-4.13-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/144402/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): test-armhf-armhf-xl-rtds16 guest-start/debian.repeat fail REGR. vs. 144399 Tests which did not suc

[Xen-devel] [libvirt test] 144408: tolerable all pass - PUSHED

2019-11-30 Thread osstest service owner
flight 144408 libvirt real [real] http://logs.test-lab.xenproject.org/osstest/logs/144408/ Failures :-/ but no regressions. Tests which did not succeed, but are not blocking: test-armhf-armhf-libvirt 14 saverestore-support-checkfail like 144304 test-armhf-armhf-libvirt-raw 13 saveresto

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

2019-11-30 Thread osstest service owner
flight 144409 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/144409/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: build-i3866 xen-buildfail REGR. vs. 144377 build-i386-xsm

[Xen-devel] [xen-4.8-testing test] 144410: regressions - trouble: fail/pass/starved

2019-11-30 Thread osstest service owner
flight 144410 xen-4.8-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/144410/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 10 debian-hvm-install fail REGR. vs. 138829 Tests which ar

[Xen-devel] [xen-4.9-testing test] 144412: regressions - trouble: fail/pass/starved

2019-11-30 Thread osstest service owner
flight 144412 xen-4.9-testing real [real] http://logs.test-lab.xenproject.org/osstest/logs/144412/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-qemuu-nested-intel 10 debian-hvm-install fail REGR. vs. 139047 Tests which di