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. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html