On 20.10.2009, at 15:23, Avi Kivity wrote:
On 10/20/2009 07:09 PM, Alexander Graf wrote:
On 30.09.2009, at 15:29, Avi Kivity wrote:
On 09/30/2009 03:17 PM, Avi Kivity wrote:
{
struct page *page[1];
@@ -2331,7 +2374,7 @@ static int kvm_vm_mmap(struct file *file,
struct vm_area_struct *vma)
static struct file_operations kvm_vm_fops = {
.release = kvm_vm_release,
.unlocked_ioctl = kvm_vm_ioctl,
- .compat_ioctl = kvm_vm_ioctl,
+ .compat_ioctl = kvm_vm_compat_ioctl,
.mmap = kvm_vm_mmap,
};
static int kvm_vm_fault(struct vm_area_struct *vma, struct
vm_fault *vmf)
This is a bit painful - I tried to avoid compat_ioctl. Maybe
it's better to have dirty_bitmap_virt, given no existing users
are impacted.
But that misses compat_ptr(). So it looks like we'll need
compat_ioctl.
Patch looks fine, except s/log.log/log/. I'd also sizeof
(compat_log) instead of sizeof(log) to avoid frightening reviewers.
So has there been any decision on which road to take here?
compat_ioctl, and being more careful in the future.
So I'll include Arnd's patch in my patchset instead?
Alex
--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html