From nobody Mon Feb 9 07:56:43 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org ARC-Seal: i=1; a=rsa-sha256; t=1559564929; cv=none; d=zoho.com; s=zohoarc; b=M2MtehTGqlY6N+u4n+RT+9ltXjkVJlhoSlVA+aa1Gkr7E/PccNSLspKL2cZrhwSRBwX1LZpvZbfUhq96zDDguYetQduCAhMF5nTqdzmhmENN/3y3s+Kmu5ByPzZdS391r6rWtXzJjdB+/JcjrOe/ExavYpP+kGmIC7NJXCmr1BQ= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zoho.com; s=zohoarc; t=1559564929; h=Content-Type:Content-Transfer-Encoding:Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Help:List-Unsubscribe:MIME-Version:Message-ID:References:Sender:Subject:To:ARC-Authentication-Results; bh=6mG4sMs7uFmf/S6GJkucVctEw6lPi3IQ5zpZCfF7TDE=; b=UjLsrYyiF0hujdstHNCSs+Q7zTlxpSSkDuus39k20KC1RuCR9RuWXDyFfpcUMjBJWf+w8l5/2duHv8jBnrzxgoMya8isSxmC3xR7y4Cz8z/JztIcLjHF8ShhX3yBJTtOhIc9pqYY0EmHpSPrDk3Rx0kXr6cMk1DVTVdW90XrlcU= ARC-Authentication-Results: i=1; mx.zoho.com; spf=none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Return-Path: Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) by mx.zohomail.com with SMTPS id 1559564929140794.8705890021588; Mon, 3 Jun 2019 05:28:49 -0700 (PDT) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXm3f-0002iH-Qx; Mon, 03 Jun 2019 12:27:23 +0000 Received: from us1-rack-dfw2.inumbo.com ([104.130.134.6]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXm3e-0002i0-AQ for xen-devel@lists.xenproject.org; Mon, 03 Jun 2019 12:27:22 +0000 Received: from esa6.hc3370-68.iphmx.com (unknown [216.71.155.175]) by us1-rack-dfw2.inumbo.com (Halon) with ESMTPS id ef61dfa3-85fa-11e9-8980-bc764e045a96; Mon, 03 Jun 2019 12:27:21 +0000 (UTC) X-Inumbo-ID: ef61dfa3-85fa-11e9-8980-bc764e045a96 Authentication-Results: esa6.hc3370-68.iphmx.com; dkim=none (message not signed) header.i=none; spf=None smtp.pra=andrew.cooper3@citrix.com; spf=Pass smtp.mailfrom=Andrew.Cooper3@citrix.com; spf=None smtp.helo=postmaster@MIAPEX02MSOL01.citrite.net Received-SPF: none (zoho.com: 192.237.175.120 is neither permitted nor denied by domain of lists.xenproject.org) client-ip=192.237.175.120; envelope-from=xen-devel-bounces@lists.xenproject.org; helo=lists.xenproject.org; Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of andrew.cooper3@citrix.com) identity=pra; client-ip=23.29.105.83; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa6.hc3370-68.iphmx.com: domain of Andrew.Cooper3@citrix.com designates 23.29.105.83 as permitted sender) identity=mailfrom; client-ip=23.29.105.83; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="Andrew.Cooper3@citrix.com"; x-conformance=sidf_compatible; x-record-type="v=spf1"; x-record-text="v=spf1 ip4:209.167.231.154 ip4:178.63.86.133 ip4:195.66.111.40/30 ip4:85.115.9.32/28 ip4:199.102.83.4 ip4:192.28.146.160 ip4:192.28.146.107 ip4:216.52.6.88 ip4:216.52.6.188 ip4:23.29.105.83 ip4:162.221.156.50 ~all" Received-SPF: None (esa6.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@MIAPEX02MSOL01.citrite.net) identity=helo; client-ip=23.29.105.83; receiver=esa6.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@MIAPEX02MSOL01.citrite.net"; x-conformance=sidf_compatible IronPort-SDR: crs1FslT3zE6b2V/cXzj73zLbpgWfeKCZTP/X1z0psQ6M9g3LkeiUNVPT31v3aP2M6/VsaaHiZ d3ibihag/3qMDlHfVVjvOIw5gM+EehVf+/ZeHJN638Vk44ic08dUKAfya+K1yBZrnglUgiTove vABf3cpvn3bAw235qYodlWNOzZZ3Roc3BgCh2c7PhoxhaPxb2ZZNHeY1tBKGra/GPO+y540nmD s3mBOj4NttjnF5DkIF6tp7SxreFoNRdrsHx+q2mmpfVweOH4bkovjVUDzBLtxTYH6x2eUQbIkI XDg= X-SBRS: 2.7 X-MesageID: 1206004 X-Ironport-Server: esa6.hc3370-68.iphmx.com X-Remote-IP: 23.29.105.83 X-Policy: $RELAYED X-IronPort-AV: E=Sophos;i="5.60,546,1549947600"; d="scan'208";a="1206004" From: Andrew Cooper To: Xen-devel Date: Mon, 3 Jun 2019 13:25:24 +0100 Message-ID: <1559564728-17167-2-git-send-email-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.1.4 In-Reply-To: <1559564728-17167-1-git-send-email-andrew.cooper3@citrix.com> References: <1559564728-17167-1-git-send-email-andrew.cooper3@citrix.com> MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 1/5] xen/vm-event: Drop unused u_domctl parameter from vm_event_domctl() X-BeenThere: xen-devel@lists.xenproject.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Cc: Petre Pircalabu , Andrew Cooper , Tamas K Lengyel , Razvan Cojocaru Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" This parameter isn't used at all. Futhermore, elide the copyback in failing cases, as it is only successful paths which generate data which needs sending back to the caller. Finally, drop a redundant d =3D=3D NULL check, as that logic is all common at the begining of do_domctl(). No functional change. Signed-off-by: Andrew Cooper Acked-by: Jan Beulich Acked-by: Razvan Cojocaru --- CC: Razvan Cojocaru CC: Tamas K Lengyel CC: Petre Pircalabu --- xen/common/domctl.c | 6 +++--- xen/common/vm_event.c | 6 +----- xen/include/xen/vm_event.h | 3 +-- 3 files changed, 5 insertions(+), 10 deletions(-) diff --git a/xen/common/domctl.c b/xen/common/domctl.c index bade9a6..72a4495 100644 --- a/xen/common/domctl.c +++ b/xen/common/domctl.c @@ -1018,9 +1018,9 @@ long do_domctl(XEN_GUEST_HANDLE_PARAM(xen_domctl_t) u= _domctl) break; =20 case XEN_DOMCTL_vm_event_op: - ret =3D vm_event_domctl(d, &op->u.vm_event_op, - guest_handle_cast(u_domctl, void)); - copyback =3D 1; + ret =3D vm_event_domctl(d, &op->u.vm_event_op); + if ( ret =3D=3D 0 ) + copyback =3D true; break; =20 #ifdef CONFIG_MEM_ACCESS diff --git a/xen/common/vm_event.c b/xen/common/vm_event.c index 74a4755..902e152 100644 --- a/xen/common/vm_event.c +++ b/xen/common/vm_event.c @@ -583,8 +583,7 @@ void vm_event_cleanup(struct domain *d) #endif } =20 -int vm_event_domctl(struct domain *d, struct xen_domctl_vm_event_op *vec, - XEN_GUEST_HANDLE_PARAM(void) u_domctl) +int vm_event_domctl(struct domain *d, struct xen_domctl_vm_event_op *vec) { int rc; =20 @@ -594,9 +593,6 @@ int vm_event_domctl(struct domain *d, struct xen_domctl= _vm_event_op *vec, return 0; } =20 - if ( unlikely(d =3D=3D NULL) ) - return -ESRCH; - rc =3D xsm_vm_event_control(XSM_PRIV, d, vec->mode, vec->op); if ( rc ) return rc; diff --git a/xen/include/xen/vm_event.h b/xen/include/xen/vm_event.h index 7f6fb6d..3cc2b20 100644 --- a/xen/include/xen/vm_event.h +++ b/xen/include/xen/vm_event.h @@ -64,8 +64,7 @@ void vm_event_cancel_slot(struct domain *d, struct vm_eve= nt_domain *ved); void vm_event_put_request(struct domain *d, struct vm_event_domain *ved, vm_event_request_t *req); =20 -int vm_event_domctl(struct domain *d, struct xen_domctl_vm_event_op *vec, - XEN_GUEST_HANDLE_PARAM(void) u_domctl); +int vm_event_domctl(struct domain *d, struct xen_domctl_vm_event_op *vec); =20 void vm_event_vcpu_pause(struct vcpu *v); void vm_event_vcpu_unpause(struct vcpu *v); --=20 2.1.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel