[Xen-devel] [PATCH v6 0/6] Support calling functions on dedicated physical cpu

2016-08-28 Thread Juergen Gross
Some hardware (e.g. Dell Studio laptops) require special functions to be called on physical cpu 0 in order to avoid occasional hangs. When running as dom0 under Xen this could be achieved only via special boot parameters (vcpu pinning) limiting the hypervisor in it's scheduling decisions. This pat

[Xen-devel] [PATCH v6 2/6] virt, sched: add generic vcpu pinning support

2016-08-28 Thread Juergen Gross
Add generic virtualization support for pinning the current vcpu to a specified physical cpu. As this operation isn't performance critical (a very limited set of operations like BIOS calls and SMIs is expected to need this) just add a hypervisor specific indirection. Signed-off-by: Juergen Gross -

[Xen-devel] [PATCH v6 1/6] xen: sync xen header

2016-08-28 Thread Juergen Gross
Import the actual version of include/xen/interface/sched.h from Xen. Signed-off-by: Juergen Gross Acked-by: David Vrabel --- include/xen/interface/sched.h | 100 ++ 1 file changed, 82 insertions(+), 18 deletions(-) diff --git a/include/xen/interface/sche

[Xen-devel] [PATCH v6 3/6] smp: add function to execute a function synchronously on a cpu

2016-08-28 Thread Juergen Gross
On some hardware models (e.g. Dell Studio 1555 laptop) some hardware related functions (e.g. SMIs) are to be executed on physical cpu 0 only. Instead of open coding such a functionality multiple times in the kernel add a service function for this purpose. This will enable the possibility to take sp

[Xen-devel] [PATCH v6 6/6] hwmon: use smp_call_on_cpu() for dell-smm i8k

2016-08-28 Thread Juergen Gross
Use the smp_call_on_cpu() function to call system management mode on cpu 0. Make call secure by adding get_online_cpus() to avoid e.g. suspend resume cycles in between. Signed-off-by: Juergen Gross --- V4: add call to get_online_cpus() --- drivers/hwmon/dell-smm-hwmon.c | 36

[Xen-devel] [PATCH v6 4/6] xen: add xen_pin_vcpu() to support calling functions on a dedicated pcpu

2016-08-28 Thread Juergen Gross
Some hardware models (e.g. Dell Studio 1555 laptops) require calls to the firmware to be issued on cpu 0 only. As Dom0 might have to use these calls, add xen_pin_vcpu() to achieve this functionality. In case either the domain doesn't have the privilege to make the related hypercall or the hypervis

[Xen-devel] [PATCH v6 5/6] dcdbas: make use of smp_call_on_cpu()

2016-08-28 Thread Juergen Gross
Use smp_call_on_cpu() to raise SMI on cpu 0. Make call secure by adding get_online_cpus() to avoid e.g. suspend resume cycles in between. Signed-off-by: Juergen Gross --- V4: add call to get_online_cpus() --- drivers/firmware/dcdbas.c | 51 --- 1 file

Re: [Xen-devel] [PATCH 0/3] tools: support autoballooning of xenstore domain

2016-08-28 Thread Juergen Gross
On 08/08/16 10:28, Juergen Gross wrote: > Support xenstore domain autoballooning by: > - adding --maxmem parameter to init-xenstore-domain > - build xenstore stubdom with Mini-OS CONFIG_BALLOON set > - add XENSTORE_MAX_DOMAIN_SIZE parameter to sysconfig.xencommons > > This series requires Mini-OS

[Xen-devel] [PATCH v2 0/3] mini-os: some cleanups

2016-08-28 Thread Juergen Gross
Do some cleanups in Mini-OS. V2: modified patch 2 as suggested by Andrew Cooper Juergen Gross (3): mini-os: cleanup x86_32.S mini-os: cleanup x86_64.S mini-os: remove unused functions from sched.c arch/x86/x86_32.S | 7 +-- arch/x86/x86_64.S | 43 +++--

[Xen-devel] [PATCH v2 2/3] mini-os: cleanup x86_64.S

2016-08-28 Thread Juergen Gross
arch/x86/x86_64.S contains some unnecessary macros. Remove them. Add a SAVE_PARAVIRT macro for saving %rcx and %r11 on the stack in case of CONFIG_PARAVIRT defined. Remove the parameter from HYPERVISOR_IRET macro as it is used with 0 only. Signed-off-by: Juergen Gross --- V2: modify SAVE_PARAVI

