From: Paul Mackerras Date: Mon, 16 Apr 2012 21:42:27 +0000 Subject: Re: [PATCH 2/3] KVM: PPC: Add support for explicit HIOR setting Message-Id: <20120416214227.GA29228@bloggs.ozlabs.ibm.com> List-Id: References: <1325822371-11721-1-git-send-email-agraf@suse.de> <1325822371-11721-3-git-send-email-agraf@suse.de> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: Alexander Graf Cc: Andreas Schwab , kvm-ppc@vger.kernel.org, kvm list , Avi Kivity , Marcelo Tosatti , Scott Wood On Mon, Apr 16, 2012 at 06:54:50PM +0200, Alexander Graf wrote: > > Yeah :(. I already have this patch in my tree to fix that: ... > case KVM_REG_PPC_HIOR: > - r = put_user(to_book3s(vcpu)->hior, > - (u64 __user *)(long)reg->addr); > + r = copy_to_user((u64 __user *)(long)reg->addr, > + &to_book3s(vcpu)->hior, sizeof(u64)); I folded this in with your other patch that touches these lines and sent it to Avi, and it is in Linus' tree as b8e6f8ae51. Paul.