Received: by 10.213.65.68 with SMTP id h4csp570264imn; Sat, 7 Apr 2018 05:03:57 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/AsSYohp7x8Udc7lBGXV2DVVDQSbWx8+p4kg78qi7knTuXMl3jN0+F2CYXFim5A09aManJ X-Received: by 10.101.66.139 with SMTP id j11mr13767809pgp.370.1523102636949; Sat, 07 Apr 2018 05:03:56 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523102636; cv=none; d=google.com; s=arc-20160816; b=CzNAb8Er/Fe8QBr7KtpcMGoSVNlBLAPlQZvMiZMtJJ4HAgRH4qM60Dt4hmoiALHmyl QX38XWFW2kIk8yT2+/XxdBs16LXhvvb89ibodlzxCZwyDjr1V0HuTppZRXGoEXjC/rw4 JopwV9X19YFSIR4Qb21LQYZmDT1Lo7xul1mcqWysX6uktFrmsfiJBoEDhUciN9dnc4pU txj3PRMWGeBxArVUq5COz5bjZpRyi3dr8C/VYS7ZMvUUpAaFM74l63N+WkJlWSgs6uJ3 VLXM1a8mNK1RTBzO0PCsLTVejYe1HLz/07KztXg2elqoj6kw4ySZevYfD6/sVml/OdXN VJhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=hWCQjjo7mVuz7v358XWkXEPlZzCbvP5DCeJd0DbX/Cc=; b=0baZz1wo6oq+L7fQToN0gSgvR9gxC+DoIpQSzVOdk6mC6KvKG1CDldWXg+bik2MPgf zrGEwR6n5LFlqWz/x5R1GnwAevGoQOZFGDUbV4fZB4HEpNQ256szhXoMQvRICiGunP1K 4macxQTwC2PpmkMjX/a5L3lIHpTe01axE5FQw5gpFGbrEOJq9/UqB475NPW3ZW/VSrUe HT9Xb2SnHq3FIewJe6nwTxG7Lkm1/sBCes+f4oYlX2Sv09NoMlXiXRQYbZmMfW8UwmHR /mbk9QqFnUBUOnPoz9Reir9Ij+DNgks5F9InpZoiV1M98ft7KdFJi1fUhjO0UHNnUtOa J4Ow== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id u45si8524984pgn.702.2018.04.07.05.03.20; Sat, 07 Apr 2018 05:03:56 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751804AbeDGL7I (ORCPT + 99 others); Sat, 7 Apr 2018 07:59:08 -0400 Received: from mx2.suse.de ([195.135.220.15]:48204 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751447AbeDGL7H (ORCPT ); Sat, 7 Apr 2018 07:59:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (charybdis-ext.suse.de [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id DF576AF00; Sat, 7 Apr 2018 11:59:05 +0000 (UTC) Subject: Re: [RFC 0/2] To introduce xenwatch multithreading (xen mtwatch) To: Dongli Zhang , xen-devel@lists.xenproject.org, linux-kernel@vger.kernel.org Cc: boris.ostrovsky@oracle.com, ian.jackson@eu.citrix.com, wei.liu2@citrix.com, srinivas.eeda@oracle.com References: <1523100355-27647-1-git-send-email-dongli.zhang@oracle.com> From: Juergen Gross Message-ID: <5c8c5c98-c16f-2df4-8582-90b5facc9f54@suse.com> Date: Sat, 7 Apr 2018 13:59:05 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0 MIME-Version: 1.0 In-Reply-To: <1523100355-27647-1-git-send-email-dongli.zhang@oracle.com> Content-Type: text/plain; charset=utf-8 Content-Language: de-DE Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 07/04/18 13:25, Dongli Zhang wrote: > This is to introduce "xenwatch multithreading" (or "multithreaded xenwatch", > abbreviated as 'mtwatch'). The implementation of xen mtwatch involves below > components: > > * dom0 linux kernel > * xen toolstack > > Here are what the RFC is going to discuss: > > - what is the problem > - what is the objective > - what is the solution Instead of creating one thread per domU, wouldn't it make much more sense to use another mechanism, e.g. a workqueue, to deliver the watch events? This would be one central place, wouldn't need any changes in Xen tools or complex mechanisms to select the correct thread, save resources, and domUs would benefit, too. Juergen