mirror of
https://github.com/xen-project/xen.git
synced 2026-10-29 18:50:05 +01:00
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:615367b527master date: 2021-02-26 12:28:52 +0000
This commit is contained in:
1 parent
8384641f6b
commit
24b181e4e4
1 file changed
+1
@@ -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;
|
||||
|
||||
|
||||