]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
x86/time: fix domain type check in tsc_set_info()
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 8 Dec 2015 08:46:30 +0000 (09:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Dec 2015 08:46:30 +0000 (09:46 +0100)
Replace is_hvm_domain() in tsc_set_info() by has_hvm_container_domain()
to keep consistent with other domain type checks in tsc_set_info().

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/time.c

index 30d52c45cbd7d53aeea3130b08817295b72ba0ce..b5223cf7f57a695a93042d24a02df741037e6fef 100644 (file)
@@ -1878,7 +1878,7 @@ void tsc_set_info(struct domain *d,
         break;
     }
     d->arch.incarnation = incarnation + 1;
-    if ( is_hvm_domain(d) )
+    if ( has_hvm_container_domain(d) )
     {
         hvm_set_rdtsc_exiting(d, d->arch.vtsc);
         if ( d->vcpu && d->vcpu[0] && incarnation == 0 )