Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-04 Thread Avi Kivity
On 12/02/2011 09:16 AM, Sasha Levin wrote: This is useful when testing code that might cause problems on the host, or to automate kernel testing since it's now easy to link a kvm tools test script with 'git bisect run'. This tie-up into git bisect is a really cool idea. With device

Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-04 Thread Sasha Levin
On Sun, 2011-12-04 at 12:25 +0200, Avi Kivity wrote: On 12/02/2011 09:16 AM, Sasha Levin wrote: This is useful when testing code that might cause problems on the host, or to automate kernel testing since it's now easy to link a kvm tools test script with 'git bisect run'. This tie-up

[PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-01 Thread Sasha Levin
This patch adds a '--sandbox' argument when used in conjuction with a custom rootfs, it allows running a script or an executable in the guest environment by using executables and other files from the host. This is useful when testing code that might cause problems on the host, or to automate

Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-01 Thread Pekka Enberg
On Fri, Dec 2, 2011 at 9:16 AM, Sasha Levin levinsasha...@gmail.com wrote: This patch adds a '--sandbox' argument when used in conjuction with a custom rootfs, it allows running a script or an executable in the guest environment by using executables and other files from the host. This is

Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-01 Thread Sasha Levin
On Fri, 2011-12-02 at 09:26 +0200, Pekka Enberg wrote: On Fri, Dec 2, 2011 at 9:16 AM, Sasha Levin levinsasha...@gmail.com wrote: This patch adds a '--sandbox' argument when used in conjuction with a custom rootfs, it allows running a script or an executable in the guest environment by

Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-01 Thread Pekka Enberg
On Fri, 2011-12-02 at 09:26 +0200, Pekka Enberg wrote: On Fri, Dec 2, 2011 at 9:16 AM, Sasha Levin levinsasha...@gmail.com wrote: This patch adds a '--sandbox' argument when used in conjuction with a custom rootfs, it allows running a script or an executable in the guest environment by using

Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-01 Thread Sasha Levin
On Fri, 2011-12-02 at 09:39 +0200, Pekka Enberg wrote: On Fri, 2011-12-02 at 09:26 +0200, Pekka Enberg wrote: On Fri, Dec 2, 2011 at 9:16 AM, Sasha Levin levinsasha...@gmail.com wrote: This patch adds a '--sandbox' argument when used in conjuction with a custom rootfs, it allows

Re: [PATCH 2/2] kvm tools: Allow easily sandboxing applications within a guest

2011-12-01 Thread Pekka Enberg
On Fri, Dec 2, 2011 at 9:44 AM, Sasha Levin levinsasha...@gmail.com wrote: Would it not be better to introduce a new command that works like 'perf stat', for example:    ./kvm sandbox -k kernel to test -- trinity --mode=random --quiet -i ? So basically proxy the first set of parameters to