Received: by 2002:a05:7412:bbc7:b0:fc:a2b0:25d7 with SMTP id kh7csp1155627rdb; Fri, 2 Feb 2024 16:14:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IERylAzvvlYASRbIDFBGwhxApufi1kw+aQJD6bNwNQ8ZqciQF/I/FUa5zwb/zksy+B6hDgo X-Received: by 2002:a05:6102:356b:b0:46b:68fd:ed with SMTP id bh11-20020a056102356b00b0046b68fd00edmr4281789vsb.3.1706919283056; Fri, 02 Feb 2024 16:14:43 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1706919283; cv=pass; d=google.com; s=arc-20160816; b=rww/GqsawupFWZ+bm4uU2C8PQQYREFKOJloMn3fkS9CjyN6RKvh8BsTAJ6BW8PIn7A xm12FANfMd+GIf89kflL/p/F0pCOXlU0DssPHT9GNyyouaLMP41MUeUN3Eja85E18o2F PsoltVsmxWVLWWcwtbF3FagCVxmrUsE5CGt51FmBv3B8cq0mRi97YGByaXu3YTJZ+c5g ALIUF/+2iWVG5ytNYhgGPaWGKCCwdhBBatOq5/JFaoMuWuXe9saYYo990Sg3iJ22nruk k6ip+N5O4coJ6YZzrY96EKCqQJRkx4WiPbvdINGIZvyYdf9/eoEMPNvyNL+RF/C3Dl6e ZapA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=cc:to:from:subject:message-id:references:mime-version :list-unsubscribe:list-subscribe:list-id:precedence:in-reply-to:date :dkim-signature; bh=RFHy4J7jDQ4d5j3WCPCBh8/2qvapIS45X/oK++3Gn9I=; fh=18ehGy4UeerIK0LdDp0HEiz+jjjxm2Jj6DCnO+EPVKw=; b=QycsmeAuokca+tfRg2e8i4vsvQJaVOmqvSx3WHVgPkpsbSom0XTVduue5KIryCxDBG qoii/tCs+esi/ioKyL+pHSFH27rNeT1RPVyaRkuyx4yAMOJJYx/ErQ9iJoQl9+XaGNAC naAkQySuJ8l9hoEuhTBnmRHdxEiSLqohrQuoPw/4hAPLTerhDqofIyDn5rjCh6cCHn7/ 1zpnyWLAkpdSp+6r5fpuTm1nApOkuXBppm86DWBa7dsQjExO78IpAeDYWgTp1qsX4Hae khCbEZtDjnXS1RNgWsBwaSm/Ag3N29Bhl2pMYDueOYxpLEtp7TqynsHjNYoNuLnYu+XW MQEw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EQIz3FI5; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-50760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com X-Forwarded-Encrypted: i=1; AJvYcCWZ8npwJMprxjMYAa+ivdugDARB55nt6nPNqA4Op2Ll/m4ULJp4Fjq7QAe6CITlx43bqaqD/X/wGmGkkSUbb/59nzkZpcyYM7uC3zRIXA== Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id s7-20020a0cf787000000b006819a5a0c8fsi3178361qvn.150.2024.02.02.16.14.42 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 02 Feb 2024 16:14:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-50760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=EQIz3FI5; arc=pass (i=1 spf=pass spfdomain=flex--seanjc.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-50760-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-50760-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id C841D1C22991 for ; Sat, 3 Feb 2024 00:14:42 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 8108D79C0; Sat, 3 Feb 2024 00:12:53 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="EQIz3FI5" Received: from mail-yw1-f202.google.com (mail-yw1-f202.google.com [209.85.128.202]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3F5054411 for ; Sat, 3 Feb 2024 00:12:51 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.128.202 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706919172; cv=none; b=shYDtgmkvp/QifEh/EK9AUq5v2Rla89J5RniAYx6YbFoivLNNcVtdtTEb9ECzKjFMe9RLdk+0JQrygDqQPEludz1Fle95gcTw52+aMega6rWH2uFK3qQrilUlD0tA6BEwCQKSInAZoRLcv/36OigncSKqNTjBkybqXkVpYOq4lg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1706919172; c=relaxed/simple; bh=k+JGmJT6pmw6BssMNubU4nZj2bP5QOThSW+G9JE+WGA=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=oNMwPgYUgPSBOpoVvdUq8Cd4Xs8JRZODjCMPaocWX+RMZMbEuiRU6XEjljP1VxeROJEOfzx/4rYBqtnGC/0iryr5tlw1ELvu+fgQpsaYpMJlc49U5qt3ncLHEp6GaCWP4JiCNr5STfOLidMx1LhE3iIlXBxhY89J5j87KgqGYac= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=EQIz3FI5; arc=none smtp.client-ip=209.85.128.202 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=flex--seanjc.bounces.google.com Received: by mail-yw1-f202.google.com with SMTP id 00721157ae682-6040597d005so51071267b3.2 for ; Fri, 02 Feb 2024 16:12:51 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1706919170; x=1707523970; darn=vger.kernel.org; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:from:to:cc:subject:date:message-id:reply-to; bh=RFHy4J7jDQ4d5j3WCPCBh8/2qvapIS45X/oK++3Gn9I=; b=EQIz3FI553KtrbtE7faX2fAxLHjgbVtobjQSZ7frcWj78znQRvN9qWTlCRG6jerUzp nNSBiwXxBCUv895JeGGE0lnVgD4gIgWLaEUaafuPHVjT3BOMQN4nK7Tc3F1JIWSJsG8I 1zi07p7OhPzo/o14WsBnGprFhr7g+UKwrgKCOEGiLtcIQkQ+NH7Ky270nGhi58LWVsXu 49dNDBf+eRDDIioISEZftX24forhAG2dlZegRXCW4pwtVyRhsqs3V8jv0V1jeNfWMM8N kTsMX92ZXaACOOVwgMGj8SxJEMo2y6sNH711c05GVA2Xc0Skr/CA+BlLZwqHyhlyMV29 jzbw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1706919170; x=1707523970; h=cc:to:from:subject:message-id:references:mime-version:in-reply-to :date:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=RFHy4J7jDQ4d5j3WCPCBh8/2qvapIS45X/oK++3Gn9I=; b=ZsSM3PIUkojndRogM84phvUm6OY4V8XRJJtAGAEbtO3ngpJasi8V3IxW+n8wX96n9+ 575A3cL8igSU5VVtMU7XpED6GWbpQ5UPugR2FVLJw1ha5G4YnpzjpuavJ7IUXuNs5TzP Ik6ORRXK6eQ+58J3OVT/zl+uEgY8BUkoToknDgub4r/48JeQnT6MyUCDFA1NTWXN3PNA EazKIYshvnmJ0A5WeT7C4wQxTbFgs3Rm2LCxjyXbo6Eu/Ize31QLwfl29RhZC+M9N/yD HUFR6xQeOue/qOVX75fEg1qAEBTSR9X4Z952tDS9qrKP9ssr65TwTNrK+92yl6j+3/ea 3P8Q== X-Gm-Message-State: AOJu0YzSCsYbW/5Bwf09XBekL3Nl1gNwUctrMXTOa3ys/IvF61sF6aWg BKNhg00iroAEjVKtNT/fTrwtLwTPVzkrp9mdghbp8riNRByf/2ZZgPL2pa/TooheSBOzl0oUYjE jtw== X-Received: from zagreus.c.googlers.com ([fda3:e722:ac3:cc00:7f:e700:c0a8:5c37]) (user=seanjc job=sendgmr) by 2002:a05:6902:2192:b0:dc6:fec4:1c26 with SMTP id dl18-20020a056902219200b00dc6fec41c26mr29129ybb.1.1706919170350; Fri, 02 Feb 2024 16:12:50 -0800 (PST) Date: Fri, 2 Feb 2024 16:11:31 -0800 In-Reply-To: <20240103075343.549293-1-ppandit@redhat.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240103075343.549293-1-ppandit@redhat.com> X-Mailer: git-send-email 2.43.0.594.gd9cf4e227d-goog Message-ID: <170671742789.3944893.6069307090680601894.b4-ty@google.com> Subject: Re: [PATCH] KVM: x86: make KVM_REQ_NMI request iff NMI pending for vcpu From: Sean Christopherson To: Sean Christopherson , Prasad Pandit Cc: kvm@vger.kernel.org, linux-kernel@vger.kernel.org, Prasad Pandit Content-Type: text/plain; charset="utf-8" On Wed, 03 Jan 2024 13:23:43 +0530, Prasad Pandit wrote: > kvm_vcpu_ioctl_x86_set_vcpu_events() routine makes 'KVM_REQ_NMI' > request for a vcpu even when its 'events->nmi.pending' is zero. > Ex: > qemu_thread_start > kvm_vcpu_thread_fn > qemu_wait_io_event > qemu_wait_io_event_common > process_queued_cpu_work > do_kvm_cpu_synchronize_post_init/_reset > kvm_arch_put_registers > kvm_put_vcpu_events (cpu, level=[2|3]) > > [...] Applied to kvm-x86 fixes, thanks! [1/1] KVM: x86: make KVM_REQ_NMI request iff NMI pending for vcpu https://github.com/kvm-x86/linux/commit/6231c9e1a9f3 -- https://github.com/kvm-x86/linux/tree/next