diff options
author | Keir Fraser <keir@xen.org> | 2012-01-20 10:13:55 +0000 |
---|---|---|
committer | Keir Fraser <keir@xen.org> | 2012-01-20 10:13:55 +0000 |
commit | 2d7d54adfddce658c056a8c87dd74b3766db01a3 (patch) | |
tree | 0e79e37e1d532fed7b2bef0cd55cede2fea76c0a /xen/common/compat | |
parent | 2d94bc491a586d28d00575b52ea60cc08c71f7b6 (diff) | |
download | xen-2d7d54adfddce658c056a8c87dd74b3766db01a3.tar.gz xen-2d7d54adfddce658c056a8c87dd74b3766db01a3.tar.bz2 xen-2d7d54adfddce658c056a8c87dd74b3766db01a3.zip |
xen: Simplify callers of boot_vcpu(). In VCPUOP_up, check
is_initialised under the per-domain lock.
Signed-off-by: Keir Fraser <keir@xen.org>
Diffstat (limited to 'xen/common/compat')
-rw-r--r-- | xen/common/compat/domain.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/xen/common/compat/domain.c b/xen/common/compat/domain.c index 67e0e5e316..cf8c6df254 100644 --- a/xen/common/compat/domain.c +++ b/xen/common/compat/domain.c @@ -46,11 +46,7 @@ int compat_vcpu_op(int cmd, int vcpuid, XEN_GUEST_HANDLE(void) arg) break; } - domain_lock(d); - rc = -EEXIST; - if ( !v->is_initialised ) - rc = boot_vcpu(d, vcpuid, cmp_ctxt); - domain_unlock(d); + rc = boot_vcpu(d, vcpuid, cmp_ctxt); xfree(cmp_ctxt); break; |