KVM: Properly lock PIT creation

Otherwise, two threads can create a PIT in parallel and cause a memory leak.

Signed-off-by: Avi Kivity <avi@redhat.com>
This commit is contained in:
Avi Kivity 2009-01-05 15:21:42 +02:00
commit 269e05e485
2 changed files with 6 additions and 2 deletions