Re: [PATCH 13/22] KVM: X86: Add kvm_read_guest_page_tdp function

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

 



On 04/27/2010 03:42 PM, Avi Kivity wrote:

+{
+    gfn_t real_gfn;
+    gpa_t gpa;
+
+    *error   = 0;
+    gpa      = gfn<<  PAGE_SHIFT;

This overflows too :)

Use gfn_to_gpa().

+    real_gfn = mmu->translate_gpa(vcpu, gpa, error);

Overflow: sizeof(gpa) > sizeof(gfn).

--
error compiling committee.c: too many arguments to function

--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux