From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:39487) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1c6XAh-0000ip-Ty for qemu-devel@nongnu.org; Tue, 15 Nov 2016 01:24:44 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1c6XAd-0002fX-VN for qemu-devel@nongnu.org; Tue, 15 Nov 2016 01:24:43 -0500 Received: from mail-pg0-x244.google.com ([2607:f8b0:400e:c05::244]:35035) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1c6XAd-0002f3-Ne for qemu-devel@nongnu.org; Tue, 15 Nov 2016 01:24:39 -0500 Received: by mail-pg0-x244.google.com with SMTP id p66so10974601pga.2 for ; Mon, 14 Nov 2016 22:24:39 -0800 (PST) Sender: Namhyung Kim Date: Tue, 15 Nov 2016 15:23:36 +0900 From: Namhyung Kim Message-ID: <20161115062336.GA16821@danjae.aot.lge.com> References: <20160820080744.10344-1-namhyung@kernel.org> <20160820080744.10344-3-namhyung@kernel.org> <20160913155710.3q6yj6yqdyozemul@redhat.com> <20160916100547.GC2474@danjae.aot.lge.com> <20161111004710-mutt-send-email-mst@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20161111004710-mutt-send-email-mst@kernel.org> Subject: Re: [Qemu-devel] [PATCH 2/3] qemu: Implement virtio-pstore device List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: "Michael S. Tsirkin" Cc: virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org, qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org, LKML , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Anthony Liguori , Anton Vorontsov , Colin Cross , Kees Cook , Tony Luck , Steven Rostedt , Ingo Molnar , Minchan Kim , "Daniel P . Berrange" On Fri, Nov 11, 2016 at 12:50:03AM +0200, Michael S. Tsirkin wrote: > On Fri, Sep 16, 2016 at 07:05:47PM +0900, Namhyung Kim wrote: > > On Tue, Sep 13, 2016 at 06:57:10PM +0300, Michael S. Tsirkin wrote: > > > On Sat, Aug 20, 2016 at 05:07:43PM +0900, Namhyung Kim wrote: > > > > + > > > > +/* the index should match to the type value */ > > > > +static const char *virtio_pstore_file_prefix[] = { > > > > + "unknown-", /* VIRTIO_PSTORE_TYPE_UNKNOWN */ > > > > > > Is there value in treating everything unexpected as "unknown" > > > and rotating them as if they were logs? > > > It might be better to treat everything that's not known > > > as guest error. > > > > I was thinking about the version mismatch between the kernel and qemu. > > I'd like to make the device can deal with a new kernel version which > > might implement a new pstore message type. It will be saved as > > unknown but the kernel can read it properly later. > > Well it'll have a different prefix. E.g. if kernel has > two different types they will end up in the same > file, hardly what was wanted. Right, I think it needs to add 'type' info to the filename for unknown type. Thanks, Namhyung