It belongs with the check, not at a random other place.
Signed-off-by: Jan Beulich <jbeulich@suse.com>
{
uint32_t capabilities = 0;
+ /*
+ * At the moment only Intel HVM domains are supported. However, event
+ * delivery could be extended to AMD and PV domains.
+ */
if ( !is_hvm_domain(d) || !cpu_has_vmx )
return capabilities;
if ( rc )
return rc;
- /*
- * At the moment only Intel HVM domains are supported. However, event
- * delivery could be extended to AMD and PV domains.
- */
-
if ( mop->op == XEN_DOMCTL_MONITOR_OP_GET_CAPABILITIES )
{
mop->event = capabilities;