Re: [PATCH v3 02/16] mm/compaction: support non-lru movable page migration

2016-04-06 Thread Minchan Kim
On Mon, Apr 04, 2016 at 03:24:34PM +0200, Vlastimil Babka wrote: > On 04/04/2016 07:12 AM, Minchan Kim wrote: > >On Fri, Apr 01, 2016 at 11:29:14PM +0200, Vlastimil Babka wrote: > >>Might have been better as a separate migration patch and then a > >>compaction patch. It's prefixed mm/compaction, bu

Re: [PATCH v3 03/16] mm: add non-lru movable page support document

2016-04-06 Thread Minchan Kim
On Mon, Apr 04, 2016 at 03:09:22PM +0200, Vlastimil Babka wrote: > On 04/04/2016 04:25 AM, Minchan Kim wrote: > >> > >>Ah, I see, so it's designed with page lock to handle the concurrent > >>isolations etc. > >> > >>In http://marc.info/?l=linux-mm&m=143816716511904&w=2 Mel has warned > >>about doi

Re: [PATCH v5 3/6] smp: add function to execute a function synchronously on a cpu

2016-04-06 Thread Peter Zijlstra
On Wed, Apr 06, 2016 at 04:17:43PM +0200, Juergen Gross wrote: > 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

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

2016-04-06 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

[PATCH v5 3/6] smp: add function to execute a function synchronously on a cpu

2016-04-06 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

[PATCH v5 0/6] Support calling functions on dedicated physical cpu

2016-04-06 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

[PATCH v5 2/6] virt, sched: add generic vcpu pinning support

2016-04-06 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 -

[PATCH v5 1/6] xen: sync xen header

2016-04-06 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

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

2016-04-06 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 | 35

[PATCH v5 5/6] dcdbas: make use of smp_call_on_cpu()

2016-04-06 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: [virtio-dev] virtio-vsock live migration

2016-04-06 Thread Michael S. Tsirkin
On Wed, Apr 06, 2016 at 01:55:50PM +0100, Stefan Hajnoczi wrote: > On Wed, Mar 16, 2016 at 05:05:19PM +0200, Michael S. Tsirkin wrote: > > > > > NFS and netperf are the first two protocols I looked > > > > >at and both transmit address information across the connection... > > > > > > > > > >

Re: [virtio-dev] virtio-vsock live migration

2016-04-06 Thread Stefan Hajnoczi
On Wed, Mar 16, 2016 at 05:05:19PM +0200, Michael S. Tsirkin wrote: > > > > NFS and netperf are the first two protocols I looked > > > >at and both transmit address information across the connection... > > > > > > > > > Does netperf really attempt to get local IP > > > and then send that inl

Re: [PATCH v3 01/16] mm: use put_page to free page instead of putback_lru_page

2016-04-06 Thread Vlastimil Babka
On 04/06/2016 02:54 AM, Naoya Horiguchi wrote: > On Tue, Apr 05, 2016 at 10:20:50AM +0200, Vlastimil Babka wrote: >> >> So you agree that this race is a bug? It may turn a soft-offline attempt >> into a killed process. In that case we should fix it the same as we are >> fixing the failed migration