Re: [PATCH 4/4] KVM: PPC: Book3S HV: Provide a method for userspace to read and write the HPT

2012-11-19 Thread Paul Mackerras
On Mon, Nov 19, 2012 at 01:53:44PM +0100, Alexander Graf wrote: > > +static inline unsigned long slb_pgsize_encoding(unsigned long psize) > > +{ > > + unsigned long senc = 0; > > + > > + if (psize > 0x1000) { > > + senc = SLB_VSID_L; > > + if (psize == 0x1) > > +

Re: [PATCH 4/4] KVM: PPC: Book3S HV: Provide a method for userspace to read and write the HPT

2012-11-19 Thread Alexander Graf
On 14.11.2012, at 05:33, Paul Mackerras wrote: > A new ioctl, KVM_PPC_GET_HTAB_FD, returns a file descriptor. Reads on > this fd return the contents of the HPT (hashed page table), writes > create and/or remove entries in the HPT. There is a new capability, > KVM_CAP_PPC_HTAB_FD, to indicate th

[PATCH 4/4] KVM: PPC: Book3S HV: Provide a method for userspace to read and write the HPT

2012-11-13 Thread Paul Mackerras
A new ioctl, KVM_PPC_GET_HTAB_FD, returns a file descriptor. Reads on this fd return the contents of the HPT (hashed page table), writes create and/or remove entries in the HPT. There is a new capability, KVM_CAP_PPC_HTAB_FD, to indicate the presence of the ioctl. The ioctl takes an argument str