All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Namhyung Kim <namhyung@kernel.org>
Cc: virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org,
	qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org,
	LKML <linux-kernel@vger.kernel.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"Anthony Liguori" <aliguori@amazon.com>,
	"Anton Vorontsov" <anton@enomsg.org>,
	"Colin Cross" <ccross@android.com>,
	"Kees Cook" <keescook@chromium.org>,
	"Tony Luck" <tony.luck@intel.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Minchan Kim" <minchan@kernel.org>,
	"Daniel P . Berrange" <berrange@redhat.com>
Subject: Re: [PATCH 2/3] qemu: Implement virtio-pstore device
Date: Tue, 15 Nov 2016 16:38:45 +0200	[thread overview]
Message-ID: <20161115163735-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20161115062336.GA16821@danjae.aot.lge.com>

On Tue, Nov 15, 2016 at 03:23:36PM +0900, Namhyung Kim wrote:
> 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

And that opens all kind of resource management issues as guest
might be able to open a ton of these unexpected types.
So don't try to predict the future, if you add a new type
you add a feature flag. Ignore or error on things you can
not handle.

-- 
MST

WARNING: multiple messages have this Message-ID (diff)
From: "Michael S. Tsirkin" <mst@redhat.com>
To: Namhyung Kim <namhyung@kernel.org>
Cc: virtio-dev@lists.oasis-open.org, kvm@vger.kernel.org,
	qemu-devel@nongnu.org, virtualization@lists.linux-foundation.org,
	LKML <linux-kernel@vger.kernel.org>,
	"Paolo Bonzini" <pbonzini@redhat.com>,
	"Radim Krčmář" <rkrcmar@redhat.com>,
	"Anthony Liguori" <aliguori@amazon.com>,
	"Anton Vorontsov" <anton@enomsg.org>,
	"Colin Cross" <ccross@android.com>,
	"Kees Cook" <keescook@chromium.org>,
	"Tony Luck" <tony.luck@intel.com>,
	"Steven Rostedt" <rostedt@goodmis.org>,
	"Ingo Molnar" <mingo@kernel.org>,
	"Minchan Kim" <minchan@kernel.org>,
	"Daniel P . Berrange" <berrange@redhat.com>
Subject: Re: [Qemu-devel] [PATCH 2/3] qemu: Implement virtio-pstore device
Date: Tue, 15 Nov 2016 16:38:45 +0200	[thread overview]
Message-ID: <20161115163735-mutt-send-email-mst@kernel.org> (raw)
In-Reply-To: <20161115062336.GA16821@danjae.aot.lge.com>

On Tue, Nov 15, 2016 at 03:23:36PM +0900, Namhyung Kim wrote:
> 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

And that opens all kind of resource management issues as guest
might be able to open a ton of these unexpected types.
So don't try to predict the future, if you add a new type
you add a feature flag. Ignore or error on things you can
not handle.

-- 
MST

  reply	other threads:[~2016-11-15 14:38 UTC|newest]

