Received: by 2002:a05:6a10:6d10:0:0:0:0 with SMTP id gq16csp1331686pxb; Sat, 23 Apr 2022 03:55:34 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyr1ylEjT0uohUw4HkTGdBf1EklV1TrGbWl5wKRen+lSGJndQK6U1bviV28cdiCiBodPSdS X-Received: by 2002:a65:4807:0:b0:3aa:3050:e24 with SMTP id h7-20020a654807000000b003aa30500e24mr7562845pgs.299.1650711334438; Sat, 23 Apr 2022 03:55:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1650711334; cv=none; d=google.com; s=arc-20160816; b=tP9g/bqqPg6bHKrJDyCl62KT49XbdkDVn7flufGugJnqmk0D/1jmZygvYKyxre93FM O/yuvLOOaGhTfkvuQqMDR/rf16PizySA8KjhqL+W9nRCcGO7G7iSnexu/7cFZGWm4Ay7 JGX0d0T1KD4eGpqdmXb7ARq+LEbfw6dPmu79VYNFVOl5whjA8dsMYjEqpstMj/jzz+9y wkm8dbKnndvBohyDyjvqE7r+i4kyfg3udzFDB+q3DJphqB5JbAUE1ieqjXAGt5i25uJ3 pihidzrZrey7ZDjvrq7OLumU/Xj+wJL0k8g1/ZrRMcSTqCj2vW74imIcM4V/hmviMOpx DZIQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=57z4OopW9t12UdPuezGepVNHEzKlyiey+aOxeYySrDU=; b=r82ZmKn9YUqEBnG4Uzt9Dmh0F9UEfRquxQ1nLFNwLsNRtbckxtQNJO1+rqVaVuPXRA mjICK8zwn9JykNxxLwZbICKK65kJaJ7lu84VUkWQ7YvObu9IC/XYklfcretYyYhGDtbS M4x/NnTRVmzzgW9p+BfUCy4gMugPl0ufKjsNOiN/YpFmFUnd4V7ODIY4KhX6Ej0xmlCq UIOgww39Npok+9kBSzuUYsW/+KqfNaO1QYG/gLp8axPevfb13bep6TeMUvoKvt129+/6 ffUOFm1hYv3dWit9zzVASX9O1Dl1MQe+4HTaCnRgea2rsikttjTEXUCPRd637D6Ju9KY cVog== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=coRHeWIR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id k2-20020a170902c40200b00158f23ac798si331144plk.128.2022.04.23.03.55.20; Sat, 23 Apr 2022 03:55:34 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@linuxfoundation.org header.s=korg header.b=coRHeWIR; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233666AbiDWGyT (ORCPT + 99 others); Sat, 23 Apr 2022 02:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47488 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233589AbiDWGyS (ORCPT ); Sat, 23 Apr 2022 02:54:18 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B8DE55F8CA; Fri, 22 Apr 2022 23:51:22 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ams.source.kernel.org (Postfix) with ESMTPS id 6C6F6B80022; Sat, 23 Apr 2022 06:51:21 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4FAACC385A5; Sat, 23 Apr 2022 06:51:19 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1650696680; bh=K/et5AaKBRLTBYtnLXvvukZr52M2pfPjJy2F2k300V8=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=coRHeWIRmnAV7xb3syQDjEUvW8vLdNM4I37T4uJOt7KEdtkyq1AFj1lQiS/OuH9vg yzNIpqqmJklkc1i/xvekGW7Bcff9m9lSqzayeV+RjrA6idcxYQ9OlhPCq1Frr5uron oBXFiZrspQR8fSjShC1uMylq4Zm7xCEAhgKilsT8= Date: Sat, 23 Apr 2022 08:51:16 +0200 From: Greg Kroah-Hartman To: Sebastian Ene Cc: Rob Herring , Arnd Bergmann , Dragan Cvetic , linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, maz@kernel.org, will@kernel.org, qperret@google.com Subject: Re: [PATCH v2 0/2] Detect stalls on guest vCPUS Message-ID: References: <20220422141949.3456505-1-sebastianene@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220422141949.3456505-1-sebastianene@google.com> X-Spam-Status: No, score=-7.7 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Apr 22, 2022 at 02:19:48PM +0000, Sebastian Ene wrote: > This adds a mechanism to detect stalls on the guest vCPUS by creating a > per CPU hrtimer which periodically 'pets' the host backend driver. > > This device driver acts as a soft lockup detector by relying on the host > backend driver to measure the elapesed time between subsequent 'pet' events. > If the elapsed time doesn't match an expected value, the backend driver > decides that the guest vCPU is locked and resets the guest. The host > backend driver takes into account the time that the guest is not > running. The communication with the backend driver is done through MMIO > and the register layout of the virtual watchdog is described as part of > the backend driver changes. > > The host backend driver is implemented as part of: > https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/3548817 > > Changelog v2: > - move the driver to misc as this does not cope with watchdog core > subsystem Wait, why does it not cope with it? That's not documented anywhere in your patch that adds the driver. In fact, most of the text here needs to be in the changelog for the driver submission, not thrown away in the 00/XX email that will never end up in the kernel tree. thanks, greg k-h