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

2016-08-29 Thread Samuel Thibault
Wei Liu, on Mon 29 Aug 2016 09:51:52 +0100, wrote: > On Mon, Aug 29, 2016 at 08:17:21AM +0200, Juergen Gross wrote: > > 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.

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

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

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

2016-08-29 Thread Jan Beulich
>>> On 29.08.16 at 04:47, wrote: > On Wed, Aug 24, 2016 at 04:01:53AM -0600, Jan Beulich wrote: >> >>> On 19.08.16 at 12:20, wrote: >> > @@ -1403,12 +1437,12 @@ void __init noreturn __start_xen(unsigned long >> > mbi_p) >> > >> > if (

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

2016-08-29 Thread Wei Liu
On Mon, Aug 29, 2016 at 08:22:14AM +0200, Juergen Gross wrote: > 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

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

2016-08-29 Thread Wei Liu
On Mon, Aug 29, 2016 at 08:17:21AM +0200, Juergen Gross wrote: > 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

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

2016-08-29 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

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

2016-08-29 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 3/6] smp: add function to execute a function synchronously on a cpu

2016-08-29 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

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

2016-08-29 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

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

2016-08-29 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-29 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

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

2016-08-29 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

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

2016-08-29 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-29 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-29 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:

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

2016-08-29 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

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

2016-08-29 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

<    1   2