All of lore.kernel.org
 help / color / mirror / Atom feed
From: Heiko Carstens <heiko.carstens@de.ibm.com>
To: Christian Borntraeger <borntraeger@de.ibm.com>
Cc: Alexander Graf <agraf@suse.de>,
	Paolo Bonzini <pbonzini@redhat.com>, KVM <kvm@vger.kernel.org>,
	Gleb Natapov <gleb@kernel.org>,
	Cornelia Huck <cornelia.huck@de.ibm.com>,
	Jens Freimann <jfrei@linux.vnet.ibm.com>,
	linux-s390 <linux-s390@vger.kernel.org>
Subject: Re: [GIT PULL 1/2] KVM: s390/facilities: allow TOD-CLOCK steering facility bit
Date: Thu, 2 Oct 2014 10:22:10 +0200	[thread overview]
Message-ID: <20141002082210.GB4225@osiris> (raw)
In-Reply-To: <542C479A.30108@de.ibm.com>

On Wed, Oct 01, 2014 at 08:27:38PM +0200, Christian Borntraeger wrote:
> On 10/01/2014 04:17 PM, Alexander Graf wrote:
> > 
> > 
> > On 01.10.14 16:02, Christian Borntraeger wrote:
> >> There is nothing to do for KVM to support TOD-CLOCK steering.
> >>
> >> Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com>
> >> Reviewed-by: David Hildenbrand <dahi@linux.vnet.ibm.com>
> >> ---
> >>  arch/s390/kvm/kvm-s390.c | 2 +-
> >>  1 file changed, 1 insertion(+), 1 deletion(-)
> >>
> >> diff --git a/arch/s390/kvm/kvm-s390.c b/arch/s390/kvm/kvm-s390.c
> >> index 56a411c..0d5aa88 100644
> >> --- a/arch/s390/kvm/kvm-s390.c
> >> +++ b/arch/s390/kvm/kvm-s390.c
> >> @@ -1786,7 +1786,7 @@ static int __init kvm_s390_init(void)
> >>  		return -ENOMEM;
> >>  	}
> >>  	memcpy(vfacilities, S390_lowcore.stfle_fac_list, 16);
> >> -	vfacilities[0] &= 0xff82fff3f4fc2000UL;
> >> +	vfacilities[0] &= 0xff82fffbf47c2000UL;
> > 
> > Can we please convert this into something readable soon? :)
> 
> It will be sooner when you send patches ;-)
> The facility numbers are documented in the POP (chapter 4 last page) in
> IBM notation (bit0 is the MSB)
> It probably makes sense to do this for the non-KVM part as well. When you grep
> for test_facility under arch/s390 there are lots of numerical value.

These numbers _are_ a wart and were the source of a couple of bugs e.g.
in our ALS code already.
However converting these bitfields to something readable doesn't seem
to be easy, since I'd like to have variable size array initializers which
set the bits depening on the symbolic name (e.g. set bits 19, 20 and 139
and automatically choose the correct size of the array):
..something like INIT_FACILITY_ARRAY(FAC19, FAC20, FAC139)

And of course this should work for asm code as well.

> Hmm, maybe we can find somebody that wants to increase the patch counter?

If you think this is trivial, please send a patch which does this.

  reply	other threads:[~2014-10-02  8:22 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-01 14:02 [GIT PULL 0/2] KVM: s390: Small enhancements for 3.18 (next) Christian Borntraeger
2014-10-01 14:02 ` [GIT PULL 1/2] KVM: s390/facilities: allow TOD-CLOCK steering facility bit Christian Borntraeger
2014-10-01 14:17   ` Alexander Graf
2014-10-01 18:27     ` Christian Borntraeger
2014-10-02  8:22       ` Heiko Carstens [this message]
2014-10-02  8:47         ` Christian Borntraeger
2014-10-01 14:02 ` [GIT PULL 2/2] KVM: s390: count vcpu wakeups in stat.halt_wakeup Christian Borntraeger
2014-10-02 11:45 ` [GIT PULL 0/2] KVM: s390: Small enhancements for 3.18 (next) Paolo Bonzini

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=20141002082210.GB4225@osiris \
    --to=heiko.carstens@de.ibm.com \
    --cc=agraf@suse.de \
    --cc=borntraeger@de.ibm.com \
    --cc=cornelia.huck@de.ibm.com \
    --cc=gleb@kernel.org \
    --cc=jfrei@linux.vnet.ibm.com \
    --cc=kvm@vger.kernel.org \
    --cc=linux-s390@vger.kernel.org \
    --cc=pbonzini@redhat.com \
    /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.