Received: by 2002:a6b:fb09:0:0:0:0:0 with SMTP id h9csp3660824iog; Tue, 21 Jun 2022 03:24:20 -0700 (PDT) X-Google-Smtp-Source: AGRyM1uqJfOGGgCSnISbmcX3wnhpKM0MGg8s0JHQAKrRkB7B6PuD/Ska6nkYuqCEVExQw5og0LuI X-Received: by 2002:a17:906:d84:b0:715:7f3d:403f with SMTP id m4-20020a1709060d8400b007157f3d403fmr25594651eji.406.1655807060605; Tue, 21 Jun 2022 03:24:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1655807060; cv=none; d=google.com; s=arc-20160816; b=dFwsbtJxrZMBeRcPFM27VIl9+Mqgta6lL8nnYM05w94+KT+DdnxDvBfjFuvjI6cO6s RWDCh4BZ9jJTyvVrG2QslKBVjGBtXoTKyyKNCfGvOePbhUKr0KxGlSh/QJyzw8WTuWaE q/JpSo5bfPtgDtf94UeZFREQ4MlWe4JXIsb8AuypCCaUOOaLvN+qG+w2Y1+YUi23D9e3 66jnAthGmHOXP6F3jAyCwxkVVaswLh3MOr31fQqJfHI9Y37S82Fdem7o+I4vzE1pI3rJ v+k9wpOIsTDtVl8GmswdvT24prBwFcaahoHfmpfcghrR4X2KbjIqx4seFQ85U07wJAS0 1x4w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:message-id:date:user-agent :references:organization:in-reply-to:subject:cc:to:from :dkim-signature; bh=H4C/sB5um4hN9/XHAJjRJCQS2mg0bGELmgXp1B2D5DI=; b=svAsTmtA4sIkaZFpNCPeA6/SLG10G1ZYN/PBvouhhwe6FnIoFWAQKE7VGluIqs5V1+ VcVwvIXFX2wkSiswC3+gqCcObZkIrb9tqaZvMdXhseIci+HRWmiS4hHQ1sPftnbSyvf8 teKPTJp+7Syvh6uCdYfVrGBTh/5renlxX+KS75rhExWVl/BYlpeeNRYpoaqniIjhXuyz ED+aEAztzC/9T6TOmseOvAcaFKhYIaAvMPr/AuIADjW6H2jdg2qoVLnJG+TGrP2Gk/LY WxKja8a/08KKkjBI+8dQy6e27IFY9Y4wTS9JVYxa9dwbNDd3Y1sNEwp3OkElDntysIIE OaEA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MElDHtgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id b16-20020a056402279000b0043048556c45si13450950ede.250.2022.06.21.03.23.43; Tue, 21 Jun 2022 03:24:20 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=MElDHtgm; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229531AbiFUKAA (ORCPT + 99 others); Tue, 21 Jun 2022 06:00:00 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:39024 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1349258AbiFUJ63 (ORCPT ); Tue, 21 Jun 2022 05:58:29 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 676C026AF5 for ; Tue, 21 Jun 2022 02:58:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1655805507; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=H4C/sB5um4hN9/XHAJjRJCQS2mg0bGELmgXp1B2D5DI=; b=MElDHtgmJdotS965e3kPKyp0t/U6ABJnyocHGB3W/JlxpXwoqc55BKDOaotiWJ8h0AiVGY spk0f2k0owee1XxpOP2aUSTDz3jToPNO6O/xQRvbW3WZwJZMdT26rmnaBuLityrbUyuXPC FzjC8wHNm7dQZ2fPBoskX4IBqDErRM0= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-613-88tBitKPN0CK2RYLsijSLA-1; Tue, 21 Jun 2022 05:58:21 -0400 X-MC-Unique: 88tBitKPN0CK2RYLsijSLA-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.rdu2.redhat.com [10.11.54.3]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id F208F101E9BC; Tue, 21 Jun 2022 09:58:20 +0000 (UTC) Received: from localhost (unknown [10.39.193.229]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 9F16F1121314; Tue, 21 Jun 2022 09:58:20 +0000 (UTC) From: Cornelia Huck To: Jason Wang Cc: Halil Pasic , mst , Vasily Gorbik , Christian Borntraeger , Alexander Gordeev , linux-s390@vger.kernel.org, virtualization , kvm , linux-kernel Subject: Re: [PATCH V2] virtio: disable notification hardening by default In-Reply-To: Organization: Red Hat GmbH References: <20220620024158.2505-1-jasowang@redhat.com> <87y1xq8jgw.fsf@redhat.com> User-Agent: Notmuch/0.36 (https://notmuchmail.org) Date: Tue, 21 Jun 2022 11:58:19 +0200 Message-ID: <87sfny8hj8.fsf@redhat.com> MIME-Version: 1.0 Content-Type: text/plain X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Spam-Status: No, score=-3.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_LOW, SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Jun 21 2022, Jason Wang wrote: > On Tue, Jun 21, 2022 at 5:16 PM Cornelia Huck wrote: >> >> The ifdeffery looks a big ugly, but I don't have a better idea. > > I guess you meant the ccw part, I leave the spinlock here in V1, but > Michael prefers to have that. Not doing the locking dance is good; I think the #ifdefs all over are a bit ugly, but as I said, I can't think of a good, less-ugly way... > In the future, we may consider removing that, one possible way is to > have a per driver boolean for the hardening. As in "we've reviewed and tested this driver, so let's turn it on for every device bound to it"?