From mboxrd@z Thu Jan 1 00:00:00 1970 From: Cornelia Huck Subject: Re: [PATCH v2 06/12] KVM: s390: exploit GISA and AIV for emulated interrupts Date: Thu, 25 Jan 2018 17:39:53 +0100 Message-ID: <20180125173953.302fd88e.cohuck@redhat.com> References: <20180125132848.175942-1-borntraeger@de.ibm.com> <20180125132848.175942-7-borntraeger@de.ibm.com> <040c7c5d-bbbd-89d4-ebcd-5d04ed80a40d@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Cc: David Hildenbrand , KVM , linux-s390 , Janosch Frank , Martin Schwidefsky , Heiko Carstens , Michael Mueller To: Christian Borntraeger Return-path: Received: from mx1.redhat.com ([209.132.183.28]:34390 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750994AbeAYQj7 (ORCPT ); Thu, 25 Jan 2018 11:39:59 -0500 In-Reply-To: Sender: kvm-owner@vger.kernel.org List-ID: On Thu, 25 Jan 2018 17:32:29 +0100 Christian Borntraeger wrote: > On 01/25/2018 03:20 PM, David Hildenbrand wrote: > [...] > >> @@ -918,18 +919,38 @@ static int __must_check __deliver_virtio(struct kvm_vcpu *vcpu) > >> return rc ? -EFAULT : 0; > >> } > >> > >> +static int __do_deliver_io(struct kvm_vcpu *vcpu, struct kvm_s390_io_info *io) > >> +{ > >> + int rc; > >> + > >> + rc = put_guest_lc(vcpu, io->subchannel_id, (u16 *)__LC_SUBCHANNEL_ID); > >> + rc |= put_guest_lc(vcpu, io->subchannel_nr, (u16 *)__LC_SUBCHANNEL_NR); > >> + rc |= put_guest_lc(vcpu, io->io_int_parm, (u32 *)__LC_IO_INT_PARM); > >> + rc |= put_guest_lc(vcpu, io->io_int_word, (u32 *)__LC_IO_INT_WORD); > >> + rc |= write_guest_lc(vcpu, __LC_IO_OLD_PSW, > >> + &vcpu->arch.sie_block->gpsw, > >> + sizeof(psw_t)); > >> + rc |= read_guest_lc(vcpu, __LC_IO_NEW_PSW, > >> + &vcpu->arch.sie_block->gpsw, > >> + sizeof(psw_t)); > > > > These should now it into less lines. > > The last two lines are way beyond 80. > > Can you factor that change out into > > a separate patch? > > > Unless Conny agrees that this is absolutely mandatory I would like to avoid that. I don't think factoring this out would be very useful.