mirror of
https://github.com/xen-project/xen.git
synced 2026-10-28 10:11:27 +01:00
x86: correct assertion in destroy_perdomain_mapping()
hvm_domain_initialise() may call this with nr being zero, which triggers the "does not cross L3 boundary" check. Signed-off-by: Jan Beulich <jbeulich@suse.com> Acked-by: Andrew Cooper <andrew.cooper3@citrix.com> Release-acked-by: Juergen Gross <jgross@suse.com>
This commit is contained in:
1 parent
df1ca1dfe2
commit
f26441439e
1 file changed
+1
-1
+1
-1
@@ -5475,7 +5475,7 @@ void destroy_perdomain_mapping(struct domain *d, unsigned long va,
|
||||
|
||||
ASSERT(va >= PERDOMAIN_VIRT_START &&
|
||||
va < PERDOMAIN_VIRT_SLOT(PERDOMAIN_SLOTS));
|
||||
ASSERT(!l3_table_offset(va ^ (va + nr * PAGE_SIZE - 1)));
|
||||
ASSERT(!nr || !l3_table_offset(va ^ (va + nr * PAGE_SIZE - 1)));
|
||||
|
||||
if ( !d->arch.perdomain_l3_pg )
|
||||
return;
|
||||
|
||||