Received: by 2002:ab2:69cc:0:b0:1fd:c486:4f03 with SMTP id n12csp265735lqp; Tue, 11 Jun 2024 04:05:55 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUgQsW/xMDV3DDsThbHAsn7ambQdYLPLUjh+TZBvnJUK3uk4LABlcvxHDmQ+NZe/UOYVXiCDILCbSNwyl6tJCyeQK+maX/2JGi3UljlIg== X-Google-Smtp-Source: AGHT+IHCYQzyp6CiNcH7ZRXSi388d8Zu7Hs+48+e9hcIUMuCUKax/yyYh4TtikWGzLNokYA72QSk X-Received: by 2002:a05:6a20:734f:b0:1b6:dc98:af04 with SMTP id adf61e73a8af0-1b8696fd940mr3472325637.0.1718103955411; Tue, 11 Jun 2024 04:05:55 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1718103955; cv=pass; d=google.com; s=arc-20160816; b=ZhPvrhnoSJQytEs/m/6kgrsCiTrrLQgYA9TkQ64qyojnCxYNsYi10WGHMNzXNTSx1v 17EgW17nQViA6ktVSX6PEPvuDqQahTewtkAJr+kOeC4MA/4ebvLI/ITvaNNV4TN5eQqf 5MRRwA1CK923m6Gq8wTtyKRXMQAw1s9dzPirZ7L1J8uwdk8CdZfIMamxCzOEzARzDFzf JidmwheL8F162dB3T9Lz104T9IhbhRCLtjWmb7svAjbuggC7hAFAtfZEehLPytGer/uD kMre5CU6uS4Ad3CuITJLqTfc6qhTIDnMNr8D26SyVT4gYGVlmrAqt+tRf6Seo4NVbgXo yi1A== 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=4xD4B/30d59fgI1TQcHmQ/HHM3gNeD0CWu+CBJTxBNY=; fh=R+vIC4v3int2VbqpijX2ViZiXt0/TxBxk9xgQK62uJE=; b=wDlBBxMmCdD0hmIyMOEXZWce8S6fbvUdVaawi47LGGck2JQ8IXhIdcL33Bwcxeaac0 XDDZ0bdJLBxc8L5Z1Lmfj/sChxNL6rkOJpYJyIqWDlurUXotBLCCxjbhqHJH15In0d33 UvZhqNAjSq3A4T/fnr90zQNqCrIXO5hqbiMbi/wmBqJypErZFUyvWmnufBrLAVx92C2C RJ0FLiZ/L5l8yd3vSdjCPjq7/lz2wVT3oqNPhpHDDcrj+2Zxvag2PcBoet+lPymZNTbG 8O8wodaMo/wtIdvhAzJMK5do8XOk3js+EcDNvfCAKWDlU861WEu+Zem8Xo/4weSiOjUN NBJg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Kfh5vuv2; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-209697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209697-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [2604:1380:45e3:2400::1]) by mx.google.com with ESMTPS id 41be03b00d2f7-6ead7f3b053si4521704a12.141.2024.06.11.04.05.55 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 11 Jun 2024 04:05:55 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-209697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) client-ip=2604:1380:45e3:2400::1; Authentication-Results: mx.google.com; dkim=pass header.i=@google.com header.s=20230601 header.b=Kfh5vuv2; arc=pass (i=1 spf=pass spfdomain=flex--sebastianene.bounces.google.com dkim=pass dkdomain=google.com dmarc=pass fromdomain=google.com); spf=pass (google.com: domain of linux-kernel+bounces-209697-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45e3:2400::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-209697-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 sv.mirrors.kernel.org (Postfix) with ESMTPS id 937ED2897BD for ; Tue, 11 Jun 2024 11:03:58 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 47C5917B507; Tue, 11 Jun 2024 11:02:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b="Kfh5vuv2" Received: from mail-wr1-f74.google.com (mail-wr1-f74.google.com [209.85.221.74]) (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 04C7417B43B for ; Tue, 11 Jun 2024 11:01:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.221.74 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718103719; cv=none; b=LrmWLo3qhoD3c4Uosuxxe9RMOUi6ijQzd2TYdIGpt1Wv9JIixSBERKBiErU+jbY9U6/XtHMTU6At1qzg9bH4pMpj1cRsuEJ3AHImAWYT2Xol1u0MRieBySdRqTWzY/4Fnzu9iQ/+ehHmpIOO1ZSKBvlc9QH1RhuV8pjX/Ox/stk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1718103719; c=relaxed/simple; bh=ERjV5BJYroAXFIaG6FmVQOy7+GFyAqC/Q40IjLgdSn0=; h=Date:In-Reply-To:Mime-Version:References:Message-ID:Subject:From: To:Cc:Content-Type; b=QTjcjREbv7tbLPLKfgjqQzCNI7KEKw0YUoj0HhbKq8NNE0yMCSyfNZwFiIr680xDmu+VsKRVzhWZKJ4zzqBVh6/tm1YxsHnVX2lDrRK1eD/1FHtRusx0ZHlzQAbO/idM+Fq2wUFNjbsXHXC9yr9nKX+/oEkoc6aA64K4+aLx36E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=reject dis=none) header.from=google.com; spf=pass smtp.mailfrom=flex--sebastianene.bounces.google.com; dkim=pass (2048-bit key) header.d=google.com header.i=@google.com header.b=Kfh5vuv2; arc=none smtp.client-ip=209.85.221.74 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--sebastianene.bounces.google.com Received: by mail-wr1-f74.google.com with SMTP id ffacd0b85a97d-35f2030f868so1736317f8f.2 for ; Tue, 11 Jun 2024 04:01:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20230601; t=1718103716; x=1718708516; 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=4xD4B/30d59fgI1TQcHmQ/HHM3gNeD0CWu+CBJTxBNY=; b=Kfh5vuv2ic6piktH3Pq6vRz5gbg3y3wMOwyPSqzWVpgwCU5LgBf5K2g/rA/0lc6QUC IJe3hoopZjmqKYxw+W8j3r044JHG0WqKd0H0xMKhTp9R+9kYLuvjKUttqU1LIm/MpCtP 6drarUoejmkykFR8P3/qW1+wlT7mKPCDa2+Py/KEayGzX6tnfMx+141DkRIUzVtXEYIM YOq8sT2I5QupmZRCRiy9tYUU0/uyiMhztjQbhGac5YpVBiz9GUdyuTGnx9WjsqJE6xuR ZX1/2BCIU71BSvhFOVGx2N9G9imzWvDVN9sztNv9aLBMxbitUX5FfCEKaOLWiXaX2k75 F9BQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1718103716; x=1718708516; 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=4xD4B/30d59fgI1TQcHmQ/HHM3gNeD0CWu+CBJTxBNY=; b=dCsa1PYkSMKr45giBO04zLoOCyFU/mbCmuTzEacAE/afEmAOvBcWKob69/lE56c50N INqc9vTnzuK8Hl8GRICu+2Dw7LZd481eXrmcLqcsXZ36tRscunJHrsGxIQpfWRwBDmpH au7RrFeRPvTV5SSSVRRfX6/5gkS65GA2MfaSIyiXxBu8kNlI2B4ittUCLValhfRqSbUP 3EpOwxsudY/I8MwhwV1HwSkKywE39H9l8m0HjSaW9my+GLTShEMzg9+gtk3zW5yzIM3k 2VJN2fK4NKFz5m4Tx0GlkSs2M17BJzx7nSAL932gWBKvmJBSdSaf9ygaoJItpscEC5qb /LIQ== X-Gm-Message-State: AOJu0YwGx8oDlbpwjTXfLCRx0olNN6n8tjN/Bf1QVdfVQOTxUY8cSnLU auT3BlLQzldoxbx3ls63R05g8mURIsNpr8OMM1hdcpLdK4Xx/xRlfQYauhHvxWPtoG0Kg1P7hvE WuvVONtkgZQ7xbKAu8pEuARO0jg== X-Received: from sebkvm.c.googlers.com ([fda3:e722:ac3:cc00:28:9cb1:c0a8:cd5]) (user=sebastianene job=sendgmr) by 2002:a5d:648c:0:b0:35f:3041:9ca0 with SMTP id ffacd0b85a97d-35f30419d43mr596f8f.10.1718103716414; Tue, 11 Jun 2024 04:01:56 -0700 (PDT) Date: Tue, 11 Jun 2024 11:01:36 +0000 In-Reply-To: <20240611110136.2003137-2-sebastianene@google.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: Mime-Version: 1.0 References: <20240611110136.2003137-2-sebastianene@google.com> X-Mailer: git-send-email 2.45.2.505.gda0bf45e8d-goog Message-ID: <20240611110136.2003137-3-sebastianene@google.com> Subject: [PATCH v2 1/2] dt-bindings: vcpu_stall_detector: Add a PPI interrupt to the virtual device From: Sebastian Ene To: arnd@arndb.de, gregkh@linuxfoundation.org, will@kernel.org, maz@kernel.org, Rob Herring , Dragan Cvetic , Guenter Roeck Cc: linux-kernel@vger.kernel.org, devicetree@vger.kernel.org, kernel-team@android.com, Sebastian Ene , Conor Dooley Content-Type: text/plain; charset="UTF-8" The vcpu stall detector allows the host to monitor the availability of a guest VM. Introduce a PPI interrupt which can be injected from the host into the virtual gic to let the guest reboot itself. Signed-off-by: Sebastian Ene Acked-by: Conor Dooley --- .../devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml b/Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml index 1aebeb696ee0..e12d80be00cd 100644 --- a/Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml +++ b/Documentation/devicetree/bindings/misc/qemu,vcpu-stall-detector.yaml @@ -29,6 +29,9 @@ properties: Defaults to 10 if unset. default: 10 + interrupts: + maxItems: 1 + timeout-sec: description: | The stall detector expiration timeout measured in seconds. @@ -43,9 +46,12 @@ additionalProperties: false examples: - | + #include + vmwdt@9030000 { compatible = "qemu,vcpu-stall-detector"; reg = <0x9030000 0x10000>; clock-frequency = <10>; timeout-sec = <8>; + interrupts = ; }; -- 2.45.2.505.gda0bf45e8d-goog