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=-2.7 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,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 DF321C433FE for ; Thu, 3 Dec 2020 18:44:54 +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 6A2BA207B6 for ; Thu, 3 Dec 2020 18:44:54 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 6A2BA207B6 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 list by lists.xenproject.org with outflank-mailman.43919.78822 (Exim 4.92) (envelope-from ) id 1kktaa-0006xc-H3; Thu, 03 Dec 2020 18:44:24 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 43919.78822; Thu, 03 Dec 2020 18:44:24 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kktaa-0006xV-Dw; Thu, 03 Dec 2020 18:44:24 +0000 Received: by outflank-mailman (input) for mailman id 43919; Thu, 03 Dec 2020 18:44:23 +0000 Received: from us1-rack-iad1.inumbo.com ([172.99.69.81]) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1kktaZ-0006xP-6a for xen-devel@lists.xenproject.org; Thu, 03 Dec 2020 18:44:23 +0000 Received: from mail-wr1-x42d.google.com (unknown [2a00:1450:4864:20::42d]) by us1-rack-iad1.inumbo.com (Halon) with ESMTPS id 55cfa44d-51dd-40bc-baf0-71aab0d69465; Thu, 03 Dec 2020 18:44:22 +0000 (UTC) Received: by mail-wr1-x42d.google.com with SMTP id p8so2934501wrx.5 for ; Thu, 03 Dec 2020 10:44:22 -0800 (PST) Received: from CBGR90WXYV0 (host86-183-162-145.range86-183.btcentralplus.com. [86.183.162.145]) by smtp.gmail.com with ESMTPSA id l8sm428251wro.46.2020.12.03.10.44.20 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Thu, 03 Dec 2020 10:44:21 -0800 (PST) X-BeenThere: xen-devel@lists.xenproject.org List-Id: Xen developer discussion List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Errors-To: xen-devel-bounces@lists.xenproject.org Precedence: list Sender: "Xen-devel" X-Inumbo-ID: 55cfa44d-51dd-40bc-baf0-71aab0d69465 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=6QEq0OQR2ej4DNaJ8dsHWczskzh0/w/6V75OIxZkJX4=; b=VaImNiGqfXBDh21Vg8qGs1mxqHsKF6RKzgPMhpnU0jhP0Qj6Vh3V/NBCKJxa0PKPGd m5YdB48lXrTXI5bLHCSD/YCJK9YWPPSjQPeraIhguO46n8MqI6TSnAoWTOrFLvIsqQSj 9rcwpC4u83fbVpRBPNtZRSemLeDYUX+qY1BPnzBY97kiOUSzeGqATEVXXNF16qd1qycw zQn7UmvhoL2lgHSpAPL1/ylper5OpAJk42OUMU3ypuwc5uKg/G9PepTVUHZ/LQR1qaxI yMOgKW/qbStUNV4mDrpn+JMgpyqNpg1RXuMcouiGX2KHbGKQ4QQIrsONCBDwUjQNz5hD l+kw== 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=6QEq0OQR2ej4DNaJ8dsHWczskzh0/w/6V75OIxZkJX4=; b=WNSJxMr9MXC5Fq8SE7wEdww3Fr0HkDWNiStfr1sJh6TT73n92W2IE3NXBl0LVejQYl 9nw6AJLAqlvJPIMmf7ms7F+BvZwoNd/dhrNPYLbot396aEOlmOz2msF7Unfz5XO2zsLg Efm/vuq4RsNgpEKAV5m6Q6M5Nwl1zoPz/g/3PUE0c0CKZrJhq2fujWoXc5vx1xdd8bbb awJS/opa3v5omSLJ5qLof4g1GsTGE81N580oaGZhfxZAGXWQt9i9mfcV67AcH7Y8h3Ck L9XV5UIiQWi/fn0JsBmebLdIL4q/p9uUguoAqMK8WEpKZhQLrjy6MA9Zq9dmWzS+jNHW sZKQ== X-Gm-Message-State: AOAM530AouSvqj4r5zxxJvMrMc67Qkk04SW5yScLr7GmQJhF3rAX7xl3 AQu3HoYgtvfzd7PBH3gUHVs= X-Google-Smtp-Source: ABdhPJzFhiagCCPdnRzly3I5duj+YsIIWOdAL2IWbqxM/WD/GOgehy+EcL+6fslEpBmTslorOwMIzw== X-Received: by 2002:a5d:444c:: with SMTP id x12mr656073wrr.6.1607021061686; Thu, 03 Dec 2020 10:44:21 -0800 (PST) From: Paul Durrant X-Google-Original-From: "Paul Durrant" Reply-To: To: =?utf-8?Q?'J=C3=BCrgen_Gro=C3=9F'?= , "'Jan Beulich'" Cc: "'Paul Durrant'" , "'Eslam Elnikety'" , "'Ian Jackson'" , "'Wei Liu'" , "'Anthony PERARD'" , "'Andrew Cooper'" , "'George Dunlap'" , "'Julien Grall'" , "'Stefano Stabellini'" , "'Christian Lindig'" , "'David Scott'" , "'Volodymyr Babchuk'" , =?utf-8?Q?'Roger_Pau_Monn=C3=A9'?= , References: <20201203124159.3688-1-paul@xen.org> <20201203124159.3688-2-paul@xen.org> <00ee01d6c98b$507af1c0$f170d540$@xen.org> <8a4a2027-0df3-aee2-537a-3d2814b329ec@suse.com> <00f601d6c996$ce3908d0$6aab1a70$@xen.org> In-Reply-To: Subject: RE: [PATCH v5 1/4] domctl: introduce a new domain create flag, XEN_DOMCTL_CDF_evtchn_fifo, ... Date: Thu, 3 Dec 2020 18:44:19 -0000 Message-ID: <010201d6c9a4$50194060$f04bc120$@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: AQJzrCHAX/gquRkO4g65wfjgQBytUAJ7xs67Aj6rtzQCSqguWAI8ixj/AoRsg/ABh9SJBahBgCNw > -----Original Message----- [snip] > >>>> > >>>> All of the hunks above point out a scalability issue if we were = to > >>>> follow this route for even just a fair part of new sub-ops, and I > >>>> suppose you've noticed this with the next patch presumably = touching > >>>> all the same places again. > >>> > >>> Indeed. This solution works for now but is probably not what we = want in the long run. Same goes > for > >> the current way we control viridian features via an HVM param. It = is good enough for now IMO since > >> domctl is not a stable interface. Any ideas about how we might = implement a better interface in the > >> longer term? > >> > >> While it has other downsides, J=C3=BCrgen's proposal doesn't have = any > >> similar scalability issue afaics. Another possible model would > >> seem to be to key new hypercalls to hypervisor CPUID leaf bits, > >> and derive their availability from a guest's CPUID policy. Of > >> course this won't work when needing to retrofit guarding like > >> you want to do here. > >> > > > > Ok, I'll take a look hypfs as an immediate solution, if that's = preferred. >=20 > Paul, if you'd like me to add a few patches to my series doing the = basic > framework (per-domain nodes, interfaces for setting struct domain = fields > via hypfs), I can do that. You could then concentrate on the tools = side. >=20 That would be very helpful. Thanks Juergen. Paul