Received: by 10.223.176.5 with SMTP id f5csp627242wra; Fri, 9 Feb 2018 04:45:07 -0800 (PST) X-Google-Smtp-Source: AH8x224Kj7LyH1NXl3QJKic7cUpAsqahvuUdIYrtKaZRkQqpcgKROl6Xov1cvUg66RCSSx96Jkoc X-Received: by 2002:a17:902:9683:: with SMTP id n3-v6mr2432279plp.177.1518180306960; Fri, 09 Feb 2018 04:45:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518180306; cv=none; d=google.com; s=arc-20160816; b=g4PBx4m51vmb7Unt+dZOsNHK1AOLSENztRwJDgkGk59GEKmSeBBtgc9CDmCtyxj7Jk L5oNqjq/n86cnYIXu1jmvrOm39aMpVQDSrA1JB+79f6m4vNGTqMEogPHTurDfRpX7yFU EKnveT788KUSGdnu7I21hyF+9/dGIXBdqrNjpziDbXF2vdZJzvIs9UP2IoIQ3l9RCv7A n1AwktvLzFV0YUbHEJq1OkDL8/0ozA0Dtp+DXF6cEpovTEXFvFLWxT1W4N8ogmnXyYvD CYO5F89DUUEBSMvnurrppQ5uVKPehN4vKl8ppiFEHuc8eLwfHX0Ttz9JVFg50JAWNBq2 L9Bg== 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=df1kngqL5lMJiCc28HO27/NESo0XQOwfP9KoqLNVprc=; b=uAnQHZ3WASlTOti2Buk1UjyBSGg23+cs1lkM03kmIRtv4qTYceVvcTIO7gPhiq0slG Ytc9e5HENkPZpTAjrD+6SAwLohPpaxPEmnop0h1pe0ksVp685lb+7y2aoI6qsbJicdrG dswB/5AnRHcCn+GM60UayJAWOMKGULm6meAHxRF86HEyr+IGzYWBVZigrWbTGv3waZEn buIClSgGAJwcDVyCShq5GZ+RR+TPnQXdgASJOr3CmluCiIqxKz2zBoxu8QoyDqNutFFg m3bxQQvaIUyz4cxYjDQPNzXyfAk+BOnMEQSECHyCYjEjvwHHKqRSw5erUuhwlYv6y/24 Eing== 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 z61-v6si1528948plb.669.2018.02.09.04.44.52; Fri, 09 Feb 2018 04:45:06 -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 S1751910AbeBIMnb (ORCPT + 99 others); Fri, 9 Feb 2018 07:43:31 -0500 Received: from mx3-rdu2.redhat.com ([66.187.233.73]:58958 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1750863AbeBIMn3 (ORCPT ); Fri, 9 Feb 2018 07:43:29 -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 14445EAE8B; Fri, 9 Feb 2018 12:43:29 +0000 (UTC) Received: from [10.36.117.203] (ovpn-117-203.ams2.redhat.com [10.36.117.203]) by smtp.corp.redhat.com (Postfix) with ESMTPS id 5C7932166BAE; Fri, 9 Feb 2018 12:43:27 +0000 (UTC) Subject: Re: [PATCH v2] x86/kvm/vmx: Don't halt vcpu when L1 is injecting events to L2 To: Chao Gao , kvm@vger.kernel.org Cc: linux-kernel@vger.kernel.org, x86@kernel.org, "H. Peter Anvin" , Ingo Molnar , Thomas Gleixner , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Liran Alon References: <1518152952-12633-1-git-send-email-chao.gao@intel.com> From: Paolo Bonzini Message-ID: <8654b592-c945-f66c-6c7c-f26cd3fa24f6@redhat.com> Date: Fri, 9 Feb 2018 13:43:24 +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: <1518152952-12633-1-git-send-email-chao.gao@intel.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.1]); Fri, 09 Feb 2018 12:43:29 +0000 (UTC) X-Greylist: inspected by milter-greylist-4.5.16 (mx1.redhat.com [10.11.55.1]); Fri, 09 Feb 2018 12:43:29 +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 09/02/2018 06:09, Chao Gao wrote: > Although L2 is in halt state, it will be in the active state after > VM entry if the VM entry is vectoring according to SDM 26.6.2 Activity > State. Halting the vcpu here means the event won't be injected to L2 > and this decision isn't reported to L1. Thus L0 drops an event that > should be injected to L2. Can you please write a testcase for kvm-unit-tests? Thanks, Paolo