From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [patch 04/12] [PATCH] kvm-s390-ucontrol: export SIE control block to user Date: Thu, 01 Dec 2011 15:26:41 +0200 Message-ID: <4ED78091.1060801@redhat.com> References: <20111201125732.085553111@de.ibm.com> <20111201130409.221824848@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: Marcelo Tossati , Christian Borntraeger , Heiko Carstens , Martin Schwidefsky , Cornelia Huck , KVM , Joachim von Buttlar , Jens Freimann , Constantin Werner To: Carsten Otte Return-path: Received: from mx1.redhat.com ([209.132.183.28]:39795 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754356Ab1LAN0t (ORCPT ); Thu, 1 Dec 2011 08:26:49 -0500 In-Reply-To: <20111201130409.221824848@de.ibm.com> Sender: kvm-owner@vger.kernel.org List-ID: On 12/01/2011 02:57 PM, Carsten Otte wrote: > This patch exports the SIE hardware control block to userspace > via the mapping of the vcpu file descriptor. > else if (vmf->pgoff == KVM_COALESCED_MMIO_PAGE_OFFSET) > page = virt_to_page(vcpu->kvm->coalesced_mmio_ring); > #endif > +#if defined(CONFIG_S390) && defined(CONFIG_KVM_UCONTROL) > + else if ((vmf->pgoff == KVM_SIE_PAGE_OFFSET) > + && (!(vcpu->kvm->arch.gmap))) Is the second test "kvm_is_ucontrol()"? > + page = virt_to_page(vcpu->arch.sie_block); > +#endif > else > return VM_FAULT_SIGBUS; > get_page(page); > -- error compiling committee.c: too many arguments to function