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=-7.5 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,NICE_REPLY_A,SPF_HELO_NONE,SPF_PASS,USER_AGENT_SANE_1 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 89B70C433C1 for ; Sun, 28 Mar 2021 20:46:53 +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 35C3E61924 for ; Sun, 28 Mar 2021 20:46:53 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 35C3E61924 Authentication-Results: mail.kernel.org; dmarc=fail (p=quarantine dis=none) header.from=amazon.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.102703.196183 (Exim 4.92) (envelope-from ) id 1lQcIa-0000zf-GC; Sun, 28 Mar 2021 20:46:16 +0000 X-Outflank-Mailman: Message body and most headers restored to incoming version Received: by outflank-mailman (output) from mailman id 102703.196183; Sun, 28 Mar 2021 20:46:16 +0000 Received: from localhost ([127.0.0.1] helo=lists.xenproject.org) by lists.xenproject.org with esmtp (Exim 4.92) (envelope-from ) id 1lQcIa-0000zY-Cm; Sun, 28 Mar 2021 20:46:16 +0000 Received: by outflank-mailman (input) for mailman id 102703; Sun, 28 Mar 2021 20:46:14 +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.92) (envelope-from ) id 1lQcIY-0000zT-BB for xen-devel@lists.xenproject.org; Sun, 28 Mar 2021 20:46:14 +0000 Received: from smtp-fw-2101.amazon.com (unknown [72.21.196.25]) by us1-amaz-eas2.inumbo.com (Halon) with ESMTPS id 6bd2621a-dc34-4db7-9edc-9803a02ee16b; Sun, 28 Mar 2021 20:46:13 +0000 (UTC) Received: from iad12-co-svc-p1-lb1-vlan3.amazon.com (HELO email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com) ([10.43.8.6]) by smtp-border-fw-out-2101.iad2.amazon.com with ESMTP; 28 Mar 2021 20:46:04 +0000 Received: from EX13D12EUA002.ant.amazon.com (pdx1-ws-svc-p6-lb9-vlan2.pdx.amazon.com [10.236.137.194]) by email-inbound-relay-2b-c7131dcf.us-west-2.amazon.com (Postfix) with ESMTPS id EBB91A245B; Sun, 28 Mar 2021 20:46:03 +0000 (UTC) Received: from 147dda3ee008.ant.amazon.com (10.43.164.198) by EX13D12EUA002.ant.amazon.com (10.43.165.103) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sun, 28 Mar 2021 20:46:02 +0000 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: 6bd2621a-dc34-4db7-9edc-9803a02ee16b DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amazon.com; i=@amazon.com; q=dns/txt; s=amazon201209; t=1616964373; x=1648500373; h=to:cc:references:from:message-id:date:mime-version: in-reply-to:content-transfer-encoding:subject; bh=BFoR87Zga8SDLRAr8FqLozZHk1+9WOoIeUVoGrO4GqY=; b=AixelBfk0fStrqVo06Ep3P48jNRY9pxTNeOTf6KLwzGU0xbOlm6tKmf9 0otcOgHRGHTYj0/lk91ExBk9/5sVKeWA8AMN9XW5AjL3W4Eh9bg0ofqw6 /YjwczdibvSMS7UFrryERZrQ0+rmj09nJCZG4UV99ez23rcVJIZZwIMsy s=; X-IronPort-AV: E=Sophos;i="5.81,285,1610409600"; d="scan'208";a="98513050" Subject: Re: [net-next 1/2] xen-netback: add module parameter to disable ctrl-ring To: Leon Romanovsky , =?UTF-8?B?SsO8cmdlbiBHcm/Dnw==?= CC: Andrew Lunn , , , , , , References: <64f5c7a8-cc09-3a7f-b33b-a64d373aed60@amazon.com> <12f643b5-7a35-d960-9b1f-22853aea4b4c@amazon.com> From: "Hsu, Chiahao" Message-ID: Date: Sun, 28 Mar 2021 22:46:01 +0200 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8"; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US X-Originating-IP: [10.43.164.198] X-ClientProxiedBy: EX13D10EUA002.ant.amazon.com (10.43.165.64) To EX13D12EUA002.ant.amazon.com (10.43.165.103) Leon Romanovsky 於 2021/3/22 08:13 寫道: > CAUTION: This email originated from outside of the organization. Do not click links or open attachments unless you can confirm the sender and know the content is safe. > > > > On Mon, Mar 22, 2021 at 08:01:17AM +0100, Jürgen Groß wrote: >> On 22.03.21 07:48, Leon Romanovsky wrote: >>> On Mon, Mar 22, 2021 at 06:58:34AM +0100, Jürgen Groß wrote: >>>> On 22.03.21 06:39, Leon Romanovsky wrote: >>>>> On Sun, Mar 21, 2021 at 06:54:52PM +0100, Hsu, Chiahao wrote: >>>>> <...> >>>>> >>>>>>>> Typically there should be one VM running netback on each host, >>>>>>>> and having control over what interfaces or features it exposes is also >>>>>>>> important for stability. >>>>>>>> How about we create a 'feature flags' modparam, each bits is specified for >>>>>>>> different new features? >>>>>>> At the end, it will be more granular module parameter that user still >>>>>>> will need to guess. >>>>>> I believe users always need to know any parameter or any tool's flag before >>>>>> they use it. >>>>>> For example, before user try to set/clear this ctrl_ring_enabled, they >>>>>> should already have basic knowledge about this feature, >>>>>> or else they shouldn't use it (the default value is same as before), and >>>>>> that's also why we use the 'ctrl_ring_enabled' as parameter name. >>>>> It solves only forward migration flow. Move from machine A with no >>>>> option X to machine B with option X. It doesn't work for backward >>>>> flow. Move from machine B to A back will probably break. >>>>> >>>>> In your flow, you want that users will set all module parameters for >>>>> every upgrade and keep those parameters differently per-version. >>>> I think the flag should be a per guest config item. Adding this item to >>>> the backend Xenstore nodes for netback to consume it should be rather >>>> easy. >>>> >>>> Yes, this would need a change in Xen tools, too, but it is the most >>>> flexible way to handle it. And in case of migration the information >>>> would be just migrated to the new host with the guest's config data. >>> Yes, it will overcome global nature of module parameters, but how does >>> it solve backward compatibility concern? >> When creating a guest on A the (unknown) feature will not be set to >> any value in the guest's config data. A migration stream not having any >> value for that feature on B should set it to "false". >> >> When creating a guest on B it will either have the feature value set >> explicitly in the guest config (either true or false), or it will get >> the server's default (this value should be configurable in a global >> config file, default for that global value would be "true"). >> >> So with the guest created on B with feature specified as "false" (either >> for this guest only, or per global config), it will be migratable to >> machine A without problem. Migrating it back to B would work the same >> way as above. Trying to migrate a guest with feature set to "true" to >> B would not work, but this would be the host admin's fault due to not >> configuring the guest correctly. so the expected changes would be 1. remove feature-ctrl-ring & feature-dynamic-multicast-control from netback_probe( ) 2. consume the backend Xenstore nodes in connect( ) to see if Xen tools set nodes(true/false) or not(unknown) Thanks. Andy > As long as all new features are disabled by default, it will be ok. > > Thanks > >> >> Juergen > > > >