PV guest (Dom0) needs to able to use these two hypercalls in order to
serve HVM guests. But if xen doesn't support HVM at all there is no
point in exposing them to PV guests.
Signed-off-by: Wei Liu <wei.liu2@citrix.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
ARGS(xenoprof_op, 2),
ARGS(event_channel_op, 2),
ARGS(physdev_op, 2),
- ARGS(hvm_op, 2),
ARGS(sysctl, 1),
ARGS(domctl, 1),
ARGS(kexec_op, 2),
ARGS(tmem_op, 1),
ARGS(xenpmu_op, 2),
+#ifdef CONFIG_HVM
+ ARGS(hvm_op, 2),
ARGS(dm_op, 3),
+#endif
ARGS(mca, 1),
ARGS(arch_1, 1),
};
#endif
HYPERCALL(event_channel_op),
COMPAT_CALL(physdev_op),
- HYPERCALL(hvm_op),
HYPERCALL(sysctl),
HYPERCALL(domctl),
#ifdef CONFIG_KEXEC
HYPERCALL(tmem_op),
#endif
HYPERCALL(xenpmu_op),
+#ifdef CONFIG_HVM
+ HYPERCALL(hvm_op),
COMPAT_CALL(dm_op),
+#endif
HYPERCALL(mca),
HYPERCALL(arch_1),
};