Received: by 10.223.185.116 with SMTP id b49csp2388664wrg; Mon, 12 Feb 2018 08:47:50 -0800 (PST) X-Google-Smtp-Source: AH8x226YAKUUU3mnk2qahXatkMGKxMPXjG6W5+knkdNWlae3uao+t4awKOeG7p1eOjv8QahvdARO X-Received: by 2002:a17:902:61:: with SMTP id 88-v6mr11531357pla.428.1518454070829; Mon, 12 Feb 2018 08:47:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518454070; cv=none; d=google.com; s=arc-20160816; b=Cmd0AXNczCx/itizBm4FOsiPDjFYac53yLe6zcEOsWpQBysOrAYkewHcXdRi6wQ7Ww ASgotKo/U5uWGHRpm+4ZtW9zGOZPt+QqOmymEIV13SQIMm6pFrNKZtJxlj667Imd6RLm wDGBgtnUCOBwLZR3U6pKafm184LHIzCV15pi1j1uET/oiBhLmV/5Cs2P64En6u8hrj0N tb9DvjHE5/a7+AqYPAZ/Oz26KzjAzbAyskcomKP94UX5QXHzKn9OvR2VVkOIe6KssjKM 4Ilzcim5VaGOJnMT2e5BbyBRRRfxSzQlqTRlWIFl0Q+IqbeFKPiuV4oD+Ukd5fosfYLY QVDg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:arc-authentication-results; bh=NeZ89SJ/kn1+G2A7/uyJFrtFMZYnHIvnIjdc+FiuXvE=; b=D/yZevpvLqEIHw/BtsONLIzukZg75ELbf8PUUg4zDJXKWNNFJ2PybIlnKP4a+MgROU VLOQKue/5QvKre6ylBYAg22T+Yk2JXY2S+Yl4OfVdUWucBxhVG6LCeBS9juUlcK4EpPG YYQdWrL+3nw8gVCaZHWnT8ji9q8vxDQ62O9kvMs4IM6DxBkLPn5KoMWj5P+shBrZCos0 kS3ZabrWuJ3glYfJONwTamnG5ib6rTiT33dSivGyjyZzNXI+6GTVGlnKPMvABPGGydB0 +OT4FxgKsdpB/fzTxVgiIP+5rCUXg8i+v5K4QRVWgTyvqlNCX6r8rqE/fSfLdhmCjPxB VoHQ== 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 v186si4386602pfb.284.2018.02.12.08.47.23; Mon, 12 Feb 2018 08:47:50 -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 S934184AbeBLLbd (ORCPT + 99 others); Mon, 12 Feb 2018 06:31:33 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:50048 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934034AbeBLLba (ORCPT ); Mon, 12 Feb 2018 06:31:30 -0500 Received: from smtp.corp.redhat.com (int-mx06.intmail.prod.int.rdu2.redhat.com [10.11.54.6]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 603DD40A0971; Mon, 12 Feb 2018 11:31:30 +0000 (UTC) Received: from [10.36.117.137] (ovpn-117-137.ams2.redhat.com [10.36.117.137]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 34F782166BAE; Mon, 12 Feb 2018 11:31:29 +0000 (UTC) Subject: Re: [PATCH] KVM: lapic: stop advertising DIRECTED_EOI when in-kernel IOAPIC is in use To: Vitaly Kuznetsov , Peter Xu Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, x86@kernel.org, =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= References: <20180209130133.28387-1-vkuznets@redhat.com> <20180211052539.GA31261@xz-mi> <87r2pqxx6r.fsf@vitty.brq.redhat.com> From: Paolo Bonzini Message-ID: <4d3e535c-3f26-0a7e-efd7-fd55fd4928e8@redhat.com> Date: Mon, 12 Feb 2018 12:31:27 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.5.2 MIME-Version: 1.0 In-Reply-To: <87r2pqxx6r.fsf@vitty.brq.redhat.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-Scanned-By: MIMEDefang 2.78 on 10.11.54.6 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 12 Feb 2018 11:31:30 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.7]); Mon, 12 Feb 2018 11:31:30 +0000 (UTC) for IP:'10.11.54.6' DOMAIN:'int-mx06.intmail.prod.int.rdu2.redhat.com' HELO:'smtp.corp.redhat.com' FROM:'pbonzini@redhat.com' RCPT:'' Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 12/02/2018 12:30, Vitaly Kuznetsov wrote: >> - Radim's suggestion was to disable DIRECTED_EOI unconditionally but I'm not >> that radical :-) In theory, we may have multiple IOAPICs in userspace in >> future and DIRECTED_EOI can be leveraged. > > I sort of agree on this, especially considering that we already have > IOAPIC version 0x20 support in QEMU already. Yeah, and directed EOI is faster AFAIU. > My thoughts were: with in-kernel IOAPIC nobody does EOI broadcast > disabling today or he's already broken -- there's no way to EOI > level-triggered interrupts. And the patch changes nothing for QEMU > ioapic implementation. > > What I'm not sure about is if we allow migration between in-kernel and > QEMU ioapic implementations. I don't think so but in case we do it is > again already broken because going down from 0x20 to 0x11 will leave you > without EOI register. Migrating from 0x11 to 0x20 should be fine, the > guest will continue without knowing there's a new feature available. No, we don't allow that. Paolo