]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commitdiff
x86/hvm: loosen up the ASSERT in hvm_cr4_guest_reserved_bits and hvm_efer_valid
authorRoger Pau Monné <roger.pau@citrix.com>
Thu, 10 Dec 2015 12:16:15 +0000 (13:16 +0100)
committerJan Beulich <jbeulich@suse.com>
Thu, 10 Dec 2015 12:16:15 +0000 (13:16 +0100)
Loosen up the condition so we make sure that the current vcpu belongs to the
same domain.

Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
xen/arch/x86/hvm/hvm.c

index af3d4d77fea0d9118391efab421f7f2ced68a372..92d57ff918ebb5e52ac5ba7ea21d4c1c911f7546 100644 (file)
@@ -1842,7 +1842,7 @@ static const char * hvm_efer_valid(const struct vcpu *v, uint64_t value,
     {
         unsigned int level;
 
-        ASSERT(v == current);
+        ASSERT(v->domain == current->domain);
         hvm_cpuid(0x80000000, &level, NULL, NULL, NULL);
         if ( level >= 0x80000001 )
         {
@@ -1912,7 +1912,7 @@ static unsigned long hvm_cr4_guest_reserved_bits(const struct vcpu *v,
     {
         unsigned int level;
 
-        ASSERT(v == current);
+        ASSERT(v->domain == current->domain);
         hvm_cpuid(0, &level, NULL, NULL, NULL);
         if ( level >= 1 )
             hvm_cpuid(1, NULL, NULL, &leaf1_ecx, &leaf1_edx);