From nobody Mon Feb 9 17:37:02 2026 Delivered-To: importer@patchew.org Received-SPF: none (zohomail.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; Authentication-Results: mx.zohomail.com; spf=none (zohomail.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=1582721298; cv=none; d=zohomail.com; s=zohoarc; b=Ggfc1Wc9FWPB/5v12Kta6ia5kaEGSxw60lz1XfvGyLL6kxWwfHL6yoDCzS0nghqm+BRfL1jS463124u8OepF3w9yqwy/aq7pK3F5vmcFw5Uu78gUEsj6E76Bn3GOfly8v/q4FPHD/165W+aFW2Yn9AGxjqOFyVN1fAzBVH3c/gU= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1582721298; 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; bh=zBqh346uxzsh69E3NbM0Pyl4nor2aCjYY+pCQODvn+U=; b=jpYjD4IIE+CpMxgNjYjTFKG6LN04NQ1LthvFpunmhKDAea+BD2KVtlaThhkYD9zSUwBjsy2t3z5XhICohzM+1uZDTHIkad67hoV8yDHfwtPivKX3IJSJCIeeJK1INjSOlGGtSLKHAHt8V+vPB5gMWF3fyR13dFLfKL618bwaLNM= ARC-Authentication-Results: i=1; mx.zohomail.com; spf=none (zohomail.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 1582721298501432.4228260512916; Wed, 26 Feb 2020 04:48:18 -0800 (PST) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j6w6D-0002Te-8n; Wed, 26 Feb 2020 12:47:37 +0000 Received: from all-amaz-eas1.inumbo.com ([34.197.232.57] helo=us1-amaz-eas2.inumbo.com) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1j6w6B-0002R9-NY for xen-devel@lists.xenproject.org; Wed, 26 Feb 2020 12:47:35 +0000 Received: from mx2.suse.de (unknown [195.135.220.15]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 19d73147-5896-11ea-940b-12813bfff9fa; Wed, 26 Feb 2020 12:47:11 +0000 (UTC) Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id 39DD7B07B; Wed, 26 Feb 2020 12:47:10 +0000 (UTC) X-Inumbo-ID: 19d73147-5896-11ea-940b-12813bfff9fa X-Virus-Scanned: by amavisd-new at test-mx.suse.de From: Juergen Gross To: xen-devel@lists.xenproject.org Date: Wed, 26 Feb 2020 13:47:04 +0100 Message-Id: <20200226124705.29212-12-jgross@suse.com> X-Mailer: git-send-email 2.16.4 In-Reply-To: <20200226124705.29212-1-jgross@suse.com> References: <20200226124705.29212-1-jgross@suse.com> Subject: [Xen-devel] [PATCH v6 11/12] tools/libxc: remove xc_set_parameters() 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: Juergen Gross , Ian Jackson , Wei Liu MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" There is no user of xc_set_parameters() left, so remove it. Signed-off-by: Juergen Gross --- V6: - new patch --- tools/libxc/include/xenctrl.h | 1 - tools/libxc/xc_misc.c | 21 --------------------- 2 files changed, 22 deletions(-) diff --git a/tools/libxc/include/xenctrl.h b/tools/libxc/include/xenctrl.h index 99552a5f73..8677433c5f 100644 --- a/tools/libxc/include/xenctrl.h +++ b/tools/libxc/include/xenctrl.h @@ -1226,7 +1226,6 @@ int xc_readconsolering(xc_interface *xch, int clear, int incremental, uint32_t *pindex); =20 int xc_send_debug_keys(xc_interface *xch, char *keys); -int xc_set_parameters(xc_interface *xch, char *params); =20 typedef struct xen_sysctl_physinfo xc_physinfo_t; typedef struct xen_sysctl_cputopo xc_cputopo_t; diff --git a/tools/libxc/xc_misc.c b/tools/libxc/xc_misc.c index 093fa44081..9b66330082 100644 --- a/tools/libxc/xc_misc.c +++ b/tools/libxc/xc_misc.c @@ -187,27 +187,6 @@ int xc_send_debug_keys(xc_interface *xch, char *keys) return ret; } =20 -int xc_set_parameters(xc_interface *xch, char *params) -{ - int ret, len =3D strlen(params); - DECLARE_SYSCTL; - DECLARE_HYPERCALL_BOUNCE(params, len, XC_HYPERCALL_BUFFER_BOUNCE_IN); - - if ( xc_hypercall_bounce_pre(xch, params) ) - return -1; - - sysctl.cmd =3D XEN_SYSCTL_set_parameter; - set_xen_guest_handle(sysctl.u.set_parameter.params, params); - sysctl.u.set_parameter.size =3D len; - memset(sysctl.u.set_parameter.pad, 0, sizeof(sysctl.u.set_parameter.pa= d)); - - ret =3D do_sysctl(xch, &sysctl); - - xc_hypercall_bounce_post(xch, params); - - return ret; -} - int xc_physinfo(xc_interface *xch, xc_physinfo_t *put_info) { --=20 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@lists.xenproject.org https://lists.xenproject.org/mailman/listinfo/xen-devel