Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-0.3 required=3.0 tests=DKIM_ADSP_CUSTOM_MED, DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS autolearn=no autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CD231C3815B for ; Mon, 20 Apr 2020 15:01:57 +0000 (UTC) Received: from lists.xenproject.org (lists.xenproject.org [192.237.175.120]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id 9C018206F9 for ; Mon, 20 Apr 2020 15:01:57 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="WgOT1IYh" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 9C018206F9 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=xen-devel-bounces@lists.xenproject.org Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jQXve-0001mD-1U; Mon, 20 Apr 2020 15:01:46 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.89) (envelope-from ) id 1jQXvd-0001m8-4q for xen-devel@lists.xenproject.org; Mon, 20 Apr 2020 15:01:45 +0000 X-Inumbo-ID: d936394e-8317-11ea-b58d-bc764e2007e4 Received: from mail-wm1-x335.google.com (unknown [2a00:1450:4864:20::335]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id d936394e-8317-11ea-b58d-bc764e2007e4; Mon, 20 Apr 2020 15:01:44 +0000 (UTC) Received: by mail-wm1-x335.google.com with SMTP id u16so3174540wmc.5 for ; Mon, 20 Apr 2020 08:01:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:reply-to:to:cc:references:in-reply-to:subject:date:message-id :mime-version:content-transfer-encoding:content-language :thread-index; bh=ffQMkShY/21xVg5iLV5KNIlCzyK/hZzdotYmiBh3NVw=; b=WgOT1IYhWk8wUPg3n4DLM+Drl2yavFIjiygv/z096X4bMe9I1fZsLuGVZUR7u8+K2t S/1PpjzknJYjf0PGluwZqpkzjbqtlmlaO1XVc8l7R8iVpCHcbTJzmQYbHqTVqzYfOtU1 31keHCn52yCmW2SPX5cQLriFByeL8GdvwdQUoudDMx7Dily0jt2LqR5hBV/j4dhLKMEY JFB9T5tTW+O5yBCk7rIFHAssLzvfR1aS7Q8Gu/0lVkhE71dBZqKFbH+R0IjcE216nhMU ILJ1r8z7ijdO4XEK12bw6SlpeBFRjr6Ph9wNmAtN1qNGukhfk/6erCMqHXyUXUaKCvCl Ke9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:reply-to:to:cc:references:in-reply-to :subject:date:message-id:mime-version:content-transfer-encoding :content-language:thread-index; bh=ffQMkShY/21xVg5iLV5KNIlCzyK/hZzdotYmiBh3NVw=; b=FnudXhMo35/oZDqi5nus+CXcCcK/U/bcwQUn12AOhW87woOspP6cCHtB3fMisKmrgt nYPui4njRcKIs85k1N1NTCKnWr27MPrBUqE00EybjFuqA06VPTpovCi6aLRIULOUw/JT CUpGI/19C+8QDgirqd6CYfZypOGBRv09VasRa6woLgAVb8LahVpHE7N3Dry3pSgs80DN 8QzxGsZB9Vu81dDy6I5ya0WyPPuzTR+ypsPWbQ0j0kvCDIBUbX41WD0oObxBcAlx7+Gn 7Aoni4YEqZhiShSSXZeeyCxlkVl3eyA1xuMFmLqVBbiH1n8P9th81NDg8xPMSCS3Az65 qiIA== X-Gm-Message-State: AGi0Pubm83nsJpKb+avDccAbGu0dH36BGQswaU174inHmtk/s5TpPD0Y J0ws+4ynpnQSmLcVmBlIfVg= X-Google-Smtp-Source: APiQypKGAp4L4yQFbQxgbStiIUzd/FFARkLJ2QemlYDpaNupVnL/0+O7bdBtbX/UF3qL6x7/b6ytng== X-Received: by 2002:a1c:e1c1:: with SMTP id y184mr18618597wmg.143.1587394903662; Mon, 20 Apr 2020 08:01:43 -0700 (PDT) Received: from CBGR90WXYV0 ([54.239.6.186]) by smtp.gmail.com with ESMTPSA id s14sm1698966wme.33.2020.04.20.08.01.41 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Mon, 20 Apr 2020 08:01:43 -0700 (PDT) From: Paul Durrant X-Google-Original-From: "Paul Durrant" To: "'Julien Grall'" , "'Jan Beulich'" , References: <25c5b76f-4f95-3ba9-0ae0-dd0c1f3f8496@suse.com> <002801d61302$dbd21950$93764bf0$@xen.org> <410df70e-6e21-2d0a-8148-62ccf2a24366@xen.org> In-Reply-To: <410df70e-6e21-2d0a-8148-62ccf2a24366@xen.org> Subject: RE: [PATCH 0/3] xenoprof: XSA-313 follow-up Date: Mon, 20 Apr 2020 16:01:41 +0100 Message-ID: <004301d61724$9a5c9ab0$cf15d010$@xen.org> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable X-Mailer: Microsoft Outlook 16.0 Content-Language: en-gb Thread-Index: AQKUpBz832WsrmfTrWwwQFYKS8h7/QHBHudWATlYg7ym7SqU4A== 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: , Reply-To: paul@xen.org Cc: 'Andrew Cooper' , 'Stefano Stabellini' , 'Ian Jackson' , 'George Dunlap' , 'Wei Liu' Errors-To: xen-devel-bounces@lists.xenproject.org Sender: "Xen-devel" > -----Original Message----- > From: Julien Grall > Sent: 20 April 2020 15:15 > To: paul@xen.org; 'Jan Beulich' ; = xen-devel@lists.xenproject.org > Cc: 'Andrew Cooper' ; 'George Dunlap' = ; 'Ian > Jackson' ; 'Stefano Stabellini' = ; 'Wei Liu' > > Subject: Re: [PATCH 0/3] xenoprof: XSA-313 follow-up >=20 > Hi Paul, >=20 > On 15/04/2020 09:50, Paul Durrant wrote: > >> -----Original Message----- > >> From: Jan Beulich > >> Sent: 15 April 2020 09:45 > >> To: xen-devel@lists.xenproject.org > >> Cc: Andrew Cooper ; George Dunlap = ; Ian > Jackson > >> ; Julien Grall ; Stefano = Stabellini > >> ; Wei Liu ; Paul Durrant = > >> Subject: [PATCH 0/3] xenoprof: XSA-313 follow-up > >> > >> Patch 1 was considered to become part of the XSA, but it was then > >> decided against. The other two are a little bit of cleanup, albeit > >> there's certainly far more room for tidying. Yet then again Paul, > >> in his mail from Mar 13, was asking whether we shouldn't drop > >> xenoprof altogether, at which point cleaning up the code would be > >> wasted effort. > >> > > > > That's still my opinion. This is a large chunk of (only passively = maintained) code which I think is > of very limited value (since it relates to an old tool, and it only = works for PV domains). >=20 > While there are no active user we are aware of, this is an example on > how to implement a profiler backend with Xen. So I would agree with > Andrew here. >=20 > IIRC, the reason behind your request is it makes difficult for your > xenheap work. Am I correct? If so, do you have a thread explaining the > issues? After shared info and grant table, it is the only other occurrence of a = xenheap page shared with a non-system domain. Also, it cannot be = trivially replaced with an 'extra' domheap page because its assignment = changes. Thus a whole bunch of cleanup work that I was hoping to do = (largely in domain_relinquish_resources and free_domheap_pages) is = either ruled out, or would have to special-case this type of page. Also, I am unconvinced that PV guests are sufficiently common these days = (apart from dom0) that profiling them is of any real use. Paul