Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1616986yba; Thu, 4 Apr 2019 14:33:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqweplCkojQf/CGBSCu93yMhpMHEKeIEpQGvVjEbH0PckUWCVhFQvEGdGz13VuXMrnK3XSog X-Received: by 2002:a17:902:b407:: with SMTP id x7mr9040144plr.288.1554413590092; Thu, 04 Apr 2019 14:33:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554413590; cv=none; d=google.com; s=arc-20160816; b=0eSmDpdSG4rGw9qxAwY2SZ2Ehp3/YU4RTiM47bP75PjKpd2VmnVGfqqYdoAcfcRX5Y OoPjRSohEhP8xqLhhp2SYiX+LNlCoD9UefO7yZIVfsxYqa4MfRU/i6UBJ0qbBOy5fGWk /91oXNqJQU9sc5nOY+edUGTOlRqWFYgw8TJrJAX3NhRHVkGezUspHjmjEVrfTcvEsIpy 29AS0Ij4ReidIJG/cyjpJK/FE/KcBaPOoqRGiN+VHCeg+iMriNvBgxyzZwVunNwXqdh9 J6KqAY++vhBS+omCy0an+iOR3FZ6hqTaIcPsw0mG99PhhbbCKSEjtIw3rT7AyNDO5RdN N2Ww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date; bh=6KkHtEt7btbSOHsxgP6KCTtMlijDGdtTEomdZsZl+dI=; b=M9oZjC4Utaa7V5VOxr20iFc9C7j/Me/WoLkaZT3ilHTjWW3KHsBJCcdn0LP9rcCoK8 TOQ03p/wyTj0T0cwdBADdmFYkGbMV0HSBvFu4VgbRBwqjwvQ1Cehy4dej/2Cdyi8KUfw MRlwB/U8ABsp7ZNAqs4oxRQ2Qa8m9Vh9Qb86Eni3KwusZMoPp8DwY56XEKgpeo6r85u4 rBTFGYFwOZTlv0sCmh9kG+FvQoD+NV6d74xpqzLk6t+UjdDf4cO1rzFcmrBcB+hLuEY5 Iqlck6Z7/ZXIRiUyTjvmU1T3v0L6WJ1RfA975EXN/HEeAYQvSx9GwHjIlwx5gSERb8N3 TrMw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id o11si17071714pgv.13.2019.04.04.14.32.55; Thu, 04 Apr 2019 14:33:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729751AbfDDVaI (ORCPT + 99 others); Thu, 4 Apr 2019 17:30:08 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56764 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726790AbfDDVaH (ORCPT ); Thu, 4 Apr 2019 17:30:07 -0400 Received: from smtp.corp.redhat.com (int-mx01.intmail.prod.int.phx2.redhat.com [10.5.11.11]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id C494331676A0; Thu, 4 Apr 2019 21:30:07 +0000 (UTC) Received: from flask (ovpn-204-248.brq.redhat.com [10.40.204.248]) by smtp.corp.redhat.com (Postfix) with SMTP id BA33B6013B; Thu, 4 Apr 2019 21:30:04 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Thu, 04 Apr 2019 23:30:03 +0200 Date: Thu, 4 Apr 2019 23:30:03 +0200 From: "rkrcmar@redhat.com" To: "Suthikulpanit, Suravee" Cc: "linux-kernel@vger.kernel.org" , "kvm@vger.kernel.org" , "joro@8bytes.org" , "pbonzini@redhat.com" Subject: Re: [PATCH 0/6] KVM/x86: Add workaround to support ExtINT with AVIC Message-ID: <20190404213001.GA21138@flask> References: <20190322115702.10166-1-suravee.suthikulpanit@amd.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190322115702.10166-1-suravee.suthikulpanit@amd.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.11 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.41]); Thu, 04 Apr 2019 21:30:07 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019-03-22 11:57+0000, Suthikulpanit, Suravee: > This series is one of the prerequisites for supporting AMD AVIC with > in-kernel irqchip (kernel_irqchip=on). > > Since AVIC does not support ExtINT interrupt, which is required during > the booting phase of Windows and FreeBSD VMs (e.g. PIT -> PIC -> ExtInt). > This results in VM hang in the boot loader with kernel_irqchip=on mode. > > This series provides workaround by temporary deactivate AVIC and fallback > to use legacy interrupt injection (w/ vINTR and interrupt window). > Then re-activate AVIC once the intrrupts are handled. The solution looks reasonable (although it seems dangerous to me) as we only enable the workaround if the interrupt cannot be immediately injected. The interesting part is that split irqchip works, yet it cannot inject ExtInt correctly either -- does the guest OS behave differently, or does split irqchip just ignore the ExtInt? Thanks.