Received: by 2002:a05:6a11:4021:0:0:0:0 with SMTP id ky33csp470092pxb; Tue, 14 Sep 2021 01:31:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzN/Qplr47p3sn0RqLqDfRYjyJsCObUJFZe5M/2aVDtxbAX4bJQ3/T3DCLvAV0KzL68eK7m X-Received: by 2002:aa7:c945:: with SMTP id h5mr18151753edt.350.1631608296480; Tue, 14 Sep 2021 01:31:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1631608296; cv=none; d=google.com; s=arc-20160816; b=Z+Jr10A0H3rl4RBgpWMr7pL9YOIlmavP1+qkZQE9IMbFCy6b/MSvW8tSi0oFnzd++y bAAH/YD26Uo2fdFzBhSpwltULzQlwvMo2R6vJ9B8g2tL9vvtlCVCfPnocXA8ta+SHmje GQmT1RA7WQwsf8rAmoBJX8IbAIYaWce8Nz6aXBJuq2t6nCnD9TbFOZJejSHClNByrzaq TTparzCQdMr7e4RrUTvAURzorgetwX+W6SUcWBOaktsyuCOyaw8nyaL3pV7+Ph9RdjdE g1y8MKIj6Z3hm1RV3o4XAblbggpfopbWuYaCXTCZ3qptuzM5bA+y8CUePfc8P5a41vp/ FkDA== 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:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=uHkQ2f03H/PuJHXm8XPlJhTMFmQaWQv3oameKd/9pIM=; b=Ra2G4p4qDh4WOMAWAY63Wn0x8bkFjjrkphHnvEvRA0/T5D/CGWSqFG19ybPHL6bSIr r50kSbL6K7aTeiA4y2qgxHhLHDbe5pvzpfFfJ9lhlZgGE9d7TpzYiQZoGoAGw/mUwGd8 CoJcH+Rd/TotMpHha0YyoZ+lXhQDA5vor4ZlPYzTZNA0d6vX9m+Nb0eu4OummGhCDAeB mxXvRqdMsfEQRsu6h9TPwYZ0SH+ZpoAjSaLw+rTdE02S2YFRdNmeU8F+JfC6ddQqYOHT n4P1ZNa51KB22584zIuF2Eu9LKx5iIO5Uctn4cUYr0Ei22TC86A4joDGz3vE9yxvc5Q3 J/+A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Fj0aHeO6; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dh1si9881189edb.140.2021.09.14.01.31.13; Tue, 14 Sep 2021 01:31:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=Fj0aHeO6; dkim=neutral (no key) header.i=@linutronix.de; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229622AbhINIay (ORCPT + 99 others); Tue, 14 Sep 2021 04:30:54 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:60230 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229458AbhINIax (ORCPT ); Tue, 14 Sep 2021 04:30:53 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1631608175; 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=uHkQ2f03H/PuJHXm8XPlJhTMFmQaWQv3oameKd/9pIM=; b=Fj0aHeO69qk/iu1WeOScRO/audTzEodFbNV1WK85R/QJT0mRZdUMh1SxUU7ps0Pg+pBQyr E4BJ5vTRFeo5EUPSd5htXSrL8QFHGlpaXZ3U3XICyes1/cp0K90pfF6JckbCE9FUCWTwl5 AlA/ZfKlDHQ7OKmFUQ8bIC0Cc7jNKc7WlUr1+2KrvTkV4Mk0sh+LQD3ayuQmgSJXOl9w6s psPsp59bFHrP+rE2736xe38iF9kL+EpFtGDOaxrqhjC5t71n8bZvrw9hNd/xlwJdoCPq3P p5a6CGsUBrceiJRgK7yAWu9ivH76OxFbaOIZkvVjZlLjOuNnQW7tpKnT7esEoA== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1631608175; 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=uHkQ2f03H/PuJHXm8XPlJhTMFmQaWQv3oameKd/9pIM=; b=cNiMAtDbpBa10XpUJgI4NVAbvk88gwVvjrYB/S9/ooE1FdRTbPykAQS5QAHOo/8KAhxh1s XJcVOXKp4ZcLuHBQ== To: "Michael S. Tsirkin" Cc: Jason Wang , virtualization , linux-kernel , "Hetzelt, Felicitas" , "kaplan, david" , Konrad Rzeszutek Wilk , pbonzini , Andi Kleen , Dan Williams , "Kuppuswamy, Sathyanarayanan" , Ingo Molnar , Borislav Petkov , Peter Zijlstra , Andy Lutomirski , Bjorn Helgaas , Richard Henderson , Thomas Bogendoerfer , James E J Bottomley , Helge Deller , "David S . Miller" , Arnd Bergmann , Jonathan Corbet , Peter H Anvin , Dave Hansen , Tony Luck , Kirill Shutemov , Sean Christopherson , Kuppuswamy Sathyanarayanan , X86 ML Subject: Re: [PATCH 6/9] virtio_pci: harden MSI-X interrupts In-Reply-To: <20210913164934-mutt-send-email-mst@kernel.org> References: <20210913055353.35219-1-jasowang@redhat.com> <20210913055353.35219-7-jasowang@redhat.com> <20210913015711-mutt-send-email-mst@kernel.org> <20210913022257-mutt-send-email-mst@kernel.org> <20210913023626-mutt-send-email-mst@kernel.org> <20210913024153-mutt-send-email-mst@kernel.org> <87bl4wfeq1.ffs@tglx> <20210913164934-mutt-send-email-mst@kernel.org> Date: Tue, 14 Sep 2021 10:29:35 +0200 Message-ID: <878rzzef0w.ffs@tglx> MIME-Version: 1.0 Content-Type: text/plain Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Sep 13 2021 at 16:54, Michael S. Tsirkin wrote: > On Mon, Sep 13, 2021 at 09:38:30PM +0200, Thomas Gleixner wrote: >> and disable it again >> before reset() is invoked. That's a question of general robustness and >> not really a question of trusted hypervisors and encrypted guests. > > We can do this for some MSIX interrupts, sure. Not for shared interrupts though. But you have to make sure that the handler does not run before and after the defined points. And that's even more important for shared because with shared interrupts the interrupt can be raised at any point in time via the other devices which share the line. Thanks, tglx