Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp809163imu; Fri, 11 Jan 2019 09:23:51 -0800 (PST) X-Google-Smtp-Source: ALg8bN5KTFCRIp6VtN3u8t4Eeoaevg0r/0G3KWkJ8AvXb0wLuocrEkUuW6Nh5lm1fxMSzlrAQAat X-Received: by 2002:a62:220d:: with SMTP id i13mr15293725pfi.162.1547227431852; Fri, 11 Jan 2019 09:23:51 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1547227431; cv=none; d=google.com; s=arc-20160816; b=L1GCZN84g9qANyKbI44UnA+E9cSNfmQhfj7C7l8tVtD0ymLqR2iDcUcNJPwf4PlGiL JUZ6diyOZiSkJ/FKiSSiFXokL+MAlZ7FmNwoNGdPZX1MeS0uCxaTFSzPspXoW8ageoOX OH4SbE3IGm6ToN2TYUHERiHN5nfNKPDix4DeQmINU38yscAqDn0T1rzXij+1aXrr6rAr vuOEo0ycu6Tsv0tNMDvrpGjmDqBaM22AkXvc5Ny8oafhRh0Zb3gBxUX84xw65ZCf/iXV nfSDRf4twAVNnBtar+qfwn+DMayO50xGtnsJFo/tyCwZdjSG8qQWZ2mCsg6+GY4OkGaM QsGA== 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=AtnMgLZnCiQEVztTDd1APlXUl0V+3NK5jSdDWwbmz5I=; b=Eqgv9eQiQP7r1fyEEzcYNSL66yU7p6Q1OXOxkuCfkuTQzQM1NGjQ9oXShzocsqMkmt tS/NCq3B0RHmckHt3wjLjHTFekGhPkXKjLbBf4hMR0LOngrmjHZyNbp3zdenu90J0RKO JsphBONGTh+cSpslU0JdWM6flzqkWydh6VBZ2MBg3TMC+r/cQ78MR2KeVdq3nuSZQxHZ iAhpyVJa8RzagqxRpzRAAwxjXbXnN0GPF9EoCizB6HUhJIAi4vUfltjauAp9PZcrKcSq a05sJahVC5eZcJbeM89rkJNmqoA4A7Tg06pGrXG/CTXUoRuwOEJMZpCKHSk6uknhqw3A wvUA== 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 n125si13058816pga.179.2019.01.11.09.23.36; Fri, 11 Jan 2019 09:23:51 -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 S1732904AbfAKNvr (ORCPT + 99 others); Fri, 11 Jan 2019 08:51:47 -0500 Received: from mx1.redhat.com ([209.132.183.28]:40822 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1732892AbfAKNvr (ORCPT ); Fri, 11 Jan 2019 08:51:47 -0500 Received: from smtp.corp.redhat.com (int-mx07.intmail.prod.int.phx2.redhat.com [10.5.11.22]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id E4598356F3; Fri, 11 Jan 2019 13:51:46 +0000 (UTC) Received: from flask (unknown [10.40.205.161]) by smtp.corp.redhat.com (Postfix) with SMTP id D0A931000049; Fri, 11 Jan 2019 13:51:39 +0000 (UTC) Received: by flask (sSMTP sendmail emulation); Fri, 11 Jan 2019 14:51:38 +0100 Date: Fri, 11 Jan 2019 14:51:38 +0100 From: Radim =?utf-8?B?S3LEjW3DocWZ?= To: lantianyu1986@gmail.com Cc: Lan Tianyu , pbonzini@redhat.com, tglx@linutronix.de, mingo@redhat.com, bp@alien8.de, hpa@zytor.com, x86@kernel.org, kvm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] KVM/VMX: Avoid return error when flush tlb successfully in the hv_remote_flush_tlb_with_range() Message-ID: <20190111135138.GG14852@flask> References: <20190104072044.1800-1-Tianyu.Lan@microsoft.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190104072044.1800-1-Tianyu.Lan@microsoft.com> X-Scanned-By: MIMEDefang 2.84 on 10.5.11.22 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.30]); Fri, 11 Jan 2019 13:51:47 +0000 (UTC) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 2019-01-04 15:20+0800, lantianyu1986@gmail.com: > From: Lan Tianyu > > The "ret" is initialized to be ENOTSUPP. The return value of > __hv_remote_flush_tlb_with_range() will be Or with "ret" when ept > table potiners are mismatched. This will cause return ENOTSUPP even if > flush tlb successfully. This patch is to fix the issue and set > "ret" to 0. > > Fix: a5c214da("KVM/VMX: Change hv flush logic when ept tables are mismatched.") > Signed-off-by: Lan Tianyu > --- Applied, thanks.