Received: by 2002:a25:ca44:0:0:0:0:0 with SMTP id a65csp1718167ybg; Thu, 30 Jul 2020 00:19:31 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxoeDL1owSNdYxfOZrofNFTqXoBvB33PQe+oUdmamoSRJIG471vCjzD/12PIaBPdtZtUiM2 X-Received: by 2002:a17:906:c143:: with SMTP id dp3mr1296333ejc.504.1596093571433; Thu, 30 Jul 2020 00:19:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1596093571; cv=none; d=google.com; s=arc-20160816; b=uKN2+O7cZTEhVxmN1pl9hoEYIUBapJnH+VCj9csE3q6AO9rwgrVDqtoyxpqvPK5TRY ys6gbrFmURLDXUUwAew4UxH6aXI6Bz7mdPB+tU1QXEVZruwa3TDrMlBQJBOJvL0LDD1E iFWogiRR4BitpXmTmzXT07Lw76MmvIRfowwuNbzick4hlgx/Q1O0VBbNeXM7zAD78GIM jT2k6s0wkiL3eBUx3rj5XDITzVxaAOEvMkdreg4JsCLcD8L/3de8Cj1QQOXzg8Fq4EGs YUOHESGhcm4lrE9r8kzgejuKDZIM3Q+bQlyfq/Yio+mbKnMD3KmOdP/BR0nLefKqmZs+ gGCA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:references :in-reply-to:subject:cc:to:dkim-signature:dkim-signature:from; bh=pJGza9Pz+sV1Z8JGFBKIAwU8e2IyPGK36s3Pj76aQFE=; b=p7Rg0lrgFlG6sqnMY2DknfglABs9qxXBehA73O73ZYqS3Y+2iCscPmKg+Tn7D9hvkK UCpO+TTZ66MPWsGaanaTSpb79ULH63VecjXc48Ua6xEIiku5KFy6WuU8ruMfNT9K3th4 TipfZUEHgDEv59A/0SokQ4wmFEngwcEXx2BuUEbFVEuBzpGauZy7atC15GVg/6umVLF6 Lc1LhN9jxbJzEcX8CKM7SZ5CQo5fjsID/dRmWUXumwc0RDyPyIUpr++RrNSWb2bgJMSm hbEhIwpw/tokIoTR/Dajn306MqRod9W0oHv9sHf8lqOXPvIxRRKelooR+qd31IanLjxR bKfQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=i9avbnTs; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="v2/7CCNT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id k26si2959578eds.49.2020.07.30.00.19.08; Thu, 30 Jul 2020 00:19:31 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linutronix.de header.s=2020 header.b=i9avbnTs; dkim=neutral (no key) header.i=@linutronix.de header.s=2020e header.b="v2/7CCNT"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=linutronix.de Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728726AbgG3HTE (ORCPT + 99 others); Thu, 30 Jul 2020 03:19:04 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:48322 "EHLO galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725892AbgG3HTE (ORCPT ); Thu, 30 Jul 2020 03:19:04 -0400 From: Thomas Gleixner DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020; t=1596093541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pJGza9Pz+sV1Z8JGFBKIAwU8e2IyPGK36s3Pj76aQFE=; b=i9avbnTss81DkmBzU4BwIQNN/Yy7tEFYX/dK7y+O1TjsfZ9E2+cfxC3b4j5IJpTxKmHAII whwYXMHShIF6fD/tQooG3Vltg+wAQHByKlZ3DlASU+RpbMeyOBVATbZ4bHwVlE1JeeCt6c SXlKqLrRlN4vfvjJ+9X1qTb/8MaaoTi3pAlIQf0CgcfJC3R/OG+g3NW1/iK7NbLRnLC0ca HA7rlYqcLRrVqpTYvl6GgVUwylc6FB8fC+UvKbYIS0jnJw5iDdxRV2BFNOJlll08B713yD eyJnNuYJtCYCHCn1qkljUGL+ztB00SE440sPS7Ts72ds8AsGGsOlD1xnCyVj0w== DKIM-Signature: v=1; a=ed25519-sha256; c=relaxed/relaxed; d=linutronix.de; s=2020e; t=1596093541; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: in-reply-to:in-reply-to:references:references; bh=pJGza9Pz+sV1Z8JGFBKIAwU8e2IyPGK36s3Pj76aQFE=; b=v2/7CCNT5pPmG7kimp3idDxfwKe1F9dXaGk7jvbAsZThXuDU2Utaa7pkHv4D1liE56BZXu giFq8KLWyl5AnrAw== To: Qian Cai Cc: LKML , x86@kernel.org, linux-arch@vger.kernel.org, Will Deacon , Arnd Bergmann , Mark Rutland , Kees Cook , Keno Fischer , Paolo Bonzini , kvm@vger.kernel.org, Gabriel Krisman Bertazi , Sean Christopherson , sfr@canb.auug.org.au, linux-next@vger.kernel.org Subject: Re: [patch V5 05/15] entry: Provide infrastructure for work before transitioning to guest mode In-Reply-To: <20200729165524.GA4178@lca.pw> References: <20200722215954.464281930@linutronix.de> <20200722220519.833296398@linutronix.de> <20200729165524.GA4178@lca.pw> Date: Thu, 30 Jul 2020 09:19:01 +0200 Message-ID: <87bljxa2sa.fsf@nanos.tec.linutronix.de> MIME-Version: 1.0 Content-Type: text/plain Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Qian Cai writes: > On Wed, Jul 22, 2020 at 11:59:59PM +0200, Thomas Gleixner wrote: > SR-IOV will start trigger a warning below in this commit, > > [ 765.434611] WARNING: CPU: 13 PID: 3377 at include/linux/entry-kvm.h:75 kvm_arch_vcpu_ioctl_run+0xb52/0x1320 [kvm] Yes, I'm a moron. Fixed it locally and failed to transfer the fixup when merging it. Fix below. > [ 768.221270] softirqs last disabled at (5093): [] asm_call_on_stack+0x12/0x20 > [ 768.267273] ---[ end trace 8730450ad8cfee9f ]--- Can you pretty please trim your replies? >> --- >> V5: Rename exit -> xfer (Sean) Thanks, tglx --- diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c index 82d4a9e88908..532597265c50 100644 --- a/arch/x86/kvm/x86.c +++ b/arch/x86/kvm/x86.c @@ -8682,7 +8682,7 @@ static int vcpu_run(struct kvm_vcpu *vcpu) break; } - if (xfer_to_guest_mode_work_pending()) { + if (__xfer_to_guest_mode_work_pending()) { srcu_read_unlock(&kvm->srcu, vcpu->srcu_idx); r = xfer_to_guest_mode_handle_work(vcpu); if (r)