From patchwork Mon Jun 3 12:25:23 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Cooper X-Patchwork-Id: 10972835 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id BCF9914B6 for ; Mon, 3 Jun 2019 12:29:16 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id AC5FE2015F for ; Mon, 3 Jun 2019 12:29:16 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id 9F6FE284F1; Mon, 3 Jun 2019 12:29:16 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-5.2 required=2.0 tests=BAYES_00,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 5016C2015F for ; Mon, 3 Jun 2019 12:29:16 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1hXm3z-0002nD-GQ; Mon, 03 Jun 2019 12:27:43 +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 1hXm3y-0002ml-9n for xen-devel@lists.xenproject.org; Mon, 03 Jun 2019 12:27:42 +0000 X-Inumbo-ID: f9a3cffe-85fa-11e9-b228-536055ee6954 Received: from esa1.hc3370-68.iphmx.com (unknown [216.71.145.142]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id f9a3cffe-85fa-11e9-b228-536055ee6954; Mon, 03 Jun 2019 12:27:39 +0000 (UTC) Authentication-Results: esa1.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@MIAPEX02MSOL02.citrite.net Received-SPF: None (esa1.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=esa1.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="andrew.cooper3@citrix.com"; x-conformance=sidf_compatible Received-SPF: Pass (esa1.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=esa1.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 (esa1.hc3370-68.iphmx.com: no sender authenticity information available from domain of postmaster@MIAPEX02MSOL02.citrite.net) identity=helo; client-ip=23.29.105.83; receiver=esa1.hc3370-68.iphmx.com; envelope-from="Andrew.Cooper3@citrix.com"; x-sender="postmaster@MIAPEX02MSOL02.citrite.net"; x-conformance=sidf_compatible IronPort-SDR: yjVnIxS8DxqPQgZWY7SvJzcXoVljQSHyUFjBGlT+rP33GamEKh5hKLbwyAUqO+57U2NV4rYrJA +oGmpSbx+bgLle8Dvo+CXg8LFPObKQZnF6ga5riWTH3RMkvh8YRzEzJcqPK2nQYVT1NUfOuyCc yZKgDFWugRK3aPh1BJCsYAVmOnhWK5NOmYOdam9j51U3s/cjMgkPUQ2hk0lsIPAjsbQodzWViH vdzxlIJMCWvYAudgvJPVBJx0aM01ybIkNVWw2rQBlO7duM8HL9ozNVmsndQDlYK18vvPqjkyQl nZw= X-SBRS: 2.7 X-MesageID: 1239383 X-Ironport-Server: esa1.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="1239383" From: Andrew Cooper To: Xen-devel Date: Mon, 3 Jun 2019 13:25:23 +0100 Message-ID: <1559564728-17167-1-git-send-email-andrew.cooper3@citrix.com> X-Mailer: git-send-email 2.1.4 MIME-Version: 1.0 Subject: [Xen-devel] [PATCH 0/5] xen/vm-event: Cleanup 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 Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" X-Virus-Scanned: ClamAV using ClamSMTP This came about from reviewing Petre's "Per vcpu vm_event channels" while sat in an airport with plenty of time to kill. This started with patch 4 trying to get rid of the "k = i % d->max_vcpus;" expression, but see patch 4 for further details of why it has stayed. Everything else was either ancillary cleanup I noticed while reviewing, or issues where were copied/moved/extended during the series. This series can be obtained in git form from: http://xenbits.xen.org/gitweb/?p=people/andrewcoop/xen.git;a=shortlog;h=refs/heads/vmevent-cleanup-v1 There are no large functional changes, but it should be a better base to refactor the interface from. Andrew Cooper (5): xen/vm-event: Drop unused u_domctl parameter from vm_event_domctl() xen/vm-event: Expand vm_event_* spinlock macros and rename the lock xen/vm-event: Remove unnecessary vm_event_domain indirection xen/vm-event: Fix interactions with the vcpu list xen/vm-event: Misc fixups xen/common/domctl.c | 6 +- xen/common/vm_event.c | 199 +++++++++++++++++++++------------------------ xen/include/xen/sched.h | 3 +- xen/include/xen/vm_event.h | 3 +- 4 files changed, 96 insertions(+), 115 deletions(-)