Thread overview: 118+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-08-20  8:07 [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v3) Namhyung Kim
2016-08-20  8:07 ` [Qemu-devel] " Namhyung Kim
2016-08-20  8:07 ` Namhyung Kim
2016-08-20  8:07 ` [PATCH 1/3] virtio: Basic implementation of virtio pstore driver Namhyung Kim
2016-08-20  8:07   ` [Qemu-devel] " Namhyung Kim
2016-08-20  8:07   ` Namhyung Kim
2016-09-13 15:19   ` Michael S. Tsirkin
2016-09-13 15:19     ` [Qemu-devel] " Michael S. Tsirkin
2016-09-16  9:05     ` Namhyung Kim
2016-09-16  9:05       ` [Qemu-devel] " Namhyung Kim
2016-09-16  9:05       ` Namhyung Kim
2016-09-13 15:19   ` Michael S. Tsirkin
2016-11-10 16:39   ` Michael S. Tsirkin
2016-11-10 16:39     ` [Qemu-devel] " Michael S. Tsirkin
2016-11-15  4:50     ` Namhyung Kim
2016-11-15  4:50     ` Namhyung Kim
2016-11-15  4:50       ` [Qemu-devel] " Namhyung Kim
2016-11-15  5:06       ` Michael S. Tsirkin
2016-11-15  5:06         ` [Qemu-devel] " Michael S. Tsirkin
2016-11-15  5:06         ` Michael S. Tsirkin
2016-11-15  5:50         ` Namhyung Kim
2016-11-15  5:50           ` [Qemu-devel] " Namhyung Kim
2016-11-15  5:50           ` Namhyung Kim
2016-11-15 14:35           ` Michael S. Tsirkin
2016-11-15 14:35             ` [Qemu-devel] " Michael S. Tsirkin
2016-11-15 14:35             ` Michael S. Tsirkin
2016-11-15  9:57         ` Paolo Bonzini
2016-11-15  9:57         ` Paolo Bonzini
2016-11-15  9:57           ` [Qemu-devel] " Paolo Bonzini
2016-11-15 14:36           ` Namhyung Kim
2016-11-15 14:36             ` [Qemu-devel] " Namhyung Kim
2016-11-15 14:36             ` Namhyung Kim
2016-11-15 14:38             ` Paolo Bonzini
2016-11-15 14:38             ` Paolo Bonzini
2016-11-15 14:38               ` [Qemu-devel] " Paolo Bonzini
2016-11-16  7:04               ` Namhyung Kim
2016-11-16  7:04                 ` [Qemu-devel] " Namhyung Kim
2016-11-16  7:04                 ` Namhyung Kim
2016-11-16 12:10                 ` Paolo Bonzini
2016-11-16 12:10                   ` [Qemu-devel] " Paolo Bonzini
2016-11-16 12:10                   ` Paolo Bonzini
2016-11-18  3:32                   ` Namhyung Kim
2016-11-18  3:32                     ` [Qemu-devel] " Namhyung Kim
2016-11-18  3:32                     ` Namhyung Kim
2016-11-18  4:07                     ` Michael S. Tsirkin
2016-11-18  4:07                       ` [Qemu-devel] " Michael S. Tsirkin
2016-11-18  9:46                       ` [virtio-dev] " Paolo Bonzini
2016-11-18  9:46                       ` Paolo Bonzini
2016-11-18  9:46                         ` [Qemu-devel] " Paolo Bonzini
2016-11-18  9:46                         ` Paolo Bonzini
2016-11-18  4:07                     ` Michael S. Tsirkin
2016-11-18  9:45                     ` Paolo Bonzini
2016-11-18  9:45                     ` Paolo Bonzini
2016-11-18  9:45                       ` [Qemu-devel] " Paolo Bonzini
2016-11-10 16:39   ` Michael S. Tsirkin
2016-08-20  8:07 ` [PATCH 2/3] qemu: Implement virtio-pstore device Namhyung Kim
2016-08-20  8:07   ` [Qemu-devel] " Namhyung Kim
2016-08-24 22:00   ` Daniel P. Berrange
2016-08-24 22:00     ` [Qemu-devel] " Daniel P. Berrange
2016-08-24 22:00     ` Daniel P. Berrange
2016-08-26  4:48     ` Namhyung Kim
2016-08-26  4:48       ` [Qemu-devel] " Namhyung Kim
2016-08-26  4:48       ` Namhyung Kim
2016-08-26 12:27       ` Daniel P. Berrange
2016-08-26 12:27         ` [Qemu-devel] " Daniel P. Berrange
2016-08-26 12:27         ` Daniel P. Berrange
2016-09-13 15:57   ` Michael S. Tsirkin
2016-09-13 15:57   ` Michael S. Tsirkin
2016-09-13 15:57     ` [Qemu-devel] " Michael S. Tsirkin
2016-09-16 10:05     ` Namhyung Kim
2016-09-16 10:05     ` Namhyung Kim
2016-09-16 10:05       ` [Qemu-devel] " Namhyung Kim
2016-11-10 22:50       ` Michael S. Tsirkin
2016-11-10 22:50         ` [Qemu-devel] " Michael S. Tsirkin
2016-11-15  6:23         ` Namhyung Kim
2016-11-15  6:23           ` [Qemu-devel] " Namhyung Kim
2016-11-15  6:23           ` Namhyung Kim
2016-11-15 14:38           ` Michael S. Tsirkin [this message]
2016-11-15 14:38             ` [Qemu-devel] " Michael S. Tsirkin
2016-11-15 14:38           ` Michael S. Tsirkin
2016-11-10 22:50       ` Michael S. Tsirkin
2016-08-20  8:07 ` Namhyung Kim
2016-08-20  8:07 ` [PATCH 3/3] kvmtool: " Namhyung Kim
2016-08-20  8:07   ` [Qemu-devel] " Namhyung Kim
2016-08-20  8:07   ` Namhyung Kim
2016-08-23 10:25 ` [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v3) Joel Fernandes
2016-08-23 15:20   ` Namhyung Kim
2016-08-23 15:20     ` [Qemu-devel] " Namhyung Kim
2016-08-24  7:10     ` Joel
2016-08-24  7:10       ` [Qemu-devel] " Joel
  -- strict thread matches above, loose matches on Subject: below --
2016-09-04 14:38 [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v5) Namhyung Kim
2016-09-04 14:38 ` [PATCH 2/3] qemu: Implement virtio-pstore device Namhyung Kim
2016-09-04 14:38   ` Namhyung Kim
2016-09-22 12:23   ` Stefan Hajnoczi
2016-09-22 12:23     ` Stefan Hajnoczi
2016-09-23  5:52     ` Namhyung Kim
2016-09-23  5:52       ` Namhyung Kim
2016-08-31  8:07 [RFC/PATCHSET 0/3] virtio: Implement virtio pstore device (v4) Namhyung Kim
2016-08-31  8:08 ` [PATCH 2/3] qemu: Implement virtio-pstore device Namhyung Kim
2016-08-31  8:08   ` Namhyung Kim
2016-07-18  4:37 [RFC/PATCHSET 0/3] virtio-pstore: Implement virtio pstore device Namhyung Kim
2016-07-18  4:37 ` [PATCH 2/3] qemu: Implement virtio-pstore device Namhyung Kim
2016-07-18  7:28   ` Christian Borntraeger
2016-07-18  7:28     ` Christian Borntraeger
2016-07-18  8:33     ` Namhyung Kim
2016-07-18  8:33     ` Namhyung Kim
2016-07-18 10:03   ` Stefan Hajnoczi
2016-07-18 10:03     ` Stefan Hajnoczi
2016-07-18 14:21     ` Namhyung Kim
2016-07-18 14:21     ` Namhyung Kim
2016-07-20  8:29       ` Stefan Hajnoczi
2016-07-20  8:29         ` Stefan Hajnoczi
2016-07-20 12:46         ` Namhyung Kim
2016-07-20 12:46           ` Namhyung Kim
2016-07-19 15:48     ` Namhyung Kim
2016-07-19 15:48     ` Namhyung Kim
2016-07-20  8:21       ` Stefan Hajnoczi
2016-07-20  8:21         ` Stefan Hajnoczi
2016-07-20 12:30         ` Namhyung Kim
2016-07-20 12:30           ` Namhyung Kim
2016-07-18  4:37 ` Namhyung Kim

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20161115163735-mutt-send-email-mst@kernel.org \
    --to=mst@redhat.com \
    --cc=aliguori@amazon.com \
    --cc=anton@enomsg.org \
    --cc=berrange@redhat.com \
    --cc=ccross@android.com \
    --cc=keescook@chromium.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=minchan@kernel.org \
    --cc=mingo@kernel.org \
    --cc=namhyung@kernel.org \
    --cc=pbonzini@redhat.com \
    --cc=qemu-devel@nongnu.org \
    --cc=rkrcmar@redhat.com \
    --cc=rostedt@goodmis.org \
    --cc=tony.luck@intel.com \
    --cc=virtio-dev@lists.oasis-open.org \
    --cc=virtualization@lists.linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.