Received: by 10.223.176.5 with SMTP id f5csp3149306wra; Thu, 1 Feb 2018 11:33:54 -0800 (PST) X-Google-Smtp-Source: AH8x226R9F6SupkKAVFgaQf1jCViL2bpQJccNJX5uaquDoHax1aGV4GDBkkxogsZ+QX6kAQUPTzf X-Received: by 10.98.102.4 with SMTP id a4mr37793159pfc.210.1517513634808; Thu, 01 Feb 2018 11:33:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1517513634; cv=none; d=google.com; s=arc-20160816; b=Ck/l+/FQMRUka5Tz6Dy76HkztRljIvf6mD3XzUZO2+64dSZ033tI8cE2s9i+2JN0GC atyKuMKvhlgCsG7zDBatEhrYlpVt8lG/ZIab/mAEuJYHqIyo4jzHtW13SzLAKAsUeM1+ JUaMkoP/pd1hvon5AieKghWxku+86SaZrMQdrAY5+K7KcFauIBQfurxm6AeF/sBXAoE8 cGz0v6ZM6STa06gH19HKDQk7j0WKX6A+1vrQolAJlZbKDQrKPRxwncLNgc0NmOJhgj4c WJ3s+CFPFt/dUhSDE4FBbr7cHoe7iRMxqqm9TuVHhYZvQ5Zwwx/TyAwPxt/qRG2Nk6sI 8k7w== 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=lUrIRD0kg0G/IVmMRlHmhr2vr9g3nn9gdBAmAnsxKBU=; b=ecFHc8Gc8VXnXsMaMiBvIPNoi0zlotSdD+uqZOGQxBr9vca3nhQRAD/H6TVKUPXDZf YMJKIv1CPuy/CLTo+cDmMoBVSsPJexrqEgRw3lU3gXafeo/ZHJeDi2/B/uPDQacknBd6 OXQylXyj0BRln6NkYNSYFPM58hbPcZqz/Fb2Sr2OCuvIWMXjGPja9Fo3xECIUnwjqezT Waf13FDJu5fzP+4wtmshLAhzTL84WKgoO/O17Xqva9AAxMSxNpJ75lbTv8ifjZHg56AQ 59Av7hmBPI0L+goeuisSV1lBYs5/+ra9hxGvxeVWA+QY1uB3hysaM8hR5qIf6zsI7Y3e xeHA== 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 f89-v6si201604plb.344.2018.02.01.11.33.39; Thu, 01 Feb 2018 11:33:54 -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 S1754617AbeBATdS (ORCPT + 99 others); Thu, 1 Feb 2018 14:33:18 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754563AbeBATdO (ORCPT ); Thu, 1 Feb 2018 14:33:14 -0500 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 0D948356D5; Thu, 1 Feb 2018 19:33:14 +0000 (UTC) Received: from [10.36.116.75] (ovpn-116-75.ams2.redhat.com [10.36.116.75]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 4ED5860A9A; Thu, 1 Feb 2018 19:33:12 +0000 (UTC) Subject: Re: [PATCH] KVM: x86: fix backward migration with async_PF To: =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= Cc: linux-kernel@vger.kernel.org, kvm@vger.kernel.org, Wanpeng Li , stable@vger.kernel.org References: <20180201175022.25011-1-rkrcmar@redhat.com> <20180201191040.GD26932@flask> From: Paolo Bonzini Message-ID: Date: Thu, 1 Feb 2018 14:33:10 -0500 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: <20180201191040.GD26932@flask> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Thu, 01 Feb 2018 19:33:14 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 01/02/2018 14:10, Radim Krčmář wrote: >>> >> This check will break migration if the source guest and host both have >> the recent kernels which support KVM_ASYNC_PF_DELIVERY_AS_PF_VMEXIT, so >> I am not sure about it. Otherwise, the patch is okay! > Good point, breaking forward migration is worse than doing nothing. > > A compromise solution would be to drop the feature check from the > hypervisor. Newer guests would work everywhere and there would be no > change to old systems, so v4.13-v4.15 guests could at least upgrade. > > Slightly better than doing nothing, IMO, Yes, I agree. Just removing the guest_kvm_cpuid_has should be fine. Paolo