Received: by 2002:a05:7208:9594:b0:7e:5202:c8b4 with SMTP id gs20csp2377386rbb; Tue, 27 Feb 2024 22:48:58 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWlF4l+pzC8a47TgpL7JUXWyiFDBEFBxYWdH8TyhmcuopOngAN7Lf/lvPL5kBBUZ1sAuS0fW13Xy3m20sDsPtrNPtSZNNxyM7cGqa+cWA== X-Google-Smtp-Source: AGHT+IGwgOMOayxZLIT8JC4/qomjN3/s54zFl7M/3SwmLO8PJt2Li6ZP3RbuLhMBdYdo4+63jbpC X-Received: by 2002:a17:906:415a:b0:a3e:d450:d3e0 with SMTP id l26-20020a170906415a00b00a3ed450d3e0mr6929370ejk.43.1709102938079; Tue, 27 Feb 2024 22:48:58 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709102938; cv=pass; d=google.com; s=arc-20160816; b=kcMAqgRsFfSqFCHtSiaQ0UDWbfsAqfTTaBjmL3DBJ2aA5vVbNGZHNLOBhYion4B//N V3rNRHifgVlddCZCBeMCywwr9/65EPP58KR+7UIXuNUyy/TcmQ4h6TuP5Vd0ygQ8Ilne BmgQYLOxF/NG0FR3UcshD9ErLciNJp310B3HY3At1hnKg5pCbt0zeyho/C+GSK58KxE/ 9pN3E+2YUgzj7VgE1jpzpp+l3ymwWH8pc/9ZgHB73MvnA8afkA4rvX77gKO9CkU54os+ mSu6RaOlqg7X/hB3YoPr3iTbo2Qfr+WFjpRnQhTFAnejO84N/agA0sVeMFJvPHKuwvWw OVVA== 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=aXun5CQqxEUOopZrGADaMXWNnNp0X9FJzJmUtvFbtKs=; fh=eJGLC2fcRQk+XbUK+qoXmS6CP+S2y/ye8qYkfj3+9qA=; b=j2hy71CwNjcqEhW/Lt0HCxgBUMDRz4TDKsfgcL5EJ1OYlEEyWQuL4mh/qB/sIy/CF7 ZNKPqK4tqOEgQGzlYdgtb67a0bnzW24WzNeVlDjcXptEfhoXY+S2y02f8bdJW2WicmCx s0d5MPXLByj/mLWuqAGd2HN0BBWaqhY7zOGimkMjBwOeWwoLfyR7kjMCVXx47kS0qY5d hc9jc+RwxpXu4O+R//ZS5BVwmAJo/5ynThHmaKTnxpK0SQUKi9h36/7e3dzJMy3wnTrM XxalL9wGbOjPAlKvfgubjoJ8ntlTukN4mE6GpVfIIENqXot7glcywo8P8oDwsxgD7QhN qx+A==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@weissschuh.net header.s=mail header.b=oO6y+2W1; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-84574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84574-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 m13-20020a1709062acd00b00a3eb2a3c3e9si1430944eje.1006.2024.02.27.22.48.58 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 27 Feb 2024 22:48:58 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-84574-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=oO6y+2W1; arc=pass (i=1 spf=pass spfdomain=weissschuh.net dkim=pass dkdomain=weissschuh.net); spf=pass (google.com: domain of linux-kernel+bounces-84574-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-84574-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 CE43A1F26879 for ; Wed, 28 Feb 2024 06:48:57 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B608E22F02; Wed, 28 Feb 2024 06:48:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=weissschuh.net header.i=@weissschuh.net header.b="oO6y+2W1" 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 1BC2A23746 for ; Wed, 28 Feb 2024 06:48:35 +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=1709102920; cv=none; b=aDV4URVs9j848Wjxoh2unYiHKbtn0nRzMMet1Su5In5G5f0kJENYPYUiKAH8EwzVhk72K/4coj88aBSQmh8w7X17ZP3TW5RCrhxCG1Xq42s6e5+X+5g78E4eeO8VrnCfVeQD2FdpBNcisZUkBZYqwtpy/VVJ9k8GbrpddsuWL7Y= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709102920; c=relaxed/simple; bh=eMeNeT19jqeiXFrZIuRqIqAr/reG8k2xmqZQT1Q5gKo=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=H9p1GeoZJei5/62yvLlkj6mqTMGUnYqZrFuUTwEQmWSuJiFapOYP53hyowSd/50oINEUcxkSxQLNj+l8+i2GzBLPYVvUDlEp+FOwvkKZm8XSizhlMZkijVGYOZWsdI/MNwugTcJZagAmEndKlQWPHmA8TN2azdUMoEGXPJ0Tfr4= 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=oO6y+2W1; 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=1709102908; bh=eMeNeT19jqeiXFrZIuRqIqAr/reG8k2xmqZQT1Q5gKo=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oO6y+2W1BaLc+y1z2JOt48eAa4IKT10yvHbjLpo0ryx1nXj5Gc+L7DAK3QdYK7D7d RSj/gy/Y6V73ZqmyJqDvXojNwxvuG6qMpVNFrY+1+LbTCUrSBlYQqPpj26B1q26L6S /qBNiiXMSRWFkGW9n/VDJIE44xo12Yn2TAegydbw= Date: Wed, 28 Feb 2024 07:48:26 +0100 From: Thomas =?utf-8?Q?Wei=C3=9Fschuh?= To: "Michael S. Tsirkin" , Greg Kroah-Hartman Cc: 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 Michael, 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. as Greg seems to be busy with other stuff I'd like to go ahead with submitting this again using the existing header file. It seems unfortunate to block this work on the non-function detail of the location if a header file which already exists and which we could always change after the fact, too. Do you have any recommendations in which parts and order to submit these changes to the kernel and Qemu? I need to touch the specification document in qemu, the header in the kernel, the import of the header in qemu and drivers in both qemu and the kernel. Thomas