From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Date: Tue, 03 Jan 2012 14:01:53 +0000 Subject: Re: [PATCH 1/2] KVM: PPC: epapr: Add idle hcall support for host Message-Id: <4F030A51.3020309@redhat.com> List-Id: References: <1325312176-17697-1-git-send-email-yu.liu@freescale.com> In-Reply-To: <1325312176-17697-1-git-send-email-yu.liu@freescale.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Liu Yu Cc: agraf@suse.de, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org On 12/31/2011 08:16 AM, Liu Yu wrote: > Add a new field opt_feature in struct kvm_ppc_pvinfo > to tell userspace whether it support hcall idle. > > diff --git a/include/linux/kvm.h b/include/linux/kvm.h > index c107fae..5af21f3 100644 > --- a/include/linux/kvm.h > +++ b/include/linux/kvm.h > @@ -426,9 +426,12 @@ struct kvm_ppc_pvinfo { > /* out */ > __u32 flags; > __u32 hcall[4]; > - __u8 pad[108]; > + __u32 opt_features; > + __u8 pad[104]; > }; > > +#define KVM_PPC_PVINFO_HAS_EV_IDLE (1<<0) > + > Needs to be documented, plus a KVM_CAP so userspace can discover that this feature is available, -- error compiling committee.c: too many arguments to function From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH 1/2] KVM: PPC: epapr: Add idle hcall support for host Date: Tue, 03 Jan 2012 16:01:53 +0200 Message-ID: <4F030A51.3020309@redhat.com> References: <1325312176-17697-1-git-send-email-yu.liu@freescale.com> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Cc: agraf@suse.de, kvm-ppc@vger.kernel.org, kvm@vger.kernel.org To: Liu Yu Return-path: In-Reply-To: <1325312176-17697-1-git-send-email-yu.liu@freescale.com> Sender: kvm-ppc-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 12/31/2011 08:16 AM, Liu Yu wrote: > Add a new field opt_feature in struct kvm_ppc_pvinfo > to tell userspace whether it support hcall idle. > > diff --git a/include/linux/kvm.h b/include/linux/kvm.h > index c107fae..5af21f3 100644 > --- a/include/linux/kvm.h > +++ b/include/linux/kvm.h > @@ -426,9 +426,12 @@ struct kvm_ppc_pvinfo { > /* out */ > __u32 flags; > __u32 hcall[4]; > - __u8 pad[108]; > + __u32 opt_features; > + __u8 pad[104]; > }; > > +#define KVM_PPC_PVINFO_HAS_EV_IDLE (1<<0) > + > Needs to be documented, plus a KVM_CAP so userspace can discover that this feature is available, -- error compiling committee.c: too many arguments to function