Is KVM_GET_SREGS safe from other threads?

2011-05-08 Thread Pekka Enberg
Hi! We've noticed that sometimes KVM_GET_SREGS from a signal handler hangs. We use it like this: static void handle_sigquit(int sig) { int i; for (i = 0; i nrcpus; i++) { struct kvm_cpu *cpu = kvm_cpus[i]; kvm_cpu__show_registers(cpu); --

Re: Is KVM_GET_SREGS safe from other threads?

2011-05-08 Thread Avi Kivity
On 05/08/2011 11:24 AM, Pekka Enberg wrote: Hi! We've noticed that sometimes KVM_GET_SREGS from a signal handler hangs. We use it like this: static void handle_sigquit(int sig) { int i; for (i = 0; i nrcpus; i++) { struct kvm_cpu *cpu = kvm_cpus[i];

Re: Is KVM_GET_SREGS safe from other threads?

2011-05-08 Thread Pekka Enberg
On Sun, May 8, 2011 at 11:50 AM, Avi Kivity a...@redhat.com wrote: On 05/08/2011 11:24 AM, Pekka Enberg wrote: Hi! We've noticed that sometimes KVM_GET_SREGS from a signal handler hangs. We use it like this: static void handle_sigquit(int sig) {          int i;          for (i = 0; i