From mboxrd@z Thu Jan 1 00:00:00 1970 From: Christian Borntraeger Subject: Re: [GIT PULL 1/2] KVM: s390/facilities: allow TOD-CLOCK steering facility bit Date: Wed, 01 Oct 2014 20:27:38 +0200 Message-ID: <542C479A.30108@de.ibm.com> References: <1412172170-13472-1-git-send-email-borntraeger@de.ibm.com> <1412172170-13472-2-git-send-email-borntraeger@de.ibm.com> <542C0CF4.9060401@suse.de> Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <542C0CF4.9060401@suse.de> Sender: kvm-owner@vger.kernel.org List-Archive: List-Post: To: Alexander Graf , Paolo Bonzini Cc: KVM , Gleb Natapov , Cornelia Huck , Jens Freimann , linux-s390 List-ID: 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 >> Reviewed-by: David Hildenbrand >> --- >> 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. Hmm, maybe we can find somebody that wants to increase the patch counter? Christian > > > Alex > >> vfacilities[1] &= 0x005c000000000000UL; >> return 0; >> } >> >