[Xen-devel] [PATCH v2 3/3] mini-os: remove unused functions from sched.c

2016-08-28 Thread Juergen Gross
sched.c contains some functions nobody is using. Remove them. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- sched.c | 48 1 file changed, 48 deletions(-) diff --git a/sched.c b/sched.c index 1e843d9..6f89ea4 100644 --- a/sched.c

[Xen-devel] [PATCH v2 1/3] mini-os: cleanup x86_32.S

2016-08-28 Thread Juergen Gross
arch/x86/x86_32.S has some superfluous instructions. Remove them. Signed-off-by: Juergen Gross Reviewed-by: Samuel Thibault --- arch/x86/x86_32.S | 7 +-- 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/arch/x86/x86_32.S b/arch/x86/x86_32.S index f70fc65..3de0027 100644 --- a/a

[Xen-devel] [linux-3.10 test] 100648: tolerable FAIL - PUSHED

2016-08-28 Thread osstest service owner
flight 100648 linux-3.10 real [real] http://logs.test-lab.xenproject.org/osstest/logs/100648/ Failures :-/ but no regressions. Regressions which are regarded as allowable (not blocking): build-amd64-rumpuserxen 6 xen-buildfail like 95869 build-i386-rumpuserxen

Re: [Xen-devel] [PATCH v3] xen: support enabling SMEP/SMAP for HVM only

2016-08-28 Thread He Chen
On Wed, Aug 24, 2016 at 04:01:53AM -0600, Jan Beulich wrote: > >>> On 19.08.16 at 12:20, wrote: > > Changes in v3: > > * Fix boot options. > > * Fix CR4 & mmu_cr4_features operations. > > * Disable SMEP/SMAP for Dom0. > > * Commit message refinement. > > Several of my comments on v3 did not get t

Re: [Xen-devel] [PATCH v5] x86/cpuid: AVX-512 Feature Detection

2016-08-28 Thread Kang, Luwei
> >>> On 23.08.16 at 03:54, wrote: > > AVX512 is an extention of AVX2. Its spec can be found at: > > https://software.intel.com/sites/default/files/managed/b4/3a/319433-02 > > 4.pdf This patch detects AVX512 features by CPUID. > > > > Signed-off-by: Luwei Kang > > Reviewed-by: Jan Beulich > >

Re: [Xen-devel] linux-4.7.* under xen-4.6.* gives "unhandled page fault (ec=0000)" at boot. -- Root cause found.

2016-08-28 Thread HÃ¥kon Alstadheim
Den 17. aug. 2016 21:56, I wrote (to xen-users, as I am no developer): > I'm on gentoo, running gentoo-sources kernel for dom0. > > I am unable to run gentoo-sources-4.7.{0,1}. I'm running under xen, > currently at 4.6.3-r1 I am now on linux gentoo-sources-4.7.2, and the bug is stil present. I ha

[Xen-devel] [linux-3.10 test] 100646: regressions - FAIL

2016-08-28 Thread osstest service owner
flight 100646 linux-3.10 real [real] http://logs.test-lab.xenproject.org/osstest/logs/100646/ Regressions :-( Tests which did not succeed and are blocking, including tests which could not be run: test-amd64-amd64-xl-qemut-stubdom-debianhvm-amd64-xsm 15 guest-localmigrate/x10 fail REGR. vs. 9586

[Xen-devel] [xen-unstable test] 100644: tolerable FAIL

2016-08-28 Thread osstest service owner
flight 100644 xen-unstable real [real] http://logs.test-lab.xenproject.org/osstest/logs/100644/ Failures :-/ but no regressions. Tests which are failing intermittently (not blocking): test-amd64-amd64-i386-pvgrub 6 xen-boot fail pass in 100642 test-armhf-armhf-xl-rtds 11

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

2016-08-28 Thread osstest service owner
flight 100645 xen-unstable-coverity real [real] http://logs.test-lab.xenproject.org/osstest/logs/100645/ Perfect :-) All tests in this flight passed as required version targeted for testing: xen 8bc02b47e5833c374b35618729d147d2980d4e05 baseline version: xen 94d3