x86/monitor: move comment after 35f4aec5a0
authorJan Beulich <jbeulich@suse.com>
Fri, 10 Jul 2015 11:56:54 +0000 (13:56 +0200)
committerJan Beulich <jbeulich@suse.com>
Fri, 10 Jul 2015 11:56:54 +0000 (13:56 +0200)
It belongs with the check, not at a random other place.

Signed-off-by: Jan Beulich <jbeulich@suse.com>
xen/arch/x86/monitor.c

index d8fe98a74a63677c2cdea86c5eb89cec41162be7..0da855e38b991e99eea899f88d3bf6dbaa95753e 100644 (file)
@@ -46,6 +46,10 @@ static inline uint32_t get_capabilities(struct domain *d)
 {
     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;
 
@@ -70,11 +74,6 @@ int monitor_domctl(struct domain *d, struct xen_domctl_monitor_op *mop)
     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;