All of lore.kernel.org
 help / color / mirror / Atom feed
From: Cornelia Huck <cohuck@redhat.com>
To: linux-s390@vger.kernel.org, kvm@vger.kernel.org
Subject: Re: [RFC PATCH 0/3] Use DIAG318 to set Control Program Name & Version Codes
Date: Thu, 20 Sep 2018 09:18:44 +0000	[thread overview]
Message-ID: <20180920111844.53cbaa65.cohuck@redhat.com> (raw)
In-Reply-To: <82ae7fbf-8b05-7da2-b294-64b945a47172@de.ibm.com>

On Wed, 19 Sep 2018 13:09:34 -0400
Collin Walling <walling@linux.ibm.com> wrote:

> On 09/19/2018 05:30 AM, Cornelia Huck wrote:
> > On Fri, 31 Aug 2018 12:51:16 -0400
> > Collin Walling <walling@linux.ibm.com> wrote:

> >> The CPC and HPID are used for problem diagnosis and allows IBM to identify 
> >> control program information by answering the following questions:
> >>
> >>     "What environment is this guest running in?" (CPNC)
> >>     "What distribution is this guest running?" (CPVC)
> >>     "What underlying host environment is this guest running on?" (HPID)  
> > 
> > Is there also a way for people-who-are-not-IBM to find out what these
> > values have been set to? :) (IOW, is that write-only from a Linux
> > perspective?)
> > 
> > I see that for the emulated instruction the values are logged into the
> > debug feature, which seems useful.
> >   
> 
> Maybe it would help to include a toString-esque macro for these values. Then
> when the HPID and CPNC get logged we will have something us humans can read? :)
> 
> The distro_id will have to be deciphered via the registry file. Thoughts?

It's probably fine if this has to be decoded outside of the kernel.

One thing that came to my mind: Would it be useful to be able to
introspect a live guest from the hypervisor? For example, being able to
get the CPNC/CPVC from a QEMU monitor command? (The debug feature may
wrap around so that the info can get lost, I guess?)

       reply	other threads:[~2018-09-20  9:18 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <82ae7fbf-8b05-7da2-b294-64b945a47172@de.ibm.com>
2018-09-20  9:18 ` Cornelia Huck [this message]
     [not found] <1535734279-10204-1-git-send-email-walling@linux.ibm.com>
2018-08-31 19:31 ` [RFC PATCH 0/3] Use DIAG318 to set Control Program Name & Version Codes Collin Walling

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=20180920111844.53cbaa65.cohuck@redhat.com \
    --to=cohuck@redhat.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.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.