Re: [PATCH 04/16] per-cpu run guest

2008-01-08 Thread Rusty Russell
On Tuesday 08 January 2008 00:05:25 Glauber de Oliveira Costa wrote: > + /* Watch out for arbitrary vcpu indexes! */ > + if (vcpu_id > lg->nr_vcpus) > + return -EINVAL; > + > + vcpu = &lg->vcpus[vcpu_id]; > + Out-by-one error here... Fixed it for you, plus a couple of other

[PATCH 04/16] per-cpu run guest

2008-01-07 Thread Glauber de Oliveira Costa
This patch makes the run_guest() routine use the vcpu struct. This is required since in a smp guest environment, there's no more the notion of "running the guest", but rather, it is "running the vcpu" Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> --- drivers/lguest/core.c|

Re: [PATCH 04/16] per-cpu run guest

2007-12-25 Thread Rusty Russell
On Friday 21 December 2007 00:33:44 Glauber de Oliveira Costa wrote: > @@ -55,11 +55,15 @@ static int user_send_irq(struct lguest *lg, const > unsigned long __user *input) static ssize_t read(struct file *file, char > __user *user, size_t size,loff_t*o) { > struct lguest *lg = file->private_d

[PATCH 04/16] per-cpu run guest

2007-12-20 Thread Glauber de Oliveira Costa
This patch makes the run_guest() routine use the vcpu struct. This is required since in a smp guest environment, there's no more the notion of "running the guest", but rather, it is "running the vcpu" Signed-off-by: Glauber de Oliveira Costa <[EMAIL PROTECTED]> --- drivers/lguest/core.c|