Received: by 10.223.185.116 with SMTP id b49csp5063152wrg; Wed, 7 Mar 2018 05:55:15 -0800 (PST) X-Google-Smtp-Source: AG47ELvUS6piWv+DYwxh3ezefgF3XLyUb3tSmXqIblNBhJ8M+Hutm0R8qbp1PYI9jVxF4EP0b+Jk X-Received: by 10.98.69.196 with SMTP id n65mr22776906pfi.29.1520430915269; Wed, 07 Mar 2018 05:55:15 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520430915; cv=none; d=google.com; s=arc-20160816; b=GRlwBmk6SxD1yZQfdpfLq4k24eMbN3djbeR8voWSnHnC5S5bnDa1uq0a27/Sm5eiPZ kSfl0V/8CNVLHVHJZpkGJOcM6osZtYAwRnT9y8Jltfifl+PI+oj+ihXm+uiJ8Li1EbxT y4gL0FERoWeXIUTHPm2qFMk/+TiiJvb8L7QF1NMfeALaPmhDgvjyCjgRU+mQZ3YFN4+x fVZxwAGcHCaivABh7DV50p0+dIzD1Tc89QF+2Mrv7BfOSkjuRdz23zzhnvpuley7AteA DVGfVwkEDnY2pzBUJiyGFXQJt7nXXRZjm44hUhAFU2tBRKrmF5TyVZTLm4Rfpzjko6yi ETvA== 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 :arc-authentication-results; bh=Bvydr2UId9dlxEnfx4N5wtJsgZhRO8hPJPE+sVFMNNY=; b=AdXF3ORBY/qgI1AbwVLiytotoy3GvPwWo1nUb6vtuTEiNKE61Ru06/rU41p1MWc6JS jNINGqPecwsnEx1wee+1d1NNW1GNh4JNFbF1njaoAsfue0+vRv8eoLUAiGxKYiamTm+v naJTCum4AXLgTPI48+efqvsvTByeFATKkjboUdoF5URKZGgY5hVuXWK3bORMJ8c9uBl+ /8qOjy+21xE043Rp2f/0YJX8lNLfNmJGvei6qfFwNvEvNsPXlWiA/fu0a2iLHoJk0bHD k35osw/ByjCNFGplwv0neybcjVZAeDcV9JRZ4L3HrFHYNBk9IaQKrEwPZ6pdtEUOJDA4 cOog== 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 f5-v6si13122664plf.223.2018.03.07.05.55.01; Wed, 07 Mar 2018 05:55:15 -0800 (PST) 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 S1754423AbeCGNyJ (ORCPT + 99 others); Wed, 7 Mar 2018 08:54:09 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:33600 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751159AbeCGNyH (ORCPT ); Wed, 7 Mar 2018 08:54:07 -0500 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 mx1.redhat.com (Postfix) with ESMTPS id 758648182D17; Wed, 7 Mar 2018 13:54:06 +0000 (UTC) Received: from flask (unknown [10.43.2.80]) by smtp.corp.redhat.com (Postfix) with SMTP id 14A441102E20; Wed, 7 Mar 2018 13:54:01 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Wed, 07 Mar 2018 14:53:24 +0100 Date: Wed, 7 Mar 2018 14:53:24 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: Vitaly Kuznetsov Cc: Paolo Bonzini , linux-kernel@vger.kernel.org, x86@kernel.org, Peter Xu , kvm@vger.kernel.org Subject: Re: [PATCH] KVM: lapic: stop advertising DIRECTED_EOI when in-kernel IOAPIC is in use Message-ID: <20180307135323.GB12290@flask> References: <20180209130133.28387-1-vkuznets@redhat.com> <87r2oyzug5.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <87r2oyzug5.fsf@vitty.brq.redhat.com> X-Scanned-By: MIMEDefang 2.78 on 10.11.54.3 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 07 Mar 2018 13:54:06 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.8]); Wed, 07 Mar 2018 13:54:06 +0000 (UTC) for IP:'10.11.54.3' DOMAIN:'int-mx03.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'rkrcmar@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2018-03-05 11:29+0100, Vitaly Kuznetsov: > Vitaly Kuznetsov writes: > > > Devices which use level-triggered interrupts under Windows 2016 with > > Hyper-V role enabled don't work: Windows disables EOI broadcast in SPIV > > unconditionally. Our in-kernel IOAPIC implementation emulates an old IOAPIC > > version which has no EOI register so EOI never happens. > > > > The issue was discovered and discussed a while ago: > > https://www.spinics.net/lists/kvm/msg148098.html > > > > Radim, Paolo, > > do we have a consensus here? (I wouldn't mind re-writing commit message > in case you think we shouldn't blame Windows, I just want to have the > annoying bug fixed :-) I have applied the patch, thanks. I think the commit message is correct (this is a Windows bug): * Current SDM has a different wording that only talks about EOI-broadcast suppression capability of the CPU. * The x2APIC document mentions that "the bit is reserved to 0 if the processor doesn't support Directed EOI" and IOAPIC is not a part of the processor, so I would assume that it doesn't hold. Basically, I think that the document confuses "Directed EOI" CPU feature and "directed EOI" IOAPIC feature, which got amended in SDM.