Re: [kvm-devel] [PATCH] Don't race while creating a VCPU

2008-04-29 Thread Ryan Harper
* Anthony Liguori [EMAIL PROTECTED] [2008-04-28 17:30]: We hold qemu_mutex while machine-init() executes, which issues a VCPU create. We need to make sure to not return from the VCPU creation until the VCPU file descriptor is valid to ensure that APIC creation succeeds. However, we also need

Re: [kvm-devel] [PATCH] Don't race while creating a VCPU

2008-04-29 Thread Avi Kivity
Anthony Liguori wrote: We hold qemu_mutex while machine-init() executes, which issues a VCPU create. We need to make sure to not return from the VCPU creation until the VCPU file descriptor is valid to ensure that APIC creation succeeds. However, we also need to make sure that the VCPU thread

[kvm-devel] [PATCH] Don't race while creating a VCPU

2008-04-28 Thread Anthony Liguori
We hold qemu_mutex while machine-init() executes, which issues a VCPU create. We need to make sure to not return from the VCPU creation until the VCPU file descriptor is valid to ensure that APIC creation succeeds. However, we also need to make sure that the VCPU thread doesn't start running