From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paul Mackerras Subject: Re: [PATCH 10/13] kvm/powerpc: Add support for Book3S processors in hypervisor mode Date: Mon, 16 May 2011 11:07:57 +1000 Message-ID: <20110516010757.GA2460@brick.ozlabs.ibm.com> References: <20110511103443.GA2837@brick.ozlabs.ibm.com> <20110511104456.GK2837@brick.ozlabs.ibm.com> <4DCBA345.6090006@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linuxppc-dev@ozlabs.org, kvm@vger.kernel.org, Alexander Graf To: Avi Kivity Return-path: Received: from ozlabs.org ([203.10.76.45]:46771 "EHLO ozlabs.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751603Ab1EPBIG (ORCPT ); Sun, 15 May 2011 21:08:06 -0400 Content-Disposition: inline In-Reply-To: <4DCBA345.6090006@redhat.com> Sender: kvm-owner@vger.kernel.org List-ID: On Thu, May 12, 2011 at 12:07:17PM +0300, Avi Kivity wrote: > On 05/11/2011 01:44 PM, Paul Mackerras wrote: > >--- a/include/linux/kvm.h > >+++ b/include/linux/kvm.h > >@@ -161,6 +161,7 @@ struct kvm_pit_config { > > #define KVM_EXIT_NMI 16 > > #define KVM_EXIT_INTERNAL_ERROR 17 > > #define KVM_EXIT_OSI 18 > >+#define KVM_EXIT_PAPR_HCALL 19 > > > > /* For KVM_EXIT_INTERNAL_ERROR */ > > #define KVM_INTERNAL_ERROR_EMULATION 1 > >@@ -264,6 +265,11 @@ struct kvm_run { > > struct { > > __u64 gprs[32]; > > } osi; > >+ struct { > >+ __u64 nr; > >+ __u64 ret; > >+ __u64 args[9]; > >+ } papr_hcall; > > /* Fix the size of the union. */ > > char padding[256]; > > }; > > Please document this in Documentation/kvm/api.txt. I'll add a description of the basic calling convention in the next version of the patches. The full description of all the possible hypercalls is in the PAPR version 2.4 document (826 pages) on the www.power.org website. You have to become a power.org member to download it, but membership is free for individual developers. Paul.