From: Jan Beulich Date: Fri, 10 Jul 2015 11:56:54 +0000 (+0200) Subject: x86/monitor: move comment after 35f4aec5a0 X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~2838 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=968099c0a87c11b04e7428109642eac55e77ea74;p=xen.git x86/monitor: move comment after 35f4aec5a0 It belongs with the check, not at a random other place. Signed-off-by: Jan Beulich --- diff --git a/xen/arch/x86/monitor.c b/xen/arch/x86/monitor.c index d8fe98a74a..0da855e38b 100644 --- a/xen/arch/x86/monitor.c +++ b/xen/arch/x86/monitor.c @@ -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;