[PATCH] Allow NBD to be used locally

2008-02-01 Thread Laurent Vivier
This patch allows Network Block Device to be mounted locally. It creates a kthread to avoid the deadlock described in NBD tools documentation. So, if nbd-client hangs waiting pages, the kblockd thread can continue its work and free pages. Signed-off-by: Laurent Vivier <[EMAIL PROTEC

Re: [PATCH] Allow NBD to be used locally

2008-02-02 Thread Laurent Vivier
Le samedi 02 février 2008 à 12:23 +0100, Pavel Machek a écrit : > On Fri 2008-02-01 14:25:32, Laurent Vivier wrote: > > This patch allows Network Block Device to be mounted locally. > > What is local nbd good for? Use loop instead... It allows to write userlevel block device. In

Re: [PATCH 1/4] swim: Release memory region after incorrect return/goto

2013-06-04 Thread Laurent Vivier
(res->start, resource_size(res)); if (!swim_base) { - return -ENOMEM; + ret = -ENOMEM; goto out_release_io; } Reviewed-by: Laurent Vivier -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in

Re: Linux AIO status & todo

2005-08-23 Thread Laurent Vivier
ant to merge libposix-aio in glibc, we should use existing mechanism, and it should be easy to put POSIX AIO helper thread portions inside the timer helper thread. But only the glibc maintainer can answer to this question: should we mixe timer and AIO code ? Laurent -- -- Laurent V

Re: [PATCH] documentation: Add desc of new cpu fields in /proc/stat

2008-01-29 Thread Laurent Vivier
Hi, good thing, but could you update too "Table 1-3: Contents of the stat files" with fields added by 9ac52315d4cf5f561f36dabaf0720c00d3553162 . Thank you, Laurent On mar, 2008-01-29 at 19:43 +1100, AP wrote: > Today I noticed that a new field cropped up in /proc/stat. The git patch > that made

[PATCH 2/2][KVM] modify account_system_time() to add cputime to cpustat->guest

2007-08-10 Thread Laurent Vivier
d user to allow an unmodified "top(1)" to display correct value. A modified "top(1)" is able to display good cpu user time and cpu guest time by subtracting cpu guest time from cpu user time. Signed-Off-by: Laurent Vivier <[EMAIL PROTECTED]>

[PATCH 1/2][KVM] introduce a new field in cpustat

2007-08-10 Thread Laurent Vivier
introduce a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify /proc/stat to display this new field. Signed-Off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard&

[PATCH 0/2][KVM] guest time accounting

2007-08-10 Thread Laurent Vivier
e duplicate VCPU time between guest and user to allow an unmodified "top(1)" to display correct value. A modified "top(1)" is able to display good cpu user time and cpu guest time by subtracting cpu guest time from cpu user time. Signed-Off-by: Laurent Vivier <[

Re: [PATCH 2/2][KVM] modify account_system_time() to add cputime to cpustat->guest

2007-08-10 Thread Laurent Vivier
You can find attached to this email the patch to apply to procps-3.2.7[1] to allow "top(1)" to display the cpu guest time. Laurent [1] http://procps.sf.net/procps-3.2.7.tar.gz -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth Index: procps-3.2.7/top.c

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> The aim of these two patches is to measure the CPU time used by a virtual >> machine. All comments are welcome... I'm not sure it's the good way to >> do that. >> >> [PATCH 1/2] introduce a new field, "

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >>> - perhaps the new fields should be guarded by a #ifdef CONFIG_HYPERVISOR >>> (selected by CONFIG_KVM)? that way the (minor) additional overhead is >>> only incurred if it can possibly be used. I imagine that our cani

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Christian Borntraeger wrote: > Am Freitag, 10. August 2007 schrieb Laurent Vivier: >> The aim of these two patches is to measure the CPU time used by a virtual >> machine. All comments are welcome... I'm not sure it's the good way to do > that. > > I did

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Christian Borntraeger wrote: > Am Montag, 13. August 2007 schrieb Laurent Vivier: >>>> As guest accounting is hw dependent, I think we should add a hook in the >>>> accounting functions. >>>> >>> Isn't PF_VM exactly such a hook? All the hy

Re: [kvm-devel] [PATCH 0/2][KVM] guest time accounting

2007-08-13 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> Christian Borntraeger wrote: >> >>> Am Freitag, 10. August 2007 schrieb Laurent Vivier: >>> >>>> The aim of these two patches is to measure the CPU time used by a >>>> virtual >>>

[PATCH/RFC 0/4]Virtual Machine time accounting

2007-08-16 Thread Laurent Vivier
Modify KVM to use the "account modifiers". KVM can now measure time consumed by a Virtual Machine on a per-cpu basis and modify kernel statistics to report this value. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- &

[PATCH/RFC 1/4]Introduce a new field "guest" in cpustat

2007-08-16 Thread Laurent Vivier
[PATCH 1/4] as modern CPUs introduce a third running state, after "user" and "system", we need a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify /proc/stat to display this new field. Signed-off-by: La

[PATCH/RFC 2/4]Introduce a new field "guest" in task_struct

2007-08-16 Thread Laurent Vivier
PATCH 2/4] like for cpustat, introduce the "guest" and "cguest" fields for the tasks. Modify signal_struct and task_struct. Modify /proc//stat to display these new field Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] ---

[PATCH/RFC 3/4]Introduce "account modifiers" mechanism

2007-08-16 Thread Laurent Vivier
ons registered by a module to modify the cputime value. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth Index: kvm/include/linux/sched.h ==

[PATCH/RFC 4/4]Modify KVM to use the "account modifiers"

2007-08-16 Thread Laurent Vivier
[PATCH 4/4] Modify KVM to use the "account modifiers". KVM can now measure time consumed by a Virtual Machine on a per-cpu basis and modify kernel statistics to report this value. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- -

Re: [PATCH/RFC 3/4]Introduce "account modifiers" mechanism

2007-08-17 Thread Laurent Vivier
Rusty Russell wrote: > On Thu, 2007-08-16 at 17:58 +0200, Laurent Vivier wrote: >> [PATCH 3/3] introduce "account modifiers" mechanism in the kernel allowing a >> module to modify the collected accounting for a given task. This >> implementation >&

Re: [PATCH/RFC 3/4]Introduce "account modifiers" mechanism

2007-08-17 Thread Laurent Vivier
Rusty Russell wrote: > On Fri, 2007-08-17 at 09:35 +0200, Laurent Vivier wrote: >> Rusty Russell wrote: >>> Hi Laurent, >> Hi Rusty, >> how are your puppies ? > > They're getting a little fat, actually. Too many features ... > >> - remove PATCH

Re: [PATCH/RFC 4/4, second shot]KVM uses "account_guest_time()"

2007-08-17 Thread Laurent Vivier
KVM updates vtime in task_struct to allow account_guest_time() to modify user, system and guest time in cpustat accordingly. Index: kvm/drivers/kvm/Kconfig === --- kvm.orig/drivers/kvm/Kconfig2007-08-17 10:24:46.0 +0200

[PATCH/RFC 3/4, second shot]Introduce "account_guest_time"

2007-08-17 Thread Laurent Vivier
This is another way to compute guest time... I remove the "account modifiers" mechanism and call directly account_guest_time() from account_system_time(). account_system_time() computes user, system and guest times according value accumulated in vtime (a ktime_t) in task_struct by the virtual machi

Re: [kvm-devel] [PATCH/RFC 3/4]Introduce "account modifiers" mechanism

2007-08-17 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >>> >>>> - remove PATCH 3, and add in task_struct a "ktime vtime" where we >>>> accumulate >>>> guest time (by calling something like guest_enter() and guest_exit() from >>>> the

Re: [kvm-devel] [PATCH/RFC 4/4, second shot]KVM uses "account_guest_time()"

2007-08-17 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> KVM updates vtime in task_struct to allow account_guest_time() to modify >> user, >> system and guest time in cpustat accordingly. >> > >> --- kvm.orig/drivers/kvm/Kconfig 2007-08-17 10:24:46.0 +0200

Re: [kvm-devel] [PATCH/RFC 3/4]Introduce "account modifiers" mechanism

2007-08-17 Thread Laurent Vivier
Avi Kivity wrote: [...] > > The normal user/system accounting has the same issue, no? Whereever we > happen to land (kernel or user) gets the whole tick. > > So I think it is okay to have the same limitation for guest time. > So this is how it looks like. PATCH 1 and 2 are always a prerequisit

Re: Fix guest time accounting going faster than user time accounting

2007-10-18 Thread Laurent Vivier
Acked-by: Laurent Vivier <[EMAIL PROTECTED]> Christian Borntraeger a écrit : Seems I overlooked this type while reviewing Laurents patch. cputime_add already adds, dont do it twice. Avi. This should go to Linus before 2.6.24. Signed-off-by: Christian Borntraeger <[EMAIL PROTECTED]&

Re: [kvm-devel] severe bug in 2.6.23+ kvm.git

2007-10-19 Thread Laurent Vivier
Christian Borntraeger a écrit : Am Freitag, 19. Oktober 2007 schrieb Jan Engelhardt: On Oct 19 2007 15:44, Carsten Otte wrote: Carsten Otte wrote: First thing we do, is figure whether or not 2.6.23.1 as released breaks our system too. This way, we can either focus on differences between Linus

Re: [kvm-devel] severe bug in 2.6.23+ kvm.git

2007-10-19 Thread Laurent Vivier
Carsten Otte a écrit : Laurent Vivier wrote: How do you know the problem has been introduced by kvm ? I don't. In fact I think it has not been introduced by kvm. All I stated, is that we experienced the problem when running the kvm.git kernel after the 2.6.23 update that has not been pr

Re: [kvm-devel] severe bug in 2.6.23+ kvm.git

2007-10-19 Thread Laurent Vivier
Carsten Otte a écrit : Aurelien Jarno wrote: Could you please precise what is corrupted? The guest disk image? As stated, we actually did not run any guests and did not load the kvm kernel modules. The host root file system gets corrupted to an extend not correctable by the file system checker

Re: [PATCH 00/11] KVM updates for Linux 2.6.24-rc review

2007-10-21 Thread Laurent Vivier
ction fails in writeback(). commit 6de232e39be372f85bea96eb741962acc7fcb1f7 Author: Laurent Vivier <[EMAIL PROTECTED]> Date: Mon Oct 1 11:01:06 2007 +0200 KVM: x86 emulator: Correct management of REP prefix This patch corrects some errors appearing when we have an emulat

Re: [kvm-devel] [PATCH 00/11] KVM updates for Linux 2.6.24-rc review

2007-10-21 Thread Laurent Vivier
Avi Kivity a écrit : Laurent Vivier wrote: Avi Kivity a écrit : Avi Kivity wrote: The following patches fix fallout from the main 2.6.24 KVM merge. An exception is the movnti emulation patch, which adds support for Linux 2.6.16 guests. The patches can be found in kvm.git in the branch kvm

Re: [RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-10-15 Thread Laurent Vivier
Avi Kivity wrote: > Ingo Molnar wrote: >> * Avi Kivity <[EMAIL PROTECTED]> wrote: >> >> >>> This bit can go; for the external module I can add it back in >>> external-module-compat.h. No need to pollute mainline with backward >>> compatibility stuff. >>> >> >> hm: >> >> static inline void k

Re: [RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-10-15 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> Avi Kivity wrote: >> >>> Ingo Molnar wrote: >>> >>>> * Avi Kivity <[EMAIL PROTECTED]> wrote: >>>> >>>> >>>> >>>>> This bit can go; for

Re: [RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-10-15 Thread Laurent Vivier
Christian Borntraeger wrote: > Am Montag, 15. Oktober 2007 schrieb Avi Kivity: >> We can clear it a bit later, after local_irq_enable() in __vcpu_run(). >> However we need a nop instruction first because "sti" keeps interrupts >> disabled for one more instruction. > > Ah, I see. The host interr

Re: [RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-10-15 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: > > > >>> But if we didn't get an interrupt in that time? >>> >>> We can clear it a bit later, after local_irq_enable() in >>> __vcpu_run(). However we need a nop instruction first because

Re: [RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-10-15 Thread Laurent Vivier
Christian Borntraeger wrote: > Am Montag, 15. Oktober 2007 schrieb Laurent Vivier: >>> Any idea how to make this proper on all architectures? I will have a look. >> I think the solution is to have an arch dependent kvm_guest_exit(): empty for >> x86, clearing the bit for s

Re: [RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-10-15 Thread Laurent Vivier
No more comments: I agree. We can move the "&= ~PF_VCPU" to kvm_guest_exit() and remove it from account_system_time(). Moreover it will simplify the code for s390... Regards, Laurent Avi Kivity wrote: Laurent Vivier wrote: Avi Kivity wrote: Laurent Vivier wrote:

[PATCH] clear PF_VCPU in kvm_guest_exit()

2007-10-17 Thread Laurent Vivier
_time(). http://lkml.org/lkml/2007/10/15/183 Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> --- drivers/kvm/kvm.h |1 + drivers/kvm/kvm_main.c |3 ++- kernel/sched.c |1 - 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/kvm/kvm.h b/driver

Re: [PATCH] clear PF_VCPU in kvm_guest_exit()

2007-10-17 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> clear PF_VCPU in kvm_guest_exit() and move kvm_guest_exit() after >> local_irq_enable(). >> >> According comments from Avi, we can clear PF_VCPU in kvm_guest_exit if we >> move >> it after local_irq_enable(). &g

[PATCH] move kvm_guest_exit() after local_irq_enable()

2007-10-18 Thread Laurent Vivier
According comments from Avi, we can clear PF_VCPU in kvm_guest_exit if we move it after local_irq_enable(). http://lkml.org/lkml/2007/10/15/114 To simplify s390 port, we don't clear it in account_system_time(). http://lkml.org/lkml/2007/10/15/183 --- drivers/kvm/kvm_main.c |5 - kernel

Re: [kvm-devel] [PATCH] move kvm_guest_exit() after local_irq_enable()

2007-10-18 Thread Laurent Vivier
Avi Kivity a écrit : > Laurent Vivier wrote: >> According comments from Avi, we can clear PF_VCPU in kvm_guest_exit if we >> move >> it after local_irq_enable(). >> >> http://lkml.org/lkml/2007/10/15/114 >> >> To simplify s390 port, we don&#x

Re: 2.6.23 git current compile error on UP

2007-11-08 Thread Laurent Vivier
Le jeudi 08 novembre 2007 à 11:55 -0800, Dave Hansen a écrit : > drivers/kvm/kvm_main.c: In function `kvm_flush_remote_tlbs': > drivers/kvm/kvm_main.c:220: error: implicit declaration of function > `smp_call_function_mask' > make[2]: *** [drivers/kvm/kvm_main.o] Error 1 > make[1]: *** [drivers/kvm

Re: [PATCH -mm 5/5][AIO] - Add listio syscall support

2007-01-24 Thread Laurent Vivier
Andrew Morton wrote: > On Wed, 17 Jan 2007 10:55:54 +0100 > Sébastien Dugué <[EMAIL PROTECTED]> wrote: > >> +struct lio_event *lio_create(struct sigevent __user *user_event, >> +int mode) >> +{ >> +int ret = 0; >> +struct lio_event *lio = NULL; >> + >> +if (unlikely

Re: [PATCH 1/3] ibmvsci: make parameters max_id and max_channel read-only

2015-10-13 Thread Laurent Vivier
James, this series has been reviewed and ack'ed, as SCSI maintainer, could you take it ? Laurent On 10/09/2015 11:23, Laurent Vivier wrote: > The value of the parameter is never re-read by the driver, > so a new value is ignored. Let know the user he > can't modify it b

Re: [PATCH v2] nouveau: fix OpenFirmware support

2015-10-14 Thread Laurent Vivier
Le 14/10/2015 16:52, Ilia Mirkin a écrit : > On Wed, Oct 14, 2015 at 10:20 AM, Olaf Hering wrote: >> On Sun, Oct 11, Laurent Vivier wrote: >> >>> On PowerMac G5 (and I think on all OpenFirmware platforms), nvbios_pcirTp() >>> returns NULL. But in fact the O

[PATCH] ibmvsci: make parameters max_id and max_channel read-only

2015-09-09 Thread Laurent Vivier
The value of the parameter is never re-read by the driver, so a new value is ignored. Let know the user he can't modify it by removing writable attribute. Signed-off-by: Laurent Vivier --- drivers/scsi/ibmvscsi/ibmvscsi.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --

[PATCH] nouveau,openfirmware: remove useless of_size function

2015-10-15 Thread Laurent Vivier
l and a NV43 card (GeForce 6600 LE). CC: imir...@alum.mit.edu Signed-off-by: Laurent Vivier --- drivers/gpu/drm/nouveau/nvkm/subdev/bios/priv.h | 1 - drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadow.c | 2 +- drivers/gpu/drm/nouveau/nvkm/subdev/bios/shadowof.c | 16 ++-- 3 file

[PATCH] powerpc: on crash, kexec'ed kernel needs all CPUs are online

2015-10-15 Thread Laurent Vivier
, and thus OPAL cannot restart it: this CPU has been lost... Signed-off-by: Laurent Vivier --- arch/powerpc/kernel/crash.c | 20 1 file changed, 20 insertions(+) diff --git a/arch/powerpc/kernel/crash.c b/arch/powerpc/kernel/crash.c index 51dbace..3ca9452 100644 --- a/arch/powe

Re: [PATCH] powerpc: on crash, kexec'ed kernel needs all CPUs are online

2015-10-16 Thread Laurent Vivier
On 16/10/2015 04:14, Michael Ellerman wrote: > On Thu, 2015-10-15 at 21:00 +0200, Laurent Vivier wrote: >> On kexec, all secondary offline CPUs are onlined before >> starting the new kernel, this is not done in the case of kdump. >> >> If kdump is configured and a

Re: [PATCH] powerpc: on crash, kexec'ed kernel needs all CPUs are online

2015-10-16 Thread Laurent Vivier
-BEGIN PGP SIGNED MESSAGE- Hash: SHA256 On 16/10/2015 04:29, David Gibson wrote: > On Thu, 15 Oct 2015 21:00:58 +0200 Laurent Vivier > wrote: > >> On kexec, all secondary offline CPUs are onlined before starting >> the new kernel, this is not done in the case of k

Re: [RFC 01/20] ns: Introduce Time Namespace

2018-09-28 Thread Laurent Vivier
On 19/09/2018 22:50, Dmitry Safonov wrote: > From: Andrei Vagin > > Time Namespace isolates clock values. > > The kernel provides access to several clocks CLOCK_REALTIME, > CLOCK_MONOTONIC, CLOCK_BOOTTIME, etc. > > CLOCK_REALTIME > System-wide clock that measures real (i.e., wall-clock

Re: [PATCH] powerpc/numa: fix hot-added CPU on memory-less node

2018-11-21 Thread Laurent Vivier
On 15/11/2018 10:19, Satheesh Rajendran wrote: > On Wed, Nov 14, 2018 at 06:03:19PM +0100, Laurent Vivier wrote: >> Trying to hotplug a CPU on an empty NUMA node (without >> memory or CPU) crashes the kernel when the CPU is onlined. >> >> During the onlinin

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-11-29 Thread Laurent Vivier
Le 01/11/2018 à 15:16, Eric W. Biederman a écrit : > Laurent Vivier writes: > >> On 01/11/2018 04:51, Jann Horn wrote: >>> On Thu, Nov 1, 2018 at 3:59 AM James Bottomley >>> wrote: >>>> >>>> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-12-29 Thread Laurent Vivier
Ping Thanks, Laurent Le 29/11/2018 à 14:05, Laurent Vivier a écrit : > Le 01/11/2018 à 15:16, Eric W. Biederman a écrit : >> Laurent Vivier writes: >> >>> On 01/11/2018 04:51, Jann Horn wrote: >>>> On Thu, Nov 1, 2018 at 3:59 AM James Bottomley >>>&

Re: [RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-08 Thread Laurent Vivier
Le 08/10/2018 à 13:26, Jann Horn a écrit : > On Sat, Oct 6, 2018 at 9:36 PM Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previ

[RFC v5 0/1] ns: introduce binfmt_misc namespace

2018-10-09 Thread Laurent Vivier
u-ppc:M::\x7fELF\x01\x02\x01\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02\x00\x14:\xff\xff\xff\xff\xff\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before swit

[RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
namespace. For instance, using "unshare" we can start a chroot of an another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 106

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 14:43, Jann Horn a écrit : > On Tue, Oct 9, 2018 at 12:38 PM Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previ

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 17:16, Tycho Andersen a écrit : > On Tue, Oct 09, 2018 at 12:37:52PM +0200, Laurent Vivier wrote: >> @@ -80,18 +74,32 @@ static int entry_count; >> */ >> #define MAX_REGISTER_LENGTH 1920 >> >> +static struct binfmt_namespace *bi

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : > On 09.10.2018 13:37, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previous level, b

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 18:53, Jann Horn a écrit : > On Tue, Oct 9, 2018 at 6:45 PM Laurent Vivier wrote: >> Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : >>> On 09.10.2018 13:37, Laurent Vivier wrote: >>>> This patch allows to have a different binfmt_misc configuration &g

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-09 Thread Laurent Vivier
Le 09/10/2018 à 19:01, Kirill Tkhai a écrit : > On 09.10.2018 19:45, Laurent Vivier wrote: >> Le 09/10/2018 à 18:15, Kirill Tkhai a écrit : >>> On 09.10.2018 13:37, Laurent Vivier wrote: >>>> This patch allows to have a different binfmt_misc configuration >&g

Re: [RFC v5 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
On 09/10/2018 17:19, Laurent Vivier wrote: > Le 09/10/2018 à 17:16, Tycho Andersen a écrit : >> On Tue, Oct 09, 2018 at 12:37:52PM +0200, Laurent Vivier wrote: >>> @@ -80,18 +74,32 @@ static int entry_count; >>> */ >>> #define MAX_REGISTER_LENGTH 1920 >&

[PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-10-10 Thread Laurent Vivier
\xff\xff\x00\xff\xff\xff\xff\xff\xff\xff\xff\xff\xfe\xff\xff:/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laurent Vivier (1): ns: add binfmt_mi

[PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-10 Thread Laurent Vivier
namespace. For instance, using "unshare" we can start a chroot of another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 111 - inc

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-30 Thread Laurent Vivier
Le 24/10/2018 à 19:15, Laurent Vivier a écrit : > On 16/10/2018 17:22, Andrei Vagin wrote: >> On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >>> This patch allows to have a different binfmt_misc configuration >>> for each new user namespace.

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-10-16 Thread Laurent Vivier
Hi, Any comment on this last version? Any chance to be merged? Thanks, Laurent Le 10/10/2018 à 18:14, Laurent Vivier a écrit : > v6: Return &init_binfmt_ns instead of NULL in binfmt_ns() > This should never happen, but to stay safe return a > value we can use. > cha

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-16 Thread Laurent Vivier
Le 16/10/2018 à 12:13, Rasmus Villemoes a écrit : > On 2018-10-10 18:14, Laurent Vivier wrote: > >> +/* create a new binfmt namespace >> + * if we are not in the first user namespace >> + * but the binfmt namespace is the first one >> + */ >&

[RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-06 Thread Laurent Vivier
namespace. For instance, using "unshare" we can start a chroot of an another architecture and configure the binfmt_misc interpreter without being root to run the binaries in this chroot. Signed-off-by: Laurent Vivier --- fs/binfmt_misc.c | 99 -

[RFC v4 0/1] ns: introduce binfmt_misc namespace

2018-10-06 Thread Laurent Vivier
/bin/qemu-ppc-static:OCF" With the 'F' flag, qemu-ppc-static will be then loaded from the main root filesystem before switching to the chroot. Laurent Vivier (1): ns: add binfmt_misc to the user namespace fs/binfmt_misc.c | 99

Re: [RFC v4 1/1] ns: add binfmt_misc to the user namespace

2018-10-07 Thread Laurent Vivier
Le 07/10/2018 à 07:02, Serge E. Hallyn a écrit : > On Sat, Oct 06, 2018 at 09:35:46PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of th

Re: [PATCH v6 0/1] ns: introduce binfmt_misc namespace

2018-11-01 Thread Laurent Vivier
On 01/11/2018 04:51, Jann Horn wrote: > On Thu, Nov 1, 2018 at 3:59 AM James Bottomley > wrote: >> >> On Tue, 2018-10-16 at 11:52 +0200, Laurent Vivier wrote: >>> Hi, >>> >>> Any comment on this last version? >>> >>> Any chance to b

Re: [PATCH v6 1/1] ns: add binfmt_misc to the user namespace

2018-10-24 Thread Laurent Vivier
On 16/10/2018 17:22, Andrei Vagin wrote: > On Wed, Oct 10, 2018 at 06:14:30PM +0200, Laurent Vivier wrote: >> This patch allows to have a different binfmt_misc configuration >> for each new user namespace. By default, the binfmt_misc configuration >> is the one of the previ

[RESEND][PATCH 0/4] Virtual Machine Time Accounting

2007-09-10 Thread Laurent Vivier
;cgtime" in signal_struct and task_struct accordingly. [PATCH 4/4] Modify KVM to update guest time accounting. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth - To unsubscribe fr

[RESEND][PATCH 1/4] Introduce a new field "guest" in cpustat

2007-09-10 Thread Laurent Vivier
[PATCH 1/4] as recent CPUs introduce a third running state, after "user" and "system", we need a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify /proc/stat to display this new field. Signed-off-by: La

[RESEND]PATCH 2/4] Introduce a new fields "gtime" and "cgtime" in task_struct and signal_struct

2007-09-10 Thread Laurent Vivier
[PATCH 2/4] like for cpustat, introduce the "gtime" (guest time of the task) and "cgtime" (guest time of the task children) fields for the tasks. Modify signal_struct and task_struct. Modify /proc//stat to display these new fields. Signed-off-by: Laurent Vivi

[RESEND][PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct

2007-09-10 Thread Laurent Vivier
guest and user to allow an unmodified "top(1)" to display correct value. A modified "top(1)" is able to display good cpu user time and cpu guest time by subtracting cpu guest time from cpu user time. Update "gtime" in task_struct accordingly. Signed-o

[RESEND][PATCH 4/4] Modify KVM to update guest time accounting.

2007-09-10 Thread Laurent Vivier
[PATCH 4/4] Modify KVM to update guest time accounting. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth Index: linux-2.6/dri

Re: [RESEND][PATCH 0/4] Virtual Machine Time Accounting

2007-09-10 Thread Laurent Vivier
Ingo Molnar wrote: > * Laurent Vivier <[EMAIL PROTECTED]> wrote: > >> Ingo, please, could you have a look to these patches ? >> >> The aim of these four patches is to introduce Virtual Machine time >> accounting. >> >> [PATCH 1/4] as recent CPUs

Re: [RESEND][PATCH 0/4] Virtual Machine Time Accounting

2007-09-10 Thread Laurent Vivier
Avi Kivity wrote: > Ingo Molnar wrote: >> * Laurent Vivier <[EMAIL PROTECTED]> wrote: >> >> >>> Ingo, please, could you have a look to these patches ? >>> >>> The aim of these four patches is to introduce Virtual Machine time >>> a

[RESEND 2][PATCH 0/4] Virtual Machine Time Accounting

2007-09-10 Thread Laurent Vivier
"gtime" and "cgtime" in signal_struct and task_struct accordingly. [PATCH 4/4] Modify KVM to update guest time accounting. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard" - Donald K

[RESEND 2][PATCH 1/4] Introduce a new field "guest" in cpustat

2007-09-10 Thread Laurent Vivier
[PATCH 1/4] as recent CPUs introduce a third running state, after "user" and "system", we need a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify /proc/stat to display this new field. Signed-off-by: La

[RESEND 2]PATCH 2/4] Introduce a new fields "gtime" and "cgtime" in task_struct and signal_struct

2007-09-10 Thread Laurent Vivier
[PATCH 2/4] like for cpustat, introduce the "gtime" (guest time of the task) and "cgtime" (guest time of the task children) fields for the tasks. Modify signal_struct and task_struct. Modify /proc//stat to display these new fields. Signed-off-by: Laurent Vivi

[RESEND 2][PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct

2007-09-10 Thread Laurent Vivier
guest and user to allow an unmodified "top(1)" to display correct value. A modified "top(1)" is able to display good cpu user time and cpu guest time by subtracting cpu guest time from cpu user time. Update "gtime" in task_struct accordingly. Signed-o

[RESEND 2][PATCH 4/4] Modify KVM to update guest time accounting.

2007-09-10 Thread Laurent Vivier
[PATCH 4/4] Modify KVM to update guest time accounting. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth Index: linux-2.6/d

Re: [RESEND][PATCH 1/4] Introduce a new field "guest" in cpustat

2007-09-10 Thread Laurent Vivier
Rik van Riel wrote: > Laurent Vivier wrote: >> [PATCH 1/4] as recent CPUs introduce a third running state, after >> "user" and >> "system", we need a new field, "guest", in cpustat to store the time >> used by >> the CPU to run virtual

Re: [RESEND 2][PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct

2007-09-10 Thread Laurent Vivier
Randy Dunlap wrote: > On Mon, 10 Sep 2007 16:12:58 +0200 Laurent Vivier wrote: > >> [PATCH 3/4] modify account_system_time() to add cputime to cpustat->guest if >> we >> are running a VCPU. We add this cputime to cpustat->user instead of >> cpustat->sys

Re: [RESEND][PATCH 0/4] Virtual Machine Time Accounting

2007-09-11 Thread Laurent Vivier
Alistair John Strachan wrote: > On Monday 10 September 2007 14:08:45 Laurent Vivier wrote: >> Avi Kivity wrote: >>> Ingo Molnar wrote: >>>> * Laurent Vivier <[EMAIL PROTECTED]> wrote: >>>>> Ingo, please, could you have a look to these patche

Re: [RESEND 2][PATCH 0/4] Virtual Machine Time Accounting

2007-09-11 Thread Laurent Vivier
Ingo Molnar wrote: > * Laurent Vivier <[EMAIL PROTECTED]> wrote: > >> This new version remove conditional compilation on GUEST_ACCOUNTING. > > excellent! For all 4 patches: > > Acked-by: Ingo Molnar <[EMAIL PROTECTED]> > > i'd suggest inclusion i

Re: WARNING: at arch/x86_64/kernel/smp.c:397 smp_call_function_mask()

2007-09-28 Thread Laurent Vivier
Andrew Morton wrote: > On Fri, 28 Sep 2007 10:52:08 +0200 Laurent Vivier <[EMAIL PROTECTED]> wrote: > >> Fengguang Wu wrote: >>> On Thu, Sep 27, 2007 at 02:22:20AM -0700, Andrew Morton wrote: >>>> ftp://ftp.kernel.org/pub/linux/kernel/people/akp

Re: WARNING: at arch/x86_64/kernel/smp.c:397 smp_call_function_mask()

2007-09-28 Thread Laurent Vivier
Andrew Morton wrote: > On Fri, 28 Sep 2007 11:18:45 +0200 Laurent Vivier <[EMAIL PROTECTED]> wrote: > >> Andrew Morton wrote: >>> On Fri, 28 Sep 2007 10:52:08 +0200 Laurent Vivier <[EMAIL PROTECTED]> wrote: >>>> Andi, is this correct ? >>>&g

Re: WARNING: at arch/x86_64/kernel/smp.c:397 smp_call_function_mask()

2007-09-28 Thread Laurent Vivier
Fengguang Wu wrote: > On Thu, Sep 27, 2007 at 02:22:20AM -0700, Andrew Morton wrote: >> ftp://ftp.kernel.org/pub/linux/kernel/people/akpm/patches/2.6/2.6.23-rc8/2.6.23-rc8-mm2/ > > Laurent, > > It triggered a WARNING on first run in qemu: Thank you to report it. > > [0.31] WARNING: at

Re: [kvm-devel] [PATCH/RFC 3/4]Introduce "account modifiers" mechanism

2007-08-20 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> Avi Kivity wrote: >> [...] >> >>> The normal user/system accounting has the same issue, no? Whereever we >>> happen to land (kernel or user) gets the whole tick. >>> >>> So I th

[PATCH 0/4] Virtual Machine Time Accounting

2007-08-20 Thread Laurent Vivier
time. Update "gtime" and "cgtime" in signal_struct and task_struct accordingly. [PATCH 4/4] Modify KVM to update guest time accounting. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is h

[PATCH 1/4] Introduce a new field "guest" in cpustat

2007-08-20 Thread Laurent Vivier
[PATCH 1/4] as recent CPUs introduce a third running state, after "user" and "system", we need a new field, "guest", in cpustat to store the time used by the CPU to run virtual CPU. Modify /proc/stat to display this new field. Signed-off-by: La

[PATCH 2/4] Introduce a new fields "gtime" and "cgtime" in task_struct and signal_struct

2007-08-20 Thread Laurent Vivier
[PATCH 2/4] like for cpustat, introduce the "gtime" (guest time of the task) and "cgtime" (guest time of the task children) fields for the tasks. Modify signal_struct and task_struct. Modify /proc//stat to display these new fields. Signed-off-by: Laurent Vivi

[PATCH 3/4] modify account_system_time() to update guest time in cpustat and task_struct

2007-08-20 Thread Laurent Vivier
guest and user to allow an unmodified "top(1)" to display correct value. A modified "top(1)" is able to display good cpu user time and cpu guest time by subtracting cpu guest time from cpu user time. Update "gtime" in task_struct accordingly. Signed-o

[PATCH 4/4] Modify KVM to update guest time accounting.

2007-08-20 Thread Laurent Vivier
[PATCH 4/4] Modify KVM to update guest time accounting. Signed-off-by: Laurent Vivier <[EMAIL PROTECTED]> -- - [EMAIL PROTECTED] -- "Software is hard" - Donald Knuth Index: kvm/d

Re: [kvm-devel] [PATCH 4/4] Modify KVM to update guest time accounting.

2007-08-20 Thread Laurent Vivier
Avi Kivity wrote: > Laurent Vivier wrote: >> [PATCH 4/4] Modify KVM to update guest time accounting. >> >> > >> Index: kvm/drivers/kvm/kvm.h >> === >> --- kvm.orig/drivers/kvm/kv

  1   2   3   >