Checking that the subject domain is not the current one is pointless
when already having paused that domain: domain_pause() already
ASSERT()s this to be the case.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Tim Deegan <tim@xen.org>
domain_pause(d);
- /* error check */
- if ( (d == current->domain) )
- {
- rv = -EINVAL;
- goto out;
- }
-
old_pages = d->arch.paging.hap.total_pages;
if ( old_pages == 0 )
{
domain_pause(d);
/* Sanity check the arguments */
- if ( (d == current->domain) ||
- shadow_mode_enabled(d) ||
+ if ( shadow_mode_enabled(d) ||
((mode & PG_translate) && !(mode & PG_refcounts)) ||
((mode & PG_external) && !(mode & PG_translate)) )
{