Received: by 2002:a25:6193:0:0:0:0:0 with SMTP id v141csp4443868ybb; Mon, 23 Mar 2020 21:46:47 -0700 (PDT) X-Google-Smtp-Source: ADFU+vtF/5nMl99pd9e537uUsHFVXPk3fbhnamJa3DVMCw1RKS6kP/T8ICHXAnqvkUIAupW/SEwM X-Received: by 2002:a05:6830:1251:: with SMTP id s17mr21497872otp.75.1585025207789; Mon, 23 Mar 2020 21:46:47 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1585025207; cv=none; d=google.com; s=arc-20160816; b=biZ5Yel3irY+EgAhpZ0p9YyTBLg0HUiXj0CAWJSn/QgaWBwhJ9JVwRq27Kgjzcfy++ hUNxyjEF5C38v7J+ikCVsPo5bBumVMy8C80rdL5cNAQXQYiZ5rWO0o1oou7j8l4yqVWn fXkG1oo64wpg3hHvnC7N5XCC+dYAnvAQb9hyNYhtEypMskMHRTg9Qb3XbT3xp3WwXSuq Pzw0oo9fm0im4dfGQjaYSaEkrPs0lDH9+0Kuj+lFgipwe5KDA2aE3Qxo4yDARFA504TM pObk5T0P6cB8FsFmxdCIKrkUeD3IFWoWFrAb1gbGj3Lf/cPxbRcg0jyPr3v88Vh8hezG 4FhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from; bh=2ADmejmACA+GP5Bqtfo1If/41+96Aj7d4rx2PbyX9Dg=; b=Z5cx1NGHgZucCIcy9pZt2zowZ/HFSVmf/LOQNrafAA8l2+oxh4yMSFSO3gG3pWzlvv 4T0CEtjpkL9LHAXF09703aZ49dIUCG8+DJWDpU5B7psgeolAircG/aW52kvGG1GwgYb7 PwTZqcnm0qQRQB8TatKo+jl7UJrnnrTiai+wH2BzVEN0F8j+dAQ9z5psSh78mW3XF/Q1 x4QFdc11wCKztSifM8C5YDRsfONH3rbfBV61iTZ43Ah/ZGdABDxBNQGDi49TAgEZb75l o2UNSq93EzsXN0HMg/N++F0dYZe87Q8UBrIY4Ywii2Tn4GqbCC3RC+OpOolbJsJjG4u0 tahA== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r7si9177170oth.222.2020.03.23.21.46.31; Mon, 23 Mar 2020 21:46:47 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725959AbgCXEqH (ORCPT + 99 others); Tue, 24 Mar 2020 00:46:07 -0400 Received: from mx2.suse.de ([195.135.220.15]:39304 "EHLO mx2.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725853AbgCXEqH (ORCPT ); Tue, 24 Mar 2020 00:46:07 -0400 X-Virus-Scanned: by amavisd-new at test-mx.suse.de Received: from relay2.suse.de (unknown [195.135.220.254]) by mx2.suse.de (Postfix) with ESMTP id EE759AE1C; Tue, 24 Mar 2020 04:46:04 +0000 (UTC) From: Davidlohr Bueso To: tglx@linutronix.de, pbonzini@redhat.com Cc: bigeasy@linutronix.de, peterz@infradead.org, rostedt@goodmis.org, torvalds@linux-foundation.org, will@kernel.org, joel@joelfernandes.org, linux-kernel@vger.kernel.org, kvm@vger.kernel.org, dave@stgolabs.net Subject: [PATCH -tip 0/4] kvm: Use rcuwait for vcpu blocking Date: Mon, 23 Mar 2020 21:44:49 -0700 Message-Id: <20200324044453.15733-1-dave@stgolabs.net> X-Mailer: git-send-email 2.16.4 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi, The following is an updated revision of the kvm vcpu to rcuwait conversion[0], following the work on completions using simple waitqueues. Changes from then: - patch 2: Make rcuwait_wake_up() propagate the return value from wake_up_process - Sebastian and Peter. - patch 3: o Added mips changes I missed. o Fixed broken compilation on power, adding the vcore bits that kvm-hv uses (a vcore blocking when all vcpus are blocked) - Paolo. o Use TASK_IDLE instead of TASK_INTERRUPTIBLE - Peter. - patch 4: fixed swait function name typo. This has only been run tested on x86 but compile tested on mips, powerpc and arm32. This series applies on top of current -tip, which has the required rcuwait api extension. [0] https://lore.kernel.org/lkml/20200320085527.23861-3-dave@stgolabs.net/ Thanks! Davidlohr Bueso (4): rcuwait: Fix stale wake call name in comment rcuwait: Let rcuwait_wake_up() return whether or not a task was awoken kvm: Replace vcpu->swait with rcuwait sched/swait: Reword some of the main description arch/mips/kvm/mips.c | 6 ++---- arch/powerpc/include/asm/kvm_book3s.h | 2 +- arch/powerpc/include/asm/kvm_host.h | 2 +- arch/powerpc/kvm/book3s_hv.c | 22 ++++++++-------------- arch/powerpc/kvm/powerpc.c | 2 +- arch/x86/kvm/lapic.c | 2 +- include/linux/kvm_host.h | 10 +++++----- include/linux/rcuwait.h | 2 +- include/linux/swait.h | 23 +++++------------------ kernel/exit.c | 9 ++++++--- virt/kvm/arm/arch_timer.c | 2 +- virt/kvm/arm/arm.c | 9 +++++---- virt/kvm/async_pf.c | 3 +-- virt/kvm/kvm_main.c | 31 +++++++++++-------------------- 14 files changed, 49 insertions(+), 76 deletions(-) -- 2.16.4