Received: by 2002:a05:7412:cfc7:b0:fc:a2b0:25d7 with SMTP id by7csp2497842rdb; Wed, 21 Feb 2024 09:19:17 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWG+rMykZfOB2B3iNzAK9mjHbVOcCwUUjWCk8UYA3gJSfiL/7ZPYyjPC2a+iHfwKWouYYoNZP61xeyaFvC+Lq7XY+rnFH2INJ5E6r94JQ== X-Google-Smtp-Source: AGHT+IFRm8l8IHm6tchHSEAiH/t34Oqg39J82Yov9xK86TgWhdYywpHeYrpSnxpCGY89HEP1G4o8 X-Received: by 2002:a50:fb8d:0:b0:564:e994:7f0d with SMTP id e13-20020a50fb8d000000b00564e9947f0dmr2469692edq.23.1708535957505; Wed, 21 Feb 2024 09:19:17 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708535957; cv=pass; d=google.com; s=arc-20160816; b=EH9U56y1DRzudwntSNHegRR/PVTRKsOC3PckzuAMPNipH1RTisxyG3NtfjOqkj1atv DJ7W9qJnIQ2DMCS1g5T1fL/uKH6MBEKrD2AnIfnrDLbrhjJgQG9y8LtQotg6jXslyN2D lBB9wVZRz5FuRJfDi65tKlFRQvmn/pB/uPk0ZSGu6MmfAmX0Z0abQICsQuq7EwKEqkTt 1Kr7UtAhMzcEQxicZiFNv7p0BN+oKncMDVKCxx3SCJ6lgozlBFBET8uedxhGZ95JxlLU ncs2SKdLUSPtiAkvan1ZbiKHNEUcwuY/DW1DeHNZxoVEmFMuksfnBQVlJ4RBVyy2xfsq D+xA== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=n2yu4VlFF1MkW7Gar+T5C26jq9mwQKD0g/MD6KVukfo=; fh=K60YDrgx27DFpMUleupCY7YbL2klcfjplkPC0+W7wnE=; b=V4aQnQ75NqWYAf6PCs/GWZ+9xHMjE2ydCBUrvgZVkC506IStu+bZ5R2Db7lWwwaMRs CRucif6bpYZe5ATEnAL9yuTs+GfFeyChDQGD5Q3ptgFYrqyfkiFoVs5lzRO6qivollgL DamjWV+aewTIFuJX2npunTT120wPmoqUFC5AoouwrCBtZ96LMlG/eAo9OixFSu+xoE0Q R/snlQ2D8KUhzHOwpTlWTixdLTCAJ0sFvFvwWzuotOsMqQTXzTIYykG/F5Bfy45QfErm gZTnrIUH/wiu38iO3LCZ7BmfDARKkM4mnTWBAM9xSn/U9eWOf8LwcBCSVDKkDRpzOAGi rhWA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=Wa0cQajd; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-75186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75186-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id dc24-20020a056402311800b005651026716bsi355222edb.136.2024.02.21.09.19.17 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 21 Feb 2024 09:19:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-75186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=Wa0cQajd; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-75186-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-75186-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0E6F31F25CBB for ; Wed, 21 Feb 2024 17:19:17 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 556A783CA0; Wed, 21 Feb 2024 17:18:21 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="Wa0cQajd" Received: from todd.t-8ch.de (todd.t-8ch.de [159.69.126.157]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 3AEBB81737 for ; Wed, 21 Feb 2024 17:18:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=159.69.126.157 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535900; cv=none; b=ZqX6amxFGaX1QXj4U9jk10WnvMH4l8bBxaKMlEbQ3A6zeizfgpVXglSsgZYmROqVnbKezQ5vqwcUbHzpgdLVlwPI6J5eYeM2Lui5Wm46d89iMQsAUEB2R1aRyAFpYPHtaKBLpM7pUxLFgA8jBn5Qiy1z46e1BiJv8rfC0oLndRA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708535900; c=relaxed/simple; bh=YbOHfwnWQEH/uqhlwHn4KCf+jK984Zh3XKCPyzW+VDw=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Zyq5R7a4S9zwnzvASN1+YgymoDvqaVsRa8yltwWgQCRey5lMUJWqr9thAbT3u7DC3hPEce863cfRNy7KbPKIqPnZLEhw0XLmJVQU1wVLr7PIS5HcwmQje0JxyHcq8Cl4XRlIOcM1WTU0CWFo5QcrQyn4E2LRDsXHRHgvK+KftlI= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net; spf=pass smtp.mailfrom=weissschuh.net; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b=Wa0cQajd; arc=none smtp.client-ip=159.69.126.157 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=weissschuh.net Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=weissschuh.net DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=weissschuh.net; s=mail; t=1708535887; bh=YbOHfwnWQEH/uqhlwHn4KCf+jK984Zh3XKCPyzW+VDw=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Wa0cQajdcPBgwV+9xc7gP2N+5mAfqqEeC77Yh96WOG2kYWqsUQOPJQRxK/Cg6YBxo hz3AfdXjvo5kSQTGDR8vTnPXaafN7zCeIbFGZ8xDwJDPON+i/7hXDa0E/6xF2/u4WN zDHSZ6oNAivpBQqrB/ukWTE3uqREFodMD/GJzk5I= Date: Wed, 21 Feb 2024 18:18:06 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: Greg Kroah-Hartman Cc: "Michael S. Tsirkin" , Arnd Bergmann , linux-kernel@vger.kernel.org, Zhangjin Wu , Willy Tarreau , Yuan Tan Subject: Re: [PATCH RFC] misc/pvpanic: add support for normal shutdowns Message-ID: References: <20231104-pvpanic-shutdown-v1-1-5ee7c9b3e301@weissschuh.net> <2023110407-unselect-uptight-b96d@gregkh> <20240213053953-mutt-send-email-mst@kernel.org> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240213053953-mutt-send-email-mst@kernel.org> Hi Greg, On 2024-02-13 05:41:48-0500, Michael S. Tsirkin wrote: > On Sat, Nov 04, 2023 at 02:05:02PM +0100, Greg Kroah-Hartman wrote: > > > diff --git a/include/uapi/misc/pvpanic.h b/include/uapi/misc/pvpanic.h > > > index 54b7485390d3..82fc618bfbcf 100644 > > > --- a/include/uapi/misc/pvpanic.h > > > +++ b/include/uapi/misc/pvpanic.h > > > @@ -5,5 +5,6 @@ > > > > > > #define PVPANIC_PANICKED (1 << 0) > > > #define PVPANIC_CRASH_LOADED (1 << 1) > > > +#define PVPANIC_SHUTDOWN (1 << 2) > > > > Why are these in a uapi file? > > > > And if they need to be here, why not use the proper BIT() macro for it? > > > > thanks, > > > > greg k-h > > This is interface with hypervisor not userspace, but for PV historically > we do this since the compatibility implications are about the same, > hypervisors (e.g. QEMU) are mostly userspace and so it is convenient for > them to reuse the same machinery to export the headers. > > Let's stick to that, cleaner than duplicating everything I think. could you confirm that it's fine to keep this UAPI header file? Thomas