Re: [PATCH 26/27] Enable 32bit dirty log pointers on 64bit host

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.

--
I have a truly marvellous patch that fixes the bug which this
signature is too narrow to contain.

--
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

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux