Re: [Qemu-devel] [PATCH 41/41] cpus: create qemu_cpu_is_vcpu()

2012-09-24 Thread Juan Quintela
Paolo Bonzini wrote: > Il 21/09/2012 10:47, Juan Quintela ha scritto: >> Old code used !io_thread to know if a thread was an vcpu or not. That >> fails when we introduce the iothread. >> >> Signed-off-by: Juan Quintela >> --- >> cpus.c | 9 +++-- >> 1 file changed, 7 insertions(+), 2 delet

Re: [Qemu-devel] [PATCH 41/41] cpus: create qemu_cpu_is_vcpu()

2012-09-21 Thread Paolo Bonzini
Il 21/09/2012 16:48, Andreas Färber ha scritto: >>> >> >>> >> +static bool qemu_cpu_is_vcpu(void) >>> >> +{ >>> >> +return cpu_single_env && qemu_cpu_is_self(&cpu_single_env); >> > >> > Should be "cpu_single_env && qemu_cpu_is_self(&cpu_single_env)". > "cpu_single_env && qemu_cpu_is_self(cpu_s

Re: [Qemu-devel] [PATCH 41/41] cpus: create qemu_cpu_is_vcpu()

2012-09-21 Thread Andreas Färber
Am 21.09.2012 14:54, schrieb Paolo Bonzini: > Il 21/09/2012 10:47, Juan Quintela ha scritto: >> Old code used !io_thread to know if a thread was an vcpu or not. That >> fails when we introduce the iothread. >> >> Signed-off-by: Juan Quintela >> --- >> cpus.c | 9 +++-- >> 1 file changed, 7 i

Re: [Qemu-devel] [PATCH 41/41] cpus: create qemu_cpu_is_vcpu()

2012-09-21 Thread Paolo Bonzini
Il 21/09/2012 10:47, Juan Quintela ha scritto: > Old code used !io_thread to know if a thread was an vcpu or not. That > fails when we introduce the iothread. > > Signed-off-by: Juan Quintela > --- > cpus.c | 9 +++-- > 1 file changed, 7 insertions(+), 2 deletions(-) > > diff --git a/cpus.

[Qemu-devel] [PATCH 41/41] cpus: create qemu_cpu_is_vcpu()

2012-09-21 Thread Juan Quintela
Old code used !io_thread to know if a thread was an vcpu or not. That fails when we introduce the iothread. Signed-off-by: Juan Quintela --- cpus.c | 9 +++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/cpus.c b/cpus.c index e476a3c..1b7061a 100644 --- a/cpus.c +++ b/cpus.