From mboxrd@z Thu Jan 1 00:00:00 1970 From: Avi Kivity Subject: Re: [PATCH] add ioctl's to save/restore mpstate Date: Fri, 11 Apr 2008 03:10:10 +0300 Message-ID: <47FEAC62.7080606@qumranet.com> References: <20080407202817.GB4254@dmt> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel To: Marcelo Tosatti Return-path: In-Reply-To: <20080407202817.GB4254@dmt> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces@lists.sourceforge.net Errors-To: kvm-devel-bounces@lists.sourceforge.net List-Id: kvm.vger.kernel.org Marcelo Tosatti wrote: > /* > * ioctls for VM fds > @@ -340,5 +341,7 @@ struct kvm_s390_interrupt { > #define KVM_S390_SET_INITIAL_PSW _IOW(KVMIO, 0x96, struct kvm_s390_psw) > /* initial reset for s390 */ > #define KVM_S390_INITIAL_RESET _IO(KVMIO, 0x97) > +#define KVM_GET_MP_STATE _IO(KVMIO, 0x98) > +#define KVM_SET_MP_STATE _IO(KVMIO, 0x99) > This needs _IOW or _IORW to document transfer direction and structure size. Please put the data in a structure, and document the values by moving the #defines into linux/kvm.h -- Any sufficiently difficult bug is indistinguishable from a feature. ------------------------------------------------------------------------- This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone