x86/dmop: Properly fail for PV guests

The current code has an early exit for PV guests, but it returns 0 having done
nothing.

Fixes: 524a98c2ac ("public / x86: introduce __HYPERCALL_dm_op...")
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Ian Jackson <iwj@xenproject.org>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
master commit: 615367b527
master date: 2021-02-26 12:28:52 +0000
This commit is contained in:
Andrew Cooper authored and Jan Beulich committed 2021-03-05 15:49:32 +01:00
1 parent 8384641f6b
commit 24b181e4e4
1 file changed
+1
+1
View File
@@ -368,6 +368,7 @@ static int dm_op(const struct dmop_args *op_args)
if ( rc )
return rc;
rc = -EINVAL;
if ( !is_hvm_domain(d) )
goto out;
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.