Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp149368yba; Mon, 1 Apr 2019 03:43:15 -0700 (PDT) X-Google-Smtp-Source: APXvYqyGMgFKgnjM/JARMdfaHT8rYm7ESFqQ1sYI1B/NlXaeKA4+hHMDZ0E5QWCfQ8K/guZB1ZKK X-Received: by 2002:a63:330e:: with SMTP id z14mr12210431pgz.4.1554115395029; Mon, 01 Apr 2019 03:43:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554115395; cv=none; d=google.com; s=arc-20160816; b=YVwzNfHyRdQhtBwFjJHuGS7FPjqTnhX00f0Gjhg5h4IiTyTGT7O8hRCf18T0njTUlH gVVFTTi6mYF9S6Iq8WlvZ3PUcSB5oAc8AaO4VX3LmLU+lCleY4JaxknvwASSHjLauRx5 xlZNF6rEG0gtKkbc8X2gfogZ37pOWTAnbb/dD1GCbDfNJySwR56LQyJwWPX9bGTIrpZ3 jPHzbzy8YHpaMnYTn/2z6Klr46StMw8tOYHUxwTQTf+rQHqrvbYbeml8lyK9cINBnm4X JngeebQCgN7Dj2PAaDOF81ea/RYzd4n0M3PrJvNG5WaX9YP6OKILFKvncZxVM77/cXLB 7x1Q== 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:mime-version :message-id:date:references:in-reply-to:subject:cc:to:from; bh=CIkPZ4hE+jyUzNonViu5/h2dRfSbj83iTiTZgWvTnBA=; b=oAw43sxrI5M6sHeemGrx80+M03ejZDhOFq3WqhWIYkoedqP6BJgfyIIPJ+rUIBDop2 2C/ByMs/A0KOamUTAyK44Gy7uwlfXebi2MTjRCgh/rXNHu3byVhlipFDsEONJ3Pfe07F AG7MoHgQkIUFrogewdNTTHo5SHppK1d7wjFCaUuF4ZZwy6idcwT3ssUPtIv59Yz7XHFb Hv2rIEJosMByizO9UjDVh30nnM1TiB571QcVhz5YuQTcWYW4xXydsYXLmwwj13rSEG+0 aNYedPGVk4hnr7gbFT7HtmS5er2LpxCQiz5Nrh+LeETrJmynOIgRR07qWe+/elwRQBG6 KjvQ== 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 bj2si7642475plb.9.2019.04.01.03.42.59; Mon, 01 Apr 2019 03:43:15 -0700 (PDT) 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 S1726988AbfDAKl4 (ORCPT + 99 others); Mon, 1 Apr 2019 06:41:56 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:35181 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726192AbfDAKlz (ORCPT ); Mon, 1 Apr 2019 06:41:55 -0400 Received: by mail-wm1-f67.google.com with SMTP id y197so10783121wmd.0 for ; Mon, 01 Apr 2019 03:41:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:in-reply-to:references:date :message-id:mime-version:content-transfer-encoding; bh=CIkPZ4hE+jyUzNonViu5/h2dRfSbj83iTiTZgWvTnBA=; b=kr36ozrnDzffmocpii+eG2SQo1YvL8m/jLALZSFxPx88JKlrZqvxq9YCWfRDcr6sib JWcY+GY6D/VptqBWnrkkmWT+8l4cfZPkigVha3VwvHcCKAzosEtHSMU5l7yQA3xuxcmf juqTtWfxJHsnPeyEv0q/9Kvulv1t+wQUvEPzdtFN6p22/odMb0dCSqv/YQpt9L0kz4aI 160I1E0qrE2FTBF98UWAi1ToL7vG7sL6yoi6E0ndQQnX3eTDzSwXPsrwsTlBiMGdKzWi zmYTLs4uit1VFndm7SWYZjSQNO65wgmli+VJHZAc9Y8fQKlXEaZ/DdZWGyBbPsGqv3Go CYGA== X-Gm-Message-State: APjAAAXsl0t2HoqY9P4cEFAbKwRiUFYtv3jf9KWHcIYjyW8VDP+Zc0Tn ax0fVb9yjQT4BxmPJlqXgz+uuXFUXZE= X-Received: by 2002:a7b:c743:: with SMTP id w3mr12372088wmk.75.1554115313595; Mon, 01 Apr 2019 03:41:53 -0700 (PDT) Received: from vitty.brq.redhat.com (nat-pool-brq-t.redhat.com. [213.175.37.10]) by smtp.gmail.com with ESMTPSA id q17sm8137644wrw.70.2019.04.01.03.41.52 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Mon, 01 Apr 2019 03:41:52 -0700 (PDT) From: Vitaly Kuznetsov To: Liran Alon Cc: Paolo Bonzini , kvm@vger.kernel.org, Radim =?utf-8?B?S3LEjW3DocWZ?= , Sean Christopherson , linux-kernel@vger.kernel.org Subject: Re: [PATCH RFC] KVM: x86: vmx: throttle immediate exit through preemtion timer to assist buggy guests In-Reply-To: References: <20190328203110.20655-1-vkuznets@redhat.com> <87d0m93frp.fsf@vitty.brq.redhat.com> <89d4189b-de6a-7634-de8b-29a044a86e12@redhat.com> <63F1B6AE-F7A0-40D9-9582-558723800682@oracle.com> <32296de3-8ce0-c20a-5948-a7eef267a328@redhat.com> <87v9zy15mc.fsf@vitty.brq.redhat.com> Date: Mon, 01 Apr 2019 12:41:51 +0200 Message-ID: <87lg0u0zyo.fsf@vitty.brq.redhat.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Liran Alon writes: > So to sum-up: This matches what I mentioned in my previous emails right? > That vector 96 is not related, and the only issue here is that level-triggered interrupt handler for vector 80 is doing EOI before lowering the irq-line. > Which cause vector 80 to be injected in infinite loop. > And this is not even related to being a nested virtualization > workload. It’s just an issue in Hyper-V (L1) interrupt handler for > vector 80. Yes, it may be related to how communications between Hyper-V and Windows partition are organized but it's a pure speculation. > > Therefore the only action-items are: > 1) Microsoft to fix Hyper-V vector 80 interrupt handler to lower irq-line before EOI. > 2) Patch QEMU IOAPIC implementation to have a mechanism similar to KVM to delay injection of level-triggered interrupt > in case we are injecting the same interrupt for X times in a row. I'm intended to do 2) and we already let MS know there's an issue. Thanks for your help with the investigation guys! -- Vitaly