kvm: Set cpu_single_env only once
commite479c207d7616e3b6ea42d14d1c6a7fef1f32fc4
authorJan Kiszka <jan.kiszka@siemens.com>
Fri, 17 Feb 2012 17:31:13 +0000 (17 18:31 +0100)
committerAvi Kivity <avi@redhat.com>
Sat, 18 Feb 2012 10:15:52 +0000 (18 12:15 +0200)
tree521d5afdce6b9d625151e2f5fe4569da4001256e
parentd1f866366070d09ff5c467efb0a64ac582e3aa5d
kvm: Set cpu_single_env only once

As we have thread-local cpu_single_env now and KVM uses exactly one
thread per VCPU, we can drop the cpu_single_env updates from the loop
and initialize this variable only once during setup.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
cpus.c
kvm-all